diff --git a/hostd/assets/404.html b/hostd/assets/404.html index e8fd0978f..b291496c1 100644 --- a/hostd/assets/404.html +++ b/hostd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/_next/static/3fEoOrUX_c5WkXb6FlWGr/_buildManifest.js b/hostd/assets/_next/static/3fEoOrUX_c5WkXb6FlWGr/_buildManifest.js deleted file mode 100644 index b141d918f..000000000 --- a/hostd/assets/_next/static/3fEoOrUX_c5WkXb6FlWGr/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-2b994bedf7172423.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/config":["static/chunks/pages/config-08c906f9a89ca8ab.js"],"/contracts":["static/chunks/pages/contracts-35367124651e5156.js"],"/login":["static/chunks/pages/login-6c18263f5d6f2098.js"],"/node":["static/chunks/pages/node-15ca52c134133a1a.js"],"/volumes":["static/chunks/pages/volumes-bcc18b63192ece31.js"],"/wallet":["static/chunks/pages/wallet-b6f26fc83228446a.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/Iy4kU0P0WYTuEi_VLuUrC/_buildManifest.js b/hostd/assets/_next/static/Iy4kU0P0WYTuEi_VLuUrC/_buildManifest.js new file mode 100644 index 000000000..52c948b02 --- /dev/null +++ b/hostd/assets/_next/static/Iy4kU0P0WYTuEi_VLuUrC/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-a73aa737e97b5b62.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/config":["static/chunks/pages/config-757aca48475f72e5.js"],"/contracts":["static/chunks/pages/contracts-6a17454aa7e3b504.js"],"/login":["static/chunks/pages/login-6c18263f5d6f2098.js"],"/node":["static/chunks/pages/node-c05d5626afd56748.js"],"/volumes":["static/chunks/pages/volumes-984d9b38b33fc244.js"],"/wallet":["static/chunks/pages/wallet-30a2b7bd64385be9.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/3fEoOrUX_c5WkXb6FlWGr/_ssgManifest.js b/hostd/assets/_next/static/Iy4kU0P0WYTuEi_VLuUrC/_ssgManifest.js similarity index 100% rename from hostd/assets/_next/static/3fEoOrUX_c5WkXb6FlWGr/_ssgManifest.js rename to hostd/assets/_next/static/Iy4kU0P0WYTuEi_VLuUrC/_ssgManifest.js diff --git a/hostd/assets/_next/static/chunks/pages/_app-868d6129c3b76ed4.js b/hostd/assets/_next/static/chunks/pages/_app-998ac1f09b2d0178.js similarity index 79% rename from hostd/assets/_next/static/chunks/pages/_app-868d6129c3b76ed4.js rename to hostd/assets/_next/static/chunks/pages/_app-998ac1f09b2d0178.js index c14ad7bcb..c42ff1580 100644 --- a/hostd/assets/_next/static/chunks/pages/_app-868d6129c3b76ed4.js +++ b/hostd/assets/_next/static/chunks/pages/_app-998ac1f09b2d0178.js @@ -14,7 +14,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"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===x||e.$$typeof===g)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?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,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=i?e:r(e,t,n)}},24019:function(e,t,n){var r=n(37772)["__core-js_shared__"];e.exports=r},55463:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),o=n(8435),a=n(66188);e.exports=function(e){return function(t){var n=i(t=a(t))?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),o=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var r=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},83043:function(e,t,n){var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var r=n(45386),i=n(87064),o=n(59950);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},18052:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),o=n(63344);e.exports=function(e){return i(e)?o(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},33812:function(e,t,n){var r=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),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(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},11618:function(e,t,n){var r=n(45981),i=n(83559),o=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[E,j]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),O=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),_=(0,r.useCallback)(t=>{j(v(t)),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(_),_(e),()=>e.removeListener(_)},[_]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&O(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let C=(0,r.useMemo)(()=>({theme:x,setTheme:O,forcedTheme:e,resolvedTheme:"system"===x?E:x,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[x,O,e,E,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.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,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',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)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||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(o)),e.matches?"dark":"light")},93542:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(42351)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(19654)}])},35599:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(64453),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},34148:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(35599);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:o,children:a.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=n(86254),u=n(38195);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:n,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:n,pushPage:a,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,r.jsx)(f,{currentPage:t,parentPage:n,commandPage:p,select:s})]})}var v=n(38923),g=n(2784);function y(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(h,{currentPage:t,select:l})]})}},98334:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(59880);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=r.dk},9338:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(64453).XBW)(15)},51507:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return x}});var r=n(52322),i=n(2784),o=n(64453),a=n(21487),s=n(56468),l=n(6391),u=n.n(l);let c=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],d={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,priceTableValidity:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:""};function f(e){let{settings:t}=e,n=null;return"duckdns"===t.ddns.provider&&(n={dnsDuckDnsToken:t.ddns.options.token}),"noip"===t.ddns.provider&&(n={dnsNoIpEmail:t.ddns.options.email,dnsNoIpPassword:t.ddns.options.password}),"route53"===t.ddns.provider&&(n={dnsAwsId:t.ddns.options.id,dnsAwsSecret:t.ddns.options.secret,dnsAwsZoneId:t.ddns.options.zoneID}),"cloudflare"===t.ddns.provider&&(n={dnsCloudflareToken:t.ddns.options.token,dnsCloudflareZoneId:t.ddns.options.zoneID}),{acceptingContracts:t.acceptingContracts,netAddress:t.netAddress,maxContractDuration:new(u())(t.maxContractDuration).div((0,a.S5)(1)),contractPrice:(0,a.ll)(t.contractPrice,6),baseRPCPrice:(0,a.ll)((0,s.sS)(t.baseRPCPrice),6),sectorAccessPrice:(0,a.ll)((0,s.nS)(t.sectorAccessPrice),6),collateralMultiplier:new(u())(t.collateralMultiplier),maxCollateral:(0,a.ll)(t.maxCollateral,6),storagePrice:(0,a.ll)((0,s.SY)(t.storagePrice),6),egressPrice:(0,a.ll)((0,s.B1)(t.egressPrice),6),ingressPrice:(0,a.ll)((0,s.dK)(t.ingressPrice),6),priceTableValidity:new(u())(t.priceTableValidity).div(1e9).div(60),accountExpiry:new(u())(t.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,a.ll)(t.maxAccountBalance,6),ingressLimit:(0,a.BT)(new(u())(t.ingressLimit)),egressLimit:(0,a.BT)(new(u())(t.egressLimit)),dnsProvider:t.ddns.provider,dnsIpv4:t.ddns.ipv4,dnsIpv6:t.ddns.ipv6,...n}}function h(e,t){return new(u())(12960).times(e).div((0,a.S5)(1)).times(t)}var p=n(59880),m=n(63955);function v(e,t){return t?new(u())(new(u())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var g=n(92762),y=n(82494);let b=(0,i.createContext)({}),x=()=>(0,i.useContext)(b);function w(e){let{children:t}=e,n=function(){let{settings:e,dynDNSCheck:t}=function(){let e=(0,p.rV)({config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,p.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}});return{settings:e,dynDNSCheck:t}}(),{form:n,fields:l,setShowAdvanced:b,showAdvanced:x}=function(){let e=(0,m.cI)({mode:"all",defaultValues:d}),t=e.watch("storagePrice"),n=e.watch("collateralMultiplier"),[o,s]=(0,g.Z)("v0/config/showAdvanced",{defaultValue:!1}),l=(0,y.BW)();return{form:e,fields:(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:o}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,r.jsx)(r.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,r.jsx)(r.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com:9982",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(u())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,r.jsx)(r.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte((0,a.E6)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:o?v(1,o):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",description:(0,r.jsx)(r.Fragment,{children:"The host's storage price in siacoins per TB per month."}),validation:{required:"required"}},egressPrice:{title:"Egress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:o?v(10,o):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",description:(0,r.jsx)(r.Fragment,{children:"The host's egress price in siacoins per TB. Egress means bandwidth usage by outgoing download traffic."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:o?v(.05,o):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's ingress price in siacoins per TB. Ingress means bandwidth usage by incoming upload traffic."}),validation:{required:"required"}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(u())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},maxCollateral:{title:"Maximum collateral",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:n&&i?h(n,i):void 0,suggestionTip:"The suggested maximum collateral.",description:(0,r.jsx)(r.Fragment,{children:"The host's maximum collateral in siacoins."}),hidden:!t,validation:{required:"required"}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(u())(.2),description:(0,r.jsx)(r.Fragment,{children:"The host's contract price in siacoins."}),hidden:!t,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(u())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:!t,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(u())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,r.jsx)(r.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:!t,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(u())(30),suggestionTip:"The suggested price table validity.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(u())(30),suggestionTip:"The suggested account expiry.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(u())(10),suggestionTip:"The suggested maximum account balance.",description:(0,r.jsx)(r.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:c,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!c.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({showAdvanced:o,storageTBMonth:t,collateralMultiplier:n,rates:null===(e=l.data)||void 0===e?void 0:e.rates})},[o,t,n,l.data]),storageTBMonth:t,collateralMultiplier:n,showAdvanced:o,setShowAdvanced:s}}(),w=(0,i.useMemo)(()=>({settings:{data:e.data,error:e.error}}),[e.data,e.error]),E=(0,i.useMemo)(()=>!function(e){let{settings:t}=e;return!!t.data}(w)?null:f({settings:w.settings.data}),[w]),j=(0,i.useMemo)(()=>(function(e){let{settings:t}=e;return!!t.error})(w),[w]),k=(0,i.useCallback)(async()=>{let r=await e.mutate();if(r)return await t.mutate(),n.reset(f({settings:r}));(0,o.OHV)({title:"Error fetching settings"})},[n,e,t]);(0,o.u$d)({form:n,remoteValues:E}),(0,o.Z4p)({form:n,remoteValues:E});let{changeCount:S}=(0,o.mYE)({form:n}),O=function(e){let{resources:t,showAdvanced:n,revalidateAndResetForm:r}=e,l=(0,p.Te)(),u=(0,p.On)({config:{swr:{refreshInterval:(0,o.sWj)(1)}}});return(0,i.useCallback)(async e=>{if(t)try{var i,c,d;let f;let p={};n||(p.maxCollateral=h(e.storagePrice,e.collateralMultiplier));let m={...e,...p},v=await l.patch({payload:(d=t.settings.data,f=null,"duckdns"===m.dnsProvider&&(f={token:m.dnsDuckDnsToken}),"noip"===m.dnsProvider&&(f={email:m.dnsNoIpEmail,password:m.dnsNoIpPassword}),"route53"===m.dnsProvider&&(f={id:m.dnsAwsId,secret:m.dnsAwsSecret,zoneID:m.dnsAwsZoneId}),"cloudflare"===m.dnsProvider&&(f={token:m.dnsCloudflareToken,zoneID:m.dnsCloudflareZoneId}),{...d,acceptingContracts:m.acceptingContracts,netAddress:m.netAddress,maxContractDuration:Number(m.maxContractDuration.times((0,a.S5)(1)).toFixed(0)),contractPrice:(0,a.qN)(m.contractPrice).toString(),baseRPCPrice:m.baseRPCPrice.div((0,a.ll)((0,s.sS)(1))).toFixed(0),sectorAccessPrice:m.sectorAccessPrice.div((0,a.ll)((0,s.nS)(1))).toFixed(0),collateralMultiplier:m.collateralMultiplier.toNumber(),maxCollateral:(0,a.qN)(m.maxCollateral).toString(),storagePrice:m.storagePrice.div((0,a.ll)((0,s.SY)(1))).toFixed(0),egressPrice:m.egressPrice.div((0,a.ll)((0,s.B1)(1))).toFixed(0),ingressPrice:m.ingressPrice.div((0,a.ll)((0,s.dK)(1))).toFixed(0),priceTableValidity:Number(m.priceTableValidity.times(60).times(1e9).toFixed(0)),accountExpiry:Number(m.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,a.qN)(m.maxAccountBalance).toString(),ingressLimit:Number((0,a.Y)(m.ingressLimit).toFixed(0)),egressLimit:Number((0,a.Y)(m.egressLimit).toFixed(0)),ddns:{...null==d?void 0:d.ddns,provider:m.dnsProvider,ipv4:m.dnsIpv4,ipv6:m.dnsIpv6,options:f}})});if(v.error)throw Error(v.error);(null===(c=u.data)||void 0===c?void 0:null===(i=c.lastAnnouncement)||void 0===i?void 0:i.address)!==e.netAddress?(0,o.OPV)({title:"Settings have been saved",body:"Address has changed, make sure to re-announce the host.",options:{duration:2e4}}):(0,o.OPV)({title:"Settings have been saved"}),await r()}catch(e){(0,o.OHV)({title:"Error updating settings",body:e.message}),console.log(e)}},[n,t,l,r,u.data])}({resources:w,showAdvanced:x,revalidateAndResetForm:k}),_=(0,o.WsO)(l),C=(0,i.useMemo)(()=>n.handleSubmit(O,_),[n,O,_]),M=(0,i.useRef)();return{fields:l,settings:e,dynDNSCheck:t,changeCount:S,revalidateAndResetForm:k,form:n,onSubmit:C,showAdvanced:x,setShowAdvanced:b,remoteError:j,takeScreenshot:(0,i.useCallback)(async e=>{(0,o.S5N)(M.current,e)},[]),configRef:M}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},38923:function(e,t,n){"use strict";n.d(t,{x:function(){return w},G:function(){return x}});var r=n(52322),i=n(64453),o=n(5632),a=n(59880),s=n(2784),l=n(75262),u=n(95685),c=n(21487),d=n(86254);function f(e){let{id:t,status:n,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)({title:"Error starting integrity check",body:e.error}):(0,i.OPV)({title:"Integrity check started",body:(0,r.jsxs)(r.Fragment,{children:["Depending on contract data size this operation can take a while. Check ",(0,r.jsx)(i.EKh,{children:"hostd"})," ",(0,r.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),options:{duration:12e3}})},[t,c,f]),p=["active","pending"].includes(n);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...l,children:(0,r.jsx)(u.EMN,{})}),contentProps:{align:"start",...o},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,r.jsx)("div",{children:(0,r.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,status:n}}=e;return(0,r.jsx)(f,{id:t,status:n})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t,context:n}=e,{id:o,renewedFrom:a,isRenewedFrom:s,renewedTo:l,isRenewedTo:c}=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(o),type:"contract",siascanUrl:n.siascanUrl}),s&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:n.siascanUrl})]})}),c&&(0,r.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.IRm,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(l),type:"contract",siascanUrl:n.siascanUrl})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:n,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:n,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,r.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=n(6391),m=n.n(p),v=n(38855),g=n(74667),y=n(9338);let b=(0,s.createContext)({}),x=()=>(0,s.useContext)(b);function w(e){let{children:t}=e,n=function(){var e,t;let n=(0,o.useRouter)(),r=Number(n.query.limit||50),u=Number(n.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:b}=(0,i.Uu5)(),{configurableColumns:x,enabledColumns:w,sortableColumns:E,toggleColumnVisibility:j,setColumnsVisible:k,setColumnsHidden:S,toggleSort:O,setSortDirection:_,setSortField:C,sortField:M,sortDirection:A,resetDefaultColumnVisibility:T}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),P=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===M))||void 0===e?void 0:e.value,sortDesc:"desc"===A,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:y.h}}}),N=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;return t.data?(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let n=new(m())(e.usage.accountFunding||0),r=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=n.plus(r).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:n,egress:r,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]:null},[t.data])}({response:P}),R=(0,s.useMemo)(()=>h.filter(e=>w.includes(e.id)),[w]),D=P.isValidating,L=P.error,Z=(0,i.c2j)(N,D,L,c),{estimatedBlockHeight:F,isSynced:V,nodeBlockHeight:z}=(0,v.n)(),I=V?z:F,{range:B}=(0,s.useMemo)(()=>(0,i.EJC)(I,N||[]),[I,N]),H=(0,g.B)();return{dataState:Z,offset:u,limit:r,cellContext:(0,s.useMemo)(()=>({contractsTimeRange:B,currentHeight:I,siascanUrl:H}),[B,I,H]),pageCount:(null==N?void 0:N.length)||0,totalCount:null===(t=P.data)||void 0===t?void 0:t.count,columns:R,dataset:N,configurableColumns:x,enabledColumns:w,sortableColumns:E,toggleColumnVisibility:j,setColumnsVisible:k,setColumnsHidden:S,toggleSort:O,setSortDirection:_,setSortField:C,sortField:M,sortDirection:A,resetDefaultColumnVisibility:T,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:b}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},75262:function(e,t,n){"use strict";n.d(t,{Fo:function(){return i},gd:function(){return r},nw:function(){return o}});let r=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},86254:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eO},xQ:function(){return e_},Rh:function(){return eS}});var r=n(52322),i=n(2784),o=n(64453),a=n(59880),s=n(21487),l=n(6391),u=n.n(l),c=n(63955);function d(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},x=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(b,t),p?e(o.current):c.current;if(v)return n(b,t),e(o.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}function f(e,t){return e===t}function h(e){return"function"==typeof e?function(){return e}:e}var p=n(99182),m=n(35599),v=n(95685);function g(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(v.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function y(){var e;return(null===(e=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}}).data)||void 0===e?void 0:e.os)==="windows"?"\\":"/"}var b=n(79200),x=n(81441),w=n(81721),E=function(e,t){for(var n=e.length;n--&&(0,w.Z)(t,e[n],0)>-1;);return n},j=n(36202),k=n(25186),S=n(37602),O=function(e,t,n){if((e=(0,k.Z)(e))&&(n||void 0===t))return e.slice(0,(0,S.Z)(e)+1);if(!e||!(t=(0,b.Z)(t)))return e;var r=(0,j.Z)(e),i=E(r,(0,j.Z)(t))+1;return(0,x.Z)(r,0,i).join("")},_=n(78807),C=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},M=function(e,t,n){if((e=(0,k.Z)(e))&&(n||void 0===t))return(0,_.Z)(e);if(!e||!(t=(0,b.Z)(t)))return e;var r=(0,j.Z)(e),i=(0,j.Z)(t),o=C(r,i),a=E(r,i)+1;return(0,x.Z)(r,o,a).join("")};function A(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:T(t,n,r)}function T(e,t,n){e=e===n?e:O(e,n),t=M(t,n);let r="";return(r=e.length?t.length&&t!==n?e===n?n+t:e+n+t:e:t).endsWith(":")?r+n:r}function P(){return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(v.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function N(e){let{path:t,onCreate:n}=e,s=y(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:A({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)({title:"Error creating directory",body:e.error}):(n(u),c(""))},[l,u,n,t,s]);return(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(v.L37,{})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function R(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=y();return(0,r.jsx)(m.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),n(function(e,t){if(e.endsWith(":\\"))return t;let n="".concat(e.split(t).slice(0,-1).join(t));return""===n?t:n.endsWith(":")?n+t:n}(t,u)),l&&l())},value:"..",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(v.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let D={namespace:"volumes/directorySelect",label:"Directory select"};function L(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:f,currentPage:h,beforeSelect:b,afterSelect:x}=e,w=y(),E=(null===(t=d.data)||void 0===t?void 0:t.path)===w,j=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(m.fu,{currentPage:h,commandPage:D,children:[d.isValidating||!d.data||d.error?null:E?null:(0,r.jsx)(R,{path:d.data.path,setPath:f,currentPage:h,commandPage:D,afterSelect:x,beforeSelect:b}),(0,r.jsxs)(p.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(P,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,r.jsx)(g,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,r.jsx)(m.WD,{commandPage:D,currentPage:h,onSelect:()=>{b&&b(),f(A({currentPath:d.data.path,childPath:e,separator:w})),x&&x()},value:e,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(v.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!j&&!d.isValidating&&!d.error&&(0,r.jsx)(m.WD,{commandPage:D,currentPage:h,value:"create new directory",children:(0,r.jsx)(N,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var n;return{...t,directories:(null==t?void 0:null===(n=t.directories)||void 0===n?void 0:n.concat(e))||[e]}})}})})]})}function Z(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(p.mY,{label:"Select volume",shouldFilter:!1,children:(0,r.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,r.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,r.jsx)(p.mY.List,{children:(0,r.jsx)(L,{path:t,dir:n,setPath:i,currentPage:D})})})})})}var F=n(82851);function V(e){let{label:t,newSizeGB:n,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=in,c=n>a;return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,r.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==n&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,r.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==n&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(n/a*100,"%"):"0%"}})]}),(0,r.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,r.jsx)("div",{}),void 0!==n&&a?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((n/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,s.Hz)(a))," available")}):null]})]})}let z=new(u())(10),I={size:void 0,name:"",path:"~",immediatePath:"~"};function B(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=eS(),h=(0,a.HU)(),p=y(),m=(0,c.cI)({mode:"all",defaultValues:I}),v=m.watch("path"),g=m.watch("immediatePath"),b=m.watch("name"),x=m.watch("size"),w=d(()=>{v!==g&&m.setValue("path",g)},500);(0,i.useEffect)(()=>{w()},[g]),(0,i.useEffect)(()=>{v!==g&&m.setValue("immediatePath",v)},[v]);let E=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:T(v,b,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error creating volume",body:t.error}):((0,o.OPV)({title:"New volume created"}),m.reset(I),f())},[m,h,f,b,v,p]),j=(0,a.cM)({disabled:!n,params:{path:""===v?p:v},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{j.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[j.error]),(0,i.useEffect)(()=>{j.data&&j.data.path!==v&&m.setValue("path",j.data.path)},[j.data]);let k=(0,i.useMemo)(()=>x||new(u())(0),[x]),S=(0,i.useMemo)(()=>j.data?(0,s.Uz)(j.data.freeBytes):new(u())(0),[j.data]),O=(0,i.useMemo)(()=>{var e;return(0,s.Uz)((null===(e=j.data)||void 0===e?void 0:e.freeBytes)||new(u())(0))},[j.data]),_=(0,i.useMemo)(()=>{var e,t;return e=z.toNumber(),t=O.toNumber(),{name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:n=>{let r="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return n<=t&&n>=e||r},nospace:()=>t>e||"not enough space in directory"}}}}},[O]),C=(0,o.WsO)(_);return m.register("path",_.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:t,open:n,onOpenChange:e=>{e||m.reset(I),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(E,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Create a new volume. Select a system directory and specific the size of the volume."}),(0,r.jsx)(o.yEL,{name:"name",form:m,fields:_}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.yEL,{name:"immediatePath",form:m,fields:_})}),(0,r.jsx)(Z,{path:v,dir:j,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:_}),(0,r.jsx)(V,{newSizeGB:k.toNumber(),currentSizeGB:0,maxSizeGB:S.toNumber()})]})})}let H=new(u())(10),U={size:void 0};function W(e){var t,n;let{trigger:l,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eS(),m=y(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,a.cM)({disabled:!d||!v.data,params:{path:null===(t=v.data)||void 0===t?void 0:t.localPath.split(m).slice(0,-1).join(m)}}),b=(0,a.G)(),x=(0,c.cI)({mode:"all",defaultValues:U}),w=x.watch("size"),E=(0,i.useCallback)(async e=>{let t=await b.put({params:{id:Number(h)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error resizing volume",body:t.error}):((0,o.OPV)({title:"Volume resizing initiated"}),x.reset(U),p())},[x,h,b,p]);(0,i.useEffect)(()=>{v.data&&x.reset(U)},[v.data]);let j=(0,i.useMemo)(()=>w||new(u())(0),[w]),k=(0,i.useMemo)(()=>v.data?(0,o.bjP)(v.data.totalSectors):new(u())(0),[v.data]),S=(0,i.useMemo)(()=>g.data?(0,s.Uz)(g.data.freeBytes):new(u())(0),[g.data]),O=(0,i.useMemo)(()=>k.plus(S),[k,S]),_=k.lt(j),C=k.minus(j).abs().gte(1),M=(0,i.useMemo)(()=>{var e,t;return e=H.toNumber(),t=O.toNumber(),{size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:n=>{let r="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return n<=t&&n>=e||r}}}}}},[O]),A=(0,o.WsO)(M);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:l,open:d,onOpenChange:e=>{e||x.reset(U),f(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:x.handleSubmit(E,A),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:x,children:"Resize"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,r.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(o.__J,{children:"Volume"}),(0,r.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(n=v.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:x,fields:M}),(0,r.jsx)(V,{currentSizeGB:k.toNumber(),newSizeGB:j.toNumber(),maxSizeGB:O.toNumber(),label:C?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:_?"Increase by ".concat((0,s.vW)((0,s.Hz)(j.minus(k)))):"Decrease by ".concat((0,s.vW)((0,s.Hz)(k.minus(j))))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,s.Hz)(k)))})})]})})}let q={path:"",force:!1};function $(e){var t,n,l;let{trigger:u,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eS(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(n=v.data)||void 0===n?void 0:n.usedSectors),b=null===(l=v.data)||void 0===l?void 0:l.localPath,x=(0,c.cI)({mode:"all",defaultValues:q}),w=(0,i.useCallback)(async e=>{var t;let n=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.id,force:e.force}});n.error?(0,o.OHV)({title:"Error deleting volume",body:n.error}):((0,o.OPV)({title:"Volume permanently deleted"}),x.reset(),p())},[x,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:b,validation:{required:"required",validate:{equals:e=>e===b||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[b]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:u,open:d,onOpenChange:e=>{e||x.reset(q),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:x.handleSubmit(w,j),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,r.jsxs)(o.nvN,{size:"14",children:[(0,r.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,r.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,r.jsx)(o.yEL,{name:"path",form:x,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:x,fields:E}),(0,r.jsx)(o.Yqd,{children:(0,r.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,r.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,r.jsx)(o.ZqQ,{variant:"red",form:x,children:"Delete"})]})})}function Y(){let{dialog:e,openDialog:t,closeDialog:n}=eS(),s=(0,a.Os)(),l=(0,a.cj)(),c=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await l.post({payload:{address:n,amount:t.toString()}});return r.error?{error:r.error}:{transactionId:r.data}},[l]);return(0,r.jsx)(o.weF,{balance:s.data?new(u())(s.data.spendable):void 0,send:c,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var G=n(40730);function K(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eS(),{dataset:s}=(0,G.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.id===e),[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var X=n(38195),Q=n(10363),J=n(98334),ee=n(5632);let et={namespace:"wallet",label:"Wallet"};function en(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=eS(),u=(0,ee.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:et,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:et,onSelect:()=>{i(et)},children:et.label}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{u.push(J._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.walletAddress,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var er=n(38617);let ei={namespace:"settings",label:"Settings"};function eo(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eS(),{setTheme:a}=(0,er.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,Q.Hv)();return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:ei,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:ei,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(m.o4,{currentPage:t,commandPage:ei,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let ea={namespace:"node",label:"Blockchain node"};function es(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eS(),s=(0,ee.useRouter)();return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:ea,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:ea,onSelect:()=>{i(ea)},children:ea.label}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ea,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ea,onSelect:()=>{s.push(J._.node.index),a()},children:"View peers"})]})}var el=n(51507);let eu={namespace:"configuration",label:"Configuration"};function ec(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,ee.useRouter)(),{showAdvanced:a}=(0,el.ZR)(),{closeDialog:s}=eS();return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:eu,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:eu,onSelect:()=>{i(eu)},children:eu.label}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.host),s()},children:"Configure host"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.accounts),s()},children:"Configure accounts"})]})]})}var ed=n(38923);function ef(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(v.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var eh=n(34148);let ep={namespace:"contracts",label:"Contracts"};function em(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,ee.useRouter)(),{closeDialog:l}=eS();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ep)},children:ep.label}),(0,r.jsx)(m.fu,{currentPage:t,commandPage:ep,children:(0,r.jsx)(m.WD,{currentPage:t,commandPage:ep,onSelect:()=>{s.push(J._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(eh.F,{parentPage:ep,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ev={namespace:"volumes",label:"Volumes"};function eg(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,ee.useRouter)(),{openDialog:a,closeDialog:s}=eS();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ev)},children:ev.label}),(0,r.jsxs)(m.fu,{currentPage:t,commandPage:ev,children:[(0,r.jsx)(m.WD,{currentPage:t,commandPage:ev,onSelect:()=>{o.push(J._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ev,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function ey(e){var t,n,a,s,l,u,c,m,v;let{panel:g}=e,y=(0,ee.useRouter)(),{resetFilters:b}=(0,ed.G)(),{closeDialog:x}=eS(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||f,u=(a=(n=(0,i.useState)(h(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(h(e))},[])])[0],c=l[1],m=d((0,i.useCallback)(function(e){return c(e)},[c]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[u,m]),[k,S]=(0,i.useState)([]),O=k[k.length-1],_=0===k.length,C=(0,i.useCallback)(e=>{S(t=>[...t,e])},[S]),M=(0,i.useCallback)(()=>{x()},[x]),A=(0,i.useCallback)(()=>{E("")},[E]),T=(null==O?void 0:O.empty)||ef;return(0,r.jsxs)(p.mY,{label:"Command Menu",loop:!0,className:(0,F.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(k.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),S(e=>e.slice(0,-1)))},children:[O&&(0,r.jsx)(o.__J,{className:"px-2",children:O.label}),(0,r.jsx)(p.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==O?void 0:O.prompt)||(_?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(p.mY.List,{children:[(0,r.jsx)(p.mY.Empty,{children:(0,r.jsx)(T,{search:w,debouncedSearch:j})}),(0,r.jsx)(eo,{currentPage:O,pushPage:C}),(0,r.jsx)(en,{currentPage:O,pushPage:C}),(0,r.jsx)(eg,{currentPage:O,pushPage:C}),(0,r.jsx)(em,{currentPage:O,pushPage:C,beforeSelect:()=>{M(),b()},afterSelect:()=>{y.pathname.startsWith(J._.contracts.index)||y.push(J._.contracts.index),A()}}),(0,r.jsx)(ec,{currentPage:O,pushPage:C}),(0,r.jsx)(es,{currentPage:O,pushPage:C})]})]})}function eb(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlockedAndAuthedRoute:s}=(0,Q.Hv)(),{isConnected:l}=(0,o.Y97)({route:J.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&e.metaKey&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(ey,{})})})}var ex=n(9338);function ew(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)({config:{swr:{refreshInterval:ex.h}}}),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)({title:"Error dismissing alert",body:t.error}):(0,o.OPV)({title:"Alert has been dismissed"})},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let n=await l.post({payload:e});n.error?(0,o.OHV)({title:t?"Error dismissing all ".concat(t," alerts"):"Error dismissing all alerts",body:n.error}):(0,o.OPV)({title:t?"All ".concat(t," alerts have been dismissed"):"All alerts have been dismissed"})},[l,s]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:s,dataFieldOrder:eE,dataFields:ej,dismissMany:c,dismissOne:u})}let eE=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ej={error:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,r.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,r.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},ek=(0,i.createContext)({}),eS=()=>(0,i.useContext)(ek);function eO(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(ek.Provider,{value:n,children:t})}function e_(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=eS(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eb,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ew,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(Y,{}),(0,r.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(K,{}),(0,r.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(B,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(W,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)($,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(X.Y,{open:"contractsFilterContractId"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},83738:function(e,t,n){"use strict";n.d(t,{C:function(){return E},B:function(){return w}});var r=n(52322),i=n(2784),o=n(64453),a=n(21487);let s={successful:{color:o.O9T.green[600]},active:{color:o.O9T.amber[600]},pending:{color:o.O9T.amber[600],pattern:!0},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=n(59880);function u(e,t,n){return{...e,category:t,pattern:n}}function c(e,t,n){return{...e,category:t,label:n}}var d=n(6391),f=n.n(d),h=n(72473),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),x=(0,i.createContext)({}),w=()=>(0,i.useContext)(x);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:b.value}),[n,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:b.interval}),x=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=(0,o.ytg)(1),r=setInterval(()=>{n(new Date().getTime())},Math.min((0,h.uQ)(e),t));return()=>clearInterval(r)},[e]),t}(n),w=(0,i.useMemo)(()=>(0,o.OQF)(e,x),[e,x]),E=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);d(n.interval),t(n.value)},[t,d]),j=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),k=(0,l.KU)({params:{interval:n,start:function(e,t){(0,v.Z)(1,arguments);var n=(0,p.Z)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"";if("time"!==i){var l=m(n.getDate(),2),u=m(n.getMonth()+1,2),c=m(n.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(n.getHours(),2),b=m(n.getMinutes(),2),x=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,b,x].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(w.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.XBW)(60)}}}),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t.map(e=>({storagePotential:Math.max(e.storagePotential,0),ingressPotential:Math.max(e.ingressPotential,0),egressPotential:Math.max(e.egressPotential,0),rpcPotential:Math.max(e.rpcPotential,0),storage:Math.max(e.storage,0),ingress:Math.max(e.ingress,0),egress:Math.max(e.egress,0),rpc:Math.max(e.rpc,0),timestamp:new Date(e.timestamp).getTime()})),stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],enabledTip:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),formatTimestamp:j,disableAnimations:!0,chartType:"barstack",stackOffset:"diverging"},isLoading:k.isValidating}},[k,j]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"area",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,failed:e.contracts.failed,pending:e.contracts.pending,rejected:e.contracts.rejected,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["successful","active","pending","rejected","failed"],enabledTip:["successful","active","pending","rejected","failed"],data:{active:s.active,failed:s.failed,pending:s.pending,rejected:s.rejected,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:j,formatTickY:e=>(0,a.yF)(e),disableAnimations:!0,chartType:"areastack",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,a.B$)(e.storage.totalSectors).times(4).toNumber(),tempSectors:(0,a.B$)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,a.B$)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,a.B$)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","maxSectors"],enabledTip:["contractSectors","physicalSectors","tempSectors","maxSectors"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]);return{dataTimeSpan:e,setDataTimeSpan:E,timeRange:w,dataInterval:n,setDataInterval:d,operations:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites"],enabledTip:["storageReads","storageWrites"],data:{storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTickY:e=>(0,a.yF)(e),formatTimestamp:j,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),revenue:S,collateral:O,contracts:C,storage:M,pricing:_,bandwidth:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp.egress,ingress:e.data.rhp.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j])}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},72473:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(64453);let i=[{label:"1D",interval:"15m",value:"1"},{label:"7D",interval:"hourly",value:"7"},{label:"1M",interval:"daily",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"weekly",value:"365"},{label:"ALL",interval:"monthly",value:"all"}];function o(e){return"5m"===e?(0,r.sWj)(5):"15m"===e?(0,r.sWj)(15):"hourly"===e?(0,r.ytg)(1):"daily"===e?(0,r.NrH)(1):"weekly"===e?(0,r.NrH)(7):"monthly"===e?(0,r.NrH)(30):"yearly"===e?(0,r.NrH)(365):0}},40730:function(e,t,n){"use strict";n.d(t,{n:function(){return m},v:function(){return v}});var r=n(52322),i=n(64453),o=n(59880),a=n(2784),s=n(86254),l=n(6391),u=n.n(l),c=n(5632),d=n(74667),f=n(9338);let h=[],p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,o.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:f.h}}}),l=(0,o.a0)({config:{swr:{refreshInterval:f.h}}}),{openDialog:p}=(0,s.Rh)(),m=(0,d.B)(),v=(0,a.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!0,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:m,timestamp:new Date(e.timestamp).getTime(),onClick:()=>p("transactionDetails",e.id),raw:e.transaction}}),...(r.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!1,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:m,timestamp:new Date(e.timestamp).getTime(),onClick:()=>p("transactionDetails",e.id),raw:e.transaction}}).sort((e,t)=>e.timestampnew Date(new Date().getTime()-(0,i.NrH)(30)).toISOString(),[]),y=(0,o.KU)({params:{interval:"daily",start:g}}),b=(0,a.useMemo)(()=>(y.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[y.data]),x=r.error,w=(0,i.c2j)(v,r.isValidating,x,h);return{balances:b,metrics:y,dataset:v,error:x,dataState:w,offset:n,limit:t,pageCount:(null==v?void 0:v.length)||0}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},63224:function(e,t,n){"use strict";n.d(t,{Y:function(){return b},F:function(){return y}});var r=n(52322),i=n(64453),o=n(59880),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(95685),u=n(21487),c=n(86254);function d(e){var t,n;let{id:a,contentProps:s,buttonProps:u}=e,{openDialog:d}=(0,c.Rh)(),h=(0,o.Rz)(),p=(0,o.ST)({params:{id:a}}),m=(0,o._3)(),v=p.data&&"ready"==p.data.status,g=p.data&&!["ready","unavailable"].includes(p.data.status);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(l.EMN,{})}),contentProps:{align:"start",...s},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",p.data?(0,i.$Gg)(null===(t=p.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),g?(0,r.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=p.data)||void 0===e?void 0:e.status;(await m.delete({params:{id:Number(a)}})).error?(0,i.OHV)({title:"Error canceling volume ".concat(f(t))}):(0,i.OPV)({title:"Canceled volume ".concat(f(t))})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.PcV,{})}),"Cancel ".concat(f(null===(n=p.data)||void 0===n?void 0:n.status))]}):null,p.data?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:async()=>{let e=!p.data.readOnly;(await h.put({params:{id:Number(a)},payload:{readOnly:e}})).error?(0,i.OHV)({title:e?"Error setting volume to read-only":"Error setting volume to read/write"}):(0,i.OPV)({title:e?"Volume set to read-only":"Volume set to read/write"})},children:[(0,r.jsx)(i.KpP,{children:p.data.readOnly?(0,r.jsx)(l.dr6,{}):(0,r.jsx)(l.Lur,{})}),p.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>d("volumeResize",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.BB5,{})}),"Resize"]}),(0,r.jsxs)(i.Xiv,{disabled:g,onSelect:()=>d("volumeDelete",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete"]})]})}function f(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,r.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:n}=e;return(0,r.jsx)(i.ua7,{side:"right",content:n.available?"available":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xvT,{children:"unavailable"}),(0,r.jsx)("div",{className:"flex flex-col",children:null===(t=n.errors)||void 0===t?void 0:t.map(e=>(0,r.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[n.available&&"ready"===n.status&&(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(l.DI$,{})}),n.available&&"ready"!==n.status&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.dsj,{})}),!n.available&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.SmH,{})}),(0,r.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:n.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,r.jsx)(i.ua7,{content:"Read-only",children:(0,r.jsx)(i.xvT,{children:(0,r.jsx)(l.Lur,{})})}):(0,r.jsx)(i.ua7,{content:"Read and write enabled",children:(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,r.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var p=n(6391),m=n.n(p),v=n(9338);let g=(0,a.createContext)({}),y=()=>(0,a.useContext)(g);function b(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:g,resetDefaultColumnVisibility:y}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),b=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):v.h}}}),x=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.id),localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,u.B$)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,u.B$)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(m())(e.failedReads),failedWrites:new(m())(e.failedWrites),successfulReads:new(m())(e.successfulReads),successfulWrites:new(m())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:b}),w=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),E=b.isValidating,j=b.error;return{dataState:(0,i.c2j)(x,E,j,[]),totalCount:(null==x?void 0:x.length)||0,isLoading:b.isValidating,columns:w,dataset:x,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:g,resetDefaultColumnVisibility:y}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},38195:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(64453),o=n(38923),a=n(7114),s=n(24511),l=n(86254);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},74667:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(64453),i=n(59880);function o(){var e;return(null===(e=(0,i.On)().data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},38855:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(10363),i=n(59880);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:a}=(0,r.Hv)(),s=(0,i.d$)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?6e4:1e4}}}),l=(0,i.nH)(),u=s.data?null===(e=s.data)||void 0===e?void 0:e.chainIndex.height:0,c=(0,i.Os)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=u?6e4:1e4}}}),d=a&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=a&&u&&c.data?Number((100*Math.min(c.data.scanHeight/l,1)).toFixed(1)):0;return{isSynced:null===(t=s.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=s.data)||void 0===n?void 0:n.synced)&&(null===(o=c.data)||void 0===o?void 0:o.scanHeight)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}},56468:function(e,t,n){"use strict";n.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var r=n(21487),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let l="/million";function u(e){return new(o())(e).times(1e6)}let c="/million";function d(e){return new(o())(e).times(1e6)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf)(1))}},19654:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322);n(50521);var i=n(64453),o=n(38923),a=n(83738),s=n(86254),l=n(63224),u=n(51507),c=n(95685),d=n(38855),f=n(98334),h=n(59880),p=n(6391),m=n.n(p),v=n(21487),g=n(10363),y=n(92762);function b(){var e;let{isUnlockedAndAuthedRoute:t}=(0,g.Hv)(),{openDialog:n}=(0,s.Rh)(),{dataset:o}=(0,l.F)(),a=(0,h.rV)(),u=(0,h.Os)(),[p,b]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),w=(0,d.n)();if(!t)return null;let E=new(m())(u.data?u.data.confirmed+u.data.unconfirmed:0),j=(0,v.qN)(0),k=u.data&&E.gt(j),S=(null==o?void 0:o.length)>0,O=null===(e=a.data)||void 0===e?void 0:e.acceptingContracts,_=w.isSynced,C=[k,S,O,_],M=C.length,A=C.filter(e=>e).length;return M===A?null:p?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>b(!1),children:(0,r.jsx)(c.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with siacoin to cover required contract collateral.".concat(w.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:k?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!w.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(w.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[w.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.volumes.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.config.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[w.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>b(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",A,"/",M," steps complete"]})})})}function x(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}var w=n(40730);function E(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(w.v,{children:(0,r.jsx)(l.Y,{children:(0,r.jsx)(o.x,{children:(0,r.jsxs)(a.C,{children:[(0,r.jsx)(s.xQ,{}),(0,r.jsx)(b,{}),t]})})})})})})}var j=n(46058),k=n.n(j),S=n(28863),O=n.n(S);let _=(0,n(82851).cx)(k().variable,O().variable);function C(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:_,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(E,{children:(0,r.jsx)(t,{...n})})})}},64453:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return MK},tU3:function(){return Mq},zXq:function(){return Al},juT:function(){return My},Cts:function(){return lQ},Z58:function(){return AB},WVB:function(){return dn},zxk:function(){return lD},b0u:function(){return k6},EKh:function(){return l1},vRO:function(){return Tv},QHy:function(){return Ti},TaT:function(){return A0},eQh:function(){return l4},HfT:function(){return Ts},ncR:function(){return _m},A06:function(){return Aq},Vy9:function(){return A$},VqE:function(){return uR},h_2:function(){return dl},Xiv:function(){return du},Juw:function(){return dc},KpP:function(){return dd},XOF:function(){return _p},jIp:function(){return Tg},QBj:function(){return Ty},yEL:function(){return M9},cB7:function(){return _w},ZqQ:function(){return _x},IKw:function(){return __},WN2:function(){return TF},X6q:function(){return dm},Yqd:function(){return f6},__J:function(){return dE},rUS:function(){return dS},TRl:function(){return d_},kFS:function(){return dr},FzK:function(){return Tt},Clw:function(){return dt},PD$:function(){return Tk},Wxm:function(){return he},uDJ:function(){return Md},wFK:function(){return Mf},s_4:function(){return nA},nvN:function(){return nC},u5Q:function(){return AH},j4H:function(){return f8},J2e:function(){return dG},kod:function(){return d9},xrM:function(){return uT},PhF:function(){return f9},Z0O:function(){return c6},DLL:function(){return AP},KJW:function(){return Mw},rsf:function(){return hv},D_D:function(){return AE},iA_:function(){return Mc},t6k:function(){return Tl},xvT:function(){return n_},nvn:function(){return fO},ua7:function(){return lN},mPE:function(){return Aj},XxW:function(){return OU},m2c:function(){return OX},ho9:function(){return OK},QUh:function(){return AR},weF:function(){return Ay},YNn:function(){return AO},DmW:function(){return A_},O9T:function(){return gK},fVJ:function(){return AV},vQq:function(){return ON},NrH:function(){return k0},Y_Z:function(){return AD},EJC:function(){return TV},kOJ:function(){return AF},OQF:function(){return AL},leQ:function(){return OF},ytg:function(){return kJ},Vkc:function(){return c7},sWj:function(){return kQ},S5N:function(){return Pk},z$:function(){return nM},XBW:function(){return k1},x9T:function(){return TL},bjP:function(){return TZ},I13:function(){return OL},cEb:function(){return fS},OHV:function(){return OA},OPV:function(){return OM},$Gg:function(){return OD},Y97:function(){return MW},c2j:function(){return M$},mYE:function(){return Tx},u$d:function(){return Tw},Z4p:function(){return Tb},WsO:function(){return M7},Uu5:function(){return TD},oy6:function(){return TR},nNd:function(){return AC}});var s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_,C,M,A,T,P,N,R,D,L,Z,F,V,z,I,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec={};n.r(ec),n.d(ec,{useDropzone:function(){return mR}});var ed=n(52322),ef=n(2784),eh=n.t(ef,2),ep=n(7896),em=n(34540),ev=n(26215),eg=n(99575);function ey(e){let t=e+"CollectionProvider",[n,r]=(0,em.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=ef.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,ev.e)(t,i.collectionRef);return ef.createElement(eg.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=ef.useRef(null),o=ef.useRef(new Map).current;return ef.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:ef.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=ef.useRef(null),s=(0,ev.e)(t,a),c=o(l,n);return ef.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),ef.createElement(eg.g7,{[u]:"",ref:s},r)})},function(t){let n=o(e+"CollectionConsumer",t);return ef.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var eb=n(41816),ex=n(73597),ew=n(72130),eE=n(64680),ej=n(28245),ek=n(26074);let eS="Collapsible",[eO,e_]=(0,em.b)(eS),[eC,eM]=eO(eS),eA=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,ex.T)({prop:r,defaultProp:i,onChange:a});return(0,ef.createElement)(eC,{scope:n,disabled:o,contentId:(0,ek.M)(),open:l,onOpenToggle:(0,ef.useCallback)(()=>u(e=>!e),[u])},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":eP(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),eT=((e,t)=>{let{forceMount:n,...r}=e,i=eM(eA,e.__scopeCollapsible);return(0,ef.createElement)(ej.z,{present:n||i.open},({present:e})=>(0,ef.createElement)(eT,(0,ep.Z)({},r,{ref:t,present:e})))},(0,ef.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=eM(eA,n),[s,l]=(0,ef.useState)(r),u=(0,ef.useRef)(null),c=(0,ev.e)(t,u),d=(0,ef.useRef)(0),f=d.current,h=(0,ef.useRef)(0),p=h.current,m=a.open||s,v=(0,ef.useRef)(m),g=(0,ef.useRef)();return(0,ef.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eE.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":eP(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function eP(e){return e?"open":"closed"}let eN="Accordion",eR=["Home","End","ArrowDown","ArrowUp"],[eD,eL,eZ]=ey(eN),[eF,eV]=(0,em.b)(eN,[eZ,e_]);e_(),ef.forwardRef((e,t)=>{let{type:n,...r}=e;return ef.createElement(eD.Provider,{scope:e.__scopeAccordion},"multiple"===n?ef.createElement(eW,(0,ep.Z)({},r,{ref:t})):ef.createElement(eU,(0,ep.Z)({},r,{ref:t})))}).propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[ez,eI]=eF(eN),[eB,eH]=eF(eN,{collapsible:!1}),eU=ef.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,ex.T)({prop:n,defaultProp:r,onChange:i});return ef.createElement(ez,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:ef.useCallback(()=>o&&l(""),[o,l])},ef.createElement(eB,{scope:e.__scopeAccordion,collapsible:o},ef.createElement(eY,(0,ep.Z)({},a,{ref:t}))))}),eW=ef.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,ex.T)({prop:n,defaultProp:r,onChange:i}),l=ef.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=ef.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return ef.createElement(ez,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},ef.createElement(eB,{scope:e.__scopeAccordion,collapsible:!0},ef.createElement(eY,(0,ep.Z)({},o,{ref:t}))))}),[eq,e$]=eF(eN),eY=ef.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=ef.useRef(null),a=(0,ev.e)(o,t),s=eL(n),l=(0,eb.M)(e.onKeyDown,e=>{var t;if(!eR.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}null===(t=r[a%o].ref.current)||void 0===t||t.focus()});return ef.createElement(eq,{scope:n,disabled:r},ef.createElement(eD.Slot,{scope:n},ef.createElement(ew.WV.div,(0,ep.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[eG,eK]=eF("AccordionItem");var eX=n(82851),eQ=n(83317);function eJ(e){return e.split("-")[0]}function e0(e){return e.split("-")[1]}function e1(e){return["top","bottom"].includes(eJ(e))?"x":"y"}function e2(e){return"y"===e?"height":"width"}function e4(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=e1(t),u=e2(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eJ(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(e0(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let e3=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=e4(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=e5(r),c={x:i,y:o},d=e1(a),f=e0(a),h=e2(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],E=x-p[h]-u[v],j=x/2-p[h]/2+(g/2-y/2),k=e9(w,e7(j,E)),S=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?jtt[e])}let tr={start:"end",end:"start"};function ti(e){return e.replace(/start|end/g,e=>tr[e])}let to=["top","right","bottom","left"];to.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let ta=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eJ(a),b=p||(y!==u&&v?function(e){let t=tn(e);return[ti(e),t,ti(t)]}(u):[tn(u)]),x=[u,...b],w=await e8(t,g),E=[],j=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=e0(e),i=e1(e),o=e2(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=tn(a)),{main:a,cross:tn(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function ts(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tl(e){return to.some(t=>e[t]>=0)}let tu=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=ts(await e8(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tl(t)}}}case"escaped":{let t=ts(await e8(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tl(t)}}}default:return{}}}}},tc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eJ(n),s=e0(n),l="x"===e1(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function td(e){return"x"===e?"y":"x"}let tf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await e8(t,l),d=e1(eJ(i)),f=td(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=e9(h+c["y"===d?"top":"left"],e7(h,h-c[e]))}if(a){let e="y"===f?"bottom":"right";p=e9(p+c["y"===f?"top":"left"],e7(p,p-c[e]))}let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},th=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=e1(i),f=td(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eJ(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function tp(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tm(e){if(null==e)return window;if(!tp(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tv(e){return tm(e).getComputedStyle(e)}function tg(e){return tp(e)?"":e?(e.nodeName||"").toLowerCase():""}function ty(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function tb(e){return e instanceof tm(e).HTMLElement}function tx(e){return e instanceof tm(e).Element}function tw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tm(e).ShadowRoot||e instanceof ShadowRoot)}function tE(e){let{overflow:t,overflowX:n,overflowY:r}=tv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tj(e){let t=/firefox/i.test(ty()),n=tv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function tk(){return!/^((?!chrome|android).)*safari/i.test(ty())}let tS=Math.min,tO=Math.max,t_=Math.round;function tC(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&tb(e)&&(l=e.offsetWidth>0&&t_(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&t_(s.height)/e.offsetHeight||1);let c=tx(e)?tm(e):window,d=!tk()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tM(e){return((e instanceof tm(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tA(e){return tx(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tT(e){return tC(tM(e)).left+tA(e).scrollLeft}function tP(e){return"html"===tg(e)?e:e.assignedSlot||e.parentNode||(tw(e)?e.host:null)||tM(e)}function tN(e){return tb(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tR(e){let t=tm(e),n=tN(e);for(;n&&["table","td","th"].includes(tg(n))&&"static"===getComputedStyle(n).position;)n=tN(n);return n&&("html"===tg(n)||"body"===tg(n)&&"static"===getComputedStyle(n).position&&!tj(n))?t:n||function(e){let t=tP(e);for(tw(t)&&(t=t.host);tb(t)&&!["html","body"].includes(tg(t));){if(tj(t))return t;t=t.parentNode}return null}(e)||t}function tD(e){if(tb(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tC(e);return{width:t.width,height:t.height}}function tL(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tP(t);return["html","body","#document"].includes(tg(n))?t.ownerDocument.body:tb(n)&&tE(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=tm(r),a=i?[o].concat(o.visualViewport||[],tE(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(tL(a))}function tZ(e,t,n){return"viewport"===t?e6(function(e,t){let n=tm(e),r=tM(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=tk();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):tx(t)?function(e,t){let n=tC(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):e6(function(e){var t;let n=tM(e),r=tA(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=tO(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=tO(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tT(e),l=-r.scrollTop;return"rtl"===tv(i||n).direction&&(s+=tO(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(tM(e)))}let tF={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=tL(e),n=["absolute","fixed"].includes(tv(e).position)&&tb(e)?tR(e):e;return tx(n)?t.filter(e=>tx(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tw(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tg(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tZ(t,n,i);return e.top=tO(r.top,e.top),e.right=tS(r.right,e.right),e.bottom=tS(r.bottom,e.bottom),e.left=tO(r.left,e.left),e},tZ(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=tb(n),o=tM(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==tg(n)||tE(o))&&(a=tA(n)),tb(n))){let e=tC(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:tx,getDimensions:tD,getOffsetParent:tR,getDocumentElement:tM,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=tb(t),i=tM(t),o=tC(e,r&&function(e){let t=tC(e);return t_(t.width)!==e.offsetWidth||t_(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==tg(t)||tE(i))&&(a=tA(t)),tb(t)){let e=tC(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tT(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,tR(n),r),floating:{...tD(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tv(e).direction};function tV(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...tx(e)?tL(e):[],...tL(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),tx(e)&&!s&&f.observe(e),f.observe(t)}let h=s?tC(e):null;return s&&function t(){let r=tC(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let tz=(e,t,n)=>e3(e,t,{platform:tF,...n});var tI=n(28316),tB="undefined"!=typeof document?ef.useLayoutEffect:ef.useEffect;function tH(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=ef.useRef(null),a=ef.useRef(null),s=function(e){let t=ef.useRef(e);return tB(()=>{t.current=e}),t}(i),l=ef.useRef(null),[u,c]=ef.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=ef.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=ef.useCallback(()=>{o.current&&a.current&&tz(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tI.flushSync(()=>{c(e)})})},[d,n,r]);tB(()=>{p.current&&h()},[h]);let p=ef.useRef(!1);tB(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=ef.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=ef.useCallback(e=>{o.current=e,m()},[m]),g=ef.useCallback(e=>{a.current=e,m()},[m]),y=ef.useMemo(()=>({reference:o,floating:a}),[]);return ef.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tU=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return te({element:t.current,padding:n}).fn(e)}else if(t)return te({element:t,padding:n}).fn(e);return{}}}},tW=(0,ef.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ef.createElement)(ew.WV.svg,(0,ep.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,ef.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tq(e){let[t,n]=(0,ef.useState)(void 0);return(0,eE.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let t$="Popper",[tY,tG]=(0,em.b)(t$),[tK,tX]=tY(t$),tQ=(0,ef.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tX("PopperAnchor",n),a=(0,ef.useRef)(null),s=(0,ev.e)(t,a);return(0,ef.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},i,{ref:s}))}),tJ="PopperContent",[t0,t1]=tY(tJ),[t2,t4]=tY(tJ,{hasParent:!1,positionUpdateFns:new Set}),t3=(0,ef.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,E=tX(tJ,c),[j,k]=(0,ef.useState)(null),S=(0,ev.e)(t,e=>k(e)),[O,_]=(0,ef.useState)(null),C=tq(O),M=null!==(n=null==C?void 0:C.width)&&void 0!==n?n:0,A=null!==(r=null==C?void 0:C.height)&&void 0!==r?r:0,T="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],N=P.length>0,R={padding:T,boundary:P.filter(t7),altBoundary:N},{reference:D,floating:L,strategy:Z,x:F,y:V,placement:z,middlewareData:I,update:B}=tH({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tV,middleware:[tc({mainAxis:f+A,alignmentAxis:p}),x?tf({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?th():void 0,...R}):void 0,O?tU({element:O,padding:m}):void 0,x?ta({...R}):void 0,t9({arrowWidth:M,arrowHeight:A}),b?tu({strategy:"referenceHidden"}):void 0].filter(t8)});(0,eE.b)(()=>{D(E.anchor)},[D,E.anchor]);let H=null!==F&&null!==V,[U,W]=ne(z),q=null===(i=I.arrow)||void 0===i?void 0:i.x,$=null===(o=I.arrow)||void 0===o?void 0:o.y,Y=(null===(a=I.arrow)||void 0===a?void 0:a.centerOffset)!==0,[G,K]=(0,ef.useState)();(0,eE.b)(()=>{j&&K(window.getComputedStyle(j).zIndex)},[j]);let{hasParent:X,positionUpdateFns:Q}=t4(tJ,c),J=!X;(0,ef.useLayoutEffect)(()=>{if(!J)return Q.add(B),()=>{Q.delete(B)}},[J,Q,B]),(0,ef.useLayoutEffect)(()=>{J&&H&&Array.from(Q).reverse().forEach(e=>requestAnimationFrame(e))},[J,H,Q]);let ee={"data-side":U,"data-align":W,...w,ref:S,style:{...w.style,animation:H?void 0:"none",opacity:null!==(s=I.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,ef.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:H?`translate3d(${Math.round(F)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[null===(l=I.transformOrigin)||void 0===l?void 0:l.x,null===(u=I.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,ef.createElement)(t0,{scope:c,placedSide:U,onArrowChange:_,arrowX:q,arrowY:$,shouldHideArrow:Y},J?(0,ef.createElement)(t2,{scope:c,hasParent:!0,positionUpdateFns:Q},(0,ef.createElement)(ew.WV.div,ee)):(0,ef.createElement)(ew.WV.div,ee)))}),t5={top:"bottom",right:"left",bottom:"top",left:"right"},t6=(0,ef.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=t1("PopperArrow",n),o=t5[i.placedSide];return(0,ef.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,ef.createElement)(tW,(0,ep.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function t8(e){return void 0!==e}function t7(e){return null!==e}let t9=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=ne(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function ne(e){let[t,n="center"]=e.split("-");return[t,n]}let nt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,ef.useState)(null);return(0,ef.createElement)(tK,{scope:t,anchor:r,onAnchorChange:i},n)};var nn=n(6500);let nr=(0,ef.forwardRef)((e,t)=>(0,ef.createElement)(ew.WV.span,(0,ep.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}}))),[ni,no]=(0,em.b)("Tooltip",[tG]),na=tG(),ns="tooltip.open",[nl,nu]=ni("TooltipProvider"),nc="Tooltip",[nd,nf]=ni(nc),nh="TooltipTrigger",np=(0,ef.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=nf(nh,n),o=nu(nh,n),a=na(n),s=(0,ef.useRef)(null),l=(0,ev.e)(t,s,i.onTriggerChange),u=(0,ef.useRef)(!1),c=(0,ef.useRef)(!1),d=(0,ef.useCallback)(()=>u.current=!1,[]);return(0,ef.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,ef.createElement)(tQ,(0,ep.Z)({asChild:!0},a),(0,ef.createElement)(ew.WV.button,(0,ep.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,eb.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,eb.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,eb.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,eb.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,eb.M)(e.onBlur,i.onClose),onClick:(0,eb.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nm="TooltipPortal",[nv,ng]=ni(nm,{forceMount:void 0}),ny="TooltipContent",nb=(0,ef.forwardRef)((e,t)=>{let n=ng(ny,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=nf(ny,e.__scopeTooltip);return(0,ef.createElement)(ej.z,{present:r||a.open},a.disableHoverableContent?(0,ef.createElement)(nj,(0,ep.Z)({side:i},o,{ref:t})):(0,ef.createElement)(nx,(0,ep.Z)({side:i},o,{ref:t})))}),nx=(0,ef.forwardRef)((e,t)=>{let n=nf(ny,e.__scopeTooltip),r=nu(ny,e.__scopeTooltip),i=(0,ef.useRef)(null),o=(0,ev.e)(t,i),[a,s]=(0,ef.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,ef.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,ef.useCallback)((e,t)=>{let n=e.currentTarget,r=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),i="right"===r||"bottom"===r?-5:5;s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}(["right"===r||"left"===r?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),d(!0)},[d]);return(0,ef.useEffect)(()=>()=>f(),[f]),(0,ef.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,ef.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,ef.createElement)(nj,(0,ep.Z)({},e,{ref:o}))}),[nw,nE]=ni(nc,{isInside:!1}),nj=(0,ef.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=nf(ny,n),u=na(n),{onClose:c}=l;return(0,ef.useEffect)(()=>(document.addEventListener(ns,c),()=>document.removeEventListener(ns,c)),[c]),(0,ef.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,ef.createElement)(eQ.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,ef.createElement)(t3,(0,ep.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,ef.createElement)(eg.A4,null,r),(0,ef.createElement)(nw,{scope:n,isInside:!0},(0,ef.createElement)(nr,{id:l.contentId,role:"tooltip"},i||r))))}),nk=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=nu(nc,e.__scopeTooltip),u=na(t),[c,d]=(0,ef.useState)(null),f=(0,ek.M)(),h=(0,ef.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,ef.useRef)(!1),[g=!1,y]=(0,ex.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(ns))):l.onClose(),null==o||o(e)}}),b=(0,ef.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,ef.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,ef.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,ef.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,ef.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,ef.createElement)(nt,u,(0,ef.createElement)(nd,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,ef.useCallback)(()=>{l.isOpenDelayed?E():x()},[l.isOpenDelayed,E,x]),onTriggerLeave:(0,ef.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},nS=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=nf(nm,t);return(0,ef.createElement)(nv,{scope:t,forceMount:n},(0,ef.createElement)(ej.z,{present:n||o.open},(0,ef.createElement)(nn.h,{asChild:!0,container:i},r)))},nO=(0,eX.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),n_=ef.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,ed.jsx)(n,{ref:t,className:(0,eX.cx)(r,nO({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),nC=ef.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,ed.jsx)(n_,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eX.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nM=(0,eX.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),nA=ef.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ed.jsx)("div",{ref:t,className:nM({className:n,color:r}),...i})});var nT=n(93542);let nP=(void 0===nT||nT.env,"production"),nN=1/60*1e3,nR="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nD="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nR()),nN),nL=!0,nZ=!1,nF=!1,nV={delta:0,timestamp:0},nz=["read","update","preRender","render","postRender"],nI=nz.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnZ=!0),e),{}),nB=nz.reduce((e,t)=>{let n=nI[t];return e[t]=(e,t=!1,r=!1)=>(nZ||n$(),n.schedule(e,t,r)),e},{}),nH=nz.reduce((e,t)=>(e[t]=nI[t].cancel,e),{}),nU=nz.reduce((e,t)=>(e[t]=()=>nI[t].process(nV),e),{}),nW=e=>nI[e].process(nV),nq=e=>{nZ=!1,nV.delta=nL?nN:Math.max(Math.min(e-nV.timestamp,40),1),nV.timestamp=e,nF=!0,nz.forEach(nW),nF=!1,nZ&&(nL=!1,nD(nq))},n$=()=>{nZ=!0,nL=!0,nF||nD(nq)},nY=()=>nV,nG="undefined"!=typeof document,nK=nG?ef.useLayoutEffect:ef.useEffect;function nX(){let e=(0,ef.useRef)(!1);return nK(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nQ=(0,ef.createContext)(null);function nJ(e){let t=(0,ef.useRef)(null);return null===t.current&&(t.current=e()),t.current}class n0 extends ef.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function n1({children:e,isPresent:t}){let n=(0,ef.useId)(),r=(0,ef.useRef)(null),i=(0,ef.useRef)({width:0,height:0,top:0,left:0});return(0,ef.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"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===x||e.$$typeof===g)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?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,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=i?e:r(e,t,n)}},24019:function(e,t,n){var r=n(37772)["__core-js_shared__"];e.exports=r},55463:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),o=n(8435),a=n(66188);e.exports=function(e){return function(t){var n=i(t=a(t))?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),o=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var r=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},83043:function(e,t,n){var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var r=n(45386),i=n(87064),o=n(59950);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},18052:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),o=n(63344);e.exports=function(e){return i(e)?o(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},33812:function(e,t,n){var r=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),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(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},11618:function(e,t,n){var r=n(45981),i=n(83559),o=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[E,j]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),O=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),_=(0,r.useCallback)(t=>{j(v(t)),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(_),_(e),()=>e.removeListener(_)},[_]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&O(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let C=(0,r.useMemo)(()=>({theme:x,setTheme:O,forcedTheme:e,resolvedTheme:"system"===x?E:x,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[x,O,e,E,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.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,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',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)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||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(o)),e.matches?"dark":"light")},93542:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(42351)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(19654)}])},35599:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(64453),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},34148:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(35599);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:o,children:a.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=n(86254),u=n(38195);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:n,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:n,pushPage:a,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,r.jsx)(f,{currentPage:t,parentPage:n,commandPage:p,select:s})]})}var v=n(38923),g=n(2784);function y(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(h,{currentPage:t,select:l})]})}},98334:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(2002);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=r.dk},9338:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(64453).XBW)(15)},51507:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return x}});var r=n(52322),i=n(2784),o=n(64453),a=n(21487),s=n(56468),l=n(6391),u=n.n(l);let c=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],d={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,priceTableValidity:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:""};function f(e){let{settings:t}=e,n=null;return"duckdns"===t.ddns.provider&&(n={dnsDuckDnsToken:t.ddns.options.token}),"noip"===t.ddns.provider&&(n={dnsNoIpEmail:t.ddns.options.email,dnsNoIpPassword:t.ddns.options.password}),"route53"===t.ddns.provider&&(n={dnsAwsId:t.ddns.options.id,dnsAwsSecret:t.ddns.options.secret,dnsAwsZoneId:t.ddns.options.zoneID}),"cloudflare"===t.ddns.provider&&(n={dnsCloudflareToken:t.ddns.options.token,dnsCloudflareZoneId:t.ddns.options.zoneID}),{acceptingContracts:t.acceptingContracts,netAddress:t.netAddress,maxContractDuration:new(u())(t.maxContractDuration).div((0,a.S5)(1)),contractPrice:(0,a.ll)(t.contractPrice,6),baseRPCPrice:(0,a.ll)((0,s.sS)(t.baseRPCPrice),6),sectorAccessPrice:(0,a.ll)((0,s.nS)(t.sectorAccessPrice),6),collateralMultiplier:new(u())(t.collateralMultiplier),maxCollateral:(0,a.ll)(t.maxCollateral,6),storagePrice:(0,a.ll)((0,s.SY)(t.storagePrice),6),egressPrice:(0,a.ll)((0,s.B1)(t.egressPrice),6),ingressPrice:(0,a.ll)((0,s.dK)(t.ingressPrice),6),priceTableValidity:new(u())(t.priceTableValidity).div(1e9).div(60),accountExpiry:new(u())(t.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,a.ll)(t.maxAccountBalance,6),ingressLimit:(0,a.BT)(new(u())(t.ingressLimit)),egressLimit:(0,a.BT)(new(u())(t.egressLimit)),dnsProvider:t.ddns.provider,dnsIpv4:t.ddns.ipv4,dnsIpv6:t.ddns.ipv6,...n}}function h(e,t){return new(u())(12960).times(e).div((0,a.S5)(1)).times(t)}var p=n(2002),m=n(63955);function v(e,t){return t?new(u())(new(u())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var g=n(92762),y=n(85375);let b=(0,i.createContext)({}),x=()=>(0,i.useContext)(b);function w(e){let{children:t}=e,n=function(){let{settings:e,dynDNSCheck:t}=function(){let e=(0,p.rV)({config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,p.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}});return{settings:e,dynDNSCheck:t}}(),{form:n,fields:l,setShowAdvanced:b,showAdvanced:x}=function(){let e=(0,m.cI)({mode:"all",defaultValues:d}),t=e.watch("storagePrice"),n=e.watch("collateralMultiplier"),[o,s]=(0,g.Z)("v0/config/showAdvanced",{defaultValue:!1}),l=(0,y.BW)();return{form:e,fields:(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:o}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,r.jsx)(r.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,r.jsx)(r.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com:9982",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(u())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,r.jsx)(r.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte((0,a.E6)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:o?v(1,o):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",description:(0,r.jsx)(r.Fragment,{children:"The host's storage price in siacoins per TB per month."}),validation:{required:"required"}},egressPrice:{title:"Egress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:o?v(10,o):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",description:(0,r.jsx)(r.Fragment,{children:"The host's egress price in siacoins per TB. Egress means bandwidth usage by outgoing download traffic."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:o?v(.05,o):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's ingress price in siacoins per TB. Ingress means bandwidth usage by incoming upload traffic."}),validation:{required:"required"}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(u())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},maxCollateral:{title:"Maximum collateral",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:n&&i?h(n,i):void 0,suggestionTip:"The suggested maximum collateral.",description:(0,r.jsx)(r.Fragment,{children:"The host's maximum collateral in siacoins."}),hidden:!t,validation:{required:"required"}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(u())(.2),description:(0,r.jsx)(r.Fragment,{children:"The host's contract price in siacoins."}),hidden:!t,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(u())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:!t,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(u())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,r.jsx)(r.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:!t,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(u())(30),suggestionTip:"The suggested price table validity.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(u())(30),suggestionTip:"The suggested account expiry.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(u())(10),suggestionTip:"The suggested maximum account balance.",description:(0,r.jsx)(r.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:c,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!c.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({showAdvanced:o,storageTBMonth:t,collateralMultiplier:n,rates:null===(e=l.data)||void 0===e?void 0:e.rates})},[o,t,n,l.data]),storageTBMonth:t,collateralMultiplier:n,showAdvanced:o,setShowAdvanced:s}}(),w=(0,i.useMemo)(()=>({settings:{data:e.data,error:e.error}}),[e.data,e.error]),E=(0,i.useMemo)(()=>!function(e){let{settings:t}=e;return!!t.data}(w)?null:f({settings:w.settings.data}),[w]),j=(0,i.useMemo)(()=>(function(e){let{settings:t}=e;return!!t.error})(w),[w]),k=(0,i.useCallback)(async()=>{let r=await e.mutate();if(r)return await t.mutate(),n.reset(f({settings:r}));(0,o.OHV)({title:"Error fetching settings"})},[n,e,t]);(0,o.u$d)({form:n,remoteValues:E}),(0,o.Z4p)({form:n,remoteValues:E});let{changeCount:S}=(0,o.mYE)({form:n}),O=function(e){let{resources:t,showAdvanced:n,revalidateAndResetForm:r}=e,l=(0,p.Te)(),u=(0,p.On)({config:{swr:{refreshInterval:(0,o.sWj)(1)}}});return(0,i.useCallback)(async e=>{if(t)try{var i,c,d;let f;let p={};n||(p.maxCollateral=h(e.storagePrice,e.collateralMultiplier));let m={...e,...p},v=await l.patch({payload:(d=t.settings.data,f=null,"duckdns"===m.dnsProvider&&(f={token:m.dnsDuckDnsToken}),"noip"===m.dnsProvider&&(f={email:m.dnsNoIpEmail,password:m.dnsNoIpPassword}),"route53"===m.dnsProvider&&(f={id:m.dnsAwsId,secret:m.dnsAwsSecret,zoneID:m.dnsAwsZoneId}),"cloudflare"===m.dnsProvider&&(f={token:m.dnsCloudflareToken,zoneID:m.dnsCloudflareZoneId}),{...d,acceptingContracts:m.acceptingContracts,netAddress:m.netAddress,maxContractDuration:Number(m.maxContractDuration.times((0,a.S5)(1)).toFixed(0)),contractPrice:(0,a.qN)(m.contractPrice).toString(),baseRPCPrice:m.baseRPCPrice.div((0,a.ll)((0,s.sS)(1))).toFixed(0),sectorAccessPrice:m.sectorAccessPrice.div((0,a.ll)((0,s.nS)(1))).toFixed(0),collateralMultiplier:m.collateralMultiplier.toNumber(),maxCollateral:(0,a.qN)(m.maxCollateral).toString(),storagePrice:m.storagePrice.div((0,a.ll)((0,s.SY)(1))).toFixed(0),egressPrice:m.egressPrice.div((0,a.ll)((0,s.B1)(1))).toFixed(0),ingressPrice:m.ingressPrice.div((0,a.ll)((0,s.dK)(1))).toFixed(0),priceTableValidity:Number(m.priceTableValidity.times(60).times(1e9).toFixed(0)),accountExpiry:Number(m.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,a.qN)(m.maxAccountBalance).toString(),ingressLimit:Number((0,a.Y)(m.ingressLimit).toFixed(0)),egressLimit:Number((0,a.Y)(m.egressLimit).toFixed(0)),ddns:{...null==d?void 0:d.ddns,provider:m.dnsProvider,ipv4:m.dnsIpv4,ipv6:m.dnsIpv6,options:f}})});if(v.error)throw Error(v.error);(null===(c=u.data)||void 0===c?void 0:null===(i=c.lastAnnouncement)||void 0===i?void 0:i.address)!==e.netAddress?(0,o.OPV)({title:"Settings have been saved",body:"Address has changed, make sure to re-announce the host.",options:{duration:2e4}}):(0,o.OPV)({title:"Settings have been saved"}),await r()}catch(e){(0,o.OHV)({title:"Error updating settings",body:e.message}),console.log(e)}},[n,t,l,r,u.data])}({resources:w,showAdvanced:x,revalidateAndResetForm:k}),_=(0,o.WsO)(l),C=(0,i.useMemo)(()=>n.handleSubmit(O,_),[n,O,_]),M=(0,i.useRef)();return{fields:l,settings:e,dynDNSCheck:t,changeCount:S,revalidateAndResetForm:k,form:n,onSubmit:C,showAdvanced:x,setShowAdvanced:b,remoteError:j,takeScreenshot:(0,i.useCallback)(async e=>{(0,o.S5N)(M.current,e)},[]),configRef:M}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},38923:function(e,t,n){"use strict";n.d(t,{x:function(){return w},G:function(){return x}});var r=n(52322),i=n(64453),o=n(5632),a=n(2002),s=n(2784),l=n(75262),u=n(95685),c=n(21487),d=n(86254);function f(e){let{id:t,status:n,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)({title:"Error starting integrity check",body:e.error}):(0,i.OPV)({title:"Integrity check started",body:(0,r.jsxs)(r.Fragment,{children:["Depending on contract data size this operation can take a while. Check ",(0,r.jsx)(i.EKh,{children:"hostd"})," ",(0,r.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),options:{duration:12e3}})},[t,c,f]),p=["active","pending"].includes(n);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...l,children:(0,r.jsx)(u.EMN,{})}),contentProps:{align:"start",...o},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,r.jsx)("div",{children:(0,r.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,status:n}}=e;return(0,r.jsx)(f,{id:t,status:n})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t,context:n}=e,{id:o,renewedFrom:a,isRenewedFrom:s,renewedTo:l,isRenewedTo:c}=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(o),type:"contract",siascanUrl:n.siascanUrl}),s&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:n.siascanUrl})]})}),c&&(0,r.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.IRm,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(l),type:"contract",siascanUrl:n.siascanUrl})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:n,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:n,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,r.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=n(6391),m=n.n(p),v=n(38855),g=n(74667),y=n(9338);let b=(0,s.createContext)({}),x=()=>(0,s.useContext)(b);function w(e){let{children:t}=e,n=function(){var e,t;let n=(0,o.useRouter)(),r=Number(n.query.limit||50),u=Number(n.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:b}=(0,i.Uu5)(),{configurableColumns:x,enabledColumns:w,sortableColumns:E,toggleColumnVisibility:j,setColumnsVisible:k,setColumnsHidden:S,toggleSort:O,setSortDirection:_,setSortField:C,sortField:M,sortDirection:A,resetDefaultColumnVisibility:T}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),P=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===M))||void 0===e?void 0:e.value,sortDesc:"desc"===A,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:y.h}}}),N=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;return t.data?(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let n=new(m())(e.usage.accountFunding||0),r=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=n.plus(r).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:n,egress:r,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]:null},[t.data])}({response:P}),R=(0,s.useMemo)(()=>h.filter(e=>w.includes(e.id)),[w]),D=P.isValidating,L=P.error,Z=(0,i.c2j)(N,D,L,c),{estimatedBlockHeight:F,isSynced:V,nodeBlockHeight:z}=(0,v.n)(),I=V?z:F,{range:B}=(0,s.useMemo)(()=>(0,i.EJC)(I,N||[]),[I,N]),H=(0,g.B)();return{dataState:Z,offset:u,limit:r,cellContext:(0,s.useMemo)(()=>({contractsTimeRange:B,currentHeight:I,siascanUrl:H}),[B,I,H]),pageCount:(null==N?void 0:N.length)||0,totalCount:null===(t=P.data)||void 0===t?void 0:t.count,columns:R,dataset:N,configurableColumns:x,enabledColumns:w,sortableColumns:E,toggleColumnVisibility:j,setColumnsVisible:k,setColumnsHidden:S,toggleSort:O,setSortDirection:_,setSortField:C,sortField:M,sortDirection:A,resetDefaultColumnVisibility:T,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:b}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},75262:function(e,t,n){"use strict";n.d(t,{Fo:function(){return i},gd:function(){return r},nw:function(){return o}});let r=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},86254:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eO},xQ:function(){return e_},Rh:function(){return eS}});var r=n(52322),i=n(2784),o=n(64453),a=n(2002),s=n(21487),l=n(6391),u=n.n(l),c=n(63955);function d(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},x=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(b,t),p?e(o.current):c.current;if(v)return n(b,t),e(o.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}function f(e,t){return e===t}function h(e){return"function"==typeof e?function(){return e}:e}var p=n(99182),m=n(35599),v=n(95685);function g(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(v.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function y(){var e;return(null===(e=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}}).data)||void 0===e?void 0:e.os)==="windows"?"\\":"/"}var b=n(79200),x=n(81441),w=n(81721),E=function(e,t){for(var n=e.length;n--&&(0,w.Z)(t,e[n],0)>-1;);return n},j=n(36202),k=n(25186),S=n(37602),O=function(e,t,n){if((e=(0,k.Z)(e))&&(n||void 0===t))return e.slice(0,(0,S.Z)(e)+1);if(!e||!(t=(0,b.Z)(t)))return e;var r=(0,j.Z)(e),i=E(r,(0,j.Z)(t))+1;return(0,x.Z)(r,0,i).join("")},_=n(78807),C=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},M=function(e,t,n){if((e=(0,k.Z)(e))&&(n||void 0===t))return(0,_.Z)(e);if(!e||!(t=(0,b.Z)(t)))return e;var r=(0,j.Z)(e),i=(0,j.Z)(t),o=C(r,i),a=E(r,i)+1;return(0,x.Z)(r,o,a).join("")};function A(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:T(t,n,r)}function T(e,t,n){e=e===n?e:O(e,n),t=M(t,n);let r="";return(r=e.length?t.length&&t!==n?e===n?n+t:e+n+t:e:t).endsWith(":")?r+n:r}function P(){return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(v.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function N(e){let{path:t,onCreate:n}=e,s=y(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:A({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)({title:"Error creating directory",body:e.error}):(n(u),c(""))},[l,u,n,t,s]);return(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(v.L37,{})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function R(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=y();return(0,r.jsx)(m.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),n(function(e,t){if(e.endsWith(":\\"))return t;let n="".concat(e.split(t).slice(0,-1).join(t));return""===n?t:n.endsWith(":")?n+t:n}(t,u)),l&&l())},value:"..",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(v.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let D={namespace:"volumes/directorySelect",label:"Directory select"};function L(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:f,currentPage:h,beforeSelect:b,afterSelect:x}=e,w=y(),E=(null===(t=d.data)||void 0===t?void 0:t.path)===w,j=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(m.fu,{currentPage:h,commandPage:D,children:[d.isValidating||!d.data||d.error?null:E?null:(0,r.jsx)(R,{path:d.data.path,setPath:f,currentPage:h,commandPage:D,afterSelect:x,beforeSelect:b}),(0,r.jsxs)(p.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(P,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,r.jsx)(g,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,r.jsx)(m.WD,{commandPage:D,currentPage:h,onSelect:()=>{b&&b(),f(A({currentPath:d.data.path,childPath:e,separator:w})),x&&x()},value:e,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(v.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!j&&!d.isValidating&&!d.error&&(0,r.jsx)(m.WD,{commandPage:D,currentPage:h,value:"create new directory",children:(0,r.jsx)(N,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var n;return{...t,directories:(null==t?void 0:null===(n=t.directories)||void 0===n?void 0:n.concat(e))||[e]}})}})})]})}function Z(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(p.mY,{label:"Select volume",shouldFilter:!1,children:(0,r.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,r.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,r.jsx)(p.mY.List,{children:(0,r.jsx)(L,{path:t,dir:n,setPath:i,currentPage:D})})})})})}var F=n(82851);function V(e){let{label:t,newSizeGB:n,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=in,c=n>a;return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,r.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==n&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,r.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==n&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(n/a*100,"%"):"0%"}})]}),(0,r.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,r.jsx)("div",{}),void 0!==n&&a?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((n/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,s.Hz)(a))," available")}):null]})]})}let z=new(u())(10),I={size:void 0,name:"",path:"~",immediatePath:"~"};function B(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=eS(),h=(0,a.HU)(),p=y(),m=(0,c.cI)({mode:"all",defaultValues:I}),v=m.watch("path"),g=m.watch("immediatePath"),b=m.watch("name"),x=m.watch("size"),w=d(()=>{v!==g&&m.setValue("path",g)},500);(0,i.useEffect)(()=>{w()},[g]),(0,i.useEffect)(()=>{v!==g&&m.setValue("immediatePath",v)},[v]);let E=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:T(v,b,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error creating volume",body:t.error}):((0,o.OPV)({title:"New volume created"}),m.reset(I),f())},[m,h,f,b,v,p]),j=(0,a.cM)({disabled:!n,params:{path:""===v?p:v},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{j.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[j.error]),(0,i.useEffect)(()=>{j.data&&j.data.path!==v&&m.setValue("path",j.data.path)},[j.data]);let k=(0,i.useMemo)(()=>x||new(u())(0),[x]),S=(0,i.useMemo)(()=>j.data?(0,s.Uz)(j.data.freeBytes):new(u())(0),[j.data]),O=(0,i.useMemo)(()=>{var e;return(0,s.Uz)((null===(e=j.data)||void 0===e?void 0:e.freeBytes)||new(u())(0))},[j.data]),_=(0,i.useMemo)(()=>{var e,t;return e=z.toNumber(),t=O.toNumber(),{name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:n=>{let r="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return n<=t&&n>=e||r},nospace:()=>t>e||"not enough space in directory"}}}}},[O]),C=(0,o.WsO)(_);return m.register("path",_.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:t,open:n,onOpenChange:e=>{e||m.reset(I),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(E,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Create a new volume. Select a system directory and specific the size of the volume."}),(0,r.jsx)(o.yEL,{name:"name",form:m,fields:_}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.yEL,{name:"immediatePath",form:m,fields:_})}),(0,r.jsx)(Z,{path:v,dir:j,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:_}),(0,r.jsx)(V,{newSizeGB:k.toNumber(),currentSizeGB:0,maxSizeGB:S.toNumber()})]})})}let H=new(u())(10),U={size:void 0};function W(e){var t,n;let{trigger:l,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eS(),m=y(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,a.cM)({disabled:!d||!v.data,params:{path:null===(t=v.data)||void 0===t?void 0:t.localPath.split(m).slice(0,-1).join(m)}}),b=(0,a.G)(),x=(0,c.cI)({mode:"all",defaultValues:U}),w=x.watch("size"),E=(0,i.useCallback)(async e=>{let t=await b.put({params:{id:Number(h)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error resizing volume",body:t.error}):((0,o.OPV)({title:"Volume resizing initiated"}),x.reset(U),p())},[x,h,b,p]);(0,i.useEffect)(()=>{v.data&&x.reset(U)},[v.data]);let j=(0,i.useMemo)(()=>w||new(u())(0),[w]),k=(0,i.useMemo)(()=>v.data?(0,o.bjP)(v.data.totalSectors):new(u())(0),[v.data]),S=(0,i.useMemo)(()=>g.data?(0,s.Uz)(g.data.freeBytes):new(u())(0),[g.data]),O=(0,i.useMemo)(()=>k.plus(S),[k,S]),_=k.lt(j),C=k.minus(j).abs().gte(1),M=(0,i.useMemo)(()=>{var e,t;return e=H.toNumber(),t=O.toNumber(),{size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:n=>{let r="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return n<=t&&n>=e||r}}}}}},[O]),A=(0,o.WsO)(M);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:l,open:d,onOpenChange:e=>{e||x.reset(U),f(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:x.handleSubmit(E,A),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:x,children:"Resize"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,r.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(o.__J,{children:"Volume"}),(0,r.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(n=v.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:x,fields:M}),(0,r.jsx)(V,{currentSizeGB:k.toNumber(),newSizeGB:j.toNumber(),maxSizeGB:O.toNumber(),label:C?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:_?"Increase by ".concat((0,s.vW)((0,s.Hz)(j.minus(k)))):"Decrease by ".concat((0,s.vW)((0,s.Hz)(k.minus(j))))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,s.Hz)(k)))})})]})})}let q={path:"",force:!1};function $(e){var t,n,l;let{trigger:u,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eS(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(n=v.data)||void 0===n?void 0:n.usedSectors),b=null===(l=v.data)||void 0===l?void 0:l.localPath,x=(0,c.cI)({mode:"all",defaultValues:q}),w=(0,i.useCallback)(async e=>{var t;let n=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.id,force:e.force}});n.error?(0,o.OHV)({title:"Error deleting volume",body:n.error}):((0,o.OPV)({title:"Volume permanently deleted"}),x.reset(),p())},[x,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:b,validation:{required:"required",validate:{equals:e=>e===b||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[b]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:u,open:d,onOpenChange:e=>{e||x.reset(q),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:x.handleSubmit(w,j),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,r.jsxs)(o.nvN,{size:"14",children:[(0,r.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,r.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,r.jsx)(o.yEL,{name:"path",form:x,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:x,fields:E}),(0,r.jsx)(o.Yqd,{children:(0,r.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,r.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,r.jsx)(o.ZqQ,{variant:"red",form:x,children:"Delete"})]})})}function Y(){let{dialog:e,openDialog:t,closeDialog:n}=eS(),s=(0,a.Os)(),l=(0,a.cj)(),c=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await l.post({payload:{address:n,amount:t.toString()}});return r.error?{error:r.error}:{transactionId:r.data}},[l]);return(0,r.jsx)(o.weF,{balance:s.data?new(u())(s.data.spendable):void 0,send:c,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var G=n(40730);function K(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eS(),{dataset:s}=(0,G.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.id===e),[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var X=n(38195),Q=n(67108),J=n(98334),ee=n(5632);let et={namespace:"wallet",label:"Wallet"};function en(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=eS(),u=(0,ee.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:et,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:et,onSelect:()=>{i(et)},children:et.label}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{u.push(J._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:et,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.walletAddress,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var er=n(38617);let ei={namespace:"settings",label:"Settings"};function eo(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eS(),{setTheme:a}=(0,er.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,Q.Hv)();return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:ei,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:ei,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(m.o4,{currentPage:t,commandPage:ei,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(m.WD,{currentPage:t,commandPage:ei,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let ea={namespace:"node",label:"Blockchain node"};function es(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eS(),s=(0,ee.useRouter)();return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:ea,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:ea,onSelect:()=>{i(ea)},children:ea.label}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ea,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ea,onSelect:()=>{s.push(J._.node.index),a()},children:"View peers"})]})}var el=n(51507);let eu={namespace:"configuration",label:"Configuration"};function ec(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,ee.useRouter)(),{showAdvanced:a}=(0,el.ZR)(),{closeDialog:s}=eS();return(0,r.jsxs)(m.fu,{currentPage:t,commandPage:eu,children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:eu,onSelect:()=>{i(eu)},children:eu.label}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.host),s()},children:"Configure host"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:eu,onSelect:()=>{o.push(J._.config.accounts),s()},children:"Configure accounts"})]})]})}var ed=n(38923);function ef(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(v.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var eh=n(34148);let ep={namespace:"contracts",label:"Contracts"};function em(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,ee.useRouter)(),{closeDialog:l}=eS();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ep)},children:ep.label}),(0,r.jsx)(m.fu,{currentPage:t,commandPage:ep,children:(0,r.jsx)(m.WD,{currentPage:t,commandPage:ep,onSelect:()=>{s.push(J._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(eh.F,{parentPage:ep,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ev={namespace:"volumes",label:"Volumes"};function eg(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,ee.useRouter)(),{openDialog:a,closeDialog:s}=eS();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ev)},children:ev.label}),(0,r.jsxs)(m.fu,{currentPage:t,commandPage:ev,children:[(0,r.jsx)(m.WD,{currentPage:t,commandPage:ev,onSelect:()=>{o.push(J._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(m.WD,{currentPage:t,commandPage:ev,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function ey(e){var t,n,a,s,l,u,c,m,v;let{panel:g}=e,y=(0,ee.useRouter)(),{resetFilters:b}=(0,ed.G)(),{closeDialog:x}=eS(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||f,u=(a=(n=(0,i.useState)(h(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(h(e))},[])])[0],c=l[1],m=d((0,i.useCallback)(function(e){return c(e)},[c]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[u,m]),[k,S]=(0,i.useState)([]),O=k[k.length-1],_=0===k.length,C=(0,i.useCallback)(e=>{S(t=>[...t,e])},[S]),M=(0,i.useCallback)(()=>{x()},[x]),A=(0,i.useCallback)(()=>{E("")},[E]),T=(null==O?void 0:O.empty)||ef;return(0,r.jsxs)(p.mY,{label:"Command Menu",loop:!0,className:(0,F.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(k.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),S(e=>e.slice(0,-1)))},children:[O&&(0,r.jsx)(o.__J,{className:"px-2",children:O.label}),(0,r.jsx)(p.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==O?void 0:O.prompt)||(_?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(p.mY.List,{children:[(0,r.jsx)(p.mY.Empty,{children:(0,r.jsx)(T,{search:w,debouncedSearch:j})}),(0,r.jsx)(eo,{currentPage:O,pushPage:C}),(0,r.jsx)(en,{currentPage:O,pushPage:C}),(0,r.jsx)(eg,{currentPage:O,pushPage:C}),(0,r.jsx)(em,{currentPage:O,pushPage:C,beforeSelect:()=>{M(),b()},afterSelect:()=>{y.pathname.startsWith(J._.contracts.index)||y.push(J._.contracts.index),A()}}),(0,r.jsx)(ec,{currentPage:O,pushPage:C}),(0,r.jsx)(es,{currentPage:O,pushPage:C})]})]})}function eb(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlockedAndAuthedRoute:s}=(0,Q.Hv)(),{isConnected:l}=(0,o.Y97)({route:J.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&e.metaKey&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(ey,{})})})}var ex=n(9338);function ew(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)({config:{swr:{refreshInterval:ex.h}}}),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)({title:"Error dismissing alert",body:t.error}):(0,o.OPV)({title:"Alert has been dismissed"})},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let n=await l.post({payload:e});n.error?(0,o.OHV)({title:t?"Error dismissing all ".concat(t," alerts"):"Error dismissing all alerts",body:n.error}):(0,o.OPV)({title:t?"All ".concat(t," alerts have been dismissed"):"All alerts have been dismissed"})},[l,s]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:s,dataFieldOrder:eE,dataFields:ej,dismissMany:c,dismissOne:u})}let eE=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ej={error:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,r.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,r.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},ek=(0,i.createContext)({}),eS=()=>(0,i.useContext)(ek);function eO(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(ek.Provider,{value:n,children:t})}function e_(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=eS(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eb,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ew,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(Y,{}),(0,r.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(K,{}),(0,r.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(B,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(W,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)($,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(X.Y,{open:"contractsFilterContractId"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},83738:function(e,t,n){"use strict";n.d(t,{C:function(){return E},B:function(){return w}});var r=n(52322),i=n(2784),o=n(64453),a=n(21487);let s={successful:{color:o.O9T.green[600]},active:{color:o.O9T.amber[600]},pending:{color:o.O9T.amber[600],pattern:!0},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=n(2002);function u(e,t,n){return{...e,category:t,pattern:n}}function c(e,t,n){return{...e,category:t,label:n}}var d=n(6391),f=n.n(d),h=n(72473),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),x=(0,i.createContext)({}),w=()=>(0,i.useContext)(x);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:b.value}),[n,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:b.interval}),x=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=(0,o.ytg)(1),r=setInterval(()=>{n(new Date().getTime())},Math.min((0,h.uQ)(e),t));return()=>clearInterval(r)},[e]),t}(n),w=(0,i.useMemo)(()=>(0,o.OQF)(e,x),[e,x]),E=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);d(n.interval),t(n.value)},[t,d]),j=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),k=(0,l.KU)({params:{interval:n,start:function(e,t){(0,v.Z)(1,arguments);var n=(0,p.Z)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"";if("time"!==i){var l=m(n.getDate(),2),u=m(n.getMonth()+1,2),c=m(n.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(n.getHours(),2),b=m(n.getMinutes(),2),x=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,b,x].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(w.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.XBW)(60)}}}),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t.map(e=>({storagePotential:Math.max(e.storagePotential,0),ingressPotential:Math.max(e.ingressPotential,0),egressPotential:Math.max(e.egressPotential,0),rpcPotential:Math.max(e.rpcPotential,0),storage:Math.max(e.storage,0),ingress:Math.max(e.ingress,0),egress:Math.max(e.egress,0),rpc:Math.max(e.rpc,0),timestamp:new Date(e.timestamp).getTime()})),stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],enabledTip:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),formatTimestamp:j,disableAnimations:!0,chartType:"barstack",stackOffset:"diverging"},isLoading:k.isValidating}},[k,j]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"area",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,failed:e.contracts.failed,pending:e.contracts.pending,rejected:e.contracts.rejected,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["successful","active","pending","rejected","failed"],enabledTip:["successful","active","pending","rejected","failed"],data:{active:s.active,failed:s.failed,pending:s.pending,rejected:s.rejected,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:j,formatTickY:e=>(0,a.yF)(e),disableAnimations:!0,chartType:"areastack",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,a.B$)(e.storage.totalSectors).times(4).toNumber(),tempSectors:(0,a.B$)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,a.B$)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,a.B$)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","maxSectors"],enabledTip:["contractSectors","physicalSectors","tempSectors","maxSectors"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]);return{dataTimeSpan:e,setDataTimeSpan:E,timeRange:w,dataInterval:n,setDataInterval:d,operations:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites"],enabledTip:["storageReads","storageWrites"],data:{storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTickY:e=>(0,a.yF)(e),formatTimestamp:j,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),revenue:S,collateral:O,contracts:C,storage:M,pricing:_,bandwidth:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp.egress,ingress:e.data.rhp.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j])}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},72473:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(64453);let i=[{label:"1D",interval:"15m",value:"1"},{label:"7D",interval:"hourly",value:"7"},{label:"1M",interval:"daily",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"weekly",value:"365"},{label:"ALL",interval:"monthly",value:"all"}];function o(e){return"5m"===e?(0,r.sWj)(5):"15m"===e?(0,r.sWj)(15):"hourly"===e?(0,r.ytg)(1):"daily"===e?(0,r.NrH)(1):"weekly"===e?(0,r.NrH)(7):"monthly"===e?(0,r.NrH)(30):"yearly"===e?(0,r.NrH)(365):0}},40730:function(e,t,n){"use strict";n.d(t,{n:function(){return m},v:function(){return v}});var r=n(52322),i=n(64453),o=n(2002),a=n(2784),s=n(86254),l=n(6391),u=n.n(l),c=n(5632),d=n(74667),f=n(9338);let h=[],p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,o.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:f.h}}}),l=(0,o.a0)({config:{swr:{refreshInterval:f.h}}}),{openDialog:p}=(0,s.Rh)(),m=(0,d.B)(),v=(0,a.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!0,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:m,timestamp:new Date(e.timestamp).getTime(),onClick:()=>p("transactionDetails",e.id),raw:e.transaction}}),...(r.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!1,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:m,timestamp:new Date(e.timestamp).getTime(),onClick:()=>p("transactionDetails",e.id),raw:e.transaction}}).sort((e,t)=>e.timestampnew Date(new Date().getTime()-(0,i.NrH)(30)).toISOString(),[]),y=(0,o.KU)({params:{interval:"daily",start:g}}),b=(0,a.useMemo)(()=>(y.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[y.data]),x=r.error,w=(0,i.c2j)(v,r.isValidating,x,h);return{balances:b,metrics:y,dataset:v,error:x,dataState:w,offset:n,limit:t,pageCount:(null==v?void 0:v.length)||0}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},63224:function(e,t,n){"use strict";n.d(t,{Y:function(){return b},F:function(){return y}});var r=n(52322),i=n(64453),o=n(2002),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(95685),u=n(21487),c=n(86254);function d(e){var t,n;let{id:a,contentProps:s,buttonProps:u}=e,{openDialog:d}=(0,c.Rh)(),h=(0,o.Rz)(),p=(0,o.ST)({params:{id:a}}),m=(0,o._3)(),v=p.data&&"ready"==p.data.status,g=p.data&&!["ready","unavailable"].includes(p.data.status);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(l.EMN,{})}),contentProps:{align:"start",...s},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",p.data?(0,i.$Gg)(null===(t=p.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),g?(0,r.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=p.data)||void 0===e?void 0:e.status;(await m.delete({params:{id:Number(a)}})).error?(0,i.OHV)({title:"Error canceling volume ".concat(f(t))}):(0,i.OPV)({title:"Canceled volume ".concat(f(t))})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.PcV,{})}),"Cancel ".concat(f(null===(n=p.data)||void 0===n?void 0:n.status))]}):null,p.data?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:async()=>{let e=!p.data.readOnly;(await h.put({params:{id:Number(a)},payload:{readOnly:e}})).error?(0,i.OHV)({title:e?"Error setting volume to read-only":"Error setting volume to read/write"}):(0,i.OPV)({title:e?"Volume set to read-only":"Volume set to read/write"})},children:[(0,r.jsx)(i.KpP,{children:p.data.readOnly?(0,r.jsx)(l.dr6,{}):(0,r.jsx)(l.Lur,{})}),p.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>d("volumeResize",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.BB5,{})}),"Resize"]}),(0,r.jsxs)(i.Xiv,{disabled:g,onSelect:()=>d("volumeDelete",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete"]})]})}function f(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,r.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:n}=e;return(0,r.jsx)(i.ua7,{side:"right",content:n.available?"available":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xvT,{children:"unavailable"}),(0,r.jsx)("div",{className:"flex flex-col",children:null===(t=n.errors)||void 0===t?void 0:t.map(e=>(0,r.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[n.available&&"ready"===n.status&&(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(l.DI$,{})}),n.available&&"ready"!==n.status&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.dsj,{})}),!n.available&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.SmH,{})}),(0,r.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:n.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,r.jsx)(i.ua7,{content:"Read-only",children:(0,r.jsx)(i.xvT,{children:(0,r.jsx)(l.Lur,{})})}):(0,r.jsx)(i.ua7,{content:"Read and write enabled",children:(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,r.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var p=n(6391),m=n.n(p),v=n(9338);let g=(0,a.createContext)({}),y=()=>(0,a.useContext)(g);function b(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:g,resetDefaultColumnVisibility:y}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),b=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):v.h}}}),x=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.id),localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,u.B$)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,u.B$)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(m())(e.failedReads),failedWrites:new(m())(e.failedWrites),successfulReads:new(m())(e.successfulReads),successfulWrites:new(m())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:b}),w=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),E=b.isValidating,j=b.error;return{dataState:(0,i.c2j)(x,E,j,[]),totalCount:(null==x?void 0:x.length)||0,isLoading:b.isValidating,columns:w,dataset:x,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:g,resetDefaultColumnVisibility:y}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},38195:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(64453),o=n(38923),a=n(7114),s=n(24511),l=n(86254);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},74667:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(64453),i=n(2002);function o(){var e;return(null===(e=(0,i.On)().data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},38855:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(67108),i=n(2002);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:a}=(0,r.Hv)(),s=(0,i.d$)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?6e4:1e4}}}),l=(0,i.nH)(),u=s.data?null===(e=s.data)||void 0===e?void 0:e.chainIndex.height:0,c=(0,i.Os)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=u?6e4:1e4}}}),d=a&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=a&&u&&c.data?Number((100*Math.min(c.data.scanHeight/l,1)).toFixed(1)):0;return{isSynced:null===(t=s.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=s.data)||void 0===n?void 0:n.synced)&&(null===(o=c.data)||void 0===o?void 0:o.scanHeight)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}},56468:function(e,t,n){"use strict";n.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var r=n(21487),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let l="/million";function u(e){return new(o())(e).times(1e6)}let c="/million";function d(e){return new(o())(e).times(1e6)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf)(1))}},19654:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322);n(50521);var i=n(64453),o=n(38923),a=n(83738),s=n(86254),l=n(63224),u=n(51507),c=n(95685),d=n(38855),f=n(98334),h=n(2002),p=n(6391),m=n.n(p),v=n(21487),g=n(67108),y=n(92762);function b(){var e;let{isUnlockedAndAuthedRoute:t}=(0,g.Hv)(),{openDialog:n}=(0,s.Rh)(),{dataset:o}=(0,l.F)(),a=(0,h.rV)(),u=(0,h.Os)(),[p,b]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),w=(0,d.n)();if(!t)return null;let E=new(m())(u.data?u.data.confirmed+u.data.unconfirmed:0),j=(0,v.qN)(0),k=u.data&&E.gt(j),S=(null==o?void 0:o.length)>0,O=null===(e=a.data)||void 0===e?void 0:e.acceptingContracts,_=w.isSynced,C=[k,S,O,_],M=C.length,A=C.filter(e=>e).length;return M===A?null:p?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>b(!1),children:(0,r.jsx)(c.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with siacoin to cover required contract collateral.".concat(w.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:k?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!w.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(w.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[w.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.volumes.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.config.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[w.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>b(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",A,"/",M," steps complete"]})})})}function x(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}var w=n(40730);function E(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(w.v,{children:(0,r.jsx)(l.Y,{children:(0,r.jsx)(o.x,{children:(0,r.jsxs)(a.C,{children:[(0,r.jsx)(s.xQ,{}),(0,r.jsx)(b,{}),t]})})})})})})}var j=n(46058),k=n.n(j),S=n(28863),O=n.n(S);let _=(0,n(82851).cx)(k().variable,O().variable);function C(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:_,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(E,{children:(0,r.jsx)(t,{...n})})})}},64453:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return MK},tU3:function(){return Mq},zXq:function(){return Al},juT:function(){return My},Cts:function(){return lQ},Z58:function(){return AB},WVB:function(){return dn},zxk:function(){return lD},b0u:function(){return k6},EKh:function(){return l1},vRO:function(){return Tv},QHy:function(){return Ti},TaT:function(){return A0},eQh:function(){return l4},HfT:function(){return Ts},ncR:function(){return _m},A06:function(){return Aq},Vy9:function(){return A$},VqE:function(){return uR},h_2:function(){return dl},Xiv:function(){return du},Juw:function(){return dc},KpP:function(){return dd},XOF:function(){return _p},jIp:function(){return Tg},QBj:function(){return Ty},yEL:function(){return M9},cB7:function(){return _w},ZqQ:function(){return _x},IKw:function(){return __},WN2:function(){return TF},X6q:function(){return dm},Yqd:function(){return f6},__J:function(){return dE},rUS:function(){return dS},TRl:function(){return d_},kFS:function(){return dr},FzK:function(){return Tt},Clw:function(){return dt},PD$:function(){return Tk},Wxm:function(){return he},uDJ:function(){return Md},wFK:function(){return Mf},s_4:function(){return nA},nvN:function(){return nC},u5Q:function(){return AH},j4H:function(){return f8},J2e:function(){return dG},kod:function(){return d9},xrM:function(){return uT},PhF:function(){return f9},Z0O:function(){return c6},DLL:function(){return AP},KJW:function(){return Mw},rsf:function(){return hv},D_D:function(){return AE},iA_:function(){return Mc},t6k:function(){return Tl},xvT:function(){return n_},nvn:function(){return fO},ua7:function(){return lN},mPE:function(){return Aj},XxW:function(){return OU},m2c:function(){return OX},ho9:function(){return OK},QUh:function(){return AR},weF:function(){return Ay},YNn:function(){return AO},DmW:function(){return A_},O9T:function(){return gK},fVJ:function(){return AV},vQq:function(){return ON},NrH:function(){return k0},Y_Z:function(){return AD},EJC:function(){return TV},kOJ:function(){return AF},OQF:function(){return AL},leQ:function(){return OF},ytg:function(){return kJ},Vkc:function(){return c7},sWj:function(){return kQ},S5N:function(){return Pk},z$:function(){return nM},XBW:function(){return k1},x9T:function(){return TL},bjP:function(){return TZ},I13:function(){return OL},cEb:function(){return fS},OHV:function(){return OA},OPV:function(){return OM},$Gg:function(){return OD},Y97:function(){return MW},c2j:function(){return M$},mYE:function(){return Tx},u$d:function(){return Tw},Z4p:function(){return Tb},WsO:function(){return M7},Uu5:function(){return TD},oy6:function(){return TR},nNd:function(){return AC}});var s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_,C,M,A,T,P,N,R,D,L,Z,F,V,z,I,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec={};n.r(ec),n.d(ec,{useDropzone:function(){return mR}});var ed=n(52322),ef=n(2784),eh=n.t(ef,2),ep=n(7896),em=n(34540),ev=n(26215),eg=n(99575);function ey(e){let t=e+"CollectionProvider",[n,r]=(0,em.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=ef.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,ev.e)(t,i.collectionRef);return ef.createElement(eg.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=ef.useRef(null),o=ef.useRef(new Map).current;return ef.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:ef.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=ef.useRef(null),s=(0,ev.e)(t,a),c=o(l,n);return ef.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),ef.createElement(eg.g7,{[u]:"",ref:s},r)})},function(t){let n=o(e+"CollectionConsumer",t);return ef.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var eb=n(41816),ex=n(73597),ew=n(72130),eE=n(64680),ej=n(28245),ek=n(26074);let eS="Collapsible",[eO,e_]=(0,em.b)(eS),[eC,eM]=eO(eS),eA=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,ex.T)({prop:r,defaultProp:i,onChange:a});return(0,ef.createElement)(eC,{scope:n,disabled:o,contentId:(0,ek.M)(),open:l,onOpenToggle:(0,ef.useCallback)(()=>u(e=>!e),[u])},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":eP(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),eT=((e,t)=>{let{forceMount:n,...r}=e,i=eM(eA,e.__scopeCollapsible);return(0,ef.createElement)(ej.z,{present:n||i.open},({present:e})=>(0,ef.createElement)(eT,(0,ep.Z)({},r,{ref:t,present:e})))},(0,ef.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=eM(eA,n),[s,l]=(0,ef.useState)(r),u=(0,ef.useRef)(null),c=(0,ev.e)(t,u),d=(0,ef.useRef)(0),f=d.current,h=(0,ef.useRef)(0),p=h.current,m=a.open||s,v=(0,ef.useRef)(m),g=(0,ef.useRef)();return(0,ef.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eE.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":eP(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function eP(e){return e?"open":"closed"}let eN="Accordion",eR=["Home","End","ArrowDown","ArrowUp"],[eD,eL,eZ]=ey(eN),[eF,eV]=(0,em.b)(eN,[eZ,e_]);e_(),ef.forwardRef((e,t)=>{let{type:n,...r}=e;return ef.createElement(eD.Provider,{scope:e.__scopeAccordion},"multiple"===n?ef.createElement(eW,(0,ep.Z)({},r,{ref:t})):ef.createElement(eU,(0,ep.Z)({},r,{ref:t})))}).propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[ez,eI]=eF(eN),[eB,eH]=eF(eN,{collapsible:!1}),eU=ef.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,ex.T)({prop:n,defaultProp:r,onChange:i});return ef.createElement(ez,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:ef.useCallback(()=>o&&l(""),[o,l])},ef.createElement(eB,{scope:e.__scopeAccordion,collapsible:o},ef.createElement(eY,(0,ep.Z)({},a,{ref:t}))))}),eW=ef.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,ex.T)({prop:n,defaultProp:r,onChange:i}),l=ef.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=ef.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return ef.createElement(ez,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},ef.createElement(eB,{scope:e.__scopeAccordion,collapsible:!0},ef.createElement(eY,(0,ep.Z)({},o,{ref:t}))))}),[eq,e$]=eF(eN),eY=ef.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=ef.useRef(null),a=(0,ev.e)(o,t),s=eL(n),l=(0,eb.M)(e.onKeyDown,e=>{var t;if(!eR.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}null===(t=r[a%o].ref.current)||void 0===t||t.focus()});return ef.createElement(eq,{scope:n,disabled:r},ef.createElement(eD.Slot,{scope:n},ef.createElement(ew.WV.div,(0,ep.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[eG,eK]=eF("AccordionItem");var eX=n(82851),eQ=n(83317);function eJ(e){return e.split("-")[0]}function e0(e){return e.split("-")[1]}function e1(e){return["top","bottom"].includes(eJ(e))?"x":"y"}function e2(e){return"y"===e?"height":"width"}function e4(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=e1(t),u=e2(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eJ(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(e0(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let e3=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=e4(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=e5(r),c={x:i,y:o},d=e1(a),f=e0(a),h=e2(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],E=x-p[h]-u[v],j=x/2-p[h]/2+(g/2-y/2),k=e9(w,e7(j,E)),S=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?jtt[e])}let tr={start:"end",end:"start"};function ti(e){return e.replace(/start|end/g,e=>tr[e])}let to=["top","right","bottom","left"];to.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let ta=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eJ(a),b=p||(y!==u&&v?function(e){let t=tn(e);return[ti(e),t,ti(t)]}(u):[tn(u)]),x=[u,...b],w=await e8(t,g),E=[],j=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=e0(e),i=e1(e),o=e2(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=tn(a)),{main:a,cross:tn(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function ts(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tl(e){return to.some(t=>e[t]>=0)}let tu=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=ts(await e8(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tl(t)}}}case"escaped":{let t=ts(await e8(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tl(t)}}}default:return{}}}}},tc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eJ(n),s=e0(n),l="x"===e1(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function td(e){return"x"===e?"y":"x"}let tf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await e8(t,l),d=e1(eJ(i)),f=td(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=e9(h+c["y"===d?"top":"left"],e7(h,h-c[e]))}if(a){let e="y"===f?"bottom":"right";p=e9(p+c["y"===f?"top":"left"],e7(p,p-c[e]))}let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},th=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=e1(i),f=td(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eJ(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function tp(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tm(e){if(null==e)return window;if(!tp(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tv(e){return tm(e).getComputedStyle(e)}function tg(e){return tp(e)?"":e?(e.nodeName||"").toLowerCase():""}function ty(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function tb(e){return e instanceof tm(e).HTMLElement}function tx(e){return e instanceof tm(e).Element}function tw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tm(e).ShadowRoot||e instanceof ShadowRoot)}function tE(e){let{overflow:t,overflowX:n,overflowY:r}=tv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tj(e){let t=/firefox/i.test(ty()),n=tv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function tk(){return!/^((?!chrome|android).)*safari/i.test(ty())}let tS=Math.min,tO=Math.max,t_=Math.round;function tC(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&tb(e)&&(l=e.offsetWidth>0&&t_(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&t_(s.height)/e.offsetHeight||1);let c=tx(e)?tm(e):window,d=!tk()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tM(e){return((e instanceof tm(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tA(e){return tx(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tT(e){return tC(tM(e)).left+tA(e).scrollLeft}function tP(e){return"html"===tg(e)?e:e.assignedSlot||e.parentNode||(tw(e)?e.host:null)||tM(e)}function tN(e){return tb(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tR(e){let t=tm(e),n=tN(e);for(;n&&["table","td","th"].includes(tg(n))&&"static"===getComputedStyle(n).position;)n=tN(n);return n&&("html"===tg(n)||"body"===tg(n)&&"static"===getComputedStyle(n).position&&!tj(n))?t:n||function(e){let t=tP(e);for(tw(t)&&(t=t.host);tb(t)&&!["html","body"].includes(tg(t));){if(tj(t))return t;t=t.parentNode}return null}(e)||t}function tD(e){if(tb(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tC(e);return{width:t.width,height:t.height}}function tL(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tP(t);return["html","body","#document"].includes(tg(n))?t.ownerDocument.body:tb(n)&&tE(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=tm(r),a=i?[o].concat(o.visualViewport||[],tE(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(tL(a))}function tZ(e,t,n){return"viewport"===t?e6(function(e,t){let n=tm(e),r=tM(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=tk();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):tx(t)?function(e,t){let n=tC(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):e6(function(e){var t;let n=tM(e),r=tA(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=tO(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=tO(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tT(e),l=-r.scrollTop;return"rtl"===tv(i||n).direction&&(s+=tO(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(tM(e)))}let tF={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=tL(e),n=["absolute","fixed"].includes(tv(e).position)&&tb(e)?tR(e):e;return tx(n)?t.filter(e=>tx(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tw(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tg(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tZ(t,n,i);return e.top=tO(r.top,e.top),e.right=tS(r.right,e.right),e.bottom=tS(r.bottom,e.bottom),e.left=tO(r.left,e.left),e},tZ(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=tb(n),o=tM(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==tg(n)||tE(o))&&(a=tA(n)),tb(n))){let e=tC(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:tx,getDimensions:tD,getOffsetParent:tR,getDocumentElement:tM,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=tb(t),i=tM(t),o=tC(e,r&&function(e){let t=tC(e);return t_(t.width)!==e.offsetWidth||t_(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==tg(t)||tE(i))&&(a=tA(t)),tb(t)){let e=tC(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tT(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,tR(n),r),floating:{...tD(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tv(e).direction};function tV(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...tx(e)?tL(e):[],...tL(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),tx(e)&&!s&&f.observe(e),f.observe(t)}let h=s?tC(e):null;return s&&function t(){let r=tC(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let tz=(e,t,n)=>e3(e,t,{platform:tF,...n});var tI=n(28316),tB="undefined"!=typeof document?ef.useLayoutEffect:ef.useEffect;function tH(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=ef.useRef(null),a=ef.useRef(null),s=function(e){let t=ef.useRef(e);return tB(()=>{t.current=e}),t}(i),l=ef.useRef(null),[u,c]=ef.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=ef.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=ef.useCallback(()=>{o.current&&a.current&&tz(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tI.flushSync(()=>{c(e)})})},[d,n,r]);tB(()=>{p.current&&h()},[h]);let p=ef.useRef(!1);tB(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=ef.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=ef.useCallback(e=>{o.current=e,m()},[m]),g=ef.useCallback(e=>{a.current=e,m()},[m]),y=ef.useMemo(()=>({reference:o,floating:a}),[]);return ef.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tU=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return te({element:t.current,padding:n}).fn(e)}else if(t)return te({element:t,padding:n}).fn(e);return{}}}},tW=(0,ef.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ef.createElement)(ew.WV.svg,(0,ep.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,ef.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tq(e){let[t,n]=(0,ef.useState)(void 0);return(0,eE.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let t$="Popper",[tY,tG]=(0,em.b)(t$),[tK,tX]=tY(t$),tQ=(0,ef.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tX("PopperAnchor",n),a=(0,ef.useRef)(null),s=(0,ev.e)(t,a);return(0,ef.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},i,{ref:s}))}),tJ="PopperContent",[t0,t1]=tY(tJ),[t2,t4]=tY(tJ,{hasParent:!1,positionUpdateFns:new Set}),t3=(0,ef.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,E=tX(tJ,c),[j,k]=(0,ef.useState)(null),S=(0,ev.e)(t,e=>k(e)),[O,_]=(0,ef.useState)(null),C=tq(O),M=null!==(n=null==C?void 0:C.width)&&void 0!==n?n:0,A=null!==(r=null==C?void 0:C.height)&&void 0!==r?r:0,T="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],N=P.length>0,R={padding:T,boundary:P.filter(t7),altBoundary:N},{reference:D,floating:L,strategy:Z,x:F,y:V,placement:z,middlewareData:I,update:B}=tH({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tV,middleware:[tc({mainAxis:f+A,alignmentAxis:p}),x?tf({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?th():void 0,...R}):void 0,O?tU({element:O,padding:m}):void 0,x?ta({...R}):void 0,t9({arrowWidth:M,arrowHeight:A}),b?tu({strategy:"referenceHidden"}):void 0].filter(t8)});(0,eE.b)(()=>{D(E.anchor)},[D,E.anchor]);let H=null!==F&&null!==V,[U,W]=ne(z),q=null===(i=I.arrow)||void 0===i?void 0:i.x,$=null===(o=I.arrow)||void 0===o?void 0:o.y,Y=(null===(a=I.arrow)||void 0===a?void 0:a.centerOffset)!==0,[G,K]=(0,ef.useState)();(0,eE.b)(()=>{j&&K(window.getComputedStyle(j).zIndex)},[j]);let{hasParent:X,positionUpdateFns:Q}=t4(tJ,c),J=!X;(0,ef.useLayoutEffect)(()=>{if(!J)return Q.add(B),()=>{Q.delete(B)}},[J,Q,B]),(0,ef.useLayoutEffect)(()=>{J&&H&&Array.from(Q).reverse().forEach(e=>requestAnimationFrame(e))},[J,H,Q]);let ee={"data-side":U,"data-align":W,...w,ref:S,style:{...w.style,animation:H?void 0:"none",opacity:null!==(s=I.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,ef.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:H?`translate3d(${Math.round(F)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[null===(l=I.transformOrigin)||void 0===l?void 0:l.x,null===(u=I.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,ef.createElement)(t0,{scope:c,placedSide:U,onArrowChange:_,arrowX:q,arrowY:$,shouldHideArrow:Y},J?(0,ef.createElement)(t2,{scope:c,hasParent:!0,positionUpdateFns:Q},(0,ef.createElement)(ew.WV.div,ee)):(0,ef.createElement)(ew.WV.div,ee)))}),t5={top:"bottom",right:"left",bottom:"top",left:"right"},t6=(0,ef.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=t1("PopperArrow",n),o=t5[i.placedSide];return(0,ef.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,ef.createElement)(tW,(0,ep.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function t8(e){return void 0!==e}function t7(e){return null!==e}let t9=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=ne(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function ne(e){let[t,n="center"]=e.split("-");return[t,n]}let nt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,ef.useState)(null);return(0,ef.createElement)(tK,{scope:t,anchor:r,onAnchorChange:i},n)};var nn=n(6500);let nr=(0,ef.forwardRef)((e,t)=>(0,ef.createElement)(ew.WV.span,(0,ep.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}}))),[ni,no]=(0,em.b)("Tooltip",[tG]),na=tG(),ns="tooltip.open",[nl,nu]=ni("TooltipProvider"),nc="Tooltip",[nd,nf]=ni(nc),nh="TooltipTrigger",np=(0,ef.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=nf(nh,n),o=nu(nh,n),a=na(n),s=(0,ef.useRef)(null),l=(0,ev.e)(t,s,i.onTriggerChange),u=(0,ef.useRef)(!1),c=(0,ef.useRef)(!1),d=(0,ef.useCallback)(()=>u.current=!1,[]);return(0,ef.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,ef.createElement)(tQ,(0,ep.Z)({asChild:!0},a),(0,ef.createElement)(ew.WV.button,(0,ep.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,eb.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,eb.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,eb.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,eb.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,eb.M)(e.onBlur,i.onClose),onClick:(0,eb.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nm="TooltipPortal",[nv,ng]=ni(nm,{forceMount:void 0}),ny="TooltipContent",nb=(0,ef.forwardRef)((e,t)=>{let n=ng(ny,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=nf(ny,e.__scopeTooltip);return(0,ef.createElement)(ej.z,{present:r||a.open},a.disableHoverableContent?(0,ef.createElement)(nj,(0,ep.Z)({side:i},o,{ref:t})):(0,ef.createElement)(nx,(0,ep.Z)({side:i},o,{ref:t})))}),nx=(0,ef.forwardRef)((e,t)=>{let n=nf(ny,e.__scopeTooltip),r=nu(ny,e.__scopeTooltip),i=(0,ef.useRef)(null),o=(0,ev.e)(t,i),[a,s]=(0,ef.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,ef.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,ef.useCallback)((e,t)=>{let n=e.currentTarget,r=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),i="right"===r||"bottom"===r?-5:5;s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}(["right"===r||"left"===r?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),d(!0)},[d]);return(0,ef.useEffect)(()=>()=>f(),[f]),(0,ef.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,ef.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,ef.createElement)(nj,(0,ep.Z)({},e,{ref:o}))}),[nw,nE]=ni(nc,{isInside:!1}),nj=(0,ef.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=nf(ny,n),u=na(n),{onClose:c}=l;return(0,ef.useEffect)(()=>(document.addEventListener(ns,c),()=>document.removeEventListener(ns,c)),[c]),(0,ef.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,ef.createElement)(eQ.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,ef.createElement)(t3,(0,ep.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,ef.createElement)(eg.A4,null,r),(0,ef.createElement)(nw,{scope:n,isInside:!0},(0,ef.createElement)(nr,{id:l.contentId,role:"tooltip"},i||r))))}),nk=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=nu(nc,e.__scopeTooltip),u=na(t),[c,d]=(0,ef.useState)(null),f=(0,ek.M)(),h=(0,ef.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,ef.useRef)(!1),[g=!1,y]=(0,ex.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(ns))):l.onClose(),null==o||o(e)}}),b=(0,ef.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,ef.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,ef.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,ef.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,ef.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,ef.createElement)(nt,u,(0,ef.createElement)(nd,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,ef.useCallback)(()=>{l.isOpenDelayed?E():x()},[l.isOpenDelayed,E,x]),onTriggerLeave:(0,ef.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},nS=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=nf(nm,t);return(0,ef.createElement)(nv,{scope:t,forceMount:n},(0,ef.createElement)(ej.z,{present:n||o.open},(0,ef.createElement)(nn.h,{asChild:!0,container:i},r)))},nO=(0,eX.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),n_=ef.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,ed.jsx)(n,{ref:t,className:(0,eX.cx)(r,nO({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),nC=ef.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,ed.jsx)(n_,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eX.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nM=(0,eX.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),nA=ef.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ed.jsx)("div",{ref:t,className:nM({className:n,color:r}),...i})});var nT=n(93542);let nP=(void 0===nT||nT.env,"production"),nN=1/60*1e3,nR="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nD="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nR()),nN),nL=!0,nZ=!1,nF=!1,nV={delta:0,timestamp:0},nz=["read","update","preRender","render","postRender"],nI=nz.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnZ=!0),e),{}),nB=nz.reduce((e,t)=>{let n=nI[t];return e[t]=(e,t=!1,r=!1)=>(nZ||n$(),n.schedule(e,t,r)),e},{}),nH=nz.reduce((e,t)=>(e[t]=nI[t].cancel,e),{}),nU=nz.reduce((e,t)=>(e[t]=()=>nI[t].process(nV),e),{}),nW=e=>nI[e].process(nV),nq=e=>{nZ=!1,nV.delta=nL?nN:Math.max(Math.min(e-nV.timestamp,40),1),nV.timestamp=e,nF=!0,nz.forEach(nW),nF=!1,nZ&&(nL=!1,nD(nq))},n$=()=>{nZ=!0,nL=!0,nF||nD(nq)},nY=()=>nV,nG="undefined"!=typeof document,nK=nG?ef.useLayoutEffect:ef.useEffect;function nX(){let e=(0,ef.useRef)(!1);return nK(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nQ=(0,ef.createContext)(null);function nJ(e){let t=(0,ef.useRef)(null);return null===t.current&&(t.current=e()),t.current}class n0 extends ef.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function n1({children:e,isPresent:t}){let n=(0,ef.useId)(),r=(0,ef.useRef)(null),i=(0,ef.useRef)({width:0,height:0,top:0,left:0});return(0,ef.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -22,7 +22,7 @@ top: ${a}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),ef.createElement(n0,{isPresent:t,childRef:r,sizeRef:i},ef.cloneElement(e,{ref:r}))}let n2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nJ(n4),l=(0,ef.useId)(),u=(0,ef.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,ef.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),ef.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=ef.createElement(n1,{isPresent:n},e)),ef.createElement(nQ.Provider,{value:u},e)};function n4(){return new Map}let n3=(0,ef.createContext)({});function n5(e){return(0,ef.useEffect)(()=>()=>e(),[])}let n6=new Set;function n8(e,t,n){e||n6.has(t)||(console.warn(t),n&&console.warn(n),n6.add(t))}let n7=e=>e.key||"",n9=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",n8(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nX(),[t,n]=(0,ef.useState)(0),r=(0,ef.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,ef.useCallback)(()=>nB.postRender(r),[r]),t]}(),l=(0,ef.useContext)(n3).forceRender;l&&(s=l);let u=nX(),c=function(e){let t=[];return ef.Children.forEach(e,e=>{(0,ef.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,ef.useRef)(d),p=(0,ef.useRef)(new Map).current,m=(0,ef.useRef)(!0);if(nK(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n7(e);t.set(n,e)})}(c,p),h.current=d}),n5(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return ef.createElement(ef.Fragment,null,d.map(e=>ef.createElement(n2,{key:n7(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n7),g=c.map(n7),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,ef.createElement(n2,{key:n7(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:ef.createElement(n2,{key:n7(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==nP&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),ef.createElement(ef.Fragment,null,f.size?d:d.map(e=>(0,ef.cloneElement)(e)))},re=(0,ef.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rt=(0,ef.createContext)({}),rn=(0,ef.createContext)({strict:!1});function rr(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ri(e){return"string"==typeof e||Array.isArray(e)}function ro(e){return"object"==typeof e&&"function"==typeof e.start}let ra=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rs(e){return ro(e.animate)||ra.some(t=>ri(e[t]))}function rl(e){return!!(rs(e)||e.variants)}function ru(e){return Array.isArray(e)?e.join(" "):e}let rc=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rd={measureLayout:rc(["layout","layoutId","drag"]),animation:rc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:rc(["exit"]),drag:rc(["drag","dragControls"]),focus:rc(["whileFocus"]),hover:rc(["whileHover","onHoverStart","onHoverEnd"]),tap:rc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:rc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:rc(["whileInView","onViewportEnter","onViewportLeave"])},rf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rh=1;class rp extends ef.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rm=(0,ef.createContext)({}),rv=Symbol.for("motionComponentSymbol"),rg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ry(e){if("string"!=typeof e||e.includes("-"));else if(rg.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rb={},rx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rw=new Set(rx);function rE(e,{layout:t,layoutId:n}){return rw.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rb[e]||"opacity"===e)}let rj=e=>!!(null==e?void 0:e.getVelocity),rk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rS=(e,t)=>rx.indexOf(e)-rx.indexOf(t);function rO(e){return e.startsWith("--")}let r_=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rC=(e,t)=>n=>Math.max(Math.min(n,t),e),rM=e=>e%1?Number(e.toFixed(5)):e,rA=/(-)?([\d]*\.?[\d])+/g,rT=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rP=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function rN(e){return"string"==typeof e}let rR=e=>({test:t=>rN(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rD=rR("deg"),rL=rR("%"),rZ=rR("px"),rF=rR("vh"),rV=rR("vw"),rz=Object.assign(Object.assign({},rL),{parse:e=>rL.parse(e)/100,transform:e=>rL.transform(100*e)}),rI={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rB=Object.assign(Object.assign({},rI),{transform:rC(0,1)}),rH=Object.assign(Object.assign({},rI),{default:1}),rU={...rI,transform:Math.round},rW={borderWidth:rZ,borderTopWidth:rZ,borderRightWidth:rZ,borderBottomWidth:rZ,borderLeftWidth:rZ,borderRadius:rZ,radius:rZ,borderTopLeftRadius:rZ,borderTopRightRadius:rZ,borderBottomRightRadius:rZ,borderBottomLeftRadius:rZ,width:rZ,maxWidth:rZ,height:rZ,maxHeight:rZ,size:rZ,top:rZ,right:rZ,bottom:rZ,left:rZ,padding:rZ,paddingTop:rZ,paddingRight:rZ,paddingBottom:rZ,paddingLeft:rZ,margin:rZ,marginTop:rZ,marginRight:rZ,marginBottom:rZ,marginLeft:rZ,rotate:rD,rotateX:rD,rotateY:rD,rotateZ:rD,scale:rH,scaleX:rH,scaleY:rH,scaleZ:rH,skew:rD,skewX:rD,skewY:rD,distance:rZ,translateX:rZ,translateY:rZ,translateZ:rZ,x:rZ,y:rZ,z:rZ,perspective:rZ,transformPerspective:rZ,opacity:rB,originX:rz,originY:rz,originZ:rZ,zIndex:rU,fillOpacity:rB,strokeOpacity:rB,numOctaves:rU};function rq(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rO(e)){o[e]=n;continue}let r=rW[e],f=r_(n,r);if(rw.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(rS),t))a+=`${rk[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let r$=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rY(e,t,n){for(let r in t)rj(t[r])||rE(r,n)||(e[r]=t[r])}let rG=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rK(e){return rG.has(e)}let rX=e=>!rK(e);try{(s=require("@emotion/is-prop-valid").default)&&(rX=e=>e.startsWith("on")?!rK(e):s(e))}catch(e){}function rQ(e,t,n){return"string"==typeof e?e:rZ.transform(t+n*e)}let rJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},r0={offset:"strokeDashoffset",array:"strokeDasharray"};function r1(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rq(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rQ(t,e.x,e.width),i=rQ(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?rJ:r0;e[o.offset]=rZ.transform(-r);let a=rZ.transform(t),s=rZ.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let r2=()=>({...r$(),attrs:{}}),r4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function r3(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let r5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r6(e,t,n,r){for(let n in r3(e,t,void 0,r),t.attrs)e.setAttribute(r5.has(n)?n:r4(n),t.attrs[n])}function r8(e){let{style:t}=e,n={};for(let r in t)(rj(t[r])||rE(r,e))&&(n[r]=t[r]);return n}function r7(e){let t=r8(e);for(let n in e)rj(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function r9(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let ie=e=>Array.isArray(e),it=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),ir=e=>ie(e)?e[e.length-1]||0:e;function ii(e){let t=rj(e)?e.get():e;return it(t)?t.toValue():t}let io=e=>(t,n)=>{let r=(0,ef.useContext)(rt),i=(0,ef.useContext)(nQ),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=ii(o[e]);let{initial:a,animate:s}=e,l=rs(e),u=rl(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!ro(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=r9(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nJ(o)},ia={useVisualState:io({scrapeMotionValuesFromProps:r7,createRenderState:r2,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}r1(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r6(t,n)}})},is={useVisualState:io({scrapeMotionValuesFromProps:r8,createRenderState:r$})};function il(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function iu(e,t,n,r){(0,ef.useEffect)(()=>{let i=e.current;if(n&&i)return il(i,t,n,r)},[e,t,n,r])}function ic(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(l=B||(B={})).Animate="animate",l.Hover="whileHover",l.Tap="whileTap",l.Drag="whileDrag",l.Focus="whileFocus",l.InView="whileInView",l.Exit="exit";let id={pageX:0,pageY:0};function ih(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||id;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let ip=(e,t=!1)=>{let n=t=>e(t,ih(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},im=()=>nG&&null===window.onpointerdown,iv=()=>nG&&null===window.ontouchstart,ig=()=>nG&&null===window.onmousedown,iy={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ib={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ix(e){if(im());else if(iv())return ib[e];else if(ig())return iy[e];return e}function iw(e,t,n,r){return il(e,ix(t),ip(n,"pointerdown"===t),r)}function iE(e,t,n,r){return iu(e,ix(t),n&&ip(n,"pointerdown"===t),r)}function ij(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let ik=ij("dragHorizontal"),iS=ij("dragVertical");function iO(e){let t=!1;if("y"===e)t=iS();else if("x"===e)t=ik();else{let e=ik(),n=iS();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function i_(){let e=iO(!0);return!e||(e(),!1)}function iC(e,t,n){return(r,i)=>{!(!ic(r)||i_())&&(e.animationState&&e.animationState.setActive(B.Hover,t),n&&n(r,i))}}let iM=(e,t)=>!!t&&(e===t||iM(e,t.parentElement)),iA=(e,t)=>n=>t(e(n)),iT=(...e)=>e.reduce(iA),iP=new WeakMap,iN=new WeakMap,iR=e=>{let t=iP.get(e.target);t&&t(e)},iD=e=>{e.forEach(iR)},iL={some:0,all:1},iZ=e=>t=>(e(t),null),iF={inView:iZ(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,ef.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,ef.useEffect)(()=>{e&&r&&("production"!==nP&&n8(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(B.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,ef.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:iL[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;iN.has(n)||iN.set(n,{});let r=iN.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iD,{root:e,...t})),r[i]}(t);return iP.set(e,n),r.observe(e),()=>{iP.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(B.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])})(a,o.current,e,i)}),tap:iZ(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,ef.useRef)(!1),s=(0,ef.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(B.Tap,!1),!i_()}function d(t,r){c()&&(iM(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=iT(iw(window,"pointerup",d,l),iw(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(B.Tap,!0),t&&t(e,n))}iE(i,"pointerdown",o?h:void 0,l),n5(u)}),focus:iZ(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;iu(t,"focus",e?()=>{n&&n.setActive(B.Focus,!0)}:void 0),iu(t,"blur",e?()=>{n&&n.setActive(B.Focus,!1)}:void 0)}),hover:iZ(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){iE(r,"pointerenter",e||n?iC(r,!0,e):void 0,{passive:!e}),iE(r,"pointerleave",t||n?iC(r,!1,t):void 0,{passive:!t})})};function iV(){let e=(0,ef.useContext)(nQ);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,ef.useId)();return(0,ef.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iz(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var iB=function(){},iH=function(){};let iU=(e,t,n)=>Math.min(Math.max(n,e),t);function iW(e,t){return e*Math.sqrt(1-t*t)}let iq=["duration","bounce"],i$=["stiffness","damping","mass"];function iY(e,t){return t.some(t=>void 0!==e[t])}function iG(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iI(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!iY(e,i$)&&iY(e,iq)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;iB(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=iU(.05,1,a),e=iU(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/iW(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=iW(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iK,p=iK;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=iW(a,o);h=i=>n-Math.exp(-o*a*i)*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i)),p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(n-t)<=i;a.done=Math.abs(o)<=r&&s}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iG.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iK=e=>0,iX=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iQ=(e,t,n)=>-n*e+n*t+e,iJ=(e,t)=>n=>!!(rN(n)&&rP.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),i0=(e,t,n)=>r=>{if(!rN(r))return r;let[i,o,a,s]=r.match(rA);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},i1=rC(0,255),i2=Object.assign(Object.assign({},rI),{transform:e=>Math.round(i1(e))}),i4={test:iJ("rgb","red"),parse:i0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+i2.transform(e)+", "+i2.transform(t)+", "+i2.transform(n)+", "+rM(rB.transform(r))+")"},i3={test:iJ("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:i4.transform},i5={test:iJ("hsl","hue"),parse:i0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rL.transform(rM(t))+", "+rL.transform(rM(n))+", "+rM(rB.transform(r))+")"};function i6(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i8({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=i6(s,r,e+1/3),o=i6(s,r,e),a=i6(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let i7=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},i9=[i3,i4,i5],oe=e=>i9.find(t=>t.test(e)),ot=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,on=(e,t)=>{let n=oe(e),r=oe(t);iH(!!n,ot(e)),iH(!!r,ot(t));let i=n.parse(e),o=r.parse(t);n===i5&&(i=i8(i),n=i4),r===i5&&(o=i8(o),r=i4);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=i7(i[t],o[t],e));return a.alpha=iQ(i.alpha,o.alpha,e),n.transform(a)}},or={test:e=>i4.test(e)||i3.test(e)||i5.test(e),parse:e=>i4.test(e)?i4.parse(e):i5.test(e)?i5.parse(e):i3.parse(e),transform:e=>rN(e)?e:e.hasOwnProperty("red")?i4.transform(e):i5.transform(e)},oi="${c}",oo="${n}";function oa(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rT);r&&(n=r.length,e=e.replace(rT,oi),t.push(...r.map(or.parse)));let i=e.match(rA);return i&&(e=e.replace(rA,oo),t.push(...i.map(rI.parse))),{values:t,numColors:n,tokenised:e}}function os(e){return oa(e).values}function ol(e){let{values:t,numColors:n,tokenised:r}=oa(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,oc={test:function(e){var t,n,r,i;return isNaN(e)&&rN(e)&&(null!==(n=null===(t=e.match(rA))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(rT))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:os,createTransformer:ol,getAnimatableNone:function(e){let t=os(e);return ol(e)(t.map(ou))}},od=e=>"number"==typeof e;function of(e,t){return od(e)?n=>iQ(e,t,n):or.test(e)?on(e,t):ov(e,t)}let oh=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>of(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=of(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function om(e){let t=oc.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=oc.createTransformer(t),r=om(e),i=om(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?iT(oh(r.parsed,i.parsed),n):(iB(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},og=(e,t)=>n=>iQ(e,t,n);function oy(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;iH(o===t.length,"Both input and output ranges must be the same length"),iH(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?og:"string"==typeof r?or.test(r)?on:ov:Array.isArray(r)?oh:"object"==typeof r?op:void 0),a=e.length-1;for(let n=0;nn(iX(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=iX(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(iU(e[0],e[o-1],t)):s}let ob=e=>t=>1-e(1-t),ox=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ow=e=>t=>t*t*((e+1)*t-e),oE=4/11,oj=8/11,ok=e=>e,oS=e=>Math.pow(e,2),oO=ob(oS),o_=ox(oS),oC=e=>1-Math.sin(Math.acos(e)),oM=ob(oC),oA=ox(oM),oT=ow(1.525),oP=ob(oT),oN=ox(oT),oR=(e=>{let t=ow(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oD=4356/361,oL=35442/1805,oZ=16061/1805,oF=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return oy(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||o_).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oI={keyframes:oz,spring:iG,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function oB(e,t,n=0){return e-t-n}let oH=e=>{let t=({delta:t})=>e(t);return{start:()=>nB.update(t,!0),stop:()=>nH.update(t)}};function oU(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=oH,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iI(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oz;if(oI[e.type])return oI[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iG;return oz}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=oy([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=E?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?oB(t+-e,t,n):t-(e-t)+n}(l,x,d,E=b%2==0):(l=oB(l,x,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oW=e=>1e3*e,oq=(e,t)=>1-3*t+3*e,o$=(e,t)=>3*t-6*e,oY=e=>3*e,oG=(e,t,n)=>((oq(t,n)*e+o$(t,n))*e+oY(t))*e,oK=(e,t,n)=>3*oq(t,n)*e*e+2*o$(t,n)*e+oY(t),oX={linear:ok,easeIn:oS,easeInOut:o_,easeOut:oO,circIn:oC,circInOut:oA,circOut:oM,backIn:oT,backInOut:oN,backOut:oP,anticipate:oR,bounceIn:oV,bounceInOut:e=>e<.5?.5*(1-oF(1-2*e)):.5*oF(2*e-1)+.5,bounceOut:oF},oQ=e=>{if(Array.isArray(e)){iH(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return ok;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oG(.1*t,e,n);return o=>0===o||1===o?o:oG(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;let a=r+(t-i[--o])/(i[o+1]-i[o])*.1,s=oK(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oK(t,n,r);if(0===i)break;let o=oG(t,n,r)-e;t-=o/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a;let s=0;do(o=oG(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(iH(void 0!==oX[e],`Invalid easing type '${e}'`),oX[e]):e},oJ=e=>Array.isArray(e)&&"number"!=typeof e[0],o0=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&oc.test(t)&&!t.startsWith("url(")),o1=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),o2=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o4=()=>({type:"keyframes",ease:"linear",duration:.3}),o3=e=>({type:"keyframes",duration:.8,values:e}),o5={x:o1,y:o1,z:o1,rotate:o1,rotateX:o1,rotateY:o1,rotateZ:o1,scaleX:o2,scaleY:o2,scale:o2,opacity:o4,backgroundColor:o4,color:o4,default:o2},o6=(e,t)=>{let n;return n=ie(t)?o3:o5[e]||o5.default,{to:t,...n(t)}},o8=new Set(["brightness","contrast","saturate","opacity"]);function o7(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rA)||[];if(!r)return e;let i=n.replace(r,""),o=o8.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let o9=/([a-z-]*)\(.*?\)/g,ae=Object.assign(Object.assign({},oc),{getAnimatableNone:e=>{let t=e.match(o9);return t?t.map(o7).join(" "):e}}),at={...rW,color:or,backgroundColor:or,outlineColor:or,fill:or,stroke:or,borderColor:or,borderTopColor:or,borderRightColor:or,borderBottomColor:or,borderLeftColor:or,filter:ae,WebkitFilter:ae},an=e=>at[e];function ar(e,t){var n;let r=an(e);return r!==ae&&(r=oc),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let ai={current:!1};function ao(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(nH.read(r),e(o-t))};return nB.read(r,!0),()=>nH.read(r)}let aa=!1;function as(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function al(e){return"number"==typeof e?0:ar("",e)}function au(e,t){return e[t]||e.default||e}function ac(e,t,n,r={}){return ai.current&&(r={type:!1}),t.start(i=>{var o,a,s;let l,u;let c=function(e,t,n,r,i){let o=au(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=o0(e,n);"none"===a&&s&&"string"==typeof n?a=ar(e,n):as(a)&&"string"==typeof n?a=al(n):!Array.isArray(n)&&as(n)&&"string"==typeof a&&(n=al(a));let l=o0(e,a);return iB(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n,i;r=a,a=e,n=e-r,t=(i=nY().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oU({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...o6(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=oW(o.duration)),o.repeatDelay&&(a.repeatDelay=oW(o.repeatDelay)),e&&(a.ease=oJ(e)?e.map(oQ):oQ(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(iB(!aa,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),aa=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=ir(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),d=null!==(s=null!==(a=(au(o=r,e)||{}).delay)&&void 0!==a?a:o.delay)&&void 0!==s?s:0,f=()=>l=c();return d?u=ao(f,oW(d)):f(),()=>{u&&u(),l&&l.stop()}})}let ad=e=>/^\-?\d*\.?\d+$/.test(e),af=e=>/^0[^.\s]+$/.test(e);function ah(e,t){-1===e.indexOf(t)&&e.push(t)}function ap(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class am{constructor(){this.subscriptions=[]}add(e){return ah(this.subscriptions,e),()=>ap(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class ag{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new am,this.velocityUpdateSubscribers=new am,this.renderSubscribers=new am,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nY();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nB.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nB.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=av(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function ay(e){return new ag(e)}let ab=e=>t=>t.test(e),ax=[rI,rZ,rL,rD,rV,rF,{test:e=>"auto"===e,parse:e=>e}],aw=e=>ax.find(ab(e)),aE=[...ax,or,oc],aj=e=>aE.find(ab(e));function ak(e,t,n){let r=e.getProps();return r9(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function aS(e){return!!(rj(e)&&e.add)}function aO(e,t,n={}){var r;let i=ak(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>a_(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(aC).forEach((e,r)=>{a.push(aO(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function a_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&rw.has(t)&&(o={...o,type:!1,delay:0});let s=ac(t,r,i,o);aS(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=ak(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=ir(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ay(n))}}(e,s)})}function aC(e,t){return e.sortNodePosition(t)}let aM=[B.Animate,B.InView,B.Focus,B.Hover,B.Tap,B.Drag,B.Exit],aA=[...aM].reverse(),aT=aM.length;function aP(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let aN={animation:iZ(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>aO(e,t,n)));else if("string"==typeof t)r=aO(e,t,n);else{let i="function"==typeof t?ak(e,t,n.custom):t;r=a_(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[B.Animate]:aP(!0),[B.InView]:aP(),[B.Hover]:aP(),[B.Tap]:aP(),[B.Drag]:aP(),[B.Focus]:aP(),[B.Exit]:aP()},r=!0,i=(t,n)=>{let r=ak(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],k=j.reduce(i,{});!1===b&&(k={});let{prevResolvedValues:S={}}=v,O={...S,...k},_=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in O){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?ie(t)&&ie(n)?!iz(t,n)||w?_(e):v.protectedKeys[e]=!0:void 0!==t?_(e):f.add(e):void 0!==t&&f.has(e)?_(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),ro(t)&&(0,ef.useEffect)(()=>t.subscribe(e),[t])}),exit:iZ(e=>{let{custom:t,visualElement:n}=e,[r,i]=iV(),o=(0,ef.useContext)(nQ);(0,ef.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(B.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},aR=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),aD=e=>aR(e)&&e.hasOwnProperty("z"),aL=(e,t)=>Math.abs(e-t);function aZ(e,t){return od(e)&&od(t)?aL(e,t):aR(e)&&aR(t)?Math.sqrt(Math.pow(aL(e.x,t.x),2)+Math.pow(aL(e.y,t.y),2)+Math.pow(aD(e)&&aD(t)?aL(e.z,t.z):0,2)):void 0}class aF{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=aI(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aZ(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nY();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=aV(t,this.transformPagePoint),ic(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nB.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=aI(aV(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=aV(ih(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=nY();this.history=[{...i,timestamp:o}];let{onSessionStart:a}=t;a&&a(e,aI(r,this.history)),this.removeListeners=iT(iw(window,"pointermove",this.handlePointerMove),iw(window,"pointerup",this.handlePointerUp),iw(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),nH.update(this.updatePoint)}}function aV(e,t){return t?{point:t(e.point)}:e}function az(e,t){return{x:e.x-t.x,y:e.y-t.y}}function aI({point:e},t){return{point:e,delta:az(e,aB(t)),offset:az(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=aB(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oW(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function aB(e){return e[e.length-1]}function aH(e){return e.max-e.min}function aU(e,t=0,n=.01){return aZ(e,t)({translate:0,scale:1,origin:0,originPoint:0}),a1=()=>({x:a0(),y:a0()}),a2=()=>({min:0,max:0}),a4=()=>({x:a2(),y:a2()});function a3(e){return[e("x"),e("y")]}function a5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function a6(e){return void 0===e||1===e}function a8({scale:e,scaleX:t,scaleY:n}){return!a6(e)||!a6(t)||!a6(n)}function a7(e){return a8(e)||a9(e)||e.z||e.rotate||e.rotateX||e.rotateY}function a9(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function se(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function st(e,t=0,n=1,r,i){e.min=se(e.min,t,n,r,i),e.max=se(e.max,t,n,r,i)}function sn(e,{x:t,y:n}){st(e.x,t.translate,t.scale,t.originPoint),st(e.y,n.translate,n.scale,n.originPoint)}function sr(e,t){e.min=e.min+t,e.max=e.max+t}function si(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iQ(e.min,e.max,o);st(e,t[n],t[r],a,t.scale)}let so=["x","scaleX","originX"],sa=["y","scaleY","originY"];function ss(e,t){si(e.x,t,so),si(e.y,t,sa)}function sl(e,t){return a5(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let su=new WeakMap;class sc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=a4(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new aF(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(ih(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iO(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),a3(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rL.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=aH(i);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(B.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(B.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iQ(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&rr(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:aK(e.x,n,i),y:aK(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aQ(e,"left","right"),y:aQ(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&a3(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rr(t))return!1;let r=t.current;iH(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=sl(e,n),{scroll:i}=t;return i&&(sr(r.x,i.x),sr(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:aX((e=i.layout.actual).x,o.x),y:aX(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=a5(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(a3(a=>{var l;if(!sd(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ac(e,n,0,t)}stopAnimation(){a3(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){a3(t=>{let{drag:n}=this.getProps();if(!sd(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iQ(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rr(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};a3(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=aH(e),i=aH(t);return i>r?n=iX(t.min,t.max-r,e.min):r>i&&(n=iX(e.min,e.max-i,t.min)),iU(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),a3(e=>{if(!sd(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iQ(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;su.set(this.visualElement,this);let t=iw(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rr(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let o=il(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(a3(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),null==a||a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function sd(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let sf={pan:iZ(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=(0,ef.useRef)(null),{transformPagePoint:a}=(0,ef.useContext)(re),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{o.current=null,n&&n(e,t)}};(0,ef.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(s)}),iE(i,"pointerdown",(e||t||n||r)&&function(e){o.current=new aF(e,s,{transformPagePoint:a})}),n5(()=>o.current&&o.current.end())}),drag:iZ(function(e){let{dragControls:t,visualElement:n}=e,r=nJ(()=>new sc(n));(0,ef.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,ef.useEffect)(()=>r.addListeners(),[r])})};function sh(e){return"string"==typeof e&&e.startsWith("var(--")}let sp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sm(e,t,n=1){iH(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=sp.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():sh(i)?sm(i,t,n+1):i}let sv=new Set(["width","height","top","left","right","bottom","x","y"]),sg=e=>sv.has(e),sy=e=>Object.keys(e).some(sg),sb=(e,t)=>{e.set(t,!1),e.set(t)},sx=e=>e===rI||e===rZ;(u=H||(H={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let sw=(e,t)=>parseFloat(e.split(", ")[t]),sE=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sw(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sw(t[1],e):0}},sj=new Set(["x","y","z"]),sk=rx.filter(e=>!sj.has(e)),sS={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sE(4,13),y:sE(5,14)},sO=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=sS[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{sb(t.getValue(n),s[n]),e[n]=sS[n](l,o)}),e},s_=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(sg),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=aw(c),f=t[i];if(ie(f)){let e=f.length,t=null===f[0]?1:0;d=aw(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],sb(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=sO(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nG&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},sC=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!sh(t))return;let n=sm(t,r);n&&e.set(n)}),t){let e=t[i];if(!sh(e))continue;let o=sm(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,sy(i)?s_(e,i,n,o):{target:i,transitionEnd:o}},sM={current:null},sA={current:!1},sT=Object.keys(rd),sP=sT.length,sN=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sR{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>nB.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rs(t),this.isVariantNode=rl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&rj(t)&&(t.set(o[e],!1),aS(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&rj(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sA.current||function(){if(sA.current=!0,nG){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sM.current=e.matches;e.addListener(t),t()}else sM.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sM.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),nH.update(this.notifyUpdate),nH.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&nB.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==nP&&n&&t&&iH(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):a4()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ay(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=r9(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rj(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new am),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let sD=["initial",...aM],sL=sD.length;class sZ extends sR{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;sry(e)?new sV(t,{enableHardwareAcceleration:!1}):new sF(t,{enableHardwareAcceleration:!0});function sI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sB={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rZ.test(e))return e;e=parseFloat(e)}let n=sI(e,t.target.x),r=sI(e,t.target.y);return`${n}% ${r}%`}},sH="_$css",sU={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(sp,e=>(o.push(e),sH)));let a=oc.parse(e);if(a.length>5)return r;let s=oc.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iQ(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sH,()=>{let t=o[e];return e++,t})}return f}};class sW extends ef.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rb,sq),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||nB.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sq={borderRadius:{...sB,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sB,borderTopRightRadius:sB,borderBottomLeftRadius:sB,borderBottomRightRadius:sB,boxShadow:sU},s$=["TopLeft","TopRight","BottomLeft","BottomRight"],sY=s$.length,sG=e=>"string"==typeof e?parseFloat(e):e,sK=e=>"number"==typeof e||rZ.test(e);function sX(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sQ=s0(0,.5,oM),sJ=s0(.5,.95,ok);function s0(e,t,n){return r=>rt?1:n(iX(e,t,r))}function s1(e,t){e.min=t.min,e.max=t.max}function s2(e,t){s1(e.x,t.x),s1(e.y,t.y)}function s4(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function s3(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(rL.test(t)&&(t=parseFloat(t),t=iQ(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=iQ(o.min,o.max,r);e===o&&(s-=t),e.min=s4(e.min,t,n,s,i),e.max=s4(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let s5=["x","scaleX","originX"],s6=["y","scaleY","originY"];function s8(e,t,n,r){s3(e.x,t,s5,null==n?void 0:n.x,null==r?void 0:r.x),s3(e.y,t,s6,null==n?void 0:n.y,null==r?void 0:r.y)}function s7(e){return 0===e.translate&&1===e.scale}function s9(e){return s7(e.x)&&s7(e.y)}function le(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function lt(e){return aH(e.x)/aH(e.y)}class ln{constructor(){this.members=[]}add(e){ah(this.members,e),e.scheduleRender()}remove(e){if(ap(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lr(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let li=(e,t)=>e.depth-t.depth;class lo{constructor(){this.children=[],this.isDirty=!1}add(e){ah(this.children,e),this.isDirty=!0}remove(e){ap(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(li),this.isDirty=!1,this.children.forEach(e)}}let la=["","X","Y","Z"];function ls({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(lp),this.nodes.forEach(lm)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=ao(r,250),rf.hasAnimatedSinceResize&&(rf.hasAnimatedSinceResize=!1,this.nodes.forEach(lh))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:lw,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!le(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...au(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||lh(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,nH.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(lv))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));lk(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lx));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;ly(a.x,e.x,f),ly(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(aG(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,lb(r.x,d.x,s.x,f),lb(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iQ(0,null!==(a=n.opacity)&&void 0!==a?a:1,sQ(r)),e.opacityExit=iQ(null!==(s=t.opacity)&&void 0!==s?s:1,0,sJ(r))):o&&(e.opacity=iQ(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{rf.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rj(e)?e:ay(e);return ac("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&lS(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a4();let t=aH(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=aH(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}s2(t,n),ss(t,i),aq(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ln),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ld),this.root.sharedNodes.clear()}}}function ll(e){e.updateLayout()}function lu(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?a3(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=aH(n);n.min=t[e].min,n.max=n.min+r}):lS(r,i.layout,t)&&a3(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=aH(t[e]);n.max=n.min+r});let o=a1();aq(o,t,i.layout);let a=a1();i.isShared?aq(a,e.applyTransform(n,!0),i.measured):aq(a,t,i.layout);let s=!s9(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=a4();aG(n,i.layout,e.layout);let o=a4();aG(o,t,r.actual),le(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function lc(e){e.clearSnapshot()}function ld(e){e.clearMeasurements()}function lf(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function lp(e){e.resolveTargetDelta()}function lm(e){e.calcProjection()}function lv(e){e.resetRotation()}function lg(e){e.removeLeadSnapshot()}function ly(e,t,n){e.translate=iQ(t.translate,0,n),e.scale=iQ(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lb(e,t,n,r){e.min=iQ(t.min,n.min,r),e.max=iQ(t.max,n.max,r)}function lx(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lw={duration:.45,ease:[.4,0,.1,1]};function lE(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function lj(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lk(e){lj(e.x),lj(e.y)}function lS(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aZ(e,t)<=n}(lt(t),lt(n),.2)}let lO=ls({attachResizeListener:(e,t)=>il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),l_={current:void 0},lC=ls({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!l_.current){let e=new lO(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),l_.current=e}return l_.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lM={...aN,...iF,...sf,measureLayout:function(e){let[t,n]=iV(),r=(0,ef.useContext)(n3);return ef.createElement(sW,{...e,layoutGroup:r,switchLayoutGroup:(0,ef.useContext)(rm),isPresent:t,safeToRemove:n})}},lA=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?rd.projectionNodeConstructor=e[t]:rd[t].Component=e[t]}(e);let a=(0,ef.forwardRef)(function(a,s){var l;let u={...(0,ef.useContext)(re),...a,layoutId:function({layoutId:e}){let t=(0,ef.useContext)(n3).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(rs(e)){let{initial:t,animate:n}=e;return{initial:!1===t||ri(t)?t:void 0,animate:ri(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,ef.useContext)(rt));return(0,ef.useMemo)(()=>({initial:t,animate:n}),[ru(t),ru(n)])}(a),h=c?void 0:nJ(()=>{if(rf.hasEverUpdated)return rh++}),p=i(a,c);if(!c&&nG){f.visualElement=function(e,t,n,r){let i=(0,ef.useContext)(rt).visualElement,o=(0,ef.useContext)(rn),a=(0,ef.useContext)(nQ),s=(0,ef.useContext)(re).reducedMotion,l=(0,ef.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return nK(()=>{u&&u.render()}),(0,ef.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nK(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,ef.useContext)(rn).strict,i=(0,ef.useContext)(rm);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||rd.projectionNodeConstructor,i))}return ef.createElement(rp,{visualElement:f.visualElement,props:u},d,ef.createElement(rt.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,ef.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rr(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[rv]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){return{...ry(e)?ia:is,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=(ry(t)?function(e,t){let n=(0,ef.useMemo)(()=>{let n=r2();return r1(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rY(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rY(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,ef.useMemo)(()=>{let r=r$();return rq(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r})(n,o,a),l={...function(e,t,n){let r={};for(let i in e)(rX(i)||!0===n&&rK(i)||!t&&!rK(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,ef.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,lM,sz,lC));function lT(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,ef.useState)(!1);return{open:(0,ef.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,ef.useCallback)(e=>{n?n(e):i(e)},[n])}}let lP={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function lN(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=lT({open:i,onOpenChange:o});return(0,ed.jsxs)(nk,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,ed.jsx)(np,{asChild:!0,children:t}),(0,ed.jsx)(n9,{children:n&&u?(0,ed.jsx)(nS,{forceMount:!0,children:(0,ed.jsx)(nb,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,ed.jsx)(lA.div,{variants:lP,initial:"init",animate:"show",exit:"exit",className:(0,eX.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,ed.jsx)("div",{className:(0,eX.cx)("py-1 px-2","max-w-xs","overflow-hidden",nM()),children:(0,ed.jsx)(nC,{size:"12",children:n})})})})}):null})]})}let lR=(0,eX.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lD=ef.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,ed.jsx)(lN,{content:u,align:c,side:d,children:(0,ed.jsx)("button",{ref:t,type:h,disabled:a,className:lR({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,ed.jsx)("button",{ref:t,disabled:a,type:h,className:lR({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lL=n(95685);(0,eX.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lZ=(0,eX.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lF=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)("div",{...r,className:lZ({className:n}),ref:t})});var lV=n(86029);let lz="Avatar",[lI,lB]=(0,em.b)(lz),[lH,lU]=lI(lz),lW=(0,ef.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,ef.useState)("idle");return(0,ef.createElement)(lH,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({},r,{ref:t})))}),lq=(0,ef.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lU("AvatarImage",n),s=function(e){let[t,n]=(0,ef.useState)("idle");return(0,ef.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lV.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,eE.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,ef.createElement)(ew.WV.img,(0,ep.Z)({},o,{ref:t,src:r})):null}),l$=(0,ef.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lU("AvatarFallback",n),[a,s]=(0,ef.useState)(void 0===r);return(0,ef.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,ef.createElement)(ew.WV.span,(0,ep.Z)({},i,{ref:t})):null}),lY=(0,eX.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lG=(0,eX.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lK=ef.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,ed.jsx)("div",{className:(0,eX.cx)("relative h-fit w-fit",c),children:(0,ed.jsxs)(lW,{...d,ref:t,className:lY({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,ed.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,ed.jsx)(lq,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,ed.jsx)(l$,{className:lG({size:o}),children:i})]})})}),lX=(0,eX.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lQ=ef.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:o,className:a,...s}=e;return(0,ed.jsx)("div",{...s,className:lX({variant:n,size:r,interactive:i,rounded:o,className:a}),ref:t})}),lJ=ef.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,ed.jsx)("pre",{children:(0,ed.jsx)("code",{className:(0,eX.cx)(nO({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),l0=(0,eX.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),l1=ef.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,ed.jsx)("code",{...i,className:l0({color:n,className:r}),ref:t})}),l2=(0,eX.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),l4=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)("div",{ref:t,className:l2({className:n}),...r})});(0,eX.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let l3=(0,eX.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),l5=ef.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,ed.jsx)("div",{ref:t,...o,className:l3({size:i,pad:r,className:n})})});var l6=n(72331);let l8=(0,ef.createContext)(void 0);function l7(e){let t=(0,ef.useContext)(l8);return e||t||"ltr"}let l9="ScrollArea",[ue,ut]=(0,em.b)(l9),[un,ur]=ue(l9),ui=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,ef.useState)(null),[u,c]=(0,ef.useState)(null),[d,f]=(0,ef.useState)(null),[h,p]=(0,ef.useState)(null),[m,v]=(0,ef.useState)(null),[g,y]=(0,ef.useState)(0),[b,x]=(0,ef.useState)(0),[w,E]=(0,ef.useState)(!1),[j,k]=(0,ef.useState)(!1),S=(0,ev.e)(t,e=>l(e)),O=l7(i);return(0,ef.createElement)(un,{scope:n,type:r,dir:O,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:j,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:x},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({dir:O},a,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),uo=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=ur("ScrollAreaViewport",n),a=(0,ef.useRef)(null),s=(0,ev.e)(t,a,o.onViewportChange);return(0,ef.createElement)(ef.Fragment,null,(0,ef.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,ef.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ua="ScrollAreaScrollbar",us=(0,ef.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=ur(ua,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,ef.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,ef.createElement)(ul,(0,ep.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,ef.createElement)(uu,(0,ep.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,ef.createElement)(uc,(0,ep.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,ef.createElement)(ud,(0,ep.Z)({},r,{ref:t})):null}),ul=(0,ef.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=ur(ua,e.__scopeScrollArea),[o,a]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,ef.createElement)(ej.z,{present:n||o},(0,ef.createElement)(uc,(0,ep.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),uu=(0,ef.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=ur(ua,e.__scopeScrollArea),a="horizontal"===e.orientation,s=uM(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,ef.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,ef.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,ef.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,ef.createElement)(ej.z,{present:r||"hidden"!==l},(0,ef.createElement)(ud,(0,ep.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,eb.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,eb.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),uc=(0,ef.forwardRef)((e,t)=>{let n=ur(ua,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,ef.useState)(!1),s="horizontal"===e.orientation,l=uM(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=ur(ua,e.__scopeScrollArea),o=(0,ef.useRef)(null),a=(0,ef.useRef)(0),[s,l]=(0,ef.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uk(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=uS(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return u_([a,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,a.current,s,t)}return"horizontal"===n?(0,ef.createElement)(uf,(0,ep.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=uO(i.viewport.scrollLeft,s,i.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,ef.createElement)(uh,(0,ep.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=uO(i.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),uf=(0,ef.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=ur(ua,e.__scopeScrollArea),[a,s]=(0,ef.useState)(),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l,o.onScrollbarXChange);return(0,ef.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,ef.createElement)(uv,(0,ep.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":uS(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:uj(a.paddingLeft),paddingEnd:uj(a.paddingRight)}})}}))}),uh=(0,ef.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=ur(ua,e.__scopeScrollArea),[a,s]=(0,ef.useState)(),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l,o.onScrollbarYChange);return(0,ef.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,ef.createElement)(uv,(0,ep.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":uS(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:uj(a.paddingTop),paddingEnd:uj(a.paddingBottom)}})}}))}),[up,um]=ue(ua),uv=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=ur(ua,n),[p,m]=(0,ef.useState)(null),v=(0,ev.e)(t,e=>m(e)),g=(0,ef.useRef)(null),y=(0,ef.useRef)(""),b=h.viewport,x=r.content-r.viewport,w=(0,lV.W)(c),E=(0,lV.W)(l),j=uM(d,10);function k(e){g.current&&u({x:e.clientX-g.current.left,y:e.clientY-g.current.top})}return(0,ef.useEffect)(()=>{let e=e=>{let t=e.target;(null==p?void 0:p.contains(t))&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),(0,ef.useEffect)(E,[r,E]),uA(p,j),uA(h.content,j),(0,ef.createElement)(up,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lV.W)(o),onThumbPointerUp:(0,lV.W)(a),onThumbPositionChange:E,onThumbPointerDown:(0,lV.W)(s)},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,eb.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(e))}),onPointerMove:(0,eb.M)(e.onPointerMove,k),onPointerUp:(0,eb.M)(e.onPointerUp,e=>{e.target.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),ug="ScrollAreaThumb",uy=(0,ef.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=um(ug,e.__scopeScrollArea);return(0,ef.createElement)(ej.z,{present:n||i.hasThumb},(0,ef.createElement)(ub,(0,ep.Z)({ref:t},r)))}),ub=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=ur(ug,n),a=um(ug,n),{onThumbPositionChange:s}=a,l=(0,ev.e)(t,e=>a.onThumbChange(e)),u=(0,ef.useRef)(),c=uM(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,ef.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uC(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,eb.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,eb.M)(e.onPointerUp,a.onThumbPointerUp)}))}),ux="ScrollAreaCorner",uw=(0,ef.forwardRef)((e,t)=>{let n=ur(ux,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,ef.createElement)(uE,(0,ep.Z)({},e,{ref:t})):null}),uE=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=ur(ux,n),[o,a]=(0,ef.useState)(0),[s,l]=(0,ef.useState)(0),u=!!(o&&s);return uA(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),uA(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),u?(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function uj(e){return e?parseInt(e,10):0}function uk(e,t){let n=e/t;return isNaN(n)?0:n}function uS(e){let t=uk(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function uO(e,t,n="ltr"){let r=uS(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,a]:[-1*a,0]);return u_([0,a],[0,o-r])(s)}function u_(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let uC=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uM(e,t){let n=(0,lV.W)(e),r=(0,ef.useRef)(0);return(0,ef.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,ef.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uA(e,t){let n=(0,lV.W)(t);(0,eE.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let uT=ef.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,ed.jsxs)(ui,{className:(0,eX.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,ed.jsx)(uo,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,ed.jsx)(us,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,ed.jsx)(uy,{className:(0,eX.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,ed.jsx)(us,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,ed.jsx)(uy,{className:(0,eX.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,ed.jsx)(uw,{className:"bg-black/70"})]})}),uP=(0,eX.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uN={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},uR=ef.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=lT({open:i,onOpenChange:o});return(0,ed.jsxs)(l6.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,ed.jsx)(l6.xz,{asChild:!0,children:n}),(0,ed.jsx)(n9,{children:v?(0,ed.jsx)(l6.h_,{forceMount:!0,children:(0,ed.jsx)(l6.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,ed.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,ed.jsx)(l6.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,ed.jsx)(lA.div,{variants:uN,initial:"init",animate:"show",exit:"exit",className:uP(u),children:(0,ed.jsx)(uZ,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uD(e){let{className:t}=e;return(0,ed.jsx)(l6.x8,{asChild:!0,type:"button",children:(0,ed.jsx)("div",{className:(0,eX.cx)("appearance-none",t),children:(0,ed.jsx)(lD,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,ed.jsx)(lL.QN4,{})})})})}let uL=(0,eX.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[nM()],none:""}},defaultVariants:{variant:"default"}}),uZ=ef.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,ef.useState)(0),r=(0,ef.useRef)(null);return(0,ef.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,ed.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uL(s),children:[i&&(0,ed.jsx)(l6.Dx,{className:uF({showSeparator:h}),children:i}),(0,ed.jsx)(uT,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,ed.jsxs)("div",{ref:d,className:(0,eX.cx)("p-4",u),children:[o&&(0,ed.jsx)(l6.dk,{className:uV(),children:o}),n]})}),a&&(0,ed.jsx)(uz,{separator:h,children:a}),(0,ed.jsx)(uD,{className:l||"absolute top-3.5 right-2"})]})}),uF=(0,eX.j)(["pt-4 pb-2 px-4 w-full",nO({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uV=(0,eX.j)([nO({color:"subtle",size:"14"}),"py-2"]);function uz(e){let{children:t,separator:n=!0}=e;return(0,ed.jsx)("div",{className:(0,eX.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uI=n(55070),uB=n(77334);let uH="rovingFocusGroup.onEntryFocus",uU={bubbles:!1,cancelable:!0},uW="RovingFocusGroup",[uq,u$,uY]=ey(uW),[uG,uK]=(0,em.b)(uW,[uY]),[uX,uQ]=uG(uW),uJ=(0,ef.forwardRef)((e,t)=>(0,ef.createElement)(uq.Provider,{scope:e.__scopeRovingFocusGroup},(0,ef.createElement)(uq.Slot,{scope:e.__scopeRovingFocusGroup},(0,ef.createElement)(u0,(0,ep.Z)({},e,{ref:t}))))),u0=(0,ef.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,ef.useRef)(null),f=(0,ev.e)(t,d),h=l7(o),[p=null,m]=(0,ex.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,ef.useState)(!1),y=(0,lV.W)(u),b=u$(n),x=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uH,y),()=>e.removeEventListener(uH,y)},[y]),(0,ef.createElement)(uX,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,ef.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,ef.useCallback)(()=>g(!0),[])},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,eb.M)(e.onMouseDown,()=>{x.current=!0}),onFocus:(0,eb.M)(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(uH,uU);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);u4([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current))}}x.current=!1}),onBlur:(0,eb.M)(e.onBlur,()=>g(!1))})))}),u1=(0,ef.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,ek.M)(),s=uQ("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=u$(n);return(0,ef.createElement)(uq.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,eb.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,eb.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return u2[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=s.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>u4(i))}})})))}),u2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function u4(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var u3=n(49732),u5=n(70506);let u6=["Enter"," "],u8=["ArrowUp","PageDown","End"],u7=["ArrowDown","PageUp","Home",...u8],u9={ltr:[...u6,"ArrowRight"],rtl:[...u6,"ArrowLeft"]},ce={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ct="Menu",[cn,cr,ci]=ey(ct),[co,ca]=(0,em.b)(ct,[ci,tG,uK]),cs=tG(),cl=uK(),[cu,cc]=co(ct),[cd,cf]=co(ct),ch=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=cs(n);return(0,ef.createElement)(tQ,(0,ep.Z)({},i,r,{ref:t}))}),cp="MenuPortal",[cm,cv]=co(cp,{forceMount:void 0}),cg="MenuContent",[cy,cb]=co(cg),cx=(0,ef.forwardRef)((e,t)=>{let n=cv(cg,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=cc(cg,e.__scopeMenu),a=cf(cg,e.__scopeMenu);return(0,ef.createElement)(cn.Provider,{scope:e.__scopeMenu},(0,ef.createElement)(ej.z,{present:r||o.open},(0,ef.createElement)(cn.Slot,{scope:e.__scopeMenu},a.modal?(0,ef.createElement)(cw,(0,ep.Z)({},i,{ref:t})):(0,ef.createElement)(cE,(0,ep.Z)({},i,{ref:t})))))}),cw=(0,ef.forwardRef)((e,t)=>{let n=cc(cg,e.__scopeMenu),r=(0,ef.useRef)(null),i=(0,ev.e)(t,r);return(0,ef.useEffect)(()=>{let e=r.current;if(e)return(0,u3.R)(e)},[]),(0,ef.createElement)(cj,(0,ep.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,eb.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cE=(0,ef.forwardRef)((e,t)=>{let n=cc(cg,e.__scopeMenu);return(0,ef.createElement)(cj,(0,ep.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cj=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=cc(cg,n),v=cf(cg,n),g=cs(n),y=cl(n),b=cr(n),[x,w]=(0,ef.useState)(null),E=(0,ef.useRef)(null),j=(0,ev.e)(t,E,m.onContentChange),k=(0,ef.useRef)(0),S=(0,ef.useRef)(""),O=(0,ef.useRef)(0),_=(0,ef.useRef)(null),C=(0,ef.useRef)("right"),M=(0,ef.useRef)(0),A=h?u5.Z:ef.Fragment,T=h?{as:eg.g7,allowPinchZoom:!0}:void 0,P=e=>{var t,n;let r=S.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};(0,ef.useEffect)(()=>()=>window.clearTimeout(k.current),[]),(0,uI.EW)();let N=(0,ef.useCallback)(e=>{var t,n,r;return C.current===(null===(t=_.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=_.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,ef.createElement)(cy,{scope:n,searchRef:S,onItemEnter:(0,ef.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,ef.useCallback)(e=>{var t;N(e)||(null===(t=E.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,ef.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:O,onPointerGraceIntentChange:(0,ef.useCallback)(e=>{_.current=e},[])},(0,ef.createElement)(A,T,(0,ef.createElement)(uB.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,eb.M)(o,e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,ef.createElement)(eQ.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,ef.createElement)(uJ,(0,ep.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,ef.createElement)(t3,(0,ep.Z)({role:"menu","aria-orientation":"vertical","data-state":cF(m.open),dir:v.dir},g,p,{ref:j,style:{outline:"none",...p.style},onKeyDown:(0,eb.M)(p.onKeyDown,e=>{let t=e.target.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));let i=E.current;if(e.target!==i||!u7.includes(e.key))return;e.preventDefault();let o=b().filter(e=>!e.disabled).map(e=>e.ref.current);u8.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,eb.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),S.current="")}),onPointerMove:(0,eb.M)(e.onPointerMove,cz(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?"right":"left";C.current=t,M.current=e.clientX}}))})))))))}),ck=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({role:"group"},r,{ref:t}))}),cS=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},r,{ref:t}))}),cO="MenuItem",c_="menu.itemSelect",cC=(0,ef.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,ef.useRef)(null),a=cf(cO,e.__scopeMenu),s=cb(cO,e.__scopeMenu),l=(0,ev.e)(t,o),u=(0,ef.useRef)(!1);return(0,ef.createElement)(cM,(0,ep.Z)({},i,{ref:l,disabled:n,onClick:(0,eb.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(c_,{bubbles:!0,cancelable:!0});e.addEventListener(c_,e=>null==r?void 0:r(e),{once:!0}),(0,ew.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,eb.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u6.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),cM=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=cb(cO,n),s=cl(n),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l),[c,d]=(0,ef.useState)(!1),[f,h]=(0,ef.useState)("");return(0,ef.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,ef.createElement)(cn.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,ef.createElement)(u1,(0,ep.Z)({asChild:!0},s,{focusable:!r}),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,eb.M)(e.onPointerMove,cz(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,eb.M)(e.onPointerLeave,cz(e=>a.onItemLeave(e))),onFocus:(0,eb.M)(e.onFocus,()=>d(!0)),onBlur:(0,eb.M)(e.onBlur,()=>d(!1))}))))}),[cA,cT]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,ef.createElement)(cN,{scope:e.__scopeMenu,checked:n},(0,ef.createElement)(cC,(0,ep.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cV(n),onSelect:(0,eb.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},co("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cP=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,lV.W)(r);return(0,ef.createElement)(cA,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,ef.createElement)(ck,(0,ep.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cN,cR]=co(cP,{checked:!1}),[cD,cL]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cR(cP,n);return(0,ef.createElement)(ej.z,{present:r||o.checked},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({},i,{ref:t,"data-state":cV(o.checked)})))},co("MenuSub")),cZ="MenuSubTrigger";function cF(e){return e?"open":"closed"}function cV(e){return e?"checked":"unchecked"}function cz(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=cc(cZ,e.__scopeMenu),r=cf(cZ,e.__scopeMenu),i=cL(cZ,e.__scopeMenu),o=cb(cZ,e.__scopeMenu),a=(0,ef.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,ef.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,ef.useEffect)(()=>c,[c]),(0,ef.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,ef.createElement)(ch,(0,ep.Z)({asChild:!0},u),(0,ef.createElement)(cM,(0,ep.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cF(n.open)},e,{ref:(0,ev.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,eb.M)(e.onPointerMove,cz(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,eb.M)(e.onPointerLeave,cz(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,eb.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&u9[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cv(cg,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=cc(cg,e.__scopeMenu),a=cf(cg,e.__scopeMenu),s=cL("MenuSubContent",e.__scopeMenu),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l);return(0,ef.createElement)(cn.Provider,{scope:e.__scopeMenu},(0,ef.createElement)(ej.z,{present:r||o.open},(0,ef.createElement)(cn.Slot,{scope:e.__scopeMenu},(0,ef.createElement)(cj,(0,ep.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,eb.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,eb.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ce[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cI=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=cs(t),[l,u]=(0,ef.useState)(null),c=(0,ef.useRef)(!1),d=(0,lV.W)(o),f=l7(i);return(0,ef.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,ef.createElement)(nt,s,(0,ef.createElement)(cu,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,ef.createElement)(cd,{scope:t,onClose:(0,ef.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cB=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=cc(cp,t);return(0,ef.createElement)(cm,{scope:t,forceMount:n},(0,ef.createElement)(ej.z,{present:n||o.open},(0,ef.createElement)(nn.h,{asChild:!0,container:i},r)))},cH="DropdownMenu",[cU,cW]=(0,em.b)(cH,[ca]),cq=ca(),[c$,cY]=cU(cH),cG=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cY("DropdownMenuTrigger",n),a=cq(n);return(0,ef.createElement)(ch,(0,ep.Z)({asChild:!0},a),(0,ef.createElement)(ew.WV.button,(0,ep.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,ev.F)(t,o.triggerRef),onPointerDown:(0,eb.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cK=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cY("DropdownMenuContent",n),o=cq(n),a=(0,ef.useRef)(!1);return(0,ef.createElement)(cx,(0,ep.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,eb.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,eb.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cX=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cq(n);return(0,ef.createElement)(cS,(0,ep.Z)({},i,r,{ref:t}))}),cQ=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cq(n);return(0,ef.createElement)(cC,(0,ep.Z)({},i,r,{ref:t}))}),cJ=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cq(t),u=(0,ef.useRef)(null),[c=!1,d]=(0,ex.T)({prop:i,defaultProp:o,onChange:a});return(0,ef.createElement)(c$,{scope:t,triggerId:(0,ek.M)(),triggerRef:u,contentId:(0,ek.M)(),open:c,onOpenChange:d,onOpenToggle:(0,ef.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,ef.createElement)(cI,(0,ep.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},c0=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cq(t);return(0,ef.createElement)(cB,(0,ep.Z)({},r,n))},c1="horizontal",c2=["horizontal","vertical"],c4=(0,ef.forwardRef)((e,t)=>{let{decorative:n,orientation:r=c1,...i}=e,o=c3(r)?r:c1;return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function c3(e){return c2.includes(e)}c4.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!c3(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + `),()=>{document.head.removeChild(l)}},[t]),ef.createElement(n0,{isPresent:t,childRef:r,sizeRef:i},ef.cloneElement(e,{ref:r}))}let n2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nJ(n4),l=(0,ef.useId)(),u=(0,ef.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,ef.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),ef.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=ef.createElement(n1,{isPresent:n},e)),ef.createElement(nQ.Provider,{value:u},e)};function n4(){return new Map}let n3=(0,ef.createContext)({});function n5(e){return(0,ef.useEffect)(()=>()=>e(),[])}let n6=new Set;function n8(e,t,n){e||n6.has(t)||(console.warn(t),n&&console.warn(n),n6.add(t))}let n7=e=>e.key||"",n9=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",n8(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nX(),[t,n]=(0,ef.useState)(0),r=(0,ef.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,ef.useCallback)(()=>nB.postRender(r),[r]),t]}(),l=(0,ef.useContext)(n3).forceRender;l&&(s=l);let u=nX(),c=function(e){let t=[];return ef.Children.forEach(e,e=>{(0,ef.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,ef.useRef)(d),p=(0,ef.useRef)(new Map).current,m=(0,ef.useRef)(!0);if(nK(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n7(e);t.set(n,e)})}(c,p),h.current=d}),n5(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return ef.createElement(ef.Fragment,null,d.map(e=>ef.createElement(n2,{key:n7(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n7),g=c.map(n7),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,ef.createElement(n2,{key:n7(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:ef.createElement(n2,{key:n7(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==nP&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),ef.createElement(ef.Fragment,null,f.size?d:d.map(e=>(0,ef.cloneElement)(e)))},re=(0,ef.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rt=(0,ef.createContext)({}),rn=(0,ef.createContext)({strict:!1});function rr(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ri(e){return"string"==typeof e||Array.isArray(e)}function ro(e){return"object"==typeof e&&"function"==typeof e.start}let ra=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rs(e){return ro(e.animate)||ra.some(t=>ri(e[t]))}function rl(e){return!!(rs(e)||e.variants)}function ru(e){return Array.isArray(e)?e.join(" "):e}let rc=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rd={measureLayout:rc(["layout","layoutId","drag"]),animation:rc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:rc(["exit"]),drag:rc(["drag","dragControls"]),focus:rc(["whileFocus"]),hover:rc(["whileHover","onHoverStart","onHoverEnd"]),tap:rc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:rc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:rc(["whileInView","onViewportEnter","onViewportLeave"])},rf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rh=1;class rp extends ef.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rm=(0,ef.createContext)({}),rv=Symbol.for("motionComponentSymbol"),rg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ry(e){if("string"!=typeof e||e.includes("-"));else if(rg.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rb={},rx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rw=new Set(rx);function rE(e,{layout:t,layoutId:n}){return rw.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rb[e]||"opacity"===e)}let rj=e=>!!(null==e?void 0:e.getVelocity),rk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rS=(e,t)=>rx.indexOf(e)-rx.indexOf(t);function rO(e){return e.startsWith("--")}let r_=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rC=(e,t)=>n=>Math.max(Math.min(n,t),e),rM=e=>e%1?Number(e.toFixed(5)):e,rA=/(-)?([\d]*\.?[\d])+/g,rT=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rP=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function rN(e){return"string"==typeof e}let rR=e=>({test:t=>rN(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rD=rR("deg"),rL=rR("%"),rZ=rR("px"),rF=rR("vh"),rV=rR("vw"),rz=Object.assign(Object.assign({},rL),{parse:e=>rL.parse(e)/100,transform:e=>rL.transform(100*e)}),rI={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rB=Object.assign(Object.assign({},rI),{transform:rC(0,1)}),rH=Object.assign(Object.assign({},rI),{default:1}),rU={...rI,transform:Math.round},rW={borderWidth:rZ,borderTopWidth:rZ,borderRightWidth:rZ,borderBottomWidth:rZ,borderLeftWidth:rZ,borderRadius:rZ,radius:rZ,borderTopLeftRadius:rZ,borderTopRightRadius:rZ,borderBottomRightRadius:rZ,borderBottomLeftRadius:rZ,width:rZ,maxWidth:rZ,height:rZ,maxHeight:rZ,size:rZ,top:rZ,right:rZ,bottom:rZ,left:rZ,padding:rZ,paddingTop:rZ,paddingRight:rZ,paddingBottom:rZ,paddingLeft:rZ,margin:rZ,marginTop:rZ,marginRight:rZ,marginBottom:rZ,marginLeft:rZ,rotate:rD,rotateX:rD,rotateY:rD,rotateZ:rD,scale:rH,scaleX:rH,scaleY:rH,scaleZ:rH,skew:rD,skewX:rD,skewY:rD,distance:rZ,translateX:rZ,translateY:rZ,translateZ:rZ,x:rZ,y:rZ,z:rZ,perspective:rZ,transformPerspective:rZ,opacity:rB,originX:rz,originY:rz,originZ:rZ,zIndex:rU,fillOpacity:rB,strokeOpacity:rB,numOctaves:rU};function rq(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rO(e)){o[e]=n;continue}let r=rW[e],f=r_(n,r);if(rw.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(rS),t))a+=`${rk[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let r$=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rY(e,t,n){for(let r in t)rj(t[r])||rE(r,n)||(e[r]=t[r])}let rG=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rK(e){return rG.has(e)}let rX=e=>!rK(e);try{(s=require("@emotion/is-prop-valid").default)&&(rX=e=>e.startsWith("on")?!rK(e):s(e))}catch(e){}function rQ(e,t,n){return"string"==typeof e?e:rZ.transform(t+n*e)}let rJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},r0={offset:"strokeDashoffset",array:"strokeDasharray"};function r1(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rq(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rQ(t,e.x,e.width),i=rQ(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?rJ:r0;e[o.offset]=rZ.transform(-r);let a=rZ.transform(t),s=rZ.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let r2=()=>({...r$(),attrs:{}}),r4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function r3(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let r5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r6(e,t,n,r){for(let n in r3(e,t,void 0,r),t.attrs)e.setAttribute(r5.has(n)?n:r4(n),t.attrs[n])}function r8(e){let{style:t}=e,n={};for(let r in t)(rj(t[r])||rE(r,e))&&(n[r]=t[r]);return n}function r7(e){let t=r8(e);for(let n in e)rj(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function r9(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let ie=e=>Array.isArray(e),it=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),ir=e=>ie(e)?e[e.length-1]||0:e;function ii(e){let t=rj(e)?e.get():e;return it(t)?t.toValue():t}let io=e=>(t,n)=>{let r=(0,ef.useContext)(rt),i=(0,ef.useContext)(nQ),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=ii(o[e]);let{initial:a,animate:s}=e,l=rs(e),u=rl(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!ro(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=r9(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nJ(o)},ia={useVisualState:io({scrapeMotionValuesFromProps:r7,createRenderState:r2,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}r1(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r6(t,n)}})},is={useVisualState:io({scrapeMotionValuesFromProps:r8,createRenderState:r$})};function il(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function iu(e,t,n,r){(0,ef.useEffect)(()=>{let i=e.current;if(n&&i)return il(i,t,n,r)},[e,t,n,r])}function ic(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(l=B||(B={})).Animate="animate",l.Hover="whileHover",l.Tap="whileTap",l.Drag="whileDrag",l.Focus="whileFocus",l.InView="whileInView",l.Exit="exit";let id={pageX:0,pageY:0};function ih(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||id;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let ip=(e,t=!1)=>{let n=t=>e(t,ih(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},im=()=>nG&&null===window.onpointerdown,iv=()=>nG&&null===window.ontouchstart,ig=()=>nG&&null===window.onmousedown,iy={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ib={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ix(e){if(im());else if(iv())return ib[e];else if(ig())return iy[e];return e}function iw(e,t,n,r){return il(e,ix(t),ip(n,"pointerdown"===t),r)}function iE(e,t,n,r){return iu(e,ix(t),n&&ip(n,"pointerdown"===t),r)}function ij(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let ik=ij("dragHorizontal"),iS=ij("dragVertical");function iO(e){let t=!1;if("y"===e)t=iS();else if("x"===e)t=ik();else{let e=ik(),n=iS();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function i_(){let e=iO(!0);return!e||(e(),!1)}function iC(e,t,n){return(r,i)=>{!(!ic(r)||i_())&&(e.animationState&&e.animationState.setActive(B.Hover,t),n&&n(r,i))}}let iM=(e,t)=>!!t&&(e===t||iM(e,t.parentElement)),iA=(e,t)=>n=>t(e(n)),iT=(...e)=>e.reduce(iA),iP=new WeakMap,iN=new WeakMap,iR=e=>{let t=iP.get(e.target);t&&t(e)},iD=e=>{e.forEach(iR)},iL={some:0,all:1},iZ=e=>t=>(e(t),null),iF={inView:iZ(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,ef.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,ef.useEffect)(()=>{e&&r&&("production"!==nP&&n8(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(B.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,ef.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:iL[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;iN.has(n)||iN.set(n,{});let r=iN.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iD,{root:e,...t})),r[i]}(t);return iP.set(e,n),r.observe(e),()=>{iP.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(B.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])})(a,o.current,e,i)}),tap:iZ(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,ef.useRef)(!1),s=(0,ef.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(B.Tap,!1),!i_()}function d(t,r){c()&&(iM(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=iT(iw(window,"pointerup",d,l),iw(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(B.Tap,!0),t&&t(e,n))}iE(i,"pointerdown",o?h:void 0,l),n5(u)}),focus:iZ(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;iu(t,"focus",e?()=>{n&&n.setActive(B.Focus,!0)}:void 0),iu(t,"blur",e?()=>{n&&n.setActive(B.Focus,!1)}:void 0)}),hover:iZ(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){iE(r,"pointerenter",e||n?iC(r,!0,e):void 0,{passive:!e}),iE(r,"pointerleave",t||n?iC(r,!1,t):void 0,{passive:!t})})};function iV(){let e=(0,ef.useContext)(nQ);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,ef.useId)();return(0,ef.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iz(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var iB=function(){},iH=function(){};let iU=(e,t,n)=>Math.min(Math.max(n,e),t);function iW(e,t){return e*Math.sqrt(1-t*t)}let iq=["duration","bounce"],i$=["stiffness","damping","mass"];function iY(e,t){return t.some(t=>void 0!==e[t])}function iG(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iI(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!iY(e,i$)&&iY(e,iq)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;iB(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=iU(.05,1,a),e=iU(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/iW(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=iW(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iK,p=iK;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=iW(a,o);h=i=>n-Math.exp(-o*a*i)*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i)),p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(n-t)<=i;a.done=Math.abs(o)<=r&&s}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iG.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iK=e=>0,iX=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iQ=(e,t,n)=>-n*e+n*t+e,iJ=(e,t)=>n=>!!(rN(n)&&rP.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),i0=(e,t,n)=>r=>{if(!rN(r))return r;let[i,o,a,s]=r.match(rA);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},i1=rC(0,255),i2=Object.assign(Object.assign({},rI),{transform:e=>Math.round(i1(e))}),i4={test:iJ("rgb","red"),parse:i0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+i2.transform(e)+", "+i2.transform(t)+", "+i2.transform(n)+", "+rM(rB.transform(r))+")"},i3={test:iJ("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:i4.transform},i5={test:iJ("hsl","hue"),parse:i0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rL.transform(rM(t))+", "+rL.transform(rM(n))+", "+rM(rB.transform(r))+")"};function i6(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i8({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=i6(s,r,e+1/3),o=i6(s,r,e),a=i6(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let i7=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},i9=[i3,i4,i5],oe=e=>i9.find(t=>t.test(e)),ot=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,on=(e,t)=>{let n=oe(e),r=oe(t);iH(!!n,ot(e)),iH(!!r,ot(t));let i=n.parse(e),o=r.parse(t);n===i5&&(i=i8(i),n=i4),r===i5&&(o=i8(o),r=i4);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=i7(i[t],o[t],e));return a.alpha=iQ(i.alpha,o.alpha,e),n.transform(a)}},or={test:e=>i4.test(e)||i3.test(e)||i5.test(e),parse:e=>i4.test(e)?i4.parse(e):i5.test(e)?i5.parse(e):i3.parse(e),transform:e=>rN(e)?e:e.hasOwnProperty("red")?i4.transform(e):i5.transform(e)},oi="${c}",oo="${n}";function oa(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rT);r&&(n=r.length,e=e.replace(rT,oi),t.push(...r.map(or.parse)));let i=e.match(rA);return i&&(e=e.replace(rA,oo),t.push(...i.map(rI.parse))),{values:t,numColors:n,tokenised:e}}function os(e){return oa(e).values}function ol(e){let{values:t,numColors:n,tokenised:r}=oa(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,oc={test:function(e){var t,n,r,i;return isNaN(e)&&rN(e)&&(null!==(n=null===(t=e.match(rA))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(rT))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:os,createTransformer:ol,getAnimatableNone:function(e){let t=os(e);return ol(e)(t.map(ou))}},od=e=>"number"==typeof e;function of(e,t){return od(e)?n=>iQ(e,t,n):or.test(e)?on(e,t):ov(e,t)}let oh=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>of(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=of(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function om(e){let t=oc.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=oc.createTransformer(t),r=om(e),i=om(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?iT(oh(r.parsed,i.parsed),n):(iB(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},og=(e,t)=>n=>iQ(e,t,n);function oy(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;iH(o===t.length,"Both input and output ranges must be the same length"),iH(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?og:"string"==typeof r?or.test(r)?on:ov:Array.isArray(r)?oh:"object"==typeof r?op:void 0),a=e.length-1;for(let n=0;nn(iX(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=iX(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(iU(e[0],e[o-1],t)):s}let ob=e=>t=>1-e(1-t),ox=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ow=e=>t=>t*t*((e+1)*t-e),oE=4/11,oj=8/11,ok=e=>e,oS=e=>Math.pow(e,2),oO=ob(oS),o_=ox(oS),oC=e=>1-Math.sin(Math.acos(e)),oM=ob(oC),oA=ox(oM),oT=ow(1.525),oP=ob(oT),oN=ox(oT),oR=(e=>{let t=ow(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oD=4356/361,oL=35442/1805,oZ=16061/1805,oF=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return oy(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||o_).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oI={keyframes:oz,spring:iG,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function oB(e,t,n=0){return e-t-n}let oH=e=>{let t=({delta:t})=>e(t);return{start:()=>nB.update(t,!0),stop:()=>nH.update(t)}};function oU(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=oH,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iI(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oz;if(oI[e.type])return oI[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iG;return oz}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=oy([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=E?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?oB(t+-e,t,n):t-(e-t)+n}(l,x,d,E=b%2==0):(l=oB(l,x,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oW=e=>1e3*e,oq=(e,t)=>1-3*t+3*e,o$=(e,t)=>3*t-6*e,oY=e=>3*e,oG=(e,t,n)=>((oq(t,n)*e+o$(t,n))*e+oY(t))*e,oK=(e,t,n)=>3*oq(t,n)*e*e+2*o$(t,n)*e+oY(t),oX={linear:ok,easeIn:oS,easeInOut:o_,easeOut:oO,circIn:oC,circInOut:oA,circOut:oM,backIn:oT,backInOut:oN,backOut:oP,anticipate:oR,bounceIn:oV,bounceInOut:e=>e<.5?.5*(1-oF(1-2*e)):.5*oF(2*e-1)+.5,bounceOut:oF},oQ=e=>{if(Array.isArray(e)){iH(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return ok;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oG(.1*t,e,n);return o=>0===o||1===o?o:oG(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;let a=r+(t-i[--o])/(i[o+1]-i[o])*.1,s=oK(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oK(t,n,r);if(0===i)break;let o=oG(t,n,r)-e;t-=o/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a;let s=0;do(o=oG(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(iH(void 0!==oX[e],`Invalid easing type '${e}'`),oX[e]):e},oJ=e=>Array.isArray(e)&&"number"!=typeof e[0],o0=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&oc.test(t)&&!t.startsWith("url(")),o1=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),o2=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o4=()=>({type:"keyframes",ease:"linear",duration:.3}),o3=e=>({type:"keyframes",duration:.8,values:e}),o5={x:o1,y:o1,z:o1,rotate:o1,rotateX:o1,rotateY:o1,rotateZ:o1,scaleX:o2,scaleY:o2,scale:o2,opacity:o4,backgroundColor:o4,color:o4,default:o2},o6=(e,t)=>{let n;return n=ie(t)?o3:o5[e]||o5.default,{to:t,...n(t)}},o8=new Set(["brightness","contrast","saturate","opacity"]);function o7(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rA)||[];if(!r)return e;let i=n.replace(r,""),o=o8.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let o9=/([a-z-]*)\(.*?\)/g,ae=Object.assign(Object.assign({},oc),{getAnimatableNone:e=>{let t=e.match(o9);return t?t.map(o7).join(" "):e}}),at={...rW,color:or,backgroundColor:or,outlineColor:or,fill:or,stroke:or,borderColor:or,borderTopColor:or,borderRightColor:or,borderBottomColor:or,borderLeftColor:or,filter:ae,WebkitFilter:ae},an=e=>at[e];function ar(e,t){var n;let r=an(e);return r!==ae&&(r=oc),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let ai={current:!1};function ao(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(nH.read(r),e(o-t))};return nB.read(r,!0),()=>nH.read(r)}let aa=!1;function as(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function al(e){return"number"==typeof e?0:ar("",e)}function au(e,t){return e[t]||e.default||e}function ac(e,t,n,r={}){return ai.current&&(r={type:!1}),t.start(i=>{var o,a,s;let l,u;let c=function(e,t,n,r,i){let o=au(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=o0(e,n);"none"===a&&s&&"string"==typeof n?a=ar(e,n):as(a)&&"string"==typeof n?a=al(n):!Array.isArray(n)&&as(n)&&"string"==typeof a&&(n=al(a));let l=o0(e,a);return iB(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n,i;r=a,a=e,n=e-r,t=(i=nY().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oU({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...o6(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=oW(o.duration)),o.repeatDelay&&(a.repeatDelay=oW(o.repeatDelay)),e&&(a.ease=oJ(e)?e.map(oQ):oQ(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(iB(!aa,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),aa=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=ir(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),d=null!==(s=null!==(a=(au(o=r,e)||{}).delay)&&void 0!==a?a:o.delay)&&void 0!==s?s:0,f=()=>l=c();return d?u=ao(f,oW(d)):f(),()=>{u&&u(),l&&l.stop()}})}let ad=e=>/^\-?\d*\.?\d+$/.test(e),af=e=>/^0[^.\s]+$/.test(e);function ah(e,t){-1===e.indexOf(t)&&e.push(t)}function ap(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class am{constructor(){this.subscriptions=[]}add(e){return ah(this.subscriptions,e),()=>ap(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class ag{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new am,this.velocityUpdateSubscribers=new am,this.renderSubscribers=new am,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nY();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nB.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nB.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=av(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function ay(e){return new ag(e)}let ab=e=>t=>t.test(e),ax=[rI,rZ,rL,rD,rV,rF,{test:e=>"auto"===e,parse:e=>e}],aw=e=>ax.find(ab(e)),aE=[...ax,or,oc],aj=e=>aE.find(ab(e));function ak(e,t,n){let r=e.getProps();return r9(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function aS(e){return!!(rj(e)&&e.add)}function aO(e,t,n={}){var r;let i=ak(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>a_(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(aC).forEach((e,r)=>{a.push(aO(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function a_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&rw.has(t)&&(o={...o,type:!1,delay:0});let s=ac(t,r,i,o);aS(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=ak(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=ir(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ay(n))}}(e,s)})}function aC(e,t){return e.sortNodePosition(t)}let aM=[B.Animate,B.InView,B.Focus,B.Hover,B.Tap,B.Drag,B.Exit],aA=[...aM].reverse(),aT=aM.length;function aP(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let aN={animation:iZ(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>aO(e,t,n)));else if("string"==typeof t)r=aO(e,t,n);else{let i="function"==typeof t?ak(e,t,n.custom):t;r=a_(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[B.Animate]:aP(!0),[B.InView]:aP(),[B.Hover]:aP(),[B.Tap]:aP(),[B.Drag]:aP(),[B.Focus]:aP(),[B.Exit]:aP()},r=!0,i=(t,n)=>{let r=ak(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],k=j.reduce(i,{});!1===b&&(k={});let{prevResolvedValues:S={}}=v,O={...S,...k},_=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in O){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?ie(t)&&ie(n)?!iz(t,n)||w?_(e):v.protectedKeys[e]=!0:void 0!==t?_(e):f.add(e):void 0!==t&&f.has(e)?_(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),ro(t)&&(0,ef.useEffect)(()=>t.subscribe(e),[t])}),exit:iZ(e=>{let{custom:t,visualElement:n}=e,[r,i]=iV(),o=(0,ef.useContext)(nQ);(0,ef.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(B.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},aR=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),aD=e=>aR(e)&&e.hasOwnProperty("z"),aL=(e,t)=>Math.abs(e-t);function aZ(e,t){return od(e)&&od(t)?aL(e,t):aR(e)&&aR(t)?Math.sqrt(Math.pow(aL(e.x,t.x),2)+Math.pow(aL(e.y,t.y),2)+Math.pow(aD(e)&&aD(t)?aL(e.z,t.z):0,2)):void 0}class aF{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=aI(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aZ(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nY();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=aV(t,this.transformPagePoint),ic(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nB.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=aI(aV(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=aV(ih(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=nY();this.history=[{...i,timestamp:o}];let{onSessionStart:a}=t;a&&a(e,aI(r,this.history)),this.removeListeners=iT(iw(window,"pointermove",this.handlePointerMove),iw(window,"pointerup",this.handlePointerUp),iw(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),nH.update(this.updatePoint)}}function aV(e,t){return t?{point:t(e.point)}:e}function az(e,t){return{x:e.x-t.x,y:e.y-t.y}}function aI({point:e},t){return{point:e,delta:az(e,aB(t)),offset:az(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=aB(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oW(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function aB(e){return e[e.length-1]}function aH(e){return e.max-e.min}function aU(e,t=0,n=.01){return aZ(e,t)({translate:0,scale:1,origin:0,originPoint:0}),a1=()=>({x:a0(),y:a0()}),a2=()=>({min:0,max:0}),a4=()=>({x:a2(),y:a2()});function a3(e){return[e("x"),e("y")]}function a5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function a6(e){return void 0===e||1===e}function a8({scale:e,scaleX:t,scaleY:n}){return!a6(e)||!a6(t)||!a6(n)}function a7(e){return a8(e)||a9(e)||e.z||e.rotate||e.rotateX||e.rotateY}function a9(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function se(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function st(e,t=0,n=1,r,i){e.min=se(e.min,t,n,r,i),e.max=se(e.max,t,n,r,i)}function sn(e,{x:t,y:n}){st(e.x,t.translate,t.scale,t.originPoint),st(e.y,n.translate,n.scale,n.originPoint)}function sr(e,t){e.min=e.min+t,e.max=e.max+t}function si(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iQ(e.min,e.max,o);st(e,t[n],t[r],a,t.scale)}let so=["x","scaleX","originX"],sa=["y","scaleY","originY"];function ss(e,t){si(e.x,t,so),si(e.y,t,sa)}function sl(e,t){return a5(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let su=new WeakMap;class sc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=a4(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new aF(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(ih(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iO(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),a3(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rL.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=aH(i);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(B.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(B.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iQ(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&rr(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:aK(e.x,n,i),y:aK(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aQ(e,"left","right"),y:aQ(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&a3(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rr(t))return!1;let r=t.current;iH(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=sl(e,n),{scroll:i}=t;return i&&(sr(r.x,i.x),sr(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:aX((e=i.layout.actual).x,o.x),y:aX(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=a5(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(a3(a=>{var l;if(!sd(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ac(e,n,0,t)}stopAnimation(){a3(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){a3(t=>{let{drag:n}=this.getProps();if(!sd(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iQ(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rr(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};a3(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=aH(e),i=aH(t);return i>r?n=iX(t.min,t.max-r,e.min):r>i&&(n=iX(e.min,e.max-i,t.min)),iU(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),a3(e=>{if(!sd(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iQ(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;su.set(this.visualElement,this);let t=iw(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rr(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let o=il(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(a3(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),null==a||a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function sd(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let sf={pan:iZ(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=(0,ef.useRef)(null),{transformPagePoint:a}=(0,ef.useContext)(re),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{o.current=null,n&&n(e,t)}};(0,ef.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(s)}),iE(i,"pointerdown",(e||t||n||r)&&function(e){o.current=new aF(e,s,{transformPagePoint:a})}),n5(()=>o.current&&o.current.end())}),drag:iZ(function(e){let{dragControls:t,visualElement:n}=e,r=nJ(()=>new sc(n));(0,ef.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,ef.useEffect)(()=>r.addListeners(),[r])})};function sh(e){return"string"==typeof e&&e.startsWith("var(--")}let sp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sm(e,t,n=1){iH(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=sp.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():sh(i)?sm(i,t,n+1):i}let sv=new Set(["width","height","top","left","right","bottom","x","y"]),sg=e=>sv.has(e),sy=e=>Object.keys(e).some(sg),sb=(e,t)=>{e.set(t,!1),e.set(t)},sx=e=>e===rI||e===rZ;(u=H||(H={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let sw=(e,t)=>parseFloat(e.split(", ")[t]),sE=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sw(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sw(t[1],e):0}},sj=new Set(["x","y","z"]),sk=rx.filter(e=>!sj.has(e)),sS={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sE(4,13),y:sE(5,14)},sO=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=sS[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{sb(t.getValue(n),s[n]),e[n]=sS[n](l,o)}),e},s_=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(sg),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=aw(c),f=t[i];if(ie(f)){let e=f.length,t=null===f[0]?1:0;d=aw(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],sb(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=sO(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nG&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},sC=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!sh(t))return;let n=sm(t,r);n&&e.set(n)}),t){let e=t[i];if(!sh(e))continue;let o=sm(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,sy(i)?s_(e,i,n,o):{target:i,transitionEnd:o}},sM={current:null},sA={current:!1},sT=Object.keys(rd),sP=sT.length,sN=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sR{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>nB.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rs(t),this.isVariantNode=rl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&rj(t)&&(t.set(o[e],!1),aS(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&rj(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sA.current||function(){if(sA.current=!0,nG){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sM.current=e.matches;e.addListener(t),t()}else sM.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sM.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),nH.update(this.notifyUpdate),nH.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&nB.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==nP&&n&&t&&iH(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):a4()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ay(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=r9(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rj(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new am),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let sD=["initial",...aM],sL=sD.length;class sZ extends sR{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;sry(e)?new sV(t,{enableHardwareAcceleration:!1}):new sF(t,{enableHardwareAcceleration:!0});function sI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sB={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rZ.test(e))return e;e=parseFloat(e)}let n=sI(e,t.target.x),r=sI(e,t.target.y);return`${n}% ${r}%`}},sH="_$css",sU={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(sp,e=>(o.push(e),sH)));let a=oc.parse(e);if(a.length>5)return r;let s=oc.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iQ(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sH,()=>{let t=o[e];return e++,t})}return f}};class sW extends ef.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rb,sq),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||nB.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sq={borderRadius:{...sB,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sB,borderTopRightRadius:sB,borderBottomLeftRadius:sB,borderBottomRightRadius:sB,boxShadow:sU},s$=["TopLeft","TopRight","BottomLeft","BottomRight"],sY=s$.length,sG=e=>"string"==typeof e?parseFloat(e):e,sK=e=>"number"==typeof e||rZ.test(e);function sX(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sQ=s0(0,.5,oM),sJ=s0(.5,.95,ok);function s0(e,t,n){return r=>rt?1:n(iX(e,t,r))}function s1(e,t){e.min=t.min,e.max=t.max}function s2(e,t){s1(e.x,t.x),s1(e.y,t.y)}function s4(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function s3(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(rL.test(t)&&(t=parseFloat(t),t=iQ(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=iQ(o.min,o.max,r);e===o&&(s-=t),e.min=s4(e.min,t,n,s,i),e.max=s4(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let s5=["x","scaleX","originX"],s6=["y","scaleY","originY"];function s8(e,t,n,r){s3(e.x,t,s5,null==n?void 0:n.x,null==r?void 0:r.x),s3(e.y,t,s6,null==n?void 0:n.y,null==r?void 0:r.y)}function s7(e){return 0===e.translate&&1===e.scale}function s9(e){return s7(e.x)&&s7(e.y)}function le(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function lt(e){return aH(e.x)/aH(e.y)}class ln{constructor(){this.members=[]}add(e){ah(this.members,e),e.scheduleRender()}remove(e){if(ap(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lr(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let li=(e,t)=>e.depth-t.depth;class lo{constructor(){this.children=[],this.isDirty=!1}add(e){ah(this.children,e),this.isDirty=!0}remove(e){ap(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(li),this.isDirty=!1,this.children.forEach(e)}}let la=["","X","Y","Z"];function ls({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(lp),this.nodes.forEach(lm)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=ao(r,250),rf.hasAnimatedSinceResize&&(rf.hasAnimatedSinceResize=!1,this.nodes.forEach(lh))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:lw,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!le(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...au(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||lh(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,nH.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(lv))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));lk(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lx));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;ly(a.x,e.x,f),ly(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(aG(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,lb(r.x,d.x,s.x,f),lb(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iQ(0,null!==(a=n.opacity)&&void 0!==a?a:1,sQ(r)),e.opacityExit=iQ(null!==(s=t.opacity)&&void 0!==s?s:1,0,sJ(r))):o&&(e.opacity=iQ(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{rf.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rj(e)?e:ay(e);return ac("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&lS(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a4();let t=aH(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=aH(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}s2(t,n),ss(t,i),aq(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ln),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ld),this.root.sharedNodes.clear()}}}function ll(e){e.updateLayout()}function lu(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?a3(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=aH(n);n.min=t[e].min,n.max=n.min+r}):lS(r,i.layout,t)&&a3(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=aH(t[e]);n.max=n.min+r});let o=a1();aq(o,t,i.layout);let a=a1();i.isShared?aq(a,e.applyTransform(n,!0),i.measured):aq(a,t,i.layout);let s=!s9(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=a4();aG(n,i.layout,e.layout);let o=a4();aG(o,t,r.actual),le(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function lc(e){e.clearSnapshot()}function ld(e){e.clearMeasurements()}function lf(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function lp(e){e.resolveTargetDelta()}function lm(e){e.calcProjection()}function lv(e){e.resetRotation()}function lg(e){e.removeLeadSnapshot()}function ly(e,t,n){e.translate=iQ(t.translate,0,n),e.scale=iQ(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lb(e,t,n,r){e.min=iQ(t.min,n.min,r),e.max=iQ(t.max,n.max,r)}function lx(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lw={duration:.45,ease:[.4,0,.1,1]};function lE(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function lj(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lk(e){lj(e.x),lj(e.y)}function lS(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aZ(e,t)<=n}(lt(t),lt(n),.2)}let lO=ls({attachResizeListener:(e,t)=>il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),l_={current:void 0},lC=ls({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!l_.current){let e=new lO(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),l_.current=e}return l_.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lM={...aN,...iF,...sf,measureLayout:function(e){let[t,n]=iV(),r=(0,ef.useContext)(n3);return ef.createElement(sW,{...e,layoutGroup:r,switchLayoutGroup:(0,ef.useContext)(rm),isPresent:t,safeToRemove:n})}},lA=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?rd.projectionNodeConstructor=e[t]:rd[t].Component=e[t]}(e);let a=(0,ef.forwardRef)(function(a,s){var l;let u={...(0,ef.useContext)(re),...a,layoutId:function({layoutId:e}){let t=(0,ef.useContext)(n3).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(rs(e)){let{initial:t,animate:n}=e;return{initial:!1===t||ri(t)?t:void 0,animate:ri(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,ef.useContext)(rt));return(0,ef.useMemo)(()=>({initial:t,animate:n}),[ru(t),ru(n)])}(a),h=c?void 0:nJ(()=>{if(rf.hasEverUpdated)return rh++}),p=i(a,c);if(!c&&nG){f.visualElement=function(e,t,n,r){let i=(0,ef.useContext)(rt).visualElement,o=(0,ef.useContext)(rn),a=(0,ef.useContext)(nQ),s=(0,ef.useContext)(re).reducedMotion,l=(0,ef.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return nK(()=>{u&&u.render()}),(0,ef.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nK(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,ef.useContext)(rn).strict,i=(0,ef.useContext)(rm);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||rd.projectionNodeConstructor,i))}return ef.createElement(rp,{visualElement:f.visualElement,props:u},d,ef.createElement(rt.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,ef.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rr(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[rv]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){return{...ry(e)?ia:is,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=(ry(t)?function(e,t){let n=(0,ef.useMemo)(()=>{let n=r2();return r1(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rY(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rY(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,ef.useMemo)(()=>{let r=r$();return rq(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r})(n,o,a),l={...function(e,t,n){let r={};for(let i in e)(rX(i)||!0===n&&rK(i)||!t&&!rK(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,ef.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,lM,sz,lC));function lT(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,ef.useState)(!1);return{open:(0,ef.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,ef.useCallback)(e=>{n?n(e):i(e)},[n])}}let lP={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function lN(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=lT({open:i,onOpenChange:o});return(0,ed.jsxs)(nk,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,ed.jsx)(np,{asChild:!0,children:t}),(0,ed.jsx)(n9,{children:n&&u?(0,ed.jsx)(nS,{forceMount:!0,children:(0,ed.jsx)(nb,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,ed.jsx)(lA.div,{variants:lP,initial:"init",animate:"show",exit:"exit",className:(0,eX.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,ed.jsx)("div",{className:(0,eX.cx)("py-1 px-2","max-w-xs","overflow-hidden",nM()),children:(0,ed.jsx)(nC,{size:"12",children:n})})})})}):null})]})}let lR=(0,eX.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lD=ef.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,ed.jsx)(lN,{content:u,align:c,side:d,children:(0,ed.jsx)("button",{ref:t,type:h,disabled:a,className:lR({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,ed.jsx)("button",{ref:t,disabled:a,type:h,className:lR({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lL=n(95685);(0,eX.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lZ=(0,eX.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lF=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)("div",{...r,className:lZ({className:n}),ref:t})});var lV=n(86029);let lz="Avatar",[lI,lB]=(0,em.b)(lz),[lH,lU]=lI(lz),lW=(0,ef.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,ef.useState)("idle");return(0,ef.createElement)(lH,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({},r,{ref:t})))}),lq=(0,ef.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lU("AvatarImage",n),s=function(e){let[t,n]=(0,ef.useState)("idle");return(0,ef.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lV.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,eE.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,ef.createElement)(ew.WV.img,(0,ep.Z)({},o,{ref:t,src:r})):null}),l$=(0,ef.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lU("AvatarFallback",n),[a,s]=(0,ef.useState)(void 0===r);return(0,ef.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,ef.createElement)(ew.WV.span,(0,ep.Z)({},i,{ref:t})):null}),lY=(0,eX.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lG=(0,eX.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lK=ef.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,ed.jsx)("div",{className:(0,eX.cx)("relative h-fit w-fit",c),children:(0,ed.jsxs)(lW,{...d,ref:t,className:lY({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,ed.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,ed.jsx)(lq,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,ed.jsx)(l$,{className:lG({size:o}),children:i})]})})}),lX=(0,eX.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lQ=ef.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:o,className:a,...s}=e;return(0,ed.jsx)("div",{...s,className:lX({variant:n,size:r,interactive:i,rounded:o,className:a}),ref:t})}),lJ=ef.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,ed.jsx)("pre",{children:(0,ed.jsx)("code",{className:(0,eX.cx)(nO({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),l0=(0,eX.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),l1=ef.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,ed.jsx)("code",{...i,className:l0({color:n,className:r}),ref:t})}),l2=(0,eX.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),l4=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)("div",{ref:t,className:l2({className:n}),...r})});(0,eX.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let l3=(0,eX.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),l5=ef.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,ed.jsx)("div",{ref:t,...o,className:l3({size:i,pad:r,className:n})})});var l6=n(72331);let l8=(0,ef.createContext)(void 0);function l7(e){let t=(0,ef.useContext)(l8);return e||t||"ltr"}let l9="ScrollArea",[ue,ut]=(0,em.b)(l9),[un,ur]=ue(l9),ui=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,ef.useState)(null),[u,c]=(0,ef.useState)(null),[d,f]=(0,ef.useState)(null),[h,p]=(0,ef.useState)(null),[m,v]=(0,ef.useState)(null),[g,y]=(0,ef.useState)(0),[b,x]=(0,ef.useState)(0),[w,E]=(0,ef.useState)(!1),[j,k]=(0,ef.useState)(!1),S=(0,ev.e)(t,e=>l(e)),O=l7(i);return(0,ef.createElement)(un,{scope:n,type:r,dir:O,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:j,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:x},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({dir:O},a,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),uo=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=ur("ScrollAreaViewport",n),a=(0,ef.useRef)(null),s=(0,ev.e)(t,a,o.onViewportChange);return(0,ef.createElement)(ef.Fragment,null,(0,ef.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,ef.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ua="ScrollAreaScrollbar",us=(0,ef.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=ur(ua,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,ef.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,ef.createElement)(ul,(0,ep.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,ef.createElement)(uu,(0,ep.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,ef.createElement)(uc,(0,ep.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,ef.createElement)(ud,(0,ep.Z)({},r,{ref:t})):null}),ul=(0,ef.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=ur(ua,e.__scopeScrollArea),[o,a]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,ef.createElement)(ej.z,{present:n||o},(0,ef.createElement)(uc,(0,ep.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),uu=(0,ef.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=ur(ua,e.__scopeScrollArea),a="horizontal"===e.orientation,s=uM(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,ef.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,ef.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,ef.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,ef.createElement)(ej.z,{present:r||"hidden"!==l},(0,ef.createElement)(ud,(0,ep.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,eb.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,eb.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),uc=(0,ef.forwardRef)((e,t)=>{let n=ur(ua,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,ef.useState)(!1),s="horizontal"===e.orientation,l=uM(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=ur(ua,e.__scopeScrollArea),o=(0,ef.useRef)(null),a=(0,ef.useRef)(0),[s,l]=(0,ef.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uk(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=uS(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return u_([a,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,a.current,s,t)}return"horizontal"===n?(0,ef.createElement)(uf,(0,ep.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=uO(i.viewport.scrollLeft,s,i.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,ef.createElement)(uh,(0,ep.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=uO(i.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),uf=(0,ef.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=ur(ua,e.__scopeScrollArea),[a,s]=(0,ef.useState)(),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l,o.onScrollbarXChange);return(0,ef.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,ef.createElement)(uv,(0,ep.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":uS(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:uj(a.paddingLeft),paddingEnd:uj(a.paddingRight)}})}}))}),uh=(0,ef.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=ur(ua,e.__scopeScrollArea),[a,s]=(0,ef.useState)(),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l,o.onScrollbarYChange);return(0,ef.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,ef.createElement)(uv,(0,ep.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":uS(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:uj(a.paddingTop),paddingEnd:uj(a.paddingBottom)}})}}))}),[up,um]=ue(ua),uv=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=ur(ua,n),[p,m]=(0,ef.useState)(null),v=(0,ev.e)(t,e=>m(e)),g=(0,ef.useRef)(null),y=(0,ef.useRef)(""),b=h.viewport,x=r.content-r.viewport,w=(0,lV.W)(c),E=(0,lV.W)(l),j=uM(d,10);function k(e){g.current&&u({x:e.clientX-g.current.left,y:e.clientY-g.current.top})}return(0,ef.useEffect)(()=>{let e=e=>{let t=e.target;(null==p?void 0:p.contains(t))&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),(0,ef.useEffect)(E,[r,E]),uA(p,j),uA(h.content,j),(0,ef.createElement)(up,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lV.W)(o),onThumbPointerUp:(0,lV.W)(a),onThumbPositionChange:E,onThumbPointerDown:(0,lV.W)(s)},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,eb.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(e))}),onPointerMove:(0,eb.M)(e.onPointerMove,k),onPointerUp:(0,eb.M)(e.onPointerUp,e=>{e.target.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),ug="ScrollAreaThumb",uy=(0,ef.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=um(ug,e.__scopeScrollArea);return(0,ef.createElement)(ej.z,{present:n||i.hasThumb},(0,ef.createElement)(ub,(0,ep.Z)({ref:t},r)))}),ub=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=ur(ug,n),a=um(ug,n),{onThumbPositionChange:s}=a,l=(0,ev.e)(t,e=>a.onThumbChange(e)),u=(0,ef.useRef)(),c=uM(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,ef.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uC(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,eb.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,eb.M)(e.onPointerUp,a.onThumbPointerUp)}))}),ux="ScrollAreaCorner",uw=(0,ef.forwardRef)((e,t)=>{let n=ur(ux,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,ef.createElement)(uE,(0,ep.Z)({},e,{ref:t})):null}),uE=(0,ef.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=ur(ux,n),[o,a]=(0,ef.useState)(0),[s,l]=(0,ef.useState)(0),u=!!(o&&s);return uA(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),uA(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),u?(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function uj(e){return e?parseInt(e,10):0}function uk(e,t){let n=e/t;return isNaN(n)?0:n}function uS(e){let t=uk(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function uO(e,t,n="ltr"){let r=uS(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,a]:[-1*a,0]);return u_([0,a],[0,o-r])(s)}function u_(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let uC=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uM(e,t){let n=(0,lV.W)(e),r=(0,ef.useRef)(0);return(0,ef.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,ef.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uA(e,t){let n=(0,lV.W)(t);(0,eE.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let uT=ef.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,ed.jsxs)(ui,{className:(0,eX.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,ed.jsx)(uo,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,ed.jsx)(us,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,ed.jsx)(uy,{className:(0,eX.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,ed.jsx)(us,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,ed.jsx)(uy,{className:(0,eX.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,ed.jsx)(uw,{className:"bg-black/70"})]})}),uP=(0,eX.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uN={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},uR=ef.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=lT({open:i,onOpenChange:o});return(0,ef.useEffect)(()=>{v&&g(v)},[v]),(0,ed.jsxs)(l6.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,ed.jsx)(l6.xz,{asChild:!0,children:n}),(0,ed.jsx)(n9,{children:v?(0,ed.jsx)(l6.h_,{forceMount:!0,children:(0,ed.jsx)(l6.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,ed.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,ed.jsx)(l6.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,ed.jsx)(lA.div,{variants:uN,initial:"init",animate:"show",exit:"exit",className:uP(u),children:(0,ed.jsx)(uZ,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uD(e){let{className:t}=e;return(0,ed.jsx)(l6.x8,{asChild:!0,type:"button",children:(0,ed.jsx)("div",{className:(0,eX.cx)("appearance-none",t),children:(0,ed.jsx)(lD,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,ed.jsx)(lL.QN4,{})})})})}let uL=(0,eX.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[nM()],none:""}},defaultVariants:{variant:"default"}}),uZ=ef.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,ef.useState)(0),r=(0,ef.useRef)(null);return(0,ef.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,ed.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uL(s),children:[i&&(0,ed.jsx)(l6.Dx,{className:uF({showSeparator:h}),children:i}),(0,ed.jsx)(uT,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,ed.jsxs)("div",{ref:d,className:(0,eX.cx)("p-4",u),children:[o&&(0,ed.jsx)(l6.dk,{className:uV(),children:o}),n]})}),a&&(0,ed.jsx)(uz,{separator:h,children:a}),(0,ed.jsx)(uD,{className:l||"absolute top-3.5 right-2"})]})}),uF=(0,eX.j)(["pt-4 pb-2 px-4 w-full",nO({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uV=(0,eX.j)([nO({color:"subtle",size:"14"}),"py-2"]);function uz(e){let{children:t,separator:n=!0}=e;return(0,ed.jsx)("div",{className:(0,eX.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uI=n(55070),uB=n(77334);let uH="rovingFocusGroup.onEntryFocus",uU={bubbles:!1,cancelable:!0},uW="RovingFocusGroup",[uq,u$,uY]=ey(uW),[uG,uK]=(0,em.b)(uW,[uY]),[uX,uQ]=uG(uW),uJ=(0,ef.forwardRef)((e,t)=>(0,ef.createElement)(uq.Provider,{scope:e.__scopeRovingFocusGroup},(0,ef.createElement)(uq.Slot,{scope:e.__scopeRovingFocusGroup},(0,ef.createElement)(u0,(0,ep.Z)({},e,{ref:t}))))),u0=(0,ef.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,ef.useRef)(null),f=(0,ev.e)(t,d),h=l7(o),[p=null,m]=(0,ex.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,ef.useState)(!1),y=(0,lV.W)(u),b=u$(n),x=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uH,y),()=>e.removeEventListener(uH,y)},[y]),(0,ef.createElement)(uX,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,ef.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,ef.useCallback)(()=>g(!0),[])},(0,ef.createElement)(ew.WV.div,(0,ep.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,eb.M)(e.onMouseDown,()=>{x.current=!0}),onFocus:(0,eb.M)(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(uH,uU);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);u4([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current))}}x.current=!1}),onBlur:(0,eb.M)(e.onBlur,()=>g(!1))})))}),u1=(0,ef.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,ek.M)(),s=uQ("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=u$(n);return(0,ef.createElement)(uq.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,eb.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,eb.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return u2[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=s.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>u4(i))}})})))}),u2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function u4(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var u3=n(49732),u5=n(70506);let u6=["Enter"," "],u8=["ArrowUp","PageDown","End"],u7=["ArrowDown","PageUp","Home",...u8],u9={ltr:[...u6,"ArrowRight"],rtl:[...u6,"ArrowLeft"]},ce={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ct="Menu",[cn,cr,ci]=ey(ct),[co,ca]=(0,em.b)(ct,[ci,tG,uK]),cs=tG(),cl=uK(),[cu,cc]=co(ct),[cd,cf]=co(ct),ch=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=cs(n);return(0,ef.createElement)(tQ,(0,ep.Z)({},i,r,{ref:t}))}),cp="MenuPortal",[cm,cv]=co(cp,{forceMount:void 0}),cg="MenuContent",[cy,cb]=co(cg),cx=(0,ef.forwardRef)((e,t)=>{let n=cv(cg,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=cc(cg,e.__scopeMenu),a=cf(cg,e.__scopeMenu);return(0,ef.createElement)(cn.Provider,{scope:e.__scopeMenu},(0,ef.createElement)(ej.z,{present:r||o.open},(0,ef.createElement)(cn.Slot,{scope:e.__scopeMenu},a.modal?(0,ef.createElement)(cw,(0,ep.Z)({},i,{ref:t})):(0,ef.createElement)(cE,(0,ep.Z)({},i,{ref:t})))))}),cw=(0,ef.forwardRef)((e,t)=>{let n=cc(cg,e.__scopeMenu),r=(0,ef.useRef)(null),i=(0,ev.e)(t,r);return(0,ef.useEffect)(()=>{let e=r.current;if(e)return(0,u3.R)(e)},[]),(0,ef.createElement)(cj,(0,ep.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,eb.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cE=(0,ef.forwardRef)((e,t)=>{let n=cc(cg,e.__scopeMenu);return(0,ef.createElement)(cj,(0,ep.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cj=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=cc(cg,n),v=cf(cg,n),g=cs(n),y=cl(n),b=cr(n),[x,w]=(0,ef.useState)(null),E=(0,ef.useRef)(null),j=(0,ev.e)(t,E,m.onContentChange),k=(0,ef.useRef)(0),S=(0,ef.useRef)(""),O=(0,ef.useRef)(0),_=(0,ef.useRef)(null),C=(0,ef.useRef)("right"),M=(0,ef.useRef)(0),A=h?u5.Z:ef.Fragment,T=h?{as:eg.g7,allowPinchZoom:!0}:void 0,P=e=>{var t,n;let r=S.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};(0,ef.useEffect)(()=>()=>window.clearTimeout(k.current),[]),(0,uI.EW)();let N=(0,ef.useCallback)(e=>{var t,n,r;return C.current===(null===(t=_.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=_.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,ef.createElement)(cy,{scope:n,searchRef:S,onItemEnter:(0,ef.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,ef.useCallback)(e=>{var t;N(e)||(null===(t=E.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,ef.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:O,onPointerGraceIntentChange:(0,ef.useCallback)(e=>{_.current=e},[])},(0,ef.createElement)(A,T,(0,ef.createElement)(uB.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,eb.M)(o,e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,ef.createElement)(eQ.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,ef.createElement)(uJ,(0,ep.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,ef.createElement)(t3,(0,ep.Z)({role:"menu","aria-orientation":"vertical","data-state":cF(m.open),dir:v.dir},g,p,{ref:j,style:{outline:"none",...p.style},onKeyDown:(0,eb.M)(p.onKeyDown,e=>{let t=e.target.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));let i=E.current;if(e.target!==i||!u7.includes(e.key))return;e.preventDefault();let o=b().filter(e=>!e.disabled).map(e=>e.ref.current);u8.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,eb.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),S.current="")}),onPointerMove:(0,eb.M)(e.onPointerMove,cz(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?"right":"left";C.current=t,M.current=e.clientX}}))})))))))}),ck=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({role:"group"},r,{ref:t}))}),cS=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({},r,{ref:t}))}),cO="MenuItem",c_="menu.itemSelect",cC=(0,ef.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,ef.useRef)(null),a=cf(cO,e.__scopeMenu),s=cb(cO,e.__scopeMenu),l=(0,ev.e)(t,o),u=(0,ef.useRef)(!1);return(0,ef.createElement)(cM,(0,ep.Z)({},i,{ref:l,disabled:n,onClick:(0,eb.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(c_,{bubbles:!0,cancelable:!0});e.addEventListener(c_,e=>null==r?void 0:r(e),{once:!0}),(0,ew.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,eb.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u6.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),cM=(0,ef.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=cb(cO,n),s=cl(n),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l),[c,d]=(0,ef.useState)(!1),[f,h]=(0,ef.useState)("");return(0,ef.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,ef.createElement)(cn.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,ef.createElement)(u1,(0,ep.Z)({asChild:!0},s,{focusable:!r}),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,eb.M)(e.onPointerMove,cz(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,eb.M)(e.onPointerLeave,cz(e=>a.onItemLeave(e))),onFocus:(0,eb.M)(e.onFocus,()=>d(!0)),onBlur:(0,eb.M)(e.onBlur,()=>d(!1))}))))}),[cA,cT]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,ef.createElement)(cN,{scope:e.__scopeMenu,checked:n},(0,ef.createElement)(cC,(0,ep.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cV(n),onSelect:(0,eb.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},co("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cP=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,lV.W)(r);return(0,ef.createElement)(cA,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,ef.createElement)(ck,(0,ep.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cN,cR]=co(cP,{checked:!1}),[cD,cL]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cR(cP,n);return(0,ef.createElement)(ej.z,{present:r||o.checked},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({},i,{ref:t,"data-state":cV(o.checked)})))},co("MenuSub")),cZ="MenuSubTrigger";function cF(e){return e?"open":"closed"}function cV(e){return e?"checked":"unchecked"}function cz(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=cc(cZ,e.__scopeMenu),r=cf(cZ,e.__scopeMenu),i=cL(cZ,e.__scopeMenu),o=cb(cZ,e.__scopeMenu),a=(0,ef.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,ef.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,ef.useEffect)(()=>c,[c]),(0,ef.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,ef.createElement)(ch,(0,ep.Z)({asChild:!0},u),(0,ef.createElement)(cM,(0,ep.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cF(n.open)},e,{ref:(0,ev.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,eb.M)(e.onPointerMove,cz(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,eb.M)(e.onPointerLeave,cz(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,eb.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&u9[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cv(cg,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=cc(cg,e.__scopeMenu),a=cf(cg,e.__scopeMenu),s=cL("MenuSubContent",e.__scopeMenu),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l);return(0,ef.createElement)(cn.Provider,{scope:e.__scopeMenu},(0,ef.createElement)(ej.z,{present:r||o.open},(0,ef.createElement)(cn.Slot,{scope:e.__scopeMenu},(0,ef.createElement)(cj,(0,ep.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,eb.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,eb.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ce[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cI=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=cs(t),[l,u]=(0,ef.useState)(null),c=(0,ef.useRef)(!1),d=(0,lV.W)(o),f=l7(i);return(0,ef.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,ef.createElement)(nt,s,(0,ef.createElement)(cu,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,ef.createElement)(cd,{scope:t,onClose:(0,ef.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cB=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=cc(cp,t);return(0,ef.createElement)(cm,{scope:t,forceMount:n},(0,ef.createElement)(ej.z,{present:n||o.open},(0,ef.createElement)(nn.h,{asChild:!0,container:i},r)))},cH="DropdownMenu",[cU,cW]=(0,em.b)(cH,[ca]),cq=ca(),[c$,cY]=cU(cH),cG=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cY("DropdownMenuTrigger",n),a=cq(n);return(0,ef.createElement)(ch,(0,ep.Z)({asChild:!0},a),(0,ef.createElement)(ew.WV.button,(0,ep.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,ev.F)(t,o.triggerRef),onPointerDown:(0,eb.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,eb.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cK=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cY("DropdownMenuContent",n),o=cq(n),a=(0,ef.useRef)(!1);return(0,ef.createElement)(cx,(0,ep.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,eb.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,eb.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cX=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cq(n);return(0,ef.createElement)(cS,(0,ep.Z)({},i,r,{ref:t}))}),cQ=(0,ef.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cq(n);return(0,ef.createElement)(cC,(0,ep.Z)({},i,r,{ref:t}))}),cJ=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cq(t),u=(0,ef.useRef)(null),[c=!1,d]=(0,ex.T)({prop:i,defaultProp:o,onChange:a});return(0,ef.createElement)(c$,{scope:t,triggerId:(0,ek.M)(),triggerRef:u,contentId:(0,ek.M)(),open:c,onOpenChange:d,onOpenToggle:(0,ef.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,ef.createElement)(cI,(0,ep.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},c0=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cq(t);return(0,ef.createElement)(cB,(0,ep.Z)({},r,n))},c1="horizontal",c2=["horizontal","vertical"],c4=(0,ef.forwardRef)((e,t)=>{let{decorative:n,orientation:r=c1,...i}=e,o=c3(r)?r:c1;return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function c3(e){return c2.includes(e)}c4.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!c3(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical @@ -31,7 +31,7 @@ Defaulting to \`${c1}\`.`):null}};let c5=(0,eX.j)(["m-0 flex-shrink-0 cursor-def - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`)}};let d2=(0,ef.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=d0("ProgressIndicator",r);return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":d3(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function d4(e,t){return`${Math.round(e/t*100)}%`}function d3(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function d5(e){return"number"==typeof e}function d6(e){return d5(e)&&!isNaN(e)&&e>0}function d8(e,t){return d5(e)&&!isNaN(e)&&e<=t&&e>=0}let d7=(0,eX.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),d9=ef.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,ed.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,ed.jsx)(d1,{...s,ref:t,value:o,max:a,className:d7({variant:r,className:i}),children:(0,ed.jsx)(d2,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,ed.jsx)(n_,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function fe(e){let t=(0,ef.useRef)({value:e,previous:e});return(0,ef.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let ft="Radio",[fn,fr]=(0,em.b)(ft),[fi,fo]=fn(ft),fa=(0,ef.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,ef.useState)(null),h=(0,ev.e)(t,e=>f(e)),p=dw(d),m=(0,ef.useRef)(!1),v=!d||!!d.closest("form");return(0,ef.createElement)(fi,{scope:n,checked:o,disabled:s},(0,ef.createElement)(ew.WV.button,(0,ep.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":fu(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,eb.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,ef.createElement)(fl,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),fs=(0,ef.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=fo("RadioIndicator",n);return(0,ef.createElement)(ej.z,{present:r||o.checked},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({"data-state":fu(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),fl=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,ef.useRef)(null),a=fe(n),s=tq(t);return(0,ef.useEffect)(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[a,n,r]),(0,ef.createElement)("input",(0,ep.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fu(e){return e?"checked":"unchecked"}let fc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fd="RadioGroup",[ff,fh]=(0,em.b)(fd,[uK,fr]),fp=uK(),fm=fr(),[fv,fg]=ff(fd),fy=(0,ef.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=dw(),p=fp(n),m=l7(u),[v,g]=(0,ex.T)({prop:a,defaultProp:o,onChange:d});return(0,ef.createElement)(fv,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,ef.createElement)(uJ,(0,ep.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fb=(0,ef.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=fg("RadioGroupItem",n),a=fp(n),s=fm(n),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l),c=o.value===i.value,d=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=e=>{fc.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,ef.createElement)(u1,(0,ep.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,ef.createElement)(fa,(0,ep.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,eb.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,eb.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),fx=(0,ef.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fm(n);return(0,ef.createElement)(fs,(0,ep.Z)({},i,r,{ref:t}))}),fw=(0,eX.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fE=(0,eX.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fj=ef.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(fb,{...o,className:fE({size:n,className:r}),ref:t,children:(0,ed.jsx)(fx,{className:fw({size:n})})}),(0,ed.jsx)(n_,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fk=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)(fy,{...r,className:(0,eX.cx)("flex gap-2",n),ref:t})});(0,eX.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nO(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fS=(0,eX.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fO=ef.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,ed.jsx)("input",{ref:t,className:fS({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});function f_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function fC(){}function fM(e){return!!(e||"").match(/\d/)}function fA(e){return null==e}function fT(e){return fA(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function fP(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fN(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function fR(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function fD(e,t){return Array(t+1).join(e)}function fL(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(!(o=Number(o)))return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+fD("0",Math.abs(a))+i:a>=s?i+=fD("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function fZ(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=fN(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:l.toFixed(t)).split(".");return(s?"-":"")+o.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])+(r?".":"")+fR(u[1]||"",t,n)}function fF(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(c=U||(U={})).event="event",c.props="prop";var fV=(d=function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}},h=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return f&&e.length===f.length&&e.every(function(e,t){return e===f[t]})?h:(f=e,h=d.apply(void 0,e))});function fz(e){return Math.max(e.selectionStart,e.selectionEnd)}function fI(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function fB(e,t,n,r){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return -1===t&&(t=i),t}function fH(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:r-gO.length-u.length||SA?M=p:p>e.length-u.length&&(M=p),e=e.substring(0,M),void 0===(r=E?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),o=/(-)/.test(r),a=i.test(r),r=r.replace(/-/g,""),o&&!a&&s&&(r="-"+r);var T=(e=((e=r).match(RegExp("(^-)|[0-9]|"+fP(g),"g"))||[]).join("")).indexOf(g),P=fN(e=e.replace(RegExp(fP(g),"g"),function(e,t){return t===T?".":""}),s),N=P.beforeDecimal,R=P.afterDecimal,D=P.addNegation;return f.end-f.start=l.start&&i{h(navigator.language);let e=()=>{h(navigator.language)};return h(navigator.language),window.addEventListener("languagechange",e),()=>{window.removeEventListener("languagechange",e)}},[]);let p=(0,ef.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:v}=(0,ef.useMemo)(()=>(function(e,t){if("none"===t)return{groupingSeparator:"",groupingStyle:"none"};let n=new Intl.NumberFormat(e).format(123456789),r=n.replace(/[0-9]/g,"")[0],i=n.split(r).map(e=>e.length);return t?{groupingSeparator:r,groupingStyle:t}:{groupingSeparator:r,groupingStyle:i.every(e=>3===e)?"thousand":i.length>=2&&i.slice(1).every(e=>2===e)&&3===i[0]?"lakh":i.every(e=>4===e)?"wan":"thousand"}})(f,a),[f,a]);return(0,ed.jsxs)("div",{className:"relative",children:[(0,ed.jsx)(fK,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:v,thousandSeparator:m,className:(0,eX.cx)(fS({variant:n,size:r,state:i,focus:s,noSpin:o,cursor:l,className:u}),t?"pr-9":"")}),t&&(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,ed.jsx)(n_,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var fQ=n(6391),fJ=n.n(fQ);function f0(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function f1(e){let{value:t,placeholder:n=new(fJ())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:o,onChange:a,size:s="small",units:l,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,ef.useMemo)(()=>new(fJ())(t),[t]),[m,v]=(0,ef.useState)(""),g=(0,ef.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(fJ())(e):void 0)},[a]),y=(0,ef.useCallback)(e=>{v(e),g(e)},[v,g]);return(0,ef.useEffect)(()=>{p.isEqualTo(m)||v(f0(p,r))},[p]),(0,ed.jsx)(fX,{...h,thousandsGroupStyle:o?"none":void 0,"data-testid":"numberfield",size:s,placeholder:n.isNaN()?"":f0(n,r),units:l,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var f2=n(10363),f4=n(82494);let f3=new(fJ())(0);function f5(e){let{sc:t,placeholder:n=new(fJ())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:o,size:a="medium",units:s="SC",showFiat:l=!0,error:u,changed:c,prefix:d,onBlur:f,onFocus:h,name:p,...m}=e,v=(0,ef.useMemo)(()=>new(fJ())(void 0===t?NaN:t),[t]),{settings:g}=(0,f2.Hv)(),y=(0,f4.BW)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,ef.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fJ())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||f3):f3},[y.data,g]),[x,w]=(0,ef.useState)(),[E,j]=(0,ef.useState)(""),[k,S]=(0,ef.useState)(""),O=(0,ef.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(fJ())(e):void 0)},[o]),_=(0,ef.useCallback)(e=>{S(f0(e,r))},[S,r]),C=(0,ef.useCallback)(e=>{let t=f0(e,i);return j(t),O(t),t},[j,i,O]),M=(0,ef.useCallback)(e=>{j(e),O(e)},[j,O]),A=(0,ef.useCallback)(e=>{_(new(fJ())(e).times(b))},[_,b]),T=(0,ef.useCallback)(e=>{C(new(fJ())(e).dividedBy(b))},[C,b]),[P,N]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{if(!v.isEqualTo(E)){let e=f0(v,i);j(e),"fiat"!==x&&A(e)}P||N(!0)},[v]),(0,ef.useEffect)(()=>{P&&A(E)},[b]),(0,ef.useEffect)(()=>{"sc"===x&&A(E)},[E]),(0,ef.useEffect)(()=>{"fiat"===x&&T(k)},[k]),(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",u?"border-red-500 dark:border-red-400":c?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ed.jsx)(fX,{...m,name:p,"data-testid":"scInput",size:a,variant:"ghost",focus:"none",placeholder:f0(n,i),units:s,value:"NaN"!==E?E:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{M(e.value||"")},onBlur:e=>{w(void 0),f&&f(e)},onFocus:e=>{w("sc"),h&&h(e)}}),l&&g.siaCentral&&(0,ed.jsx)(fX,{...m,"data-testid":"fiatInput",name:"".concat(p,"-fiat"),size:a,variant:"ghost",focus:"none",value:"NaN"!==k?k:"",units:g.currency.label,decimalScale:i,allowNegative:!1,onValueChange:e=>{S(e.value||"")},placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(r):"0.42"),prefix:d||g.currency.prefix,onFocus:e=>{w("fiat"),h&&h(e)},onBlur:e=>{w(void 0),f&&f(e)}})]})}function f6(e){let{children:t}=e;return(0,ed.jsx)(lN,{content:t,children:(0,ed.jsx)("div",{className:"relative items-center inline mx-1",children:(0,ed.jsx)(n_,{color:"subtle",children:(0,ed.jsx)(lL.RdX,{className:"scale-75"})})})})}function f8(e){let{values:t,options:n,onChange:r}=e;return(0,ed.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,ed.jsx)(lD,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let f7=(0,eX.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),f9=ef.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,ed.jsxs)("div",{className:f7({size:n,state:r,className:o}),children:[i,(0,ed.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,ed.jsx)(lL.Cp0,{className:"pointer-events-none scale-75"})]})}),he=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)("option",{ref:t,...r,className:(0,eX.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),ht=(0,eX.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hn(e){let{className:t}=e;return(0,ed.jsx)("div",{className:ht({className:t})})}let hr=(0,eX.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),hi=ef.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,ed.jsx)("div",{ref:t,className:hr({size:n,className:r}),...i})}),ho="Switch",[ha,hs]=(0,em.b)(ho),[hl,hu]=ha(ho),hc=(0,ef.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,ef.useState)(null),p=(0,ev.e)(t,e=>h(e)),m=dw(f),v=(0,ef.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,ex.T)({prop:o,defaultProp:a,onChange:c});return(0,ef.createElement)(hl,{scope:n,checked:y,disabled:l},(0,ef.createElement)(ew.WV.button,(0,ep.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hh(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,eb.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,ef.createElement)(hf,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hd=(0,ef.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hu("SwitchThumb",n);return(0,ef.createElement)(ew.WV.span,(0,ep.Z)({"data-state":hh(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hf=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,ef.useRef)(null),a=fe(n),s=tq(t);return(0,ef.useEffect)(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[a,n,r]),(0,ef.createElement)("input",(0,ep.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hh(e){return e?"checked":"unchecked"}let hp=(0,eX.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hm=(0,eX.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hv=(0,ef.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(hc,{className:hm({size:n,state:r,className:i}),...a,ref:t,children:(0,ed.jsx)(hd,{className:hp({size:n})})}),o&&(0,ed.jsx)(n_,{color:a.disabled?"subtle":"contrast",children:o})]})}),hg=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e,i=ef.Children.toArray(n),o=i.find(hx);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:ef.Children.count(e)>1?ef.Children.only(null):(0,ef.isValidElement)(e)?e.props.children:null);return(0,ef.createElement)(hy,(0,ep.Z)({},r,{ref:t}),(0,ef.isValidElement)(e)?(0,ef.cloneElement)(e,void 0,n):null)}return(0,ef.createElement)(hy,(0,ep.Z)({},r,{ref:t}),n)});hg.displayName="Slot";let hy=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,ef.isValidElement)(n)?(0,ef.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,ev.F)(t,n.ref)}):ef.Children.count(n)>1?ef.Children.only(null):null});hy.displayName="SlotClone";let hb=({children:e})=>(0,ef.createElement)(ef.Fragment,null,e);function hx(e){return(0,ef.isValidElement)(e)&&e.type===hb}let hw=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,ef.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hg:t;return(0,ef.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,ef.createElement)(o,(0,ep.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hE=(0,ef.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ef.createElement)(hw.svg,(0,ep.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,ef.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hj="Popper",[hk,hS]=(0,em.b)(hj),[hO,h_]=hk(hj),hC=(0,ef.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=h_("PopperAnchor",n),a=(0,ef.useRef)(null),s=(0,ev.e)(t,a);return(0,ef.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,ef.createElement)(hw.div,(0,ep.Z)({},i,{ref:s}))}),hM="PopperContent",[hA,hT]=hk(hM),[hP,hN]=hk(hM,{hasParent:!1,positionUpdateFns:new Set}),hR=(0,ef.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:E,...j}=e,k=h_(hM,d),[S,O]=(0,ef.useState)(null),_=(0,ev.e)(t,e=>O(e)),[C,M]=(0,ef.useState)(null),A=tq(C),T=null!==(n=null==A?void 0:A.width)&&void 0!==n?n:0,P=null!==(r=null==A?void 0:A.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(g)?g:[g],D=R.length>0,L={padding:N,boundary:R.filter(hZ),altBoundary:D},{reference:Z,floating:F,strategy:V,x:z,y:I,placement:B,middlewareData:H,update:U}=tH({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tV,middleware:[hF(),tc({mainAxis:h+P,alignmentAxis:m}),w?tf({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?th():void 0,...L}):void 0,C?tU({element:C,padding:v}):void 0,w?ta({...L}):void 0,{name:"size",options:c={...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await e8(e,l),d=eJ(r),f=e0(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=e9(u.left,0),p=e9(u.right,0),m=e9(u.top,0),v=e9(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:e9(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:e9(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hV({arrowWidth:T,arrowHeight:P}),x?tu({strategy:"referenceHidden"}):void 0].filter(hL)});(0,eE.b)(()=>{Z(k.anchor)},[Z,k.anchor]);let W=null!==z&&null!==I,[q,$]=hz(B),Y=(0,lV.W)(E);(0,eE.b)(()=>{W&&(null==Y||Y())},[W,Y]);let G=null===(i=H.arrow)||void 0===i?void 0:i.x,K=null===(o=H.arrow)||void 0===o?void 0:o.y,X=(null===(a=H.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,J]=(0,ef.useState)();(0,eE.b)(()=>{S&&J(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:ee,positionUpdateFns:et}=hN(hM,d),en=!ee;(0,ef.useLayoutEffect)(()=>{if(!en)return et.add(U),()=>{et.delete(U)}},[en,et,U]),(0,eE.b)(()=>{en&&W&&Array.from(et).reverse().forEach(e=>requestAnimationFrame(e))},[en,W,et]);let er={"data-side":q,"data-align":$,...j,ref:_,style:{...j.style,animation:W?void 0:"none",opacity:null!==(s=H.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,ef.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:W?`translate3d(${Math.round(z)}px, ${Math.round(I)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=H.transformOrigin)||void 0===l?void 0:l.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,ef.createElement)(hA,{scope:d,placedSide:q,onArrowChange:M,arrowX:G,arrowY:K,shouldHideArrow:X},en?(0,ef.createElement)(hP,{scope:d,hasParent:!0,positionUpdateFns:et},(0,ef.createElement)(hw.div,er)):(0,ef.createElement)(hw.div,er)))}),hD={top:"bottom",right:"left",bottom:"top",left:"right"};function hL(e){return void 0!==e}function hZ(e){return null!==e}let hF=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hz(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hz(e){let[t,n="center"]=e.split("-");return[t,n]}let hI=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,ef.useState)(null);return(0,ef.createElement)(hO,{scope:t,anchor:r,onAnchorChange:i},n)},hB=(0,ef.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?tI.createPortal((0,ef.createElement)(hw.div,(0,ep.Z)({},i,{ref:t})),r):null}),hH="dismissableLayer.update",hU=(0,ef.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hW=(0,ef.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,ef.useContext)(hU),[f,h]=(0,ef.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,ef.useState)({}),v=(0,ev.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lV.W)(e),r=(0,ef.useRef)(!1),i=(0,ef.useRef)(()=>{});return(0,ef.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){h$("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lV.W)(e),r=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h$("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lV.W)(e);(0,ef.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,ef.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hq(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,ef.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hq())},[f,d]),(0,ef.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hH,e),()=>document.removeEventListener(hH,e)},[]),(0,ef.createElement)(hw.div,(0,ep.Z)({},c,{ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:(0,eb.M)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,eb.M)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,eb.M)(e.onPointerDownCapture,j.onPointerDownCapture)}))});function hq(){let e=new CustomEvent(hH);document.dispatchEvent(e)}function h$(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tI.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hY="HoverCard",[hG,hK]=(0,em.b)(hY,[hS]),hX=hS(),[hQ,hJ]=hG(hY),h0=(0,ef.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hJ("HoverCardTrigger",n),o=hX(n);return(0,ef.createElement)(hC,(0,ep.Z)({asChild:!0},o),(0,ef.createElement)(hw.a,(0,ep.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,eb.M)(e.onPointerEnter,h8(i.onOpen)),onPointerLeave:(0,eb.M)(e.onPointerLeave,h8(i.onClose)),onFocus:(0,eb.M)(e.onFocus,i.onOpen),onBlur:(0,eb.M)(e.onBlur,i.onClose),onTouchStart:(0,eb.M)(e.onTouchStart,e=>e.preventDefault())})))}),h1="HoverCardPortal",[h2,h4]=hG(h1,{forceMount:void 0}),h3="HoverCardContent",h5=(0,ef.forwardRef)((e,t)=>{let n=h4(h3,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hJ(h3,e.__scopeHoverCard);return(0,ef.createElement)(ej.z,{present:r||o.open},(0,ef.createElement)(h6,(0,ep.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,eb.M)(e.onPointerEnter,h8(o.onOpen)),onPointerLeave:(0,eb.M)(e.onPointerLeave,h8(o.onClose)),ref:t})))}),h6=(0,ef.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hJ(h3,n),c=hX(n),d=(0,ef.useRef)(null),f=(0,ev.e)(t,d),[h,p]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,ef.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,ef.useEffect)(()=>{d.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(d.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,ef.createElement)(hW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,eb.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,ef.createElement)(hR,(0,ep.Z)({},c,l,{onPointerDown:(0,eb.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function h8(e){return t=>"touch"===t.pointerType?void 0:e()}let h7=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hX(t),u=(0,ef.useRef)(0),c=(0,ef.useRef)(0),d=(0,ef.useRef)(!1),f=(0,ef.useRef)(!1),[h=!1,p]=(0,ex.T)({prop:r,defaultProp:i,onChange:o}),m=(0,ef.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,ef.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,ef.useCallback)(()=>p(!1),[p]);return(0,ef.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,ef.createElement)(hQ,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,ef.createElement)(hI,l,n))},h9=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hJ(h1,t);return(0,ef.createElement)(h2,{scope:t,forceMount:n},(0,ef.createElement)(ej.z,{present:n||o.open},(0,ef.createElement)(hB,{asChild:!0,container:i},r)))},pe=(0,eX.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),pt=(0,eX.cx)(nM(),"max-w-sm","py-0.5","px-1"),pn={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pr=ef.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=lT({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ed.jsxs)(h7,{open:l,onOpenChange:u,...i,children:[n&&(0,ed.jsx)(h0,{asChild:!0,children:n}),(0,ed.jsx)(n9,{children:l?(0,ed.jsx)(h9,{forceMount:!0,children:(0,ed.jsx)(h5,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,ed.jsx)(lA.div,{variants:pn,initial:"init",animate:"show",exit:"exit",className:pe(),children:(0,ed.jsx)("div",{className:(0,eX.cx)(pt,a),children:r})})})}):null})]})});function pi(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,ef.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,ef.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,ef.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,ef.useMemo)(()=>a,Object.values(a));return(0,ef.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,ef.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,ef.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function po(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pa(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function ps(...e){return(0,ef.useCallback)(pa(...e),e)}let pl=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e,i=ef.Children.toArray(n),o=i.find(pd);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:ef.Children.count(e)>1?ef.Children.only(null):(0,ef.isValidElement)(e)?e.props.children:null);return(0,ef.createElement)(pu,(0,ep.Z)({},r,{ref:t}),(0,ef.isValidElement)(e)?(0,ef.cloneElement)(e,void 0,n):null)}return(0,ef.createElement)(pu,(0,ep.Z)({},r,{ref:t}),n)});pl.displayName="Slot";let pu=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,ef.isValidElement)(n)?(0,ef.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?pa(t,n.ref):n.ref}):ef.Children.count(n)>1?ef.Children.only(null):null});pu.displayName="SlotClone";let pc=({children:e})=>(0,ef.createElement)(ef.Fragment,null,e);function pd(e){return(0,ef.isValidElement)(e)&&e.type===pc}let pf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,ef.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pl:t;return(0,ef.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,ef.createElement)(o,(0,ep.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ph(e){let t=(0,ef.useRef)(e);return(0,ef.useEffect)(()=>{t.current=e}),(0,ef.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pp=(null==globalThis?void 0:globalThis.document)?ef.useLayoutEffect:()=>{},pm=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,ef.useState)(),o=(0,ef.useRef)({}),a=(0,ef.useRef)(e),s=(0,ef.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,ef.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,ef.useEffect)(()=>{let e=pv(o.current);s.current="mounted"===l?e:"none"},[l]),pp(()=>{let t=o.current,n=a.current;if(n!==e){let r=s.current,i=pv(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),pp(()=>{if(r){let e=e=>{let t=pv(o.current).includes(e.animationName);e.target===r&&t&&(0,tI.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=pv(o.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,ef.useCallback)(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):ef.Children.only(n),o=ps(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,ef.cloneElement)(i,{ref:o}):null};function pv(e){return(null==e?void 0:e.animationName)||"none"}pm.displayName="Presence";let pg=eh["useId".toString()]||(()=>void 0),py=0;function pb(e){let t=e+"CollectionProvider",[n,r]=pi(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=ef.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ps(t,o(a,n).collectionRef);return ef.createElement(pl,{ref:i},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=ef.useRef(null),o=ef.useRef(new Map).current;return ef.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:ef.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=ef.useRef(null),s=ps(t,a),c=o(l,n);return ef.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),ef.createElement(pl,{[u]:"",ref:s},r)})},function(t){let n=o(e+"CollectionConsumer",t);return ef.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}let px="dismissableLayer.update",pw=(0,ef.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pE=(0,ef.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,ef.useContext)(pw),[f,h]=(0,ef.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,ef.useState)({}),v=ps(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=ph(e),r=(0,ef.useRef)(!1),i=(0,ef.useRef)(()=>{});return(0,ef.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){pk("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=ph(e),r=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pk("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=ph(e);(0,ef.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,ef.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pj(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,ef.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pj())},[f,d]),(0,ef.useEffect)(()=>{let e=()=>m({});return document.addEventListener(px,e),()=>document.removeEventListener(px,e)},[]),(0,ef.createElement)(pf.div,(0,ep.Z)({},c,{ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:po(e.onFocusCapture,k.onFocusCapture),onBlurCapture:po(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:po(e.onPointerDownCapture,j.onPointerDownCapture)}))});function pj(){let e=new CustomEvent(px);document.dispatchEvent(e)}function pk(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,tI.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,ef.createElement)(pf.span,(0,ep.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}}));let pS="NavigationMenu",[pO,p_,pC]=pb(pS),[pM,pA,pT]=pb(pS),[pP,pN]=pi(pS,[pC,pT]),[pR,pD]=pP(pS),[pL,pZ]=pP(pS),[pF,pV]=pP("NavigationMenuItem"),pz=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pD("NavigationMenuIndicator",n),o=p_(n),[a,s]=(0,ef.useState)(null),[l,u]=(0,ef.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,ef.useEffect)(()=>{var e;let t=null===(e=o().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&s(t)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pq(a,f),pq(i.indicatorTrack,f),l?(0,ef.createElement)(pf.div,(0,ep.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pI=((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=pD(pz,e.__scopeNavigationMenu);return pp(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pp(()=>()=>r(e.value),[e.value,r]),null},"navigationMenu.rootContentDismiss"),pB=(0,ef.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pD(pz,n),d=(0,ef.useRef)(null),f=ps(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=p_(n),v=(0,ef.useRef)(null),{onItemDismiss:g}=c;(0,ef.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pI,t),()=>e.removeEventListener(pI,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,ef.useMemo)(()=>{let e=m().map(e=>e.value);"rtl"===c.dir&&e.reverse();let t=e.indexOf(c.value),n=e.indexOf(c.previousValue),i=r===c.value,o=n===e.indexOf(r);if(!i&&!o)return v.current;let a=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(o&&-1!==t)return t>n?"to-start":"to-end"}return null})();return v.current=a,a},[c.previousValue,c.value,c.dir,m,r]);return(0,ef.createElement)(pH,{asChild:!0},(0,ef.createElement)(pE,(0,ep.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pI,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:po(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:po(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:po(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=function(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);if(pW(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=o.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:po(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pH=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pD("NavigationMenuViewport",n),a=ps(t,o.onViewportChange),s=pZ(pz,e.__scopeNavigationMenu),[l,u]=(0,ef.useState)(null),[c,d]=(0,ef.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pq(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,ef.createElement)(pf.div,(0,ep.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:po(e.onPointerEnter,o.onContentEnter),onPointerLeave:po(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,ef.createElement)(pm,{key:e,present:n||i},(0,ef.createElement)(pB,(0,ep.Z)({},r,{ref:pa(t,e=>{i&&e&&d(e)})})))}))},(0,ef.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pD("FocusGroup",n);return(0,ef.createElement)(pM.Provider,{scope:n},(0,ef.createElement)(pM.Slot,{scope:n},(0,ef.createElement)(pf.div,(0,ep.Z)({dir:i.dir},r,{ref:t}))))})),pU=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pA(n),o=pD("FocusGroupItem",n);return(0,ef.createElement)(pM.ItemSlot,{scope:n},(0,ef.createElement)(pf.button,(0,ep.Z)({},r,{ref:t,onKeyDown:po(e.onKeyDown,e=>{if(["Home","End",...pU].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),pU.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pW(t)),e.preventDefault()}})})))};function pW(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pq(e,t){let n=ph(t);pp(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var p$=n(38617);let pY=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)(fb,{...r,ref:t,className:(0,eX.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pG(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,p$.F)();return(0,ed.jsxs)(fy,{value:i,tabIndex:r,className:(0,eX.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,ed.jsx)(pY,{value:"system",children:(0,ed.jsx)(lN,{className:n,sideOffset:16,content:"System",children:(0,ed.jsx)(lL.$Iz,{})})}),(0,ed.jsx)(pY,{value:"light",children:(0,ed.jsx)(lN,{className:n,sideOffset:16,content:"Light",children:(0,ed.jsx)(lL.JaG,{})})}),(0,ed.jsx)(pY,{value:"dark",children:(0,ed.jsx)(lN,{className:n,sideOffset:16,content:"Dark",children:(0,ed.jsx)(lL.osk,{})})})]})}var pK=n(13980),pX=n.n(pK),pQ=n(22970),pJ=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 p0(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=pJ.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var p1=[".DS_Store","Thumbs.db"];function p2(e){return"object"==typeof e&&null!==e}function p4(e){return e.filter(function(e){return -1===p1.indexOf(e.name)})}function p3(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,ml(n)];if(e.sizen)return[!1,ml(n)]}return[!0,null]}function mh(e){return null!=e}function mp(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function mm(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 mv(e){e.preventDefault()}function mg(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var mT=(0,ef.forwardRef)(function(e,t){var n=e.children,r=mR(mA(e,mx)),i=r.open,o=mA(r,mw);return(0,ef.useImperativeHandle)(t,function(){return{open:i}},[i]),ef.createElement(ef.Fragment,null,n(mC(mC({},o),{},{open:i})))});mT.displayName="Dropzone";var mP={disabled:!1,getFilesFromEvent:function(e){return(0,pQ.mG)(this,void 0,void 0,function(){return(0,pQ.Jh)(this,function(t){return p2(e)&&p2(e.dataTransfer)?[2,function(e,t){return(0,pQ.mG)(this,void 0,void 0,function(){var n;return(0,pQ.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=p3(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(p5))];case 1:return[2,p4(function e(t){return t.reduce(function(t,n){return(0,pQ.ev)((0,pQ.ev)([],(0,pQ.CR)(t),!1),(0,pQ.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,p4(p3(e.files).map(function(e){return p0(e)}))]}})})}(e.dataTransfer,e.type)]:p2(e)&&p2(e.target)?[2,p3(e.target.files).map(function(e){return p0(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,pQ.mG)(this,void 0,void 0,function(){return(0,pQ.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 p0(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};mT.defaultProps=mP,mT.propTypes={children:pX().func,accept:pX().objectOf(pX().arrayOf(pX().string)),multiple:pX().bool,preventDropOnDocument:pX().bool,noClick:pX().bool,noKeyboard:pX().bool,noDrag:pX().bool,noDragEventsBubbling:pX().bool,minSize:pX().number,maxSize:pX().number,maxFiles:pX().number,disabled:pX().bool,getFilesFromEvent:pX().func,onFileDialogCancel:pX().func,onFileDialogOpen:pX().func,useFsAccessApi:pX().bool,autoFocus:pX().bool,onDragEnter:pX().func,onDragLeave:pX().func,onDragOver:pX().func,onDrop:pX().func,onDropAccepted:pX().func,onDropRejected:pX().func,onError:pX().func,validator:pX().func};var mN={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function mR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=mC(mC({},mP),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,p=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,g=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,E=t.noDrag,j=t.noDragEventsBubbling,k=t.onError,S=t.validator,O=(0,ef.useMemo)(function(){return function(e){if(mh(e))return Object.entries(e).reduce(function(e,t){var n=mi(t,2),r=n[0],i=n[1];return[].concat(me(e),[r],me(i))},[]).filter(function(e){return my(e)||mb(e)}).join(",")}(n)},[n]),_=(0,ef.useMemo)(function(){return mh(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=mi(e,2),n=t[0],r=t[1],i=!0;return my(n)||(console.warn('Skipped "'.concat(n,'" 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.')),i=!1),Array.isArray(r)&&r.every(mb)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=mi(t,2),r=n[0],i=n[1];return mn(mn({},e),{},mr({},r,i))},{})}]:n},[n]),C=(0,ef.useMemo)(function(){return"function"==typeof v?v:mL},[v]),M=(0,ef.useMemo)(function(){return"function"==typeof m?m:mL},[m]),A=(0,ef.useRef)(null),T=(0,ef.useRef)(null),P=mk((0,ef.useReducer)(mD,mN),2),N=P[0],R=P[1],D=N.isFocused,L=N.isFileDialogActive,Z=(0,ef.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),F=function(){!Z.current&&L&&setTimeout(function(){T.current&&!T.current.files.length&&(R({type:"closeDialog"}),M())},300)};(0,ef.useEffect)(function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}},[T,L,M,Z]);var V=(0,ef.useRef)([]),z=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),V.current=[])};(0,ef.useEffect)(function(){return b&&(document.addEventListener("dragover",mv,!1),document.addEventListener("drop",z,!1)),function(){b&&(document.removeEventListener("dragover",mv),document.removeEventListener("drop",z))}},[A,b]),(0,ef.useEffect)(function(){return!r&&y&&A.current&&A.current.focus(),function(){}},[A,y,r]);var I=(0,ef.useCallback)(function(e){k?k(e):console.error(e)},[k]),B=(0,ef.useCallback)(function(e){var t;e.preventDefault(),e.persist(),et(e),V.current=[].concat(function(e){if(Array.isArray(e))return mO(e)}(t=V.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||mS(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]),mm(e)&&Promise.resolve(i(e)).then(function(t){if(!mp(e)||j){var n,r,i,c,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:O,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:S}).files,i=n.accept,c=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=mi(md(e,i),1)[0],n=mi(mf(e,c,d),1)[0],r=p?p(e):null;return t&&n&&!r}));R({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return I(e)})},[i,u,I,j,O,a,o,s,l,S]),H=(0,ef.useCallback)(function(e){e.preventDefault(),e.persist(),et(e);var t=mm(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1},[d,j]),U=(0,ef.useCallback)(function(e){e.preventDefault(),e.persist(),et(e);var t=V.current.filter(function(e){return A.current&&A.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),V.current=t,!(t.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),mm(e)&&c&&c(e))},[A,c,j]),W=(0,ef.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=mk(md(e,O),2),i=t[0],s=t[1],l=mk(mf(e,a,o),2),u=l[0],c=l[1],d=S?S(e):null;if(i&&u&&!d)n.push(e);else{var f=[s,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach(function(e){r.push({file:e,errors:[mc]})}),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&p&&p(r,t),n.length>0&&h&&h(n,t)},[R,s,O,a,o,l,f,h,p,S]),q=(0,ef.useCallback)(function(e){e.preventDefault(),e.persist(),et(e),V.current=[],mm(e)&&Promise.resolve(i(e)).then(function(t){(!mp(e)||j)&&W(t,e)}).catch(function(e){return I(e)}),R({type:"reset"})},[i,W,I,j]),$=(0,ef.useCallback)(function(){if(Z.current){R({type:"openDialog"}),C(),window.showOpenFilePicker({multiple:s,types:_}).then(function(e){return i(e)}).then(function(e){W(e,null),R({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(M(e),R({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(Z.current=!1,T.current?(T.current.value=null,T.current.click()):I(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 was provided."))):I(e)});return}T.current&&(R({type:"openDialog"}),C(),T.current.value=null,T.current.click())},[R,C,M,g,W,I,_,s]),Y=(0,ef.useCallback)(function(e){A.current&&A.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),$())},[A,$]),G=(0,ef.useCallback)(function(){R({type:"focus"})},[]),K=(0,ef.useCallback)(function(){R({type:"blur"})},[]),X=(0,ef.useCallback)(function(){x||(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($,0):$())},[x,$]),Q=function(e){return r?null:e},J=function(e){return w?null:Q(e)},ee=function(e){return E?null:Q(e)},et=function(e){j&&e.stopPropagation()},en=(0,ef.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,i=e.onKeyDown,o=e.onFocus,a=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=mA(e,mE);return mC(mC(mM({onKeyDown:J(mg(i,Y)),onFocus:J(mg(o,G)),onBlur:J(mg(a,K)),onClick:Q(mg(s,X)),onDragEnter:ee(mg(l,B)),onDragOver:ee(mg(u,H)),onDragLeave:ee(mg(c,U)),onDrop:ee(mg(d,q)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,A),r||w?{}:{tabIndex:0}),f)}},[A,Y,G,K,X,B,H,U,q,w,E,r]),er=(0,ef.useCallback)(function(e){e.stopPropagation()},[]),ei=(0,ef.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=mA(e,mj);return mC(mC({},mM({accept:O,multiple:s,type:"file",style:{display:"none"},onChange:Q(mg(n,q)),onClick:Q(mg(r,er)),tabIndex:-1},void 0===t?"ref":t,T)),i)}},[T,n,s,q,r]);return mC(mC({},N),{},{isFocused:D&&!r,getRootProps:en,getInputProps:ei,rootRef:A,inputRef:T,open:Q($)})}function mD(e,t){switch(t.type){case"focus":return mC(mC({},e),{},{isFocused:!0});case"blur":return mC(mC({},e),{},{isFocused:!1});case"openDialog":return mC(mC({},mN),{},{isFileDialogActive:!0});case"closeDialog":return mC(mC({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mC(mC({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mC(mC({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mC({},mN);default:return e}}function mL(){}let{useDropzone:mZ}=ec;var mF=n(14582),mV=n(63739),mz=n(72779),mI=n.n(mz),mB=n(47440),mH=n(59309),mU=n(19067),mW=n(71220),mq=n(28142);function m$(e){return"bandwidth"in e?e.bandwidth():0}var mY=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mG(){return(mG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mY),g=null!=m?m:(0,mW.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+m$(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,mq.Z)(r(e)))?n:0)+y;return{index:t,from:new mU.Z({x:0,y:o}),to:new mU.Z({x:i,y:o})}});return ef.createElement(mH.Z,{className:mI()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return ef.createElement(mB.default,mG({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}mK.propTypes={tickValues:pX().array,width:pX().number.isRequired};var mX=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mQ(){return(mQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mX),g=null!=p?p:(0,mW.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+m$(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,mq.Z)(r(e)))?n:0)+y;return{index:t,from:new mU.Z({x:o,y:0}),to:new mU.Z({x:o,y:i})}});return ef.createElement(mH.Z,{className:mI()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return ef.createElement(mB.default,mQ({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}mJ.propTypes={tickValues:pX().array,height:pX().number.isRequired};var m0=n(64183),m1=n(8597);function m2(e){var t=e.id,n=e.width,r=e.height,i=e.children;return ef.createElement("defs",null,ef.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}m2.propTypes={id:pX().string.isRequired,width:pX().number.isRequired,height:pX().number.isRequired,children:pX().node.isRequired};var m4={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function m3(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return ef.createElement(m2,{id:t,width:n,height:r},!!h&&ef.createElement("rect",{className:mI()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return ef.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:mI()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case m4.horizontal:return"M 0,"+t/2+" l "+t+",0";case m4.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case m4.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case m4.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}m3.propTypes={id:pX().string.isRequired,width:pX().number.isRequired,height:pX().number.isRequired,className:pX().string,background:pX().string,stroke:pX().string,strokeWidth:pX().oneOfType([pX().number,pX().string]),strokeDasharray:pX().oneOfType([pX().string,pX().number]),strokeLinecap:pX().oneOf(["square","butt","round","inherit"]),shapeRendering:pX().oneOfType([pX().string,pX().number]),orientation:pX().array};var m5=["tooltipOpen"];function m6(){return(m6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m8);return ef.createElement("div",m7({ref:t,className:mI()("visx-tooltip",n),style:m7({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function vt(){return(vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va),v=!1,g=!1;if(u&&l){var y=void 0===r?0:r,b=void 0===f?0:f;if(l.width){var x=y+o+u.width-l.width,w=u.width-y-o;v=x>0&&x>w}else{var E=y+o+u.width-window.innerWidth,j=u.width-y-o;v=E>0&&E>j}if(l.height){var k=b+s+u.height-l.height,S=u.height-b-s;g=k>0&&k>S}else g=b+s+u.height>window.innerHeight;y=v?y-u.width-o:y+o,b=g?b-u.height-s:b+s,t="translate("+(y=Math.round(y))+"px, "+(b=Math.round(b))+"px)"}return ef.createElement(ve,vs({ref:p,style:vs({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),ef.createElement(vo,{value:{isFlippedVertically:!g,isFlippedHorizontally:!v}},n))}vl.propTypes={nodeRef:pX().oneOfType([pX().string,pX().func,pX().object])};var vu=((p=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=ef.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vn(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:tI.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():vr,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():vr}},n.render=function(){return ef.createElement(vl,vt({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(ef.PureComponent)).displayName="withBoundingRects("+(vl.displayName||"")+")",p),vc=n(99985);function vd(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return vx({},t,{isBrushing:!0,extent:vx({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=vx({},e,{isBrushing:!1,start:vx({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:vx({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vw(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return ef.createElement(vc.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return ef.createElement("g",null,h&&ef.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:vE}),ef.createElement("rect",vx({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(ef.Component);function vk(){return(vk=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return vk({},e,{isBrushing:!0,extent:vk({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return vk({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=vk({},c);r&&r(c),n.updateBrush(function(t){return vk({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?vh(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return vk({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=vk({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=vk({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vS(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),E=this.corners(),j=this.getBrushWidth(),k=this.getBrushHeight(),S=new Set(p);return ef.createElement(mH.Z,{className:"visx-brush",top:o,left:a},ef.createElement(vc.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return ef.createElement(mF.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,vP),g=o,y=s,b=a,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),ef.createElement("defs",null,ef.createElement("linearGradient",vN({id:n,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&ef.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&ef.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function vD(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function vL(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function vZ(){return 0}function vF(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}vR.propTypes={id:pX().string.isRequired,from:pX().string,to:pX().string,x1:pX().oneOfType([pX().string,pX().number]),x2:pX().oneOfType([pX().string,pX().number]),y1:pX().oneOfType([pX().string,pX().number]),y2:pX().oneOfType([pX().string,pX().number]),fromOffset:pX().oneOfType([pX().string,pX().number]),fromOpacity:pX().oneOfType([pX().string,pX().number]),toOffset:pX().oneOfType([pX().string,pX().number]),toOpacity:pX().oneOfType([pX().string,pX().number]),rotate:pX().oneOfType([pX().string,pX().number]),transform:pX().string,children:pX().node,vertical:pX().bool};var vz=n(93122),vI=n(93221),vB=function(){return vI.Z.Date.now()},vH=n(78807),vU=n(22758),vW=0/0,vq=/^[-+]0x[0-9a-f]+$/i,v$=/^0b[01]+$/i,vY=/^0o[0-7]+$/i,vG=parseInt,vK=function(e){if("number"==typeof e)return e;if((0,vU.Z)(e))return vW;if((0,vz.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,vz.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,vH.Z)(e);var n=v$.test(e);return n||vY.test(e)?vG(e.slice(2),n?2:8):vq.test(e)?vW:+e},vX=Math.max,vQ=Math.min,vJ=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function m(){var e,n,r,i=vB();if(p(i))return v(i);s=setTimeout(m,(e=i-l,n=i-u,r=t-e,d?vQ(r,o-n):r))}function v(e){return(s=void 0,f&&r)?h(e):(r=i=void 0,a)}function g(){var e,n=vB(),o=p(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(m,t),c?h(e):a;if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=vK(t)||0,(0,vz.Z)(n)&&(c=!!n.leading,o=(d="maxWait"in n)?vX(vK(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:v(vB())},g},v0=n(55746),v1=n(45742),v2=n(27266),v4=["id","markerWidth","markerHeight","markerUnits","children"];function v3(){return(v3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v4);return ef.createElement("defs",null,ef.createElement("marker",v3({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}v5.propTypes={id:pX().string.isRequired,size:pX().number,markerWidth:pX().oneOfType([pX().string,pX().number]),markerHeight:pX().oneOfType([pX().string,pX().number]),markerUnits:pX().string,refX:pX().oneOfType([pX().string,pX().number]),refY:pX().oneOfType([pX().string,pX().number]),strokeWidth:pX().number,children:pX().node.isRequired};var v6=["id","size","strokeWidth"];function v8(){return(v8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v6),s=2*r+o,l=s/2;return ef.createElement(v5,v8({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),ef.createElement("circle",{r:r,cx:l,cy:l}))}var v9=n(64170),ge={top:"top",left:"left",bottom:"bottom"};function gt(){return(gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gs),E=null!=v?v:"tickFormat"in m?m.tickFormat():gi.Z,j=f===ge.left,k=f===ge.top,S=k||f===ge.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(m),_=j||k?-1:1,C=m.range(),M=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:ga({start:0,end:0},t)),A=go({x:Number(C[0])+.5-M.start,y:0},S),T=go({x:Number(C[C.length-1])+.5+M.end,y:0},S),P=(null!=b?b:(0,mW.Z)(m,c)).filter(function(e){return!s||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=P.map(function(e){var t=e.value,n=e.index,r=(0,mq.Z)(O(t));return{value:t,index:n,from:go({x:r,y:0},S),to:go({x:r,y:y*_},S),formattedValue:E(t,n,P)}});return ef.createElement(mH.Z,{className:mI()("visx-axis",r),top:void 0===x?0:x,left:void 0===l?0:l},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,o=e.hideTicks,a=e.horizontal,s=e.label,l=void 0===s?"":s,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?gr:d,h=e.orientation,p=void 0===h?ge.bottom:h,m=e.scale,v=e.stroke,g=e.strokeDasharray,y=e.strokeWidth,b=void 0===y?1:y,x=e.tickClassName,w=e.tickComponent,E=e.tickLineProps,j=e.tickLabelProps,k=void 0===j?function(){return gr}:j,S=e.tickLength,O=e.tickStroke,_=e.tickTransform,C=e.ticks,M=e.ticksComponent,A=C.map(function(e){return k(e.value,e.index,C)}),T=Math.max.apply(Math,[10].concat(A.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return ef.createElement(ef.Fragment,null,(void 0===M?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,o=e.tickComponent,a=e.tickLabelProps,s=e.tickStroke,l=void 0===s?"#222":s,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var s,c=e.value,h=e.index,p=e.from,m=e.to,v=e.formattedValue,g=null!=(s=a[h])?s:{},y=Math.max(10,"number"==typeof g.fontSize&&g.fontSize||0),b=m.y+(n&&r!==ge.top?y:0);return ef.createElement(mH.Z,{key:"visx-tick-"+c+"-"+h,className:mI()("visx-axis-tick",i),transform:u},!t&&ef.createElement(mV.Z,gt({from:p,to:m,stroke:l,strokeWidth:d,strokeLinecap:"square"},f)),o?o(gt({},g,{x:m.x,y:b,formattedValue:v})):ef.createElement(v9.Z,gt({x:m.x,y:b},g),v))})}:M)({hideTicks:o,horizontal:a,orientation:p,scale:m,tickClassName:x,tickComponent:w,tickLabelProps:A,tickStroke:void 0===O?"#222":O,tickTransform:_,ticks:C,strokeWidth:b,tickLineProps:E}),!i&&ef.createElement(mV.Z,{className:mI()("visx-axis-line",n),from:t,to:r,stroke:void 0===v?"#222":v,strokeWidth:b,strokeDasharray:g}),l&&ef.createElement(v9.Z,gn({className:mI()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,o=e.labelProps,a=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=a===ge.left||a===ge.top?-1:1;if(a===ge.top||a===ge.bottom){var d=a===ge.bottom&&"number"==typeof o.fontSize?o.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(u+i+l+d)}else t=(Number(s[0])+Number(s[s.length-1]))/2*c,n=-(u+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===c?14:c,labelProps:f,orientation:p,range:m.range(),tickLabelFontSize:T,tickLength:void 0===S?8:S}),f),l))}:n)(gl({},w,{axisFromPoint:A,axisToPoint:T,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==o&&o,hideZero:s,horizontal:S,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:E,tickLength:y,tickPosition:O,tickSign:_,ticks:N})))}var gc=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gd(){return(gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gc);return ef.createElement(gu,gd({axisClassName:mI()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:ge.bottom,tickLabelProps:void 0===r?gf:r,tickLength:void 0===i?8:i},o))}var gp=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gm(){return(gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gp);return ef.createElement(gu,gm({axisClassName:mI()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:ge.left,tickLabelProps:void 0===r?gv:r,tickLength:void 0===i?8:i},o))}let gy=e=>new Date((null==e?void 0:e.timestamp)||0),gb=e=>(null==e?void 0:e.value)||0,gx="var(--colors-hiContrast)",gw={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:gx},gE={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:gx};function gj(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,ed.jsxs)(mH.Z,{left:d||o.left,top:c||o.top,children:[(0,ed.jsx)(v7,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,ed.jsx)(vR,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,ed.jsx)(v0.Z,{data:t,x:e=>a(gy(e))||0,y:e=>s(gb(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?v1.ZP:v2.Z}),!l&&(0,ed.jsx)(gh,{top:i,scale:a,numTicks:r>520?10:5,stroke:gx,tickStroke:gx,tickLabelProps:()=>gw}),!u&&(0,ed.jsx)(gg,{scale:s,numTicks:5,stroke:gx,tickStroke:gx,tickLabelProps:()=>gE}),h]})}let{inherit:gk,current:gS,transparent:gO,black:g_,white:gC,slate:gM,zinc:gA,neutral:gT,stone:gP,red:gN,orange:gR,amber:gD,yellow:gL,lime:gZ,green:gF,emerald:gV,teal:gz,cyan:gI,sky:gB,blue:gH,indigo:gU,violet:gW,purple:gq,fuchsia:g$,pink:gY,rose:gG}=n(6692),gK={inherit:gk,current:gS,transparent:gO,black:g_,white:gC,slate:gM,zinc:gA,neutral:gT,stone:gP,red:gN,orange:gR,amber:gD,yellow:gL,lime:gZ,green:gF,emerald:gV,teal:gz,cyan:gI,sky:gB,blue:gH,indigo:gU,violet:gW,purple:gq,fuchsia:g$,pink:gY,rose:gG,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var gX=n(21487);let gQ={top:10,bottom:15,left:10,right:10},gJ="brush_pattern",g0="brush_gradient",g1=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,vz.Z)(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),vJ(e,t,{leading:r,maxWait:t,trailing:i})}(e=>e(),15),g2=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(ivD(e(t),n),r=(t,n)=>e(t)-n):(t=e===vD||e===vL?e:vZ,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===m&&(m={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===v&&(v=function(e,t){return ef.createElement("div",t,e)});var g4=n(54073),g3=n.n(g4),g5=n(44711),g6=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function g8(){return(g8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g6),d=(0,ef.useRef)(null),f=(0,ef.useRef)(0),h=(0,ef.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],v=(0,ef.useMemo)(function(){var e=Array.isArray(a)?a:[a];return g3()(function(t){m(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:u})},[i,u,a]);return(0,ef.useEffect)(function(){var e=new g5.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){v({width:i,height:o,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),ef.createElement("div",g8({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(g8({},p,{ref:d.current,resize:v})))}g9.propTypes={className:pX().string,debounceTime:pX().number,enableDebounceLeadingCall:pX().bool,ignoreDimensions:pX().oneOfType([pX().any,pX().arrayOf(pX().any)]),children:pX().func.isRequired};var ye=n(52058);function yt(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:b,renderTooltipGlyph:x,renderLineSeries:w,sharedTooltip:E,showHorizontalCrosshair:j,showTooltip:k,showVerticalCrosshair:S,snapTooltipToDatum:O,stackOffset:_,margin:C,theme:M,xAxisOrientation:A,yAxisOrientation:T,AreaSeries:P,AreaStack:N,Axis:R,BarGroup:D,BarSeries:L,BarStack:Z,Grid:F,LineSeries:V,Tooltip:z,XYChart:I}=e;return(0,ed.jsxs)(I,{theme:M.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:C,captureEvents:!0,children:[(0,ed.jsx)("g",{children:(0,ed.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,ed.jsx)(vR,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,ed.jsxs)(ef.Fragment,{children:[(0,ed.jsx)(m3,{id:"pattern-".concat(yn(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,ed.jsx)(vR,{id:"gradient-".concat(yn(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,ed.jsx)(F,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,ed.jsx)(Z,{offset:l.stackOffset,children:c.map(e=>(0,ed.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>yr(t,e,l)},e))}),g&&(0,ed.jsx)(D,{children:c.map(e=>(0,ed.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>yr(t,e,l)},e))}),m&&(0,ed.jsx)(ed.Fragment,{children:c.map(e=>(0,ed.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:yr(t,e,l),fill:yr(t,e,l),curve:a},e))}),v&&(0,ed.jsx)(N,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==_,children:c.map(e=>(0,ed.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:yr(t,e,l),fill:yr(t,e,l)},e))}),w&&(0,ed.jsx)(ed.Fragment,{children:c.map(e=>{var t,n;return(0,ed.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,ed.jsx)(R,{orientation:A,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,gX.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,ed.jsx)(R,{label:null==_?"SC":"expand"===_?"Fraction of total":"",orientation:T,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),k&&(0,ed.jsx)(z,{showHorizontalCrosshair:j,showVerticalCrosshair:S,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:E&&!g,renderGlyph:b?x:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=E?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,gX.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,ye.Z)(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col gap-2 py-1"),children:[(0,ed.jsx)(n_,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,ed.jsx)(c6,{color:"panel",className:"w-full"}),(0,ed.jsx)("div",{className:(0,eX.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,ed.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,ed.jsx)(n_,{weight:"semibold",children:t}),(0,ed.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=o&&i.y[c](o);return(0,ed.jsxs)(ef.Fragment,{children:[(0,ed.jsx)(n_,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eX.cx)(a===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,ed.jsx)(n_,{size:"12",style:{textAlign:"end"},className:(0,eX.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,ed.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(n_,{className:"pt-2",children:"total"}),(0,ed.jsx)(n_,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,ed.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function yn(e,t){return"".concat(e,"-").concat(t)}function yr(e,t,n){var r;let i=yn(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var yi=n(24037),yo=n(86707);function ya(e){var t=e.top,n=e.left,r=e.className,i=e.children;return ef.createElement(mH.Z,{className:mI()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}ya.propTypes={top:pX().number,left:pX().number,className:pX().string,children:pX().node};var ys=["children","className","top","left","size"];function yl(){return(yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ys),s=(0,yi.Z)();return(s.type(yo.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?ef.createElement(ef.Fragment,null,t({path:s})):ef.createElement(ya,{top:r,left:i},ef.createElement("path",yl({className:mI()("visx-glyph-star",n),d:s()||""},a)))}yu.propTypes={children:pX().func,className:pX().string,top:pX().number,left:pX().number,size:pX().oneOfType([pX().number,pX().func])};var yc=["top","left","className"];function yd(){return(yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,yc);return ef.createElement(ya,{top:void 0===t?0:t,left:void 0===n?0:n},ef.createElement("circle",yd({className:mI()("visx-glyph-dot",r)},i)))}yf.propTypes={className:pX().string,top:pX().number,left:pX().number,r:pX().number,cx:pX().number,cy:pX().number};var yh=n(9135),yp=["children","className","top","left","size"];function ym(){return(ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,yp),s=(0,yi.Z)();return(s.type(yh.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?ef.createElement(ef.Fragment,null,t({path:s})):ef.createElement(ya,{top:r,left:i},ef.createElement("path",ym({className:mI()("visx-glyph-cross",n),d:s()||""},a)))}yv.propTypes={children:pX().func,className:pX().string,top:pX().number,left:pX().number,size:pX().oneOfType([pX().number,pX().func])};var yg=n(46385),yy=n(20651),yb={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},yx=yb.gray,yw=yx[7],yE=[yb.cyan[9],yb.cyan[3],yb.yellow[5],yb.red[4],yb.grape[8],yb.grape[5],yb.pink[9]];function yj(){return(yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)yC(e,n,{get:t[n],enumerable:!0})})(yM,{assign:()=>y8,colors:()=>y3,createStringInterpolator:()=>W,skipAnimation:()=>y5,to:()=>q,willAdvance:()=>y6});var yA=yq(),yT=e=>yB(e,yA),yP=yq();yT.write=e=>yB(e,yP);var yN=yq();yT.onStart=e=>yB(e,yN);var yR=yq();yT.onFrame=e=>yB(e,yR);var yD=yq();yT.onFinish=e=>yB(e,yD);var yL=[];yT.setTimeout=(e,t)=>{let n=yT.now()+t,r=()=>{let e=yL.findIndex(e=>e.cancel==r);~e&&yL.splice(e,1),yz-=~e?1:0},i={time:n,handler:e,cancel:r};return yL.splice(yZ(n),0,i),yz+=1,yH(),i};var yZ=e=>~(~yL.findIndex(t=>t.time>e)||~yL.length);yT.cancel=e=>{yN.delete(e),yR.delete(e),yD.delete(e),yA.delete(e),yP.delete(e)},yT.sync=e=>{yI=!0,yT.batchedUpdates(e),yI=!1},yT.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,yT.onStart(n)}return r.handler=e,r.cancel=()=>{yN.delete(n),t=null},r};var yF="undefined"!=typeof window?window.requestAnimationFrame:()=>{};yT.use=e=>yF=e,yT.now="undefined"!=typeof performance?()=>performance.now():Date.now,yT.batchedUpdates=e=>e(),yT.catch=console.error,yT.frameLoop="always",yT.advance=()=>{"demand"!==yT.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):yW()};var yV=-1,yz=0,yI=!1;function yB(e,t){yI?(t.delete(e),e(0)):(t.add(e),yH())}function yH(){yV<0&&(yV=0,"demand"!==yT.frameLoop&&yF(yU))}function yU(){~yV&&(yF(yU),yT.batchedUpdates(yW))}function yW(){let e=yV,t=yZ(yV=yT.now());if(t&&(y$(yL.splice(0,t),e=>e.handler()),yz-=t),!yz){yV=-1;return}yN.flush(),yA.flush(e?Math.min(64,yV-e):16.667),yR.flush(),yP.flush(),yD.flush()}function yq(){let e=new Set,t=e;return{add(n){yz+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(yz-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,yz-=t.size,y$(t,t=>t(n)&&e.add(t)),yz+=e.size,t=e)}}}function y$(e,t){e.forEach(e=>{try{t(e)}catch(e){yT.catch(e)}})}function yY(){}var yG=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yK={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 yX(e,t){if(yK.arr(e)){if(!yK.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yJ(e,t,n){if(yK.arr(e)){for(let r=0;ryK.und(e)?[]:yK.arr(e)?e:[e];function y1(e,t){if(e.size){let n=Array.from(e);e.clear(),yQ(n,t)}}var y2=(e,...t)=>y1(e,e=>e(...t)),y4=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),y3=null,y5=!1,y6=yY,y8=e=>{e.to&&(q=e.to),e.now&&(yT.now=e.now),void 0!==e.colors&&(y3=e.colors),null!=e.skipAnimation&&(y5=e.skipAnimation),e.createStringInterpolator&&(W=e.createStringInterpolator),e.requestAnimationFrame&&yT.use(e.requestAnimationFrame),e.batchedUpdates&&(yT.batchedUpdates=e.batchedUpdates),e.willAdvance&&(y6=e.willAdvance),e.frameLoop&&(yT.frameLoop=e.frameLoop)},y7=new Set,y9=[],be=[],bt=0,bn={get idle(){return!y7.size&&!y9.length},start(e){bt>e.priority?(y7.add(e),yT.onStart(br)):(bi(e),yT(ba))},advance:ba,sort(e){if(bt)yT.onFrame(()=>bn.sort(e));else{let t=y9.indexOf(e);~t&&(y9.splice(t,1),bo(e))}},clear(){y9=[],y7.clear()}};function br(){y7.forEach(bi),y7.clear(),yT(ba)}function bi(e){y9.includes(e)||bo(e)}function bo(e){y9.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(y9,t=>t.priority>e.priority),0,e)}function ba(e){let t=be;for(let n=0;n0}var bs="[-+]?\\d*\\.?\\d+",bl=bs+"%";function bu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var bc=RegExp("rgb"+bu(bs,bs,bs)),bd=RegExp("rgba"+bu(bs,bs,bs,bs)),bf=RegExp("hsl"+bu(bs,bl,bl)),bh=RegExp("hsla"+bu(bs,bl,bl,bs)),bp=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bm=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bv=/^#([0-9a-fA-F]{6})$/,bg=/^#([0-9a-fA-F]{8})$/;function by(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bb(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*by(i,r,e+1/3))<<24|Math.round(255*by(i,r,e))<<16|Math.round(255*by(i,r,e-1/3))<<8}function bx(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function bw(e){return(parseFloat(e)%360+360)%360/360}function bE(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function bj(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function bk(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=bv.exec(e))?parseInt(t[1]+"ff",16)>>>0:y3&&void 0!==y3[e]?y3[e]:(t=bc.exec(e))?(bx(t[1])<<24|bx(t[2])<<16|bx(t[3])<<8|255)>>>0:(t=bd.exec(e))?(bx(t[1])<<24|bx(t[2])<<16|bx(t[3])<<8|bE(t[4]))>>>0:(t=bp.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bg.exec(e))?parseInt(t[1],16)>>>0:(t=bm.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=bf.exec(e))?(255|bb(bw(t[1]),bj(t[2]),bj(t[3])))>>>0:(t=bh.exec(e))?(bb(bw(t[1]),bj(t[2]),bj(t[3]))|bE(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var bS=(e,t,n)=>{if(yK.fun(e))return e;if(yK.arr(e))return bS({range:e,output:t,extrapolate:n});if(yK.str(e.output[0]))return W(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},bO=Symbol.for("FluidValue.get"),b_=Symbol.for("FluidValue.observers"),bC=e=>!!(e&&e[bO]),bM=e=>e&&e[bO]?e[bO]():e,bA=e=>e[b_]||null;function bT(e,t){let n=e[b_];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var bP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");bN(this,e)}},bN=(e,t)=>bL(e,bO,t);function bR(e,t){if(e[bO]){let n=e[b_];n||bL(e,b_,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function bD(e,t){let n=e[b_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[b_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var bL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),bZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bV=RegExp(`(${bZ.source})(%|[a-z]+)`,"i"),bz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,bI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bB=e=>{let[t,n]=bH(e);if(!t||y4())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&bI.test(n))return bB(n);else if(n)return n;return e},bH=e=>{let t=bI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},bU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,bW=e=>{$||($=y3?RegExp(`(${Object.keys(y3).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>bM(e).replace(bI,bB).replace(bF,bk).replace($,bk)),n=t.map(e=>e.match(bZ).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>bS({...e,output:t}));return e=>{let n=!bV.test(t[0])&&t.find(e=>bV.test(e))?.replace(bZ,""),i=0;return t[0].replace(bZ,()=>`${r[i++](e)}${n||""}`).replace(bz,bU)}},bq="react-spring: ",b$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${bq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},bY=b$(console.warn),bG=b$(console.warn);function bK(e){return yK.str(e)&&("#"==e[0]||/\d/.test(e)||!y4()&&bI.test(e)||e in(y3||{}))}var bX=y4()?ef.useEffect:ef.useLayoutEffect,bQ=()=>{let e=(0,ef.useRef)(!1);return bX(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function bJ(){let e=(0,ef.useState)()[1],t=bQ();return()=>{t.current&&e(Math.random())}}var b0=e=>(0,ef.useEffect)(e,b1),b1=[];function b2(e){let t=(0,ef.useRef)();return(0,ef.useEffect)(()=>{t.current=e}),t.current}var b4=Symbol.for("Animated:node"),b3=e=>!!e&&e[b4]===e,b5=e=>e&&e[b4],b6=(e,t)=>yG(e,b4,t),b8=e=>e&&e[b4]&&e[b4].getPayload(),b7=class{constructor(){b6(this,this)}getPayload(){return this.payload||[]}},b9=class extends b7{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,yK.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new b9(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return yK.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,yK.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xe=class extends b9{constructor(e){super(0),this._string=null,this._toString=bS({output:[e,e]})}static create(e){return new xe(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(yK.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=bS({output:[this.getValue(),e]})),this._value=0,super.reset()}},xt={dependencies:null},xn=class extends b7{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yJ(this.source,(n,r)=>{b3(n)?t[r]=n.getValue(e):bC(n)?t[r]=bM(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yQ(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yJ(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xt.dependencies&&bC(e)&&xt.dependencies.add(e);let t=b8(e);t&&yQ(t,e=>this.add(e))}},xr=class extends xn{constructor(e){super(e)}static create(e){return new xr(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(xi)),!0)}};function xi(e){return(bK(e)?xe:b9).create(e)}function xo(e){let t=b5(e);return t?t.constructor:yK.arr(e)?xr:bK(e)?xe:b9}var xa=(e,t)=>{let n=!yK.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ef.forwardRef)((r,i)=>{let o=(0,ef.useRef)(null),a=n&&(0,ef.useCallback)(e=>{o.current=(i&&(yK.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return xt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new xn(e),xt.dependencies=null,[e,n]}(r,t),u=bJ(),c=()=>{let e=o.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new xs(c,l),f=(0,ef.useRef)();bX(()=>(f.current=d,yQ(l,e=>bR(e,d)),()=>{f.current&&(yQ(f.current.deps,e=>bD(e,f.current)),yT.cancel(f.current.update))})),(0,ef.useEffect)(c,[]),b0(()=>()=>{let e=f.current;yQ(e.deps,t=>bD(t,e))});let h=t.getComponentProps(s.getValue());return ef.createElement(e,{...h,ref:a})})},xs=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&yT.write(this.update)}},xl=Symbol.for("AnimatedComponent"),xu=e=>yK.str(e)?e:e&&yK.str(e.displayName)?e.displayName:yK.fun(e)&&e.name||null;function xc(e,...t){return yK.fun(e)?e(...t):e}var xd=(e,t)=>!0===e||!!(t&&e&&(yK.fun(e)?e(t):y0(e).includes(t))),xf=(e,t)=>yK.obj(e)?t&&e[t]:e,xh=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,xp=e=>e,xm=(e,t=xp)=>{let n=xv;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);yK.und(n)||(r[i]=n)}return r},xv=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xg={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 xy(e){let t=function(e){let t={},n=0;if(yJ(e,(e,r)=>{!xg[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yJ(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function xb(e){return e=bM(e),yK.arr(e)?e.map(xb):bK(e)?yM.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function xx(e){for(let t in e)return!0;return!1}function xw(e){return yK.fun(e)||yK.arr(e)&&yK.obj(e[0])}function xE(e,t){e.ref?.delete(e),t?.delete(e)}function xj(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var xk={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},xS=class{constructor(){this.velocity=0,Object.assign(this,xk)}};function xO(e,t){if(yK.und(t.decay)){let n=!yK.und(t.tension)||!yK.und(t.friction);!n&&yK.und(t.frequency)&&yK.und(t.damping)&&yK.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var x_=[],xC=class{constructor(){this.changed=!1,this.values=x_,this.toValues=null,this.fromValues=x_,this.config=new xS,this.immediate=!1}};function xM(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=xd(n.cancel??r?.cancel,t);if(c)h();else{yK.und(n.pause)||(i.paused=xd(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||xd(e,t)),l=xc(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-yT.now()}function f(){l>0&&!yM.skipAnimation?(i.delayed=!0,u=yT.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var xA=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?xN(e.get()):t.every(e=>e.noop)?xT(e.get()):xP(e.get(),t.every(e=>e.finished)),xT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xP=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xN=e=>({value:e,cancelled:!0,finished:!1});function xR(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=xm(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&xN(r)||i!==n.asyncId&&xP(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xL,a=new xZ;return(async()=>{if(yM.skipAnimation)throw xD(n),a.result=xP(r,!1),c(a),a;p(o);let s=yK.obj(e)?{...e}:{...t,to:e};s.parentId=i,yJ(f,(e,t)=>{yK.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(yM.skipAnimation)return xD(n),xP(r,!1);try{let t;t=yK.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=xP(r.get(),!0,!1)}catch(e){if(e instanceof xL)d=e.result;else if(e instanceof xZ)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return yK.fun(a)&&yT.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xD(e,t){y1(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xL=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.")}},xZ=class extends Error{constructor(){super("SkipAnimationSignal")}},xF=e=>e instanceof xz,xV=1,xz=class extends bP{constructor(){super(...arguments),this.id=xV++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=b5(this);return e&&e.getValue()}to(...e){return yM.to(this,e)}interpolate(...e){return bY(`${bq}The "interpolate" function is deprecated in v9 (use "to" instead)`),yM.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){bT(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||bn.sort(this),bT(this,{type:"priority",parent:this,priority:e})}},xI=Symbol.for("SpringPhase"),xB=e=>(1&e[xI])>0,xH=e=>(2&e[xI])>0,xU=e=>(4&e[xI])>0,xW=(e,t)=>t?e[xI]|=3:e[xI]&=-3,xq=(e,t)=>t?e[xI]|=4:e[xI]&=-5,x$=class extends xz{constructor(e,t){if(super(),this.animation=new xC,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,!yK.und(e)||!yK.und(t)){let n=yK.obj(e)?{...e}:{...t,from:e};yK.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xH(this)||this._state.asyncTo)||xU(this)}get goal(){return bM(this.animation.to)}get velocity(){let e=b5(this);return e instanceof b9?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xB(this)}get isAnimating(){return xH(this)}get isPaused(){return xU(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=b8(r.to);!a&&bC(r.to)&&(i=y0(bM(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==xe?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=yK.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(yK.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!yK.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*t)/o.mass;t+=1*e,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}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,o.round)&&(n=!0)});let s=b5(this),l=s.getValue();if(t){let e=bM(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return yT.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xH(this)){let{to:e,config:t}=this.animation;yT.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 n;return yK.und(e)?(n=this.queue||[],this.queue=[]):n=[yK.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>xA(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xD(this._state,e&&this._lastCallId),yT.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:n,from:r}=e;(null==(n=yK.obj(n)?n[t]:n)||xw(n))&&(n=void 0),null==(r=yK.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xB(this)||(e.reverse&&([n,r]=[r,n]),r=bM(r),yK.und(r)?b5(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,xm(e,(e,t)=>/^on/.test(t)?xf(e,n):e)),xJ(this,e,"onProps"),x0(this,"onProps",e,this);let i=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 o=this._state;return xM(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xU(this)||(xq(this,!0),y2(o.pauseQueue),x0(this,"onPause",xP(this,xY(this,this.animation.to)),this))},resume:()=>{xU(this)&&(xq(this,!1),xH(this)&&this._resume(),y2(o.resumeQueue),x0(this,"onResume",xP(this,xY(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xG(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xN(this));let r=!yK.und(e.to),i=!yK.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(xN(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||yK.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!yX(d,u);f&&(s.from=d),d=bM(d);let h=!yX(c,l);h&&this._focus(c);let p=xw(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(xO(n={...n},t),t={...n,...t}),xO(e,t),Object.assign(e,t),xk)null==e[r]&&(e[r]=xk[r]);let{frequency:r,damping:i}=e,{mass:o}=e;yK.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,xc(t.config,o),t.config!==a.config?xc(a.config,o):void 0);let y=b5(this);if(!y||yK.und(c))return n(xP(this,!0));let b=yK.und(t.reset)?i&&!t.default:!yK.und(d)&&xd(t.reset,o),x=b?d:this.get(),w=xb(c),E=yK.num(w)||yK.arr(w)||bK(w),j=!p&&(!E||xd(a.immediate||t.immediate,o));if(h){let e=xo(c);if(e!==y.constructor){if(j)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,S=bC(c),O=!1;if(!S){let e=b||!xB(this)&&f;(h||e)&&(S=!(O=yX(xb(x),w))),(yX(s.immediate,j)||j)&&yX(m.decay,v)&&yX(m.velocity,g)||(S=!0)}if(O&&xH(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||bC(l))&&(s.values=y.getPayload(),s.toValues=bC(c)?null:k==xe?[1]:y0(w)),s.immediate==j||(s.immediate=j,j||b||this._set(l)),S)){let{onRest:e}=s;yQ(xQ,e=>xJ(this,t,e));let r=xP(this,xY(this,l));y2(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&yT.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?xc(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(xR(t.to,t,this._state,this)):S?this._start():xH(this)&&!h?this._pendingCalls.add(n):n(xT(x))}_focus(e){let t=this.animation;e!==t.to&&(bA(this)&&this._detach(),t.to=e,bA(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;bC(t)&&(bR(t,this),xF(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;bC(e)&&bD(e,this)}_set(e,t=!0){let n=bM(e);if(!yK.und(n)){let e=b5(this);if(!e||!yX(n,e.getValue())){let r=xo(n);e&&e.constructor==r?e.setValue(n):b6(this,r.create(n)),e&&yT.batchedUpdates(()=>{this._onChange(n,t)})}}return b5(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,x0(this,"onStart",xP(this,xY(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),xc(this.animation.onChange,e,this)),xc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;b5(this).reset(bM(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xH(this)||(xW(this,!0),xU(this)||this._resume())}_resume(){yM.skipAnimation?this.finish():bn.start(this)}_stop(e,t){if(xH(this)){xW(this,!1);let n=this.animation;yQ(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bT(this,{type:"idle",parent:this});let r=t?xN(this.get()):xP(this.get(),xY(this,e??n.to));y2(this._pendingCalls,r),n.changed&&(n.changed=!1,x0(this,"onRest",r,this))}}};function xY(e,t){let n=xb(t);return yX(xb(e.get()),n)}function xG(e,t=e.loop,n=e.to){let r=xc(t);if(r){let i=!0!==r&&xy(r),o=(i||e).reverse,a=!i||i.reset;return xK({...e,loop:t,default:!1,pause:void 0,to:!o||xw(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xK(e){let{to:t,from:n}=e=xy(e),r=new Set;return yK.obj(t)&&xX(t,r),yK.obj(n)&&xX(n,r),e.keys=r.size?Array.from(r):null,e}function xX(e,t){yJ(e,(e,n)=>null!=e&&t.add(n))}var xQ=["onStart","onRest","onChange","onPause","onResume"];function xJ(e,t,n){e.animation[n]=t[n]!==xh(t,n)?xf(t[n],e.key):void 0}function x0(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var x1=["onStart","onChange","onRest"],x2=1,x4=class{constructor(e,t){this.id=x2++,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,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];yK.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xK(e)),this}start(e){let{queue:t}=this;return(e?t=y0(e).map(xK):this.queue=[],this._flush)?this._flush(this,t):(we(this,t),x3(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yQ(y0(t),t=>n[t].stop(!!e))}else xD(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(yK.und(e))this.start({pause:!0});else{let t=this.springs;yQ(y0(e),e=>t[e].pause())}return this}resume(e){if(yK.und(e))this.start({pause:!1});else{let t=this.springs;yQ(y0(e),e=>t[e].resume())}return this}each(e){yJ(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,y1(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&y1(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,y1(n,([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)}yT.onFrame(this._onFrame)}};function x3(e,t){return Promise.all(t.map(t=>x5(e,t))).then(t=>xA(e,t))}async function x5(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=yK.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=yK.arr(i)||yK.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yQ(x1,n=>{let r=t[n];if(yK.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,y2(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===xh(t,"cancel");(c||h&&d.asyncId)&&f.push(xM(++e._lastAsyncId,{props:t,state:d,actions:{pause:yY,resume:yY,start(t,n){h?(xD(d,e._lastAsyncId),n(xN(e))):(t.onRest=s,n(xR(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=xA(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xG(t,a,i);if(n)return we(e,[n]),x5(e,n,!0)}return l&&yT.batchedUpdates(()=>l(p,e,e.item)),p}function x6(e,t){let n={...e.springs};return t&&yQ(y0(t),e=>{yK.und(e.keys)&&(e=xK(e)),yK.obj(e.to)||(e={...e,to:void 0}),x9(n,e,e=>x7(e))}),x8(e,n),n}function x8(e,t){yJ(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,bR(t,e))})}function x7(e,t){let n=new x$;return n.key=e,t&&bR(n,t),n}function x9(e,t,n){t.keys&&yQ(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function we(e,t){yQ(t,t=>{x9(e.springs,t,t=>x7(t,e))})}var wt=({children:e,...t})=>{let n=(0,ef.useContext)(wn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,ef.useState)(()=>({inputs:t,result:e()})),r=(0,ef.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=wn;return ef.createElement(o,{value:t},e)},wn=(Object.assign(wt,ef.createContext({})),wt.Provider._context=wt,wt.Consumer._context=wt,wt);wt.Provider=wn.Provider,wt.Consumer=wn.Consumer;var wr=()=>{let e=[],t=function(t){bG(`${bq}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 r=[];return yQ(e,(e,i)=>{if(yK.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return yQ(e,e=>e.pause(...arguments)),this},t.resume=function(){return yQ(e,e=>e.resume(...arguments)),this},t.set=function(t){yQ(e,(e,n)=>{let r=yK.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yQ(e,(e,r)=>{if(yK.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return yQ(e,e=>e.stop(...arguments)),this},t.update=function(t){return yQ(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return yK.fun(e)?e(n,t):e};return t._getProps=n,t};function wi(e,t){let n=yK.fun(e),[[r],i]=function(e,t,n){let r=yK.fun(t)&&t;r&&!n&&(n=[]);let i=(0,ef.useMemo)(()=>r||3==arguments.length?wr():void 0,[]),o=(0,ef.useRef)(0),a=bJ(),s=(0,ef.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=x6(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{x8(e,n),s.queue.push(()=>{r(x3(e,t))}),a()}):x3(e,t)}}),[]),l=(0,ef.useRef)([...s.ctrls]),u=[],c=b2(e)||0;function d(e,n){for(let i=e;i{yQ(l.current.slice(e,c),e=>{xE(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,ef.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>x6(e,u[t])),h=(0,ef.useContext)(wt),p=b2(h),m=h!==p&&xx(h);bX(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],yQ(e,e=>e())),yQ(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(xj(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),b0(()=>()=>{yQ(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function wo(e,t,n){let r=yK.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,ef.useMemo)(()=>r||3==arguments.length?wr():void 0,[]),h=y0(e),p=[],m=(0,ef.useRef)(null),v=i?null:m.current;bX(()=>{m.current=p}),b0(()=>(yQ(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yQ(m.current,e=>{e.expired&&clearTimeout(e.expirationId),xE(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):wa++})}return yK.und(n)?e:yK.fun(n)?e.map(n):y0(n)}(h,r?r():t,v),y=i&&m.current||[];bX(()=>yQ(y,({ctrl:e,item:t,key:n})=>{xE(e,f),xc(u,t,n)}));let b=[];if(v&&yQ(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),yQ(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new x4},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;yQ(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}yK.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let x=-a,w=bJ(),E=xm(t),j=new Map,k=(0,ef.useRef)(new Map),S=(0,ef.useRef)(!1);yQ(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=xc(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=xc(i,e.item,n),!(i=yK.obj(i)?xy(i):{to:i}).config){let t=d||E.config;i.config=xc(t,e.item,n,o)}x+=a;let y={...E,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&yK.und(y.from)){let i=r?r():t,o=yK.und(i.initial)||v?i.from:i.initial;y.from=xc(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{xc(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=xc(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(k.current.delete(n),l&&(S.current=!0),w())}}};let O=x6(e.ctrl,y);"leave"===o&&l?k.current.set(e,{phase:o,springs:O,payload:y}):j.set(e,{phase:o,springs:O,payload:y})});let O=(0,ef.useContext)(wt),_=b2(O),C=O!==_&&xx(O);bX(()=>{C&&yQ(p,e=>{e.ctrl.start({default:O})})},[O]),yQ(j,(e,t)=>{if(k.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),bX(()=>{yQ(k.current.size?k.current:j,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),C&&"enter"==e&&r.start({default:O}),t&&(xj(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let M=e=>ef.createElement(ef.Fragment,null,p.map((t,n)=>{let{springs:r}=j.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?ef.createElement(i.type,{...i.props,key:yK.str(t.key)||yK.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var wa=1,ws=class extends xz{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=bS(...t);let n=this._get();b6(this,xo(n).create(n))}advance(e){let t=this._get();yX(t,this.get())||(b5(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&wu(this._active)&&wc(this)}_get(){let e=yK.arr(this.source)?this.source.map(bM):y0(bM(this.source));return this.calc(...e)}_start(){this.idle&&!wu(this._active)&&(this.idle=!1,yQ(b8(this),e=>{e.done=!1}),yM.skipAnimation?(yT.batchedUpdates(()=>this.advance()),wc(this)):bn.start(this))}_attach(){let e=1;yQ(y0(this.source),t=>{bC(t)&&bR(t,this),xF(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yQ(y0(this.source),e=>{bC(e)&&bD(e,this)}),this._active.clear(),wc(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=y0(this.source).reduce((e,t)=>Math.max(e,(xF(t)?t.priority:0)+1),0))}};function wl(e){return!1!==e.idle}function wu(e){return!e.size||Array.from(e).every(wl)}function wc(e){e.idle||(e.idle=!0,yQ(b8(e),e=>{e.done=!0}),bT(e,{type:"idle",parent:e}))}var wd=(e,...t)=>new ws(e,t);yM.assign({createStringInterpolator:bW,to:(e,t)=>new ws(e,t)}),bn.advance;var wf=/^--/,wh={},wp={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},wm=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wv=["Webkit","Ms","Moz","O"];wp=Object.keys(wp).reduce((e,t)=>(wv.forEach(n=>e[wm(n,t)]=e[t]),e),wp);var wg=/^(matrix|translate|scale|rotate|skew)/,wy=/^(translate)/,wb=/^(rotate|skew)/,wx=(e,t)=>yK.num(e)&&0!==e?e+t:e,ww=(e,t)=>yK.arr(e)?e.every(e=>ww(e,t)):yK.num(e)?e===t:parseFloat(e)===t,wE=class extends xn{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>wx(e,"px")).join(",")})`,ww(e,0)])),yJ(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(wg.test(t)){if(delete r[t],yK.und(e))return;let n=wy.test(t)?"px":wb.test(t)?"deg":"";i.push(y0(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${wx(i,n)})`,ww(i,0)]:e=>[`${t}(${e.map(e=>wx(e,n)).join(",")})`,ww(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new wj(i,o)),super(r)}},wj=class extends bP{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 yQ(this.inputs,(n,r)=>{let i=bM(n[0]),[o,a]=this.transforms[r](yK.arr(i)?i:n.map(bM));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&yQ(this.inputs,e=>yQ(e,e=>bC(e)&&bR(e,this)))}observerRemoved(e){0==e&&yQ(this.inputs,e=>yQ(e,e=>bC(e)&&bD(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),bT(this,e)}};yM.assign({batchedUpdates:tI.unstable_batchedUpdates,createStringInterpolator:bW,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 wk=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new xn(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=xu(e)||"Anonymous";return(e=yK.str(e)?o[e]||(o[e]=xa(e,i)):e[xl]||(e[xl]=xa(e,i))).displayName=`Animated(${t})`,e};return yJ(e,(t,n)=>{yK.arr(e)&&(n=xu(t)),o[n]=o(t)}),{animated:o}})(["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 n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:wh[t]||(wh[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||wf.test(t)||wp.hasOwnProperty(t)&&wp[t]?(""+d).trim():d+"px";wf.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new wE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,wS=n(23442),wO=(0,ef.createContext)({});function w_(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,ef.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return ef.createElement(wO.Provider,{value:a},o)}function wC(){return(wC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wR),p=(0,ef.useContext)(wT)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,ef.useMemo)(function(){return y?wP(y):0},[y]),E=(0,ef.useMemo)(function(){return b?wP(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var j=s&&l||null==a?null:null==x?void 0:x.get(a),k=s||(null==j?void 0:j.xAccessor),S=l||(null==j?void 0:j.yAccessor);if(!y||!b||!v||!m||!k||!S||!g)return null;var O=(null!=(t=(0,mq.Z)(y(k(o))))?t:NaN)+w/2,_=(null!=(n=(0,mq.Z)(b(S(o))))?n:NaN)+E/2,C=O+c+16>g.left+v?-c:c,M=_+f+16>g.top+m?-f:f;return wN(O)&&wN(_)?ef.createElement(r,wD({width:v,height:m},h,{x:O,y:_,dx:C,dy:M}),i):null}wL.propTypes={dataKey:pX().string,xAccessor:pX().func,yAccessor:pX().func};var wZ=["x","y","AnnotationComponent"],wF=["editable"];function wV(){return(wV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wI(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=wz(e,wZ),s=(0,ef.useRef)({x:n,y:i}),l=wi({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,ef.useEffect)(function(){s.current={x:n,y:i}},[n,i]),ef.createElement(wk.g,{transform:wd([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},ef.createElement(o,wV({x:n,y:i},a)))}function wB(e){var t=e.editable,n=wz(e,wF),r=(0,ef.useCallback)(function(e){return ef.createElement(wI,wV({AnnotationComponent:t?wA:w_},e))},[t]);return ef.createElement(wL,wV({AnnotationComponent:r},n))}wB.propTypes={editable:pX().bool};var wH=n(12766),wU=["d","stroke","fill"];function wW(){return(wW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wU),o=(0,ef.useRef)(t),a=(0,ef.useCallback)(g3()(function(e){o.current=e},50),[]),s=(0,wH.interpolatePath)(o.current,t);a(t);var l=wi({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=wi({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return ef.createElement(wk.path,wW({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var w$=n(12935),wY=n(12151);function wG(){return(wG=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function w6(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>w5(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let w8=w6(w5);w8.right;let w7=w8.left;function w9(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=w6(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=w7(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,Ed),S=(0,ef.useContext)(wT),O=S.colorScale,_=S.theme,C=S.horizontal,M=(0,ef.useMemo)(function(){return b?wX(x,b):void 0},[x,b]),A=(0,ef.useMemo)(function(){return wX(x,y)},[x,y]),T=(0,ef.useMemo)(function(){return E?wX(j,E):void 0},[j,E]),P=(0,ef.useMemo)(function(){return wX(j,w)},[j,w]),N=(0,ef.useCallback)(function(e){return wN(x(y(e)))&&wN(j(w(e)))},[x,y,j,w]),R=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+l,L=Ea({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[wJ,D]}),Z=(0,ef.useMemo)(function(){var e=wQ(C?x:j);return C?{x0:null!=M?M:e,x1:A,y:P}:{x:A,y0:null!=T?T:e,y1:P}},[x,j,C,A,P,M,T]),F=!!(d||c),V=(0,ef.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return ef.createElement(ef.Fragment,{key:e.key},Ec(Ef({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return ef.createElement(ef.Fragment,null,ef.createElement(w$.Z,Ef({},Z,k,{curve:a,defined:N}),function(e){var t=e.path;return ef.createElement(o,Ef({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},k,{d:t(s)||""},L))}),(void 0===g||g)&&ef.createElement(wY.Z,Ef({x:A,y:P,defined:N,curve:a},u),function(e){var t=e.path;return ef.createElement(o,Ef({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),F&&ef.createElement(El,{dataKey:l,data:s,xAccessor:y,yAccessor:w,xScale:x,yScale:j,renderGlyphs:V}))}Eh.propTypes={renderLine:pX().bool};var Ep=wK(Eh);function Em(){return(Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function EE(e,t){return e[t]}function Ej(e){let t=[];return t.key=e,t}Array.prototype.slice;var Ek=n(74322),ES=n(58543);function EO(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,ef.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=Eb([]),t=Ew,n=Ex,r=EE;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),Ej),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(EO(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(EO(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function EP(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?Et:Ee)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,Ey.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,Ey.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,Ey.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,Ey.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var EN=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function ER(){return(ER=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,EN)),u=ER({fill:null!=(n=null!=(r=null==v?void 0:v(e.key))?r:null==w?void 0:null==(i=w.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[S,O,v,k,w]),C=(0,ef.useCallback)(function(e){var t,n,r=null==(t=k.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?EP(e,r,y):null},[k,y]),M="AREASTACK_EVENT_SOURCE-"+j.join("-"),A=Ea({dataKey:j,enableEvents:void 0===o||o,findNearestDatum:C,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:M,allowedSources:[wJ,M]}),T=!!(l||s),P=(0,ef.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return ef.createElement(ef.Fragment,{key:e.key},Ec(ER({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[T,A.onFocus,A.onBlur]);return!j.some(function(e){return null==g.get(e)})&&b&&x&&v?ef.createElement("g",{className:"visx-area-stack"},_.map(function(e){return ef.createElement(w$.Z,ER({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return ef.createElement(n,ER({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,A))})}),(void 0===p||p)&&_.map(function(e){return ef.createElement(Eg.Z,ER({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return ef.createElement(n,ER({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),T&&_.map(function(e,t){var n=_[_.length-t-1];return ef.createElement(El,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:ED,yScale:ED,renderGlyphs:P})})):null}function EZ(){return(EZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ez),c=(0,ef.useContext)(wT),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,ef.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,x=(0,ef.useMemo)(function(){return b||y?function(e,t,n){return EI({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),w="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,E="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,j="left"===g||"right"===g?h:f;return j?ef.createElement(l,EI({top:w,left:E,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:j})):null}function EH(){return(EH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return Eq({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return Eq({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,j,v)},[j,v]),S="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",O=Ea({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:k,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wJ,S]}),_=(0,ef.useMemo)(function(){return b?wQ(b):0},[b]),C=(0,ef.useMemo)(function(){return x?wQ(x):0},[x]),M=E.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var A=wP(j),T=M.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-_:(null!=(i=x(r(e)))?i:NaN)-C},s=v?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=j(o))?t:0,u=v?function(e){return _+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return C+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return A},f=v?function(){return A}:function(e){return Math.abs(a(e))},h=w.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!wN(r))return null;var i=c(e);if(!wN(i))return null;var a=d(e);if(!wN(a))return null;var s=f(e);return wN(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return ef.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&ef.createElement(o,E$({horizontal:v,xScale:b,yScale:x},e,O,{key:e.key}))}))}EY.propTypes={children:pX().node.isRequired,padding:pX().number,sortBars:pX().func};var EG=n(10897),EK=function(e){return!!(null==e?void 0:e.includes("url("))},EX=function(e){return EK(e)?"rgba(0,0,0,0.1)":e},EQ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],EJ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function E0(){return(E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function E2(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:EX(e.fill),opacity:1}}function E4(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=E1(e,EQ);return ef.createElement(ef.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return ef.createElement(EG.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return ef.createElement(wq,E0({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function E3(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,E1(e,EJ)),u=wo(i,E0({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,ef.useMemo)(function(){var e=wQ(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:EX(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:E2,update:E2,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return ef.createElement(ef.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:ef.createElement(wk.rect,E0({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:EK(t.fill)?t.fill:s,opacity:u},l))}))}function E5(e){return null==e.radius?ef.createElement(E3,e):ef.createElement(E4,E0({},e,{radius:e.radius}))}function E6(){return(E6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E7),w=(0,ef.useContext)(wT),E=w.colorScale,j=w.horizontal,k=w.theme,S=w.innerWidth,O=w.innerHeight,_=(0,ef.useMemo)(function(){return wX(g,v)},[g,v]),C=(0,ef.useMemo)(function(){return wX(b,y)},[b,y]),M=wP(j?b:g)||(j?void 0===O?0:O:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,ef.useMemo)(function(){return g?wQ(g):0},[g]),T=(0,ef.useMemo)(function(){return b?wQ(b):0},[b]),P=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==k?void 0:null==(r=k.colors)?void 0:r[0])?t:"#222",N=(0,ef.useMemo)(function(){var e=j?0:-M/2,t=j?-M/2:0;return s.map(function(n,r){var i,o=_(n)+e;if(!wN(o))return null;var s=C(n)+t;if(!wN(s))return null;var l=j?o-A:s-T;return wN(l)?{key:""+r,x:j?A+Math.min(0,l):o,y:j?s:T+Math.min(0,l),width:j?Math.abs(l):M,height:j?M:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:P}:null}).filter(function(e){return e})},[M,P,a,s,_,C,j,A,T]),R="BARSERIES_EVENT_SOURCE-"+l,D=Ea({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wJ,R]});return ef.createElement("g",{className:"vx-bar-series"},ef.createElement(i,E9({bars:N,horizontal:j,xScale:g,yScale:b},D,x)))}je.propTypes={barPadding:pX().number,colorAccessor:pX().func};var jt=wK(je),jn=["colorAccessor"];function jr(){return(jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jn);return ef.createElement(jt,jr({},n,{colorAccessor:t,BarsComponent:E5}))}var jo=n(15590);function ja(){return(ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jf),i=(0,ef.useCallback)(function(e){return ef.createElement(jd,jh({},e,{renderGlyph:n}))},[n]);return ef.createElement(Eu,jh({},r,{renderGlyphs:i}))}var jm=n(93353),jv=n(63962),jg=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jy(){return(jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jg),a=(0,ef.useContext)(wT),s=a.theme,l=a.xScale,u=a.yScale,c=a.margin,d=a.innerWidth,f=a.innerHeight,h=null==s?void 0:s.gridStyles;return ef.createElement(ef.Fragment,null,(void 0===t||t)&&u&&null!=d&&ef.createElement(r,jy({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},o)),(void 0===n||n)&&l&&null!=f&&ef.createElement(i,jy({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:l},o)))}jb.propTypes={rows:pX().bool,columns:pX().bool};var jx=["animationTrajectory"];function jw(){return(jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jx),r=(0,ef.useMemo)(function(){return function(e){return ef.createElement(jm.Z,jw({},e,{animationTrajectory:t}))}},[t]),i=(0,ef.useMemo)(function(){return function(e){return ef.createElement(jv.Z,jw({},e,{animationTrajectory:t}))}},[t]);return ef.createElement(jb,jw({GridRowsComponent:r,GridColumnsComponent:i},n))}var jj=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jk(){return(jk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jj),E=(0,ef.useContext)(wT),j=E.colorScale,k=E.theme,S=(0,ef.useMemo)(function(){return wX(v,m)},[v,m]),O=(0,ef.useMemo)(function(){return wX(y,g)},[y,g]),_=(0,ef.useCallback)(function(e){return wN(v(m(e)))&&wN(y(g(e)))},[v,m,y,g]),C=null!=(t=null!=(n=null==j?void 0:j(s))?n:null==k?void 0:null==(r=k.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,A=Ea({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[wJ,M]}),T=!!(u||l),P=(0,ef.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return ef.createElement(ef.Fragment,{key:e.key},Ec(jk({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[T,A.onFocus,A.onBlur]);return ef.createElement(ef.Fragment,null,ef.createElement(wY.Z,jk({x:S,y:O,defined:_,curve:o},w),function(e){var t,n=e.path;return ef.createElement(x,jk({stroke:null!=(t=null==i?void 0:i(s))?t:C,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(a)||""},A))}),T&&ef.createElement(El,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:P}))}jS.propTypes={colorAccessor:pX().func};var jO=wK(jS);function j_(){return(j_=Object.assign?Object.assign.bind():function(e){for(var t=1;tjT.every(n=>e[n]===t[n]);function jN(e,t){return(jN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jR=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jN(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?tI.createPortal(this.props.children,this.node):null},t}(ef.PureComponent);jR.propTypes={zIndex:pX().oneOfType([pX().number,pX().string])};var jD=["detectBounds","zIndex"],jL=["left","top","detectBounds","zIndex"];function jZ(){return(jZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jV=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jz=["x","y"];function jI(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jB(){return(jB=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,ef.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jP(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jA()(e,d):e,c?jA()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,ef.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,ef.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,ef.useEffect)(()=>{v(),g()},[r,m,p]),(0,ef.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(jF(et,jD)))[0],es=eo[1],el=eo[2],eu=(0,ef.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=jF(e,jL),a=null==i?ei:i,s=(null==r?er:r)?vu:ve,l=(void 0===t?0:t)+(es.left||0)+window.scrollX,u=(void 0===n?0:n)+(es.top||0)+window.scrollY;return ef.createElement(jR,{zIndex:a},ef.createElement(s,jZ({left:l,top:u},o)))}},[er,ei,es.left,es.top]),{containerRef:ea,containerBounds:es,forceRefreshBounds:el,TooltipInPortal:eu}),N=P.containerRef,R=P.TooltipInPortal,D=P.forceRefreshBounds,L=(0,ef.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),Z=null!=T&&T.tooltipOpen?o(jB({},T,{colorScale:j})):null,F=(null==T?void 0:T.tooltipOpen)&&null!=Z,V=(0,ef.useRef)(!1);(0,ef.useEffect)(function(){F&&!V.current&&D(),V.current=F},[F,D]);var z=null==T?void 0:T.tooltipLeft,I=null==T?void 0:T.tooltipTop,B=C?wP(C):0,H=M?wP(M):0,U=(0,ef.useCallback)(function(e,t){var n,r,i=null==A?void 0:A.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:C&&o?null!=(n=Number(C(o(t)))+B/2)?n:0:void 0,top:M&&a?null!=(r=Number(M(a(t)))+H/2)?r:0:void 0}},[A,B,H,C,M]),W=null==T?void 0:null==(ec=T.tooltipData)?void 0:ec.nearestDatum,q=null!=(ed=null==W?void 0:W.key)?ed:"";if(F&&W&&(v||y)){var $=U(q,W.datum),Y=$.left,G=$.top;z=v&&wN(Y)?Y:z,I=y&&wN(G)?G:I}var K=[];if(F&&(void 0!==c&&c||h)){var X=Number(null!=(ek=null==i?void 0:i.radius)?ek:4);if(h)Object.values(null!=(eS=null==T?void 0:null==(eO=T.tooltipData)?void 0:eO.datumByKey)?eS:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==j?void 0:j(o))?n:null==k?void 0:null==(r=k.htmlLabel)?void 0:r.color)?t:"#222",u=U(o,a),c=u.left,d=u.top;wN(c)&&wN(d)&&K.push({key:o,color:l,datum:a,index:s,size:X,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===o})});else if(W){var Q=U(q,W.datum),J=Q.left,ee=Q.top;if(wN(J)&&wN(ee)){var et,en,er,ei,eo,ea,es,el,eu,ec,ed,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,ek,eS,eO,e_,eC,eM,eA,eT,eP,eN=null!=(e_=null!=(eC=null!=(eM=null!=(eA=q&&(null==j?void 0:j(q)))?eA:null)?eM:null==k?void 0:null==(eT=k.gridStyles)?void 0:eT.stroke)?eC:null==k?void 0:null==(eP=k.htmlLabel)?void 0:eP.color)?e_:"#222";K.push({key:q,color:eN,datum:W.datum,index:W.index,size:X,x:J,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return ef.createElement(ef.Fragment,null,ef.createElement("svg",{ref:L,style:jU}),F&&ef.createElement(ef.Fragment,null,void 0!==p&&p&&ef.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:z,top:null==_?void 0:_.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jH},ef.createElement("svg",{width:"1",height:S,overflow:"visible"},ef.createElement("line",jB({x1:0,x2:0,y1:0,y2:S,strokeWidth:1.5,stroke:null!=(eh=null!=(ep=null==k?void 0:null==(em=k.gridStyles)?void 0:em.stroke)?ep:null==k?void 0:null==(ev=k.htmlLabel)?void 0:ev.color)?eh:"#222"},b)))),void 0!==d&&d&&ef.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==_?void 0:_.left,top:I,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jH},ef.createElement("svg",{width:O,height:"1",overflow:"visible"},ef.createElement("line",jB({x1:0,x2:O,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eg=null!=(ey=null==k?void 0:null==(eb=k.gridStyles)?void 0:eb.stroke)?ey:null==k?void 0:null==(ex=k.htmlLabel)?void 0:ex.color)?eg:"#222"},r)))),K.map(function(e,t){var n=e.x,r=e.y,i=jI(e,jz);return ef.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jH},ef.createElement("svg",{overflow:"visible"},s(jB({x:0,y:0},i))))}),ef.createElement(R,jB({left:z,top:I,style:jB({},m9,{background:null!=(ew=null==k?void 0:k.backgroundColor)?ew:"white",boxShadow:"0 1px 2px "+(null!=k&&null!=(eE=k.htmlLabel)&&eE.color?(null==k?void 0:null==(ej=k.htmlLabel)?void 0:ej.color)+"55":"#22222255")},null==k?void 0:k.htmlLabel)},w),Z)))}function jY(e){var t=(0,ef.useContext)(w0);return null!=t&&t.tooltipOpen?ef.createElement(j$,e):null}jW.propTypes={isNearestDatum:pX().bool.isRequired},j$.propTypes={renderTooltip:pX().func.isRequired,renderGlyph:pX().func,snapTooltipToDatumX:pX().bool,snapTooltipToDatumY:pX().bool,showVerticalCrosshair:pX().bool,showHorizontalCrosshair:pX().bool,showDatumGlyph:pX().bool,showSeriesGlyphs:pX().bool},jY.propTypes={renderTooltip:pX().func.isRequired,renderGlyph:pX().func,snapTooltipToDatumX:pX().bool,snapTooltipToDatumY:pX().bool,showVerticalCrosshair:pX().bool,showHorizontalCrosshair:pX().bool,showDatumGlyph:pX().bool,showSeriesGlyphs:pX().bool};var jG=n(70390);function jK(e){var t=e.children,n=(0,ef.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return ef.createElement(w1.Provider,{value:n},t)}function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,m5);return m6({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,ef.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,ef.useRef)(null),g=(0,ef.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(wN(o)?o:1/0,2)+Math.pow(wN(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&wN(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&i>0&&g({width:p,height:i,margin:s})},[g,p,i,s]);var x=w4({source:wJ});return(Eo({dataKey:"nearest"===(void 0===f?"nearest":f)?Ei:Er,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:kt}),g)?null==p||null==i?ef.createElement(jG.Z,null,function(t){return ef.createElement(kn,j9({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?ef.createElement(jQ,null,ef.createElement(kn,e)):null==b?ef.createElement(jK,null,ef.createElement(kn,e)):p>0&&i>0?ef.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&ef.createElement("rect",j9({x:s.left,y:s.top,width:p-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},x))):null:m&&v?ef.createElement(j7,{xScale:m,yScale:v,theme:h,initialDimensions:{width:p,height:i,margin:s},horizontal:o},ef.createElement(kn,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function kr(e){return ef.createElement(Ep,e)}function ki(e){return ef.createElement(EL,e)}function ko(){return(ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kd(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=kc(e,ks),u=!!(l.onFocus||l.onBlur);return ef.createElement(ef.Fragment,null,t.map(function(e){var t=e.key,c=kc(e,kl);return null==n?ef.createElement("rect",ku({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):ef.createElement(EG.Z,ku({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function kf(){return(kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kp);return ef.createElement(jt,km({},n,{colorAccessor:t,BarsComponent:kd}))};function kg(){return(kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&r(l)?n>1?e(l,n-1,r,i,o):(0,kD.Z)(o,l):i||(o[o.length]=l)}return o},kB=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},kH=Math.max,kU=function(e,t,n){return t=kH(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=kH(r.length-t,0),a=Array(o);++i0){if(++g>=800)return arguments[0]}else g=0;return k$.apply(void 0,arguments)}),kK=n(9878),kX=kG(kU(b=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,kk.Z)(t,function(t){return t=(0,kO.Z)(t,e),r||(r=t.length>1),t}),(0,kP.Z)(e,(0,kK.Z)(e),n),r&&(n=(0,kS.Z)(n,7,kR));for(var i=t.length;i--;)kT(n,t[i]);return n},void 0,function(e){return(null==e?0:e.length)?kI(e,1):[]}),b+"");function kQ(e){return 6e4*e}function kJ(e){return 36e5*e}function k0(e){return 864e5*e}function k1(e){return 1e3*e}var k2=n(92762);function k4(e){let{initialChartType:t,chartType:n,setChartType:r,curveType:i,setCurveType:o,isLine:a,isStack:s,stackOffset:l,setStackOffset:u,xAxisOrientation:c,setXAxisOrientation:d,yAxisOrientation:f,setYAxisOrientation:h}=e,p="line"===t,m="area"===t;return(0,ed.jsx)(uR,{trigger:(0,ed.jsx)(lD,{tip:"Configure chart",variant:"gray",size:"small",children:(0,ed.jsx)(lL.shL,{})}),title:"Chart settings",contentVariants:{className:"max-h-[70vh]"},children:(0,ed.jsxs)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-10 py-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Graph type"}),(0,ed.jsxs)(fk,{value:n,onValueChange:e=>r(e),className:"flex flex-col gap-1",children:[(0,ed.jsx)(fj,{value:"line",children:"Line"}),(0,ed.jsx)(fj,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,ed.jsx)(fj,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,ed.jsx)(fj,{disabled:p,value:"area",children:"Area"}),(0,ed.jsx)(fj,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Stack series offset"}),(0,ed.jsxs)(fk,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,ed.jsxs)(fj,{disabled:!s,value:"none",children:["None",(0,ed.jsx)(f6,{children:"zero-baseline"})]}),(0,ed.jsxs)(fj,{disabled:!s,value:"diverging",children:["Diverging",(0,ed.jsx)(f6,{children:"non zero-baseline"})]}),(0,ed.jsxs)(fj,{disabled:!s,value:"expand",children:["Expand",(0,ed.jsx)(f6,{children:"values sum to 1"})]}),(0,ed.jsxs)(fj,{disabled:!s,value:"wiggle",children:["Wiggle",(0,ed.jsx)(f6,{children:"stream graph"})]})]})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Curve shape"}),(0,ed.jsxs)(fk,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,ed.jsx)(fj,{disabled:!a,value:"linear",children:"Linear"}),(0,ed.jsx)(fj,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,ed.jsx)(fj,{disabled:!a,value:"step",children:"Step"})]})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Axes"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,ed.jsxs)(fk,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,ed.jsx)(fj,{value:"bottom",children:"Bottom"}),(0,ed.jsx)(fj,{value:"top",children:"Top"})]}),(0,ed.jsxs)(fk,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,ed.jsx)(fj,{value:"left",children:"Left"}),(0,ed.jsx)(fj,{value:"right",children:"Right"})]})]})]})]})})}let k3=(0,ef.forwardRef)((e,t)=>{let{className:n}=e;return(0,ed.jsxs)("div",{ref:t,className:(0,eX.cx)("flex gap-1 items-center",n),children:[(0,ed.jsx)(k5,{}),(0,ed.jsx)(k5,{}),(0,ed.jsx)(k5,{})]})});function k5(){return(0,ed.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function k6(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,ef.useState)(!(0,f2.Tb)()&&!n.disableAnimations),{resolvedTheme:o}=(0,p$.F)(),a=(0,ef.useMemo)(()=>"dark"===o?y_:yO,[o]),[s,l]=(0,ef.useState)("center"),[u,c]=(0,ef.useState)([!1,!1]),[d,f]=u,[h,p]=(0,k2.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,v]=(0,k2.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[g,y]=(0,ef.useState)(!0),[b,x]=(0,ef.useState)(!0),[w,E]=(0,ef.useState)(!1),[j,k]=(0,ef.useState)(!0),[S,O]=(0,ef.useState)(!0),[_,C]=(0,k2.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[M,A]=(0,k2.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[T,P]=(0,k2.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,ef.useMemo)(()=>n.chartType,[]),R=(0,ef.useMemo)(()=>n.curveType,[]),D=(0,ef.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(_),Z=["barstack","areastack"].includes(_),F=a.xyChartTheme.gridStyles.stroke,[V,z]=(0,ef.useState)(!1),[I,B]=(0,ef.useState)("star"),H=(0,ef.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===I?(0,ed.jsx)(yu,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===I?(0,ed.jsx)(yf,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===I?(0,ed.jsx)(yv,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,ed.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[I,F]),U=(0,ef.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==_&&"bargroup"!==_?[...t,{...e,timestamp:e.timestamp+k0(1)}]:t},[_,t]),W=(0,ef.useMemo)(()=>{if(U.length<2)return 0;let e=[U[0].timestamp,U[U.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys(kX(t[0],"timestamp")),[t]),$=(0,ef.useMemo)(()=>n.enabledGraph||q,[q,n]),Y=(0,ef.useMemo)(()=>n.enabledTip||q,[q,n]),G=(0,ef.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]);return{id:e,accessors:G,animationTrajectory:s,config:n,scales:(0,ef.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:U,curve:(0,ef.useMemo)(()=>"cardinal"===M&&yg.ZP||"step"===M&&v1.ZP||yy.Z,[M]),chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:_,curveType:M,keys:q,enabledGraph:$,enabledTip:Y,renderBarGroup:"bargroup"===_,renderBarStack:"barstack"===_,enableTooltipGlyph:V,renderTooltipGlyph:H,renderAreaSeries:"area"===_,renderAreaStack:"areastack"===_,renderLineSeries:"line"===_,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:g,showVerticalCrosshair:b,snapTooltipToDatum:!Z&&j,stackOffset:T,theme:a,margin:(0,ef.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]),xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:E,setSnapTooltipToDatum:k,setSharedTooltip:O,setChartType:C,setCurveType:A,setStackOffset:P,setEnableTooltipGlyph:z,setTooltipGlyphComponent:B,...r?{Annotation:wB,AreaSeries:Ev,AreaStack:EF,Axis:EU,BarGroup:E8,BarSeries:ji,BarStack:ju,GlyphSeries:jp,Grid:jE,LineSeries:jC,Tooltip:jY,XYChart:kn}:{AreaSeries:kr,AreaStack:ki,Axis:ka,BarGroup:kh,BarSeries:kv,BarStack:ky,Grid:kE,LineSeries:kj,Tooltip:jY,XYChart:kn}}}(t,r,i),f=(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,ed.jsx)(k4,{...d})]}),(0,ed.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,ed.jsx)(g9,{children:e=>{let{width:t,height:n}=e;return a?(0,ed.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,ed.jsx)(k3,{className:"scale-150"})}):0===r.length&&l?l:(0,ed.jsx)(yt,{...d,width:t,height:n})}})]});return"panel"===u?(0,ed.jsx)(nA,{className:"relative p-px",style:{height:n},children:f}):(0,ed.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var k8="text/plain",k7=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var k9="undefined"==typeof window?void 0:window,Se="undefined"==typeof globalThis?void 0:globalThis,St=null!=(Y=null==k9?void 0:k9.Promise)?Y:null==Se?void 0:Se.Promise,Sn="undefined"==typeof navigator?void 0:navigator,Sr=null==Sn?void 0:Sn.clipboard;null==(G=null==Sr?void 0:Sr.read)||G.bind(Sr),null==(K=null==Sr?void 0:Sr.readText)||K.bind(Sr);var Si=null==(X=null==Sr?void 0:Sr.write)?void 0:X.bind(Sr),So=null==(Q=null==Sr?void 0:Sr.writeText)?void 0:Q.bind(Sr),Sa=null==k9?void 0:k9.ClipboardItem,Ss=function(){if(!St)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return St}();function Sl(e,t,n){for(var r in k7("listener called"),e.success=!0,t){var i=t[r],o=n.clipboardData;o.setData(r,i),r===k8&&o.getData(r)!==i&&(k7("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Su(e){var t={success:!1},n=Sl.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function Sc(e,t){Sd(e);var n=Su(t);return Sf(),n}function Sd(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function Sf(){var e=document.getSelection();e&&e.removeAllRanges()}function Sh(e){var t,n,r,i,o,a,s,l=k8 in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==k9?void 0:k9.clipboardData)&&void 0!==(null==k9?void 0:k9.clipboardData.setData)){if(!l)throw Error("No `text/plain` value was specified.");if(function(e){if(!k9.clipboardData)return!1;var t=k9.clipboardData.setData("Text",e);return t&&k7("writeTextIE worked"),t}(e[k8]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return Su(e)?(k7("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(k7('UA "Edge" => assuming success'),!0):Sc(document.body,e)?(k7("copyUsingTempSelection worked"),!0):((a=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),a.textContent="temporary element",document.body.appendChild(a),s=Sc(a,e),document.body.removeChild(a),s)?(k7("copyUsingTempElem worked"),!0):(t=e[k8],k7("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(k7("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),Sd(i),o=document.execCommand("copy"),Sf(),document.body.removeChild(n),!!o&&(k7("copyTextUsingDOM worked"),!0))}function Sp(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return Ss.all(n).then(t=>{for(var n={},r=0;rSs.resolve(!0),Sg=Ss.resolve(!1);function Sy(e){return new Ss((t,n)=>{try{t(e())}catch(e){n(e)}})}function Sb(e){var t;if(!Sh(((t={})[k8]=e,t)))throw Error("writeText() failed")}function Sx(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function Sw(e){return Sp(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),Sa?n(new Sa(t,i)):r("window.ClipboardItem is not defined")}))}let SE={data:""},Sj=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||SE,Sk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,SS=/\/\*[^]*?\*\/|\s\s+|\n/g,SO=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?SO(a,o):o+"{"+SO(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=SO(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=SO.p?SO.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},S_={},SC=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+SC(e[n]);return t}return e},SM=(e,t,n,r,i)=>{var o;let a=SC(e),s=S_[a]||(S_[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!S_[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=Sk.exec(e.replace(SS,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);S_[s]=SO(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=S_[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},SA=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":SO(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function ST(e){let t=this||{},n=e.call?e(t.p):e;return SM(n.unshift?n.raw?SA(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Sj(t.target),t.g,t.o,t.k)}ST.bind({g:1});let SP,SN,SR,SD=ST.bind({k:1});function SL(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:SN&&SN()},s),n.o=/ *go\d+/.test(l),s.className=ST.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),SR&&u[0]&&SR(s),SP(u,s)}return t?t(i):i}}function SZ(){return(SZ=Object.assign||function(e){for(var t=1;t-1&&Sq.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return SZ({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||SG[t.type],style:SZ({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return SZ({},n,{toasts:i})},SX=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),SZ({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||Sz()}));return SY({type:J.UPSERT_TOAST,toast:i}),i.id}},SQ=function(e,t){return SX("blank")(e,t)};SQ.error=SX("error"),SQ.success=SX("success"),SQ.loading=SX("loading"),SQ.custom=SX("custom"),SQ.dismiss=function(e){SY({type:J.DISMISS_TOAST,toastId:e})},SQ.remove=function(e){return SY({type:J.REMOVE_TOAST,toastId:e})},SQ.promise=function(e,t,n){var r=SQ.loading(t.loading,SZ({},n,null==n?void 0:n.loading));return e.then(function(e){return SQ.success(SV(t.success,e),SZ({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){SQ.error(SV(t.error,e),SZ({id:r},n,null==n?void 0:n.error))}),e};var SJ=function(e){var t=SK(e),n=t.toasts,r=t.pausedAt;(0,ef.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&SQ.dismiss(t.id);return}return setTimeout(function(){return SQ.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,ef.useMemo)(function(){return{startPause:function(){SY({type:J.START_PAUSE,time:Date.now()})},endPause:function(){r&&SY({type:J.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return SY({type:J.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=i.gutter,s=void 0===a?8:a,l=i.defaultPosition,u=n.filter(function(t){return(t.position||l)===(e.position||l)&&t.height}),c=u.findIndex(function(t){return t.id===e.id}),d=u.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Oj=function(){return e},e}j=ef.createElement,SO.p=void 0,SP=j,SN=void 0,SR=void 0;var Ok=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return SZ({left:0,right:0,display:"flex",position:"absolute",transition:SI()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},OS=ST(Oj()),OO=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=SJ(i),c=u.toasts,d=u.handlers;return(0,ef.createElement)("div",{style:SZ({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=Ok(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,ef.createElement)("div",{ref:l,className:e.visible?OS:"",key:e.id,style:s},"custom"===e.type?SV(e.message,e):a?a(e):(0,ef.createElement)(OE,{toast:e,position:i}))}))};function O_(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,ed.jsxs)("div",{className:"flex flex-col overflow-hidden",children:[(0,ed.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,ed.jsx)(n_,{className:"flex items-center",color:"subtle",children:t}),(0,ed.jsx)(lN,{content:n,children:(0,ed.jsx)(n_,{ellipsis:!0,className:"flex-1",children:n})}),(0,ed.jsx)("div",{className:"flex items-center pl-1",children:(0,ed.jsx)(lD,{icon:"hover",size:"none",onClick:e=>{SQ.dismiss(i)},children:(0,ed.jsx)(lL.PcV,{})})})]}),r&&(0,ed.jsx)("div",{className:"pb-1",children:(0,ed.jsx)(uT,{children:(0,ed.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,ed.jsx)(n_,{color:"subtle",size:"14",children:r})})})})]})}let OC=e=>{let{title:t,body:n,icon:r,options:i={}}=e;SQ(e=>(0,ed.jsx)(O_,{toastId:e.id,title:t,body:n,icon:r}),OT(i))};function OM(e){let{title:t,body:n,options:r}=e;OC({title:t,body:n,icon:(0,ed.jsx)(lL.yar,{className:"text-green-600"}),options:r})}function OA(e){let{title:t,body:n,options:r}=e;OC({title:t,body:n,icon:(0,ed.jsx)(lL.T80,{className:"text-red-600"}),options:r})}function OT(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eX.cx)(nM(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,ed.jsx)("div",{className:"!flex-none w-5",children:(0,ed.jsx)(lL.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,ed.jsx)("div",{className:"!flex-none w-5",children:(0,ed.jsx)(lL.Jsc,{className:"w-5 text-red-600"})})},...t}}function OP(){return(0,ed.jsx)(OO,{toastOptions:OT(),containerStyle:{zIndex:20}})}let ON=(e,t)=>{OC({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,ed.jsx)(lL.vtB,{})}),Sy(()=>So?(k7("Using `navigator.clipboard.writeText()`."),So(e).catch(Sb)):Ss.resolve(Sb(e)))},OR=(e,t,n)=>{var r;OC({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,ed.jsx)(lL.vtB,{})}),r=[new ClipboardItem({[t]:e})],Sy(()=>Si&&Sa?(k7("Using `navigator.clipboard.write()`."),Ss.all(r.map(Sw)).then(e=>Si(e).then(Sv).catch(e=>{if(!Sx(r,k8)&&!Sx(r,"text/html"))throw e;return Sg}))):Sg).then(e=>{var t;return e?Sm:(Sx(r,k8)||k7("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call suppressWarnings() to suppress this warning."),Sp((t=r[0]).types,function(e){return t.getType(e).then(e=>new Ss((t,n)=>{var r=new FileReader;r.addEventListener("load",()=>{var e=r.result;"string"==typeof e?t(e):n("could not convert blob to string")}),r.readAsText(e)}))}).then(e=>{if(!Sh(e))throw Error("write() failed")}))})};function OD(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function OL(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function OZ(e,t,n){return t?"".concat(e," ").concat(OD(t,n)):"".concat(e)}function OF(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let OV={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},Oz={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},OI={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function OB(e){return e?OV[e]:void 0}function OH(e){return e?OI[e]:void 0}function OU(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,font:c,color:d="contrast",className:f,siascanUrl:h,contextMenu:p}=e,m=i||(r?Oz[r]:void 0),v=a||(r&&["ip","hostIp"].includes(r)?20:12),g=OL(t),y=n||g,b="".concat(null==y?void 0:y.slice(0,v)).concat(((null==y?void 0:y.length)||0)>v?"...":"");return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex items-center",f),children:[o?(0,ed.jsx)(dS,{href:o,underline:"hover",size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}):(0,ed.jsx)(n_,{size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}),(0,ed.jsx)("div",{className:"ml-1 flex items-center",children:p||(0,ed.jsx)(OW,{cleanValue:g,label:m,size:s,siascanUrl:h,type:r})})]})}function OW(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:o,type:a}=e;return(0,ed.jsxs)(dl,{trigger:(0,ed.jsx)(lD,{size:"none",variant:"ghost",children:(0,ed.jsx)(lL.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,ed.jsxs)(du,{onSelect:e=>{ON(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,ed.jsx)(dd,{children:(0,ed.jsx)(lL.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,ed.jsx)(dS,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(o,a,r),className:"block w-full",underline:"none",children:(0,ed.jsxs)(du,{onClick:e=>{e.stopPropagation()},children:[(0,ed.jsx)(dd,{children:(0,ed.jsx)(lL.V8Q,{})}),"View on Siascan"]})})]})}function Oq(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,gX.yF)(String(t),{units:"SF"});return(0,ed.jsx)(lN,{content:(i?"".concat(i," "):"")+a,children:(0,ed.jsxs)(n_,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function O$(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,ed.jsxs)(n_,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,gX.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,gX.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,ed.jsx)(n_,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,ed.jsx)(lN,{content:(i?"".concat(i," "):"")+(0,gX.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function OY(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,f4.BW)(),{settings:{currency:d}}=(0,f2.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(fJ())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,ed.jsx)(n_,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(OG(p.absoluteValue(),m))});return u?(0,ed.jsx)(lN,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(OG(p.absoluteValue(),l)),children:v}):v}function OG(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function OK(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,f2.Hv)(),v=(0,f4.BW)(),g=(0,ef.useMemo)(()=>(0,ed.jsx)(O$,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,a,u,c,d,f,m,h,p]),y=(0,ef.useMemo)(()=>(0,ed.jsx)(OY,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,ed.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,ed.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function OX(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,ed.jsx)(lN,{content:(i?"".concat(i," "):"")+s(t),children:(0,ed.jsx)(n_,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var OQ=n(19510),OJ=1/0,O0=function(e){var t,n=(t=e)?(t=vK(t))===OJ||t===-OJ?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},O1=Math.min,O2=function(e,t){if((e=O0(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=O1(e,4294967295);t="function"==typeof(n=t)?n:kq.Z,e-=4294967295;for(var o=(0,OQ.Z)(i,t);++r(0,ed.jsxs)("div",{className:(0,eX.cx)("relative flex gap-4 p-3.5",(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,ed.jsx)(hn,{className:"w-[60px] h-[50px]"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ed.jsx)(hn,{className:"w-[90%] h-[20px]"}),(0,ed.jsx)(hn,{className:"w-[140px] h-[14px]"})]})]},e))})}var O3=n(66700),O5=n(19785);function O6(e,t){(0,O5.Z)(2,arguments);var n=(0,O3.Z)(e),r=(0,O3.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var O8={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},O7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function O9(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var _e={date:O9({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:O9({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:O9({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _n(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function _r(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:_e,formatRelative:function(e,t,n,r){return _t[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:_n({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_n({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:_n({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:_n({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:_n({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(k={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(k.matchPattern);if(!n)return null;var r=n[0],i=e.match(k.parsePattern);if(!i)return null;var o=k.valueCallback?k.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:_r({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:_r({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_r({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:_r({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:_r({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function _o(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var _a=n(81441),_s=n(32690),_l=n(36202),_u=n(25186),_c=function(e){e=(0,_u.Z)(e);var t=(0,_s.Z)(e)?(0,_l.Z)(e):void 0,n=t?t[0]:e.charAt(0),r=t?(0,_a.Z)(t,1).join(""):e.slice(1);return n.toUpperCase()+r};function _d(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,ed.jsx)(lK,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,ed.jsx)(dS,{href:i,underline:"none",children:s})||s;return t?(0,ed.jsx)(lN,{content:n||OB(t),children:(0,ed.jsx)("div",{className:"",children:l})}):l}function _f(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex gap-4 p-4",(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,ed.jsx)(_d,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function _h(e){let t=e.sc,n=e.sf,r=e.hash&&(0,ed.jsx)(OU,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&OH(e.txType)||OB(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?_c(i):i;return(0,ed.jsx)(_f,{...e,children:(0,ed.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,ed.jsx)(n_,{color:"subtle",weight:"semibold",children:(0,ed.jsx)(dS,{href:e.blockHref,underline:"none",children:(0,gX.yF)(e.height)})}),o?(0,ed.jsx)(lN,{content:o,children:(0,ed.jsx)(n_,{ellipsis:!0,weight:"medium",children:o})}):(0,ed.jsx)(n_,{ellipsis:!0,weight:"medium",children:r})]}),(0,ed.jsx)("div",{className:"flex-1"}),(0,ed.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,ed.jsx)(OK,{variant:e.scVariant,value:t}),!!n&&(0,ed.jsx)(Oq,{variant:e.sfVariant,value:n})]})]}),(0,ed.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ed.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,ed.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(n_,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,ed.jsx)(n_,{color:"verySubtle",children:(0,ed.jsx)(lL.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,ed.jsx)(n_,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,O5.Z)(2,arguments);var a=o.locale||_i;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=O6(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(n=(0,O3.Z)(t),r=(0,O3.Z)(e)):(n=(0,O3.Z)(e),r=(0,O3.Z)(t));var u=function(e,t,n){(0,O5.Z)(2,arguments);var r,i=function(e,t){return(0,O5.Z)(2,arguments),(0,O3.Z)(e).getTime()-(0,O3.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?O8[r]:O8.trunc)(i)}(r,n),c=Math.round((u-(_o(r)-_o(n))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440)return a.formatDistance("aboutXHours",Math.round(c/60),l);if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200)return a.formatDistance("xDays",Math.round(c/1440),l);if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,O5.Z)(2,arguments);var n,r=(0,O3.Z)(e),i=(0,O3.Z)(t),o=O6(r,i),a=Math.abs(function(e,t){(0,O5.Z)(2,arguments);var n=(0,O3.Z)(e),r=(0,O3.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=O6(r,i)===-o;(function(e){(0,O5.Z)(1,arguments);var t=(0,O3.Z)(e);return(function(e){(0,O5.Z)(1,arguments);var t=(0,O3.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,O5.Z)(1,arguments);var t=(0,O3.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,O3.Z)(e))&&1===a&&1===O6(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12)return a.formatDistance("xMonths",Math.round(c/43200),l);var d=i%12,f=Math.floor(i/12);return d<3?a.formatDistance("aboutXYears",f,l):d<9?a.formatDistance("overXYears",f,l):a.formatDistance("almostXYears",f+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function _p(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||l||(c="skeleton"),((null==r?void 0:r.length)||l)&&(c="currentData"),(0,ed.jsx)(nA,{children:(0,ed.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,ed.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,ed.jsx)(dm,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,ed.jsx)("div",{className:"flex-1"}),n]}),(0,ed.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(o||(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center justify-center h-[84px]",(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,ed.jsx)(n_,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===c&&(l||(null==r?void 0:r.map((e,t)=>(0,ed.jsx)(_h,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,ed.jsx)(O4,{skeletonCount:s})]})]})})}function _m(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:v}=e,g=(0,ed.jsx)(n_,{color:"subtle",size:"12",className:"h-6",children:f});return(0,ed.jsx)(nA,{children:(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",v?"cursor-pointer":""),onClick:v,children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,ed.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,ed.jsx)(n_,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?_c(t):t}),i]}),(0,ed.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,ed.jsx)(hn,{className:"h-12 w-[150px]"}):(0,ed.jsxs)(ed.Fragment,{children:[void 0!==u&&(0,ed.jsx)(OK,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,ed.jsx)(Oq,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,ed.jsx)(OU,{scaleSize:p,label:OB(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,ed.jsx)(n_,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,ed.jsx)(OU,{scaleSize:p,label:"hash",value:l}),void 0!==a&&(0,ed.jsx)(n_,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:a})]}),g?(0,ed.jsx)("div",{className:"mt-1",children:m?(0,ed.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,ed.jsx)(hn,{className:"h-4 w-[100px]"})}):h?(0,ed.jsx)(lN,{content:h,children:g}):g}):null]})]})})})}function _v(e){let{title:t,actions:n,name:r}=e;return(0,ed.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,ed.jsx)(dE,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function _g(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,ed.jsx)(n_,{size:"14",color:"red",children:o}):null}function _y(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,ed.jsxs)("div",{className:(0,eX.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,ed.jsx)(_v,{name:i,title:n,actions:r}),(0,ed.jsx)(_g,{form:t,name:i})]}):null}function _b(e){let{children:t,...n}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ed.jsx)(_y,{...n}),t]})}function _x(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsx)(lD,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,ed.jsx)(k3,{}):i})})}function _w(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,ed.jsx)(_O,{formik:t,title:n,name:r,children:"number"===g?(0,ed.jsx)(_j,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,ed.jsx)(_k,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,ed.jsx)(_E,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function _E(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,ed.jsx)(fO,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function _j(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,ed.jsx)(f1,{id:n,units:r,name:n,placeholder:new(fJ())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function _k(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,ed.jsx)(f5,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fJ())(t.values[n]),placeholder:new(fJ())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function _S(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,ed.jsxs)("div",{className:(0,eX.cx)("flex justify-between items-center gap-4",s),children:[i?(0,ed.jsx)(dE,{htmlFor:o,children:i}):(0,ed.jsx)("div",{}),l&&(0,ed.jsx)(n_,{size:"14",color:"red",children:u})]})}function _O(e){let{children:t,...n}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ed.jsx)(_S,{...n}),t]})}function __(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,ed.jsxs)(ed.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,ed.jsx)(n_,{color:"red",children:n.status.error}),(0,ed.jsx)(lD,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,ed.jsx)(k3,{}):a})]})}let _C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function _M(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function _A(e){return"nodeType"in e}function _T(e){var t,n;return e?_M(e)?e:_A(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function _P(e){let{Document:t}=_T(e);return e instanceof t}function _N(e){return!_M(e)&&e instanceof _T(e).HTMLElement}function _R(e){return e instanceof _T(e).SVGElement}function _D(e){return e?_M(e)?e.document:_A(e)?_P(e)?e:_N(e)||_R(e)?e.ownerDocument:document:document:document}let _L=_C?ef.useLayoutEffect:ef.useEffect;function _Z(e){let t=(0,ef.useRef)(e);return _L(()=>{t.current=e}),(0,ef.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function _V(e,t){let n=(0,ef.useRef)();return(0,ef.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function _z(e){let t=_Z(e),n=(0,ef.useRef)(null),r=(0,ef.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function _I(e){let t=(0,ef.useRef)();return(0,ef.useEffect)(()=>{t.current=e},[e]),t.current}let _B={};function _H(e,t){return(0,ef.useMemo)(()=>{if(t)return t;let n=null==_B[e]?0:_B[e]+1;return _B[e]=n,e+"-"+n},[e,t])}function _U(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let _W=_U(1),_q=_U(-1);function _$(e){if(!e)return!1;let{KeyboardEvent:t}=_T(e.target);return t&&e instanceof t}function _Y(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=_T(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let _G=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[_G.Translate.toString(e),_G.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),_K="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",_X={display:"none"};function _Q(e){let{id:t,value:n}=e;return ef.createElement("div",{id:t,style:_X},n)}function _J(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return ef.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let _0=(0,ef.createContext)(null),_1={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},_2={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _4(e){let{announcements:t=_2,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=_1}=e,{announce:o,announcement:a}=function(){let[e,t]=(0,ef.useState)("");return{announce:(0,ef.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=_H("DndLiveRegion"),[l,u]=(0,ef.useState)(!1);if((0,ef.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,ef.useContext)(_0);(0,ef.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,ef.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}}),[o,t])),!l)return null;let c=ef.createElement(ef.Fragment,null,ef.createElement(_Q,{id:r,value:i.draggable}),ef.createElement(_J,{id:s,announcement:a}));return n?(0,tI.createPortal)(c,n):c}function _3(){}function _5(e,t){return(0,ef.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(S=ee||(ee={})).DragStart="dragStart",S.DragMove="dragMove",S.DragEnd="dragEnd",S.DragCancel="dragCancel",S.DragOver="dragOver",S.RegisterDroppable="registerDroppable",S.SetDroppableDisabled="setDroppableDisabled",S.UnregisterDroppable="unregisterDroppable";let _6=Object.freeze({x:0,y:0});function _8(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let _7=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(r0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(_8)};function _9(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:_6}let Ce=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function Ct(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let Cn={ignoreTransform:!1};function Cr(e,t){void 0===t&&(t=Cn);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=_T(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=Ct(t);if(!r)return e;let{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function Ci(e){return Cr(e,{ignoreTransform:!0})}function Co(e,t){let n=[];return e?function r(i){var o;if(null!=t&&n.length>=t||!i)return n;if(_P(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!_N(i)||_R(i)||n.includes(i))return n;let a=_T(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=_T(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,a)&&n.push(i),void 0===(o=a)&&(o=_T(i).getComputedStyle(i)),"fixed"===o.position)?n:r(i.parentNode)}(e):n}function Ca(e){let[t]=Co(e,1);return null!=t?t:null}function Cs(e){return _C&&e?_M(e)?e:_A(e)?_P(e)||e===_D(e).scrollingElement?window:_N(e)?e:null:null:null}function Cl(e){return _M(e)?e.scrollX:e.scrollLeft}function Cu(e){return _M(e)?e.scrollY:e.scrollTop}function Cc(e){return{x:Cl(e),y:Cu(e)}}function Cd(e){return!!_C&&!!e&&e===document.scrollingElement}function Cf(e){let t={x:0,y:0},n=Cd(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(O=et||(et={}))[O.Forward=1]="Forward",O[O.Backward=-1]="Backward";let Ch={x:.2,y:.2};function Cp(e){return e.reduce((e,t)=>_W(e,Cc(t)),_6)}function Cm(e,t){if(void 0===t&&(t=Cr),!e)return;let{top:n,left:r,bottom:i,right:o}=t(e);Ca(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let Cv=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Cl(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Cu(t),0)}]];class Cg{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Co(t),r=Cp(n);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,Cv))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(n),a=r[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Cy{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Cb(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function Cx(e){e.preventDefault()}function Cw(e){e.stopPropagation()}(_=en||(en={})).Click="click",_.DragStart="dragstart",_.Keydown="keydown",_.ContextMenu="contextmenu",_.Resize="resize",_.SelectionChange="selectionchange",_.VisibilityChange="visibilitychange",(C=er||(er={})).Space="Space",C.Down="ArrowDown",C.Right="ArrowRight",C.Left="ArrowLeft",C.Up="ArrowUp",C.Esc="Escape",C.Enter="Enter";let CE={start:[er.Space,er.Enter],cancel:[er.Esc],end:[er.Space,er.Enter]},Cj=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case er.Right:return{...n,x:n.x+25};case er.Left:return{...n,x:n.x-25};case er.Down:return{...n,y:n.y+25};case er.Up:return{...n,y:n.y-25}}};class Ck{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Cy(_D(t)),this.windowListeners=new Cy(_T(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(en.Resize,this.handleCancel),this.windowListeners.add(en.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(en.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Cm(n),t(_6)}handleKeyDown(e){if(_$(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=CE,coordinateGetter:o=Cj,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:_6;this.referenceCoordinates||(this.referenceCoordinates=u);let c=o(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=_q(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=Cf(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===er.Right?h.right-h.width/2:h.right,Math.max(i===er.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===er.Down?h.bottom-h.height/2:h.bottom,Math.max(i===er.Down?h.top:h.top+h.height/2,c.y))},m=i===er.Right&&!s||i===er.Left&&!l,v=i===er.Down&&!u||i===er.Up&&!o;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,o=i===er.Right&&e<=d.x||i===er.Left&&e>=f.x;if(o&&!t.y){n.scrollTo({left:e,behavior:a});return}o?r.x=n.scrollLeft-e:r.x=i===er.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(v&&p.y!==c.y){let e=n.scrollTop+t.y,o=i===er.Down&&e<=d.y||i===er.Up&&e>=f.y;if(o&&!t.x){n.scrollTo({top:e,behavior:a});return}o?r.y=n.scrollTop-e:r.y=i===er.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,_W(_q(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function CS(e){return!!(e&&"distance"in e)}function CO(e){return!!(e&&"delay"in e)}Ck.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=CE,onActivation:i}=t,{active:o}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class C_{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=_T(e);return e instanceof t?e:_D(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=_D(o),this.documentListeners=new Cy(this.document),this.listeners=new Cy(n),this.windowListeners=new Cy(_T(o)),this.initialCoordinates=null!=(r=_Y(i))?r:_6,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(en.Resize,this.handleCancel),this.windowListeners.add(en.DragStart,Cx),this.windowListeners.add(en.VisibilityChange,this.handleCancel),this.windowListeners.add(en.ContextMenu,Cx),this.documentListeners.add(en.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(CO(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(CS(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(en.Click,Cw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(en.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;let s=null!=(t=_Y(e))?t:_6,l=_q(r,s);if(!n&&a){if(CS(a)){if(null!=a.tolerance&&Cb(l,a.tolerance))return this.handleCancel();if(Cb(l,a.distance))return this.handleStart()}return CO(a)&&Cb(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===er.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let CC={move:{name:"pointermove"},end:{name:"pointerup"}};class CM extends C_{constructor(e){let{event:t}=e;super(e,CC,_D(t.target))}}CM.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let CA={move:{name:"mousemove"},end:{name:"mouseup"}};(M=ei||(ei={}))[M.RightClick=2]="RightClick";class CT extends C_{constructor(e){super(e,CA,_D(e.event.target))}}CT.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ei.RightClick&&(null==r||r({event:n}),!0)}}];let CP={move:{name:"touchmove"},end:{name:"touchend"}};class CN extends C_{constructor(e){super(e,CP)}static setup(){return window.addEventListener(CP.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(CP.move.name,e)};function e(){}}}CN.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(A=eo||(eo={}))[A.Pointer=0]="Pointer",A[A.DraggableRect=1]="DraggableRect",(T=ea||(ea={}))[T.TreeOrder=0]="TreeOrder",T[T.ReversedTreeOrder=1]="ReversedTreeOrder";let CR={x:{[et.Backward]:!1,[et.Forward]:!1},y:{[et.Backward]:!1,[et.Forward]:!1}};(P=es||(es={}))[P.Always=0]="Always",P[P.BeforeDragging=1]="BeforeDragging",P[P.WhileDragging=2]="WhileDragging",(el||(el={})).Optimized="optimized";let CD=new Map;function CL(e,t){return _V(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function CZ(e){let{callback:t,disabled:n}=e,r=_Z(t),i=(0,ef.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,ef.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function CF(e){return new Cg(Cr(e),e)}function CV(e,t,n){void 0===t&&(t=CF);let[r,i]=(0,ef.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o},null),o=function(e){let{callback:t,disabled:n}=e,r=_Z(t),i=(0,ef.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,ef.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=CZ({callback:i});return _L(()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),r}let Cz=[];function CI(e,t){void 0===t&&(t=[]);let n=(0,ef.useRef)(null);return(0,ef.useEffect)(()=>{n.current=null},t),(0,ef.useEffect)(()=>{let t=e!==_6;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?_q(e,n.current):_6}function CB(e){return(0,ef.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let CH=[];function CU(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return _N(t)?t:e}let CW=[{sensor:CM,options:{}},{sensor:Ck,options:{}}],Cq={current:{}},C$={draggable:{measure:Ci},droppable:{measure:Ci,strategy:es.WhileDragging,frequency:el.Optimized},dragOverlay:{measure:Cr}};class CY extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let CG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new CY,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_3},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:C$,measureDroppableContainers:_3,windowRect:null,measuringScheduled:!1},CK={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_3,draggableNodes:new Map,over:null,measureDroppableContainers:_3},CX=(0,ef.createContext)(CK),CQ=(0,ef.createContext)(CG);function CJ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new CY}}}function C0(e,t){switch(t.type){case ee.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ee.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ee.DragEnd:case ee.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ee.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new CY(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case ee.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let a=new CY(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case ee.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let o=new CY(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function C1(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,ef.useContext)(CX),o=_I(r),a=_I(null==n?void 0:n.id);return(0,ef.useEffect)(()=>{if(!t&&!r&&o&&null!=a){if(!_$(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=e.matches(_K)?e:e.querySelector(_K);if(t){t.focus();break}}})}},[r,t,i,a,o]),null}function C2(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let C4=(0,ef.createContext)({..._6,scaleX:1,scaleY:1});(N=eu||(eu={}))[N.Uninitialized=0]="Uninitialized",N[N.Initializing=1]="Initializing",N[N.Initialized=2]="Initialized";let C3=(0,ef.memo)(function(e){var t,n,r,i,o,a;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=CW,collisionDetection:f=_7,measuring:h,modifiers:p,...m}=e,[v,g]=(0,ef.useReducer)(C0,void 0,CJ),[y,b]=function(){let[e]=(0,ef.useState)(()=>new Set),t=(0,ef.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,ef.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[x,w]=(0,ef.useState)(eu.Uninitialized),E=x===eu.Initialized,{draggable:{active:j,nodes:k,translate:S},droppable:{containers:O}}=v,_=j?k.get(j):null,C=(0,ef.useRef)({initial:null,translated:null}),M=(0,ef.useMemo)(()=>{var e;return null!=j?{id:j,data:null!=(e=null==_?void 0:_.data)?e:Cq,rect:C}:null},[j,_]),A=(0,ef.useRef)(null),[T,P]=(0,ef.useState)(null),[N,R]=(0,ef.useState)(null),D=_F(m,Object.values(m)),L=_H("DndDescribedBy",s),Z=(0,ef.useMemo)(()=>O.getEnabled(),[O]),F=(0,ef.useMemo)(()=>({draggable:{...C$.draggable,...null==h?void 0:h.draggable},droppable:{...C$.droppable,...null==h?void 0:h.droppable},dragOverlay:{...C$.dragOverlay,...null==h?void 0:h.dragOverlay}}),[null==h?void 0:h.draggable,null==h?void 0:h.droppable,null==h?void 0:h.dragOverlay]),{droppableRects:V,measureDroppableContainers:z,measuringScheduled:I}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[o,a]=(0,ef.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,ef.useRef)(e),d=function(){switch(u){case es.Always:return!1;case es.BeforeDragging:return n;default:return!n}}(),f=_F(d),h=(0,ef.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,ef.useRef)(null),m=_V(t=>{if(d&&!n)return CD;if(!t||t===CD||c.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Cg(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,d,l]);return(0,ef.useEffect)(()=>{c.current=e},[e]),(0,ef.useEffect)(()=>{d||h()},[n,d]),(0,ef.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,ef.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=o}}(Z,{dragging:E,dependencies:[S.x,S.y],config:F.droppable}),B=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return _V(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(k,j),H=(0,ef.useMemo)(()=>N?_Y(N):null,[N]),U=function(){let e=(null==T?void 0:T.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,n=E&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),W=CL(B,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,o=(0,ef.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;_L(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=_9(n(e),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Ca(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,s,r,n])}({activeNode:j?k.get(j):null,config:U.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let q=CV(B,F.draggable.measure,W),$=CV(B?B.parentElement:null),Y=(0,ef.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=O.getNodeFor(null==(t=Y.current.over)?void 0:t.id),K=function(e){let{measure:t}=e,[n,r]=(0,ef.useState)(null),i=CZ({callback:(0,ef.useCallback)(e=>{for(let{target:n}of e)if(_N(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[o,a]=_z((0,ef.useCallback)(e=>{let n=CU(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,ef.useMemo)(()=>({nodeRef:o,rect:n,setRef:a}),[n,o,a])}({measure:F.dragOverlay.measure}),X=null!=(n=K.nodeRef.current)?n:B,Q=E?null!=(r=K.rect)?r:q:null,J=!!(K.nodeRef.current&&K.rect),en=function(e){let t=CL(e);return _9(e,t)}(J?null:q),er=CB(X?_T(X):null),ei=function(e){let t=(0,ef.useRef)(e),n=_V(n=>e?n&&n!==Cz&&e&&t.current&&e.parentNode===t.current.parentNode?n:Co(e):Cz,[e]);return(0,ef.useEffect)(()=>{t.current=e},[e]),n}(E?null!=G?G:B:null),el=function(e,t){void 0===t&&(t=Cr);let[n]=e,r=CB(n?_T(n):null),[i,o]=(0,ef.useReducer)(function(){return e.length?e.map(e=>Cd(e)?r:new Cg(t(e),e)):CH},CH),a=CZ({callback:o});return e.length>0&&i===CH&&o(),_L(()=>{e.length?e.forEach(e=>null==a?void 0:a.observe(e)):(null==a||a.disconnect(),o())},[e]),i}(ei),ec=C2(p,{transform:{x:S.x-en.x,y:S.y-en.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:q,containerNodeRect:$,draggingNodeRect:Q,over:Y.current.over,overlayNodeRect:K.rect,scrollableAncestors:ei,scrollableAncestorRects:el,windowRect:er}),ed=H?_W(H,S):null,eh=function(e){let[t,n]=(0,ef.useState)(null),r=(0,ef.useRef)(e),i=(0,ef.useCallback)(e=>{let t=Cs(e.target);t&&n(e=>e?(e.set(t,Cc(t)),new Map(e)):null)},[]);return(0,ef.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let a=e.map(e=>{let t=Cs(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Cc(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=Cs(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,ef.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>_W(e,t),_6):Cp(e):_6,[e,t])}(ei),ep=CI(eh),em=CI(eh,[q]),ev=_W(ec,ep),eg=Q?Ce(Q,ec):null,ey=M&&eg?f({active:M,collisionRect:eg,droppableRects:V,droppableContainers:Z,pointerCoordinates:ed}):null,eb=function(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}(ey,"id"),[ex,ew]=(0,ef.useState)(null),eE=(o=J?ec:_W(ec,em),a=null!=(i=null==ex?void 0:ex.rect)?i:null,{...o,scaleX:a&&q?a.width/q.width:1,scaleY:a&&q?a.height/q.height:1}),ej=(0,ef.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==A.current)return;let i=k.get(A.current);if(!i)return;let o=e.nativeEvent,a=new n({active:A.current,activeNode:i,event:o,options:r,context:Y,onStart(e){let t=A.current;if(null==t)return;let n=k.get(t);if(!n)return;let{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:C}};(0,tI.unstable_batchedUpdates)(()=>{null==r||r(i),w(eu.Initializing),g({type:ee.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){g({type:ee.DragMove,coordinates:e})},onEnd:s(ee.DragEnd),onCancel:s(ee.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Y.current,a=null;if(t&&i){let{cancelDrop:s}=D.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===ee.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=ee.DragCancel)}A.current=null,(0,tI.unstable_batchedUpdates)(()=>{g({type:e}),w(eu.Uninitialized),ew(null),P(null),R(null);let t=e===ee.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=D.current[t];null==e||e(a),y({type:t,event:a})}})}}(0,tI.unstable_batchedUpdates)(()=>{P(a),R(e.nativeEvent)})},[k]),ek=(0,ef.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,o=k.get(r);null!==A.current||!o||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:o})||(i.dndKit={capturedBy:t.sensor},A.current=r,ej(n,t))},[k,ej]),eS=(0,ef.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:ek(e.handler,t)}))]},[]),[d,ek]);(0,ef.useEffect)(()=>{if(!_C)return;let e=d.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},d.map(e=>{let{sensor:t}=e;return t})),_L(()=>{q&&x===eu.Initializing&&w(eu.Initialized)},[q,x]),(0,ef.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=Y.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:ev.x,y:ev.y},over:i};(0,tI.unstable_batchedUpdates)(()=>{null==e||e(o),y({type:"onDragMove",event:o})})},[ev.x,ev.y]),(0,ef.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Y.current;if(!e||null==A.current||!t||!i)return;let{onDragOver:o}=D.current,a=r.get(eb),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,tI.unstable_batchedUpdates)(()=>{ew(s),null==o||o(l),y({type:"onDragOver",event:l})})},[eb]),_L(()=>{Y.current={activatorEvent:N,active:M,activeNode:B,collisionRect:eg,collisions:ey,droppableRects:V,draggableNodes:k,draggingNode:X,draggingNodeRect:Q,droppableContainers:O,over:ex,scrollableAncestors:ei,scrollAdjustedTranslate:ev},C.current={initial:Q,translated:eg}},[M,B,ey,eg,k,X,Q,V,O,ex,ei,ev]),function(e){let{acceleration:t,activator:n=eo.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=ea.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=_I(t);return _V(e=>{if(n||!r||!e)return CR;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[et.Backward]:e.x[et.Backward]||-1===i.x,[et.Forward]:e.x[et.Forward]||1===i.x},y:{[et.Backward]:e.y[et.Backward]||-1===i.y,[et.Forward]:e.y[et.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!o}),[p,m]=function(){let e=(0,ef.useRef)(null);return[(0,ef.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,ef.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,ef.useRef)({x:0,y:0}),g=(0,ef.useRef)({x:0,y:0}),y=(0,ef.useMemo)(()=>{switch(n){case eo.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case eo.DraggableRect:return i}},[n,i,l]),b=(0,ef.useRef)(null),x=(0,ef.useCallback)(()=>{let e=b.current;if(!e)return;let t=v.current.x*g.current.x,n=v.current.y*g.current.y;e.scrollBy(t,n)},[]),w=(0,ef.useMemo)(()=>s===ea.TreeOrder?[...u].reverse():u,[s,u]);(0,ef.useEffect)(()=>{if(!o||!u.length||!y){m();return}for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:o}=function(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Ch);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=Cf(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(h.y=et.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=et.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=et.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(h.x=et.Backward,p.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:h,speed:p}}(e,n,y,t,f);for(let e of["x","y"])h[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){m(),b.current=e,p(x,a),v.current=o,g.current=i;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,x,r,m,o,a,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:S,draggingRect:eg,pointerCoordinates:ed,scrollableAncestors:ei,scrollableAncestorRects:el});let eO=(0,ef.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:q,activatorEvent:N,collisions:ey,containerNodeRect:$,dragOverlay:K,draggableNodes:k,droppableContainers:O,droppableRects:V,over:ex,measureDroppableContainers:z,scrollableAncestors:ei,scrollableAncestorRects:el,measuringConfiguration:F,measuringScheduled:I,windowRect:er}),[M,B,q,N,ey,$,K,k,O,V,ex,z,ei,el,F,I,er]),e_=(0,ef.useMemo)(()=>({activatorEvent:N,activators:eS,active:M,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:k,over:ex,measureDroppableContainers:z}),[N,eS,M,q,g,L,k,ex,z]);return ef.createElement(_0.Provider,{value:b},ef.createElement(CX.Provider,{value:e_},ef.createElement(CQ.Provider,{value:eO},ef.createElement(C4.Provider,{value:eE},c)),ef.createElement(C1,{disabled:(null==l?void 0:l.restoreFocus)===!1})),ef.createElement(_4,{...l,hiddenTextDescribedById:L}))}),C5=(0,ef.createContext)(null),C6="button",C8={timeout:25};function C7(e){let{animation:t,children:n}=e,[r,i]=(0,ef.useState)(null),[o,a]=(0,ef.useState)(null),s=_I(n);return n||r||!s||i(s),_L(()=>{if(!o)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){i(null);return}Promise.resolve(t(n,o)).then(()=>{i(null)})},[t,r,o]),ef.createElement(ef.Fragment,null,n,r?(0,ef.cloneElement)(r,{ref:a}):null)}let C9={x:0,y:0,scaleX:1,scaleY:1};function Me(e){let{children:t}=e;return ef.createElement(CX.Provider,{value:CK},ef.createElement(C4.Provider,{value:C9},t))}let Mt={position:"fixed",touchAction:"none"},Mn=e=>_$(e)?"transform 250ms ease":void 0,Mr=(0,ef.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:c=Mn}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...Mt,width:s.width,height:s.height,top:s.top,left:s.left,transform:_G.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=_Y(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,s):void 0,transition:"function"==typeof c?c(r):c,...l};return ef.createElement(n,{className:a,style:f,ref:t},o)}),Mi={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:_G.Transform.toString(t)},{transform:_G.Transform.toString(n)}]},sideEffects:(R={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,r={},{styles:i,className:o}=R;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=o&&o.active&&t.node.classList.add(o.active),null!=o&&o.dragOverlay&&n.node.classList.add(o.dragOverlay),function(){for(let[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=o&&o.active&&t.node.classList.remove(o.active)}})},Mo=0,Ma=ef.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:E}=(0,ef.useContext)(CQ),j=(0,ef.useContext)(C4),k=(t=null==f?void 0:f.id,(0,ef.useMemo)(()=>{if(null!=t)return++Mo},[t])),S=C2(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:j,windowRect:E}),O=CL(h),_=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return _Z((e,o)=>{if(null===t)return;let a=n.get(e);if(!a)return;let s=a.node.current;if(!s)return;let l=CU(o);if(!l)return;let{transform:u}=_T(o).getComputedStyle(o),c=Ct(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Mi,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;let u={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},c={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==m||m(),e()}})}}(t);return Cm(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:b}),C=O?g.setRef:void 0;return ef.createElement(Me,null,ef.createElement(C7,{animation:_},f&&k?ef.createElement(Mr,{key:k,id:f.id,ref:C,as:l,activatorEvent:d,adjustScale:n,className:u,transition:a,rect:O,style:{zIndex:c,...o},transform:S},r):null))});function Ms(){return(0,ef.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:o,context:a,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,ed.jsx)("tr",{ref:t,...i,...o,style:r,id:n.id,onClick:n.onClick,className:(0,eX.cx)("border-b border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",h),children:s.map((e,t)=>{let{id:r,render:i,contentClassName:o,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,ed.jsx)("td",{className:(0,eX.cx)(d(t,(0,eX.cx)(s,h),!1),u&&u===n.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===c?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===c?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===c?"!shadow-red-500 dark:!shadow-red-400":"","amber"===c?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===c?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,ed.jsx)("div",{className:(0,eX.cx)(f(t,(0,eX.cx)(o,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,ed.jsx)(i,{data:n,context:a})})},"".concat(r,"/").concat(n.id))})},n.id)})}function Ml(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,o=_H("Droppable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,ef.useContext)(CX),{role:h=C6,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,g=(0,ef.useContext)(v?C4:C5),[y,b]=_z(),[x,w]=_z(),E=(0,ef.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[a,t]),j=_F(n);return _L(()=>(d.set(t,{id:t,key:o,node:y,activatorNode:x,data:j}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,ef.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!v&&h===C6||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]),isDragging:v,listeners:r?void 0:E,node:y,over:f,setNodeRef:b,setActivatorNodeRef:w,transform:g}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,ef.useMemo)(()=>Ms(),[]);return(0,ed.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function Mu(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,o=_H("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=(0,ef.useContext)(CX),c=(0,ef.useRef)({disabled:n}),d=(0,ef.useRef)(!1),f=(0,ef.useRef)(null),h=(0,ef.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...C8,...i},g=_F(null!=m?m:r),y=CZ({callback:(0,ef.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),disabled:p||!a}),[b,x]=_z((0,ef.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=_F(t);return(0,ef.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),_L(()=>(s({type:ee.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:w}}),()=>s({type:ee.UnregisterDroppable,key:o,id:r})),[r]),(0,ef.useEffect)(()=>{n!==c.current.disabled&&(s({type:ee.SetDroppableDisabled,id:r,key:o,disabled:n}),c.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:x}}({id:t.id}),d=(0,ef.useMemo)(()=>Ms(),[]);return(0,ed.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:n,columns:r,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function Mc(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,draggingDatum:b}=e,x="emptyState";!c||(null==n?void 0:n.length)||(x="skeleton"),(null==n?void 0:n.length)&&(x="currentData");let w=(0,ef.useCallback)((e,n,r)=>(0,eX.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),E=(0,ef.useCallback)((e,t)=>(0,eX.cx)("flex items-center",t),[]),j=(0,ef.useMemo)(()=>Ms(),[]),k=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(_5(CT,{activationConstraint:{distance:10}}),_5(CN,{activationConstraint:{delay:250,tolerance:5}}));return(0,ed.jsxs)(C3,{sensors:k,onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,children:[(0,ed.jsx)(Ma,{children:b&&(0,ed.jsx)(nA,{className:"inline-block",children:(0,ed.jsx)("table",{children:(0,ed.jsx)(j,{className:"pointer-events-none",data:b,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},b.id)})})}),(0,ed.jsxs)(nA,{children:[(0,ed.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,ed.jsx)("thead",{className:(0,eX.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,ed.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,ed.jsx)("th",{className:(0,eX.cx)(w(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,ed.jsx)("div",{className:(0,eX.cx)("overflow-hidden","py-3"),children:(0,ed.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,eX.cx)(E(t,d),f?"cursor-pointer":""),children:[(0,ed.jsx)(lN,{content:u,children:(0,ed.jsxs)(n_,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,ed.jsx)("div",{children:r}):null,(0,ed.jsx)(n_,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,ed.jsx)(n_,{color:"contrast",children:"asc"===o?(0,ed.jsx)(lL.kqg,{className:"scale-75"}):(0,ed.jsx)(lL.EMN,{className:"scale-75"})}),f&&!h&&(0,ed.jsx)(n_,{color:"verySubtle",children:(0,ed.jsx)(lL.kqg,{className:"scale-75"})})]})})},n)})})}),(0,ed.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===x&&(null==n?void 0:n.map(e=>(null==b?void 0:b.id)===e.id?null:e.isDraggable?(0,ed.jsx)(Ml,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},e.id):e.isDroppable?(0,ed.jsx)(Mu,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},e.id):(0,ed.jsx)(j,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},e.id))),"skeleton"===x&&O2(u).map(e=>(0,ed.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,ed.jsx)("td",{className:w(t,i,!1),children:(0,ed.jsx)("div",{className:(0,eX.cx)(E(t,r),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===x&&d]})]})}function Md(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,df.j0)();return(0,ed.jsxs)(l4,{children:[(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,ed.jsx)("div",{className:"flex scale-[0.65]",children:(0,ed.jsx)(lL.XJM,{})})}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,ed.jsx)(lL.bdU,{})}),(0,ed.jsx)(lD,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,ed.jsx)(k3,{className:"px-2"}):"No results"}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,ed.jsx)(lL.VUy,{})}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,ed.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,ed.jsx)(lL.RRj,{})})})]})}function Mf(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,df.j0)();return(0,ed.jsxs)(l4,{children:[(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,ed.jsx)("div",{className:"flex scale-[0.65]",children:(0,ed.jsx)(lL.XJM,{})})}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,ed.jsx)(lL.bdU,{})}),i?(0,ed.jsx)(lD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ed.jsx)(k3,{className:"px-2"})}):r?(0,ed.jsxs)(lD,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,ed.jsx)(lD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ed.jsx)(lD,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,ed.jsx)(lL.VUy,{})})]})}function Mh(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,ed.jsx)(n_,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,ed.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,ed.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:n}),(0,ed.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,ed.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let Mp=("string"==typeof(D={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:D}:D).src;function Mm(e){let{children:t}=e;return(0,ed.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,ed.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,ed.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(Mp,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,ed.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function Mv(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,ed.jsxs)(df.Fb,{children:[(0,ed.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,ed.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,ed.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,ed.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,ed.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,ed.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,ed.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,ed.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,ed.jsx)("title",{children:i})]})}function Mg(e){let{appName:t,title:n,children:r}=e;return(0,ed.jsxs)("div",{className:"h-screen",children:[(0,ed.jsx)(Mv,{appName:t,title:n}),r]})}function My(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,ed.jsxs)(Mg,{appName:t,title:n,children:[(0,ed.jsx)(Mm,{}),(0,ed.jsx)("div",{className:"flex h-full",children:(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(Mh,{nav:i,actions:o}),(0,ed.jsx)("div",{className:"flex-1",children:(0,ed.jsx)(l5,{className:"h-full",children:r})})]})})]})}function Mb(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,ed.jsx)(lN,{side:t,content:(0,ed.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(n_,{children:"spendable"}),(0,ed.jsx)(n_,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,ed.jsx)("div",{className:"flex justify-end",children:(0,ed.jsx)(OK,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(n_,{children:"confirmed"}),(0,ed.jsx)(n_,{color:"subtle",children:"All confirmed outputs."})]}),(0,ed.jsx)("div",{className:"flex justify-end",children:(0,ed.jsx)(OK,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(n_,{children:"unconfirmed"}),(0,ed.jsx)(n_,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,ed.jsx)("div",{className:"flex justify-end",children:(0,ed.jsx)(OK,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,ed.jsx)("div",{children:r})}):null}function Mx(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,ed.jsx)(OK,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,ed.jsx)(Mb,{side:"right",balanceSc:t,children:i}):(0,ed.jsx)(lN,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ed.jsx)("div",{children:i})})}function Mw(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,df.jD)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,ed.jsx)(dS,{href:r,className:"no-underline",children:(0,ed.jsx)(lN,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ed.jsx)(lD,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,ed.jsx)(lN,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ed.jsx)(lD,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function ME(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,ed.jsx)(Mw,{title:"Wallet",route:r.wallet.view,children:(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,ed.jsx)(lL.oaN,{}),n&&t&&(0,ed.jsx)(Mx,{isSynced:n,balanceSc:t})]})})}function Mj(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,ed.jsx)(nA,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,ed.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,ed.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,ed.jsx)(d_,{size:30})}),(0,ed.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,ed.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,ed.jsx)("div",{className:"flex-1"}),(0,ed.jsx)(c6,{className:"w-full"}),i&&(0,ed.jsx)(ME,{routes:t,isSynced:r,walletBalanceSc:o}),(0,ed.jsx)(Mw,{title:"Blockchain node",route:t.node.index,children:(0,ed.jsx)(lL.kBK,{})}),(0,ed.jsx)(Mw,{title:"App preferences",onClick:()=>s(),children:(0,ed.jsx)(lL.UG6,{})}),(0,ed.jsx)(Mw,{title:"Lock app",onClick:a,children:(0,ed.jsx)(lL.mBM,{})})]})]})})}var Mk=Object.create,MS=Object.defineProperty,MO=Object.getOwnPropertyDescriptor,M_=Object.getOwnPropertyNames,MC=Object.getPrototypeOf,MM=Object.prototype.hasOwnProperty,MA=(V=null!=(F=(L=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(Z||L((Z={exports:{}}).exports,Z),Z.exports))())?Mk(MC(F)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of M_(t))MM.call(e,n)||void 0===n||MS(e,n,{get:()=>t[n],enumerable:!(r=MO(t,n))||r.enumerable});return e})(F&&F.__esModule?V:MS(V,"default",{value:F,enumerable:!0}),F)),MT=e=>void 0!==e.method&&"call"===e.method,MP=e=>null===e.error&&"number"==typeof e.id;z=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(MT(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(MP(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,MA.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,MA.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,MA.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,MA.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=z(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var MN=(typeof window>"u"?"undefined":typeof window)=="object",MR={setTimeout:MN?setTimeout.bind(window):setTimeout,clearTimeout:MN?clearTimeout.bind(window):clearTimeout,setInterval:MN?setInterval.bind(window):setInterval,clearInterval:MN?clearInterval.bind(window):clearInterval},MD={},ML=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,MD[e]=MD[e]||[],MD[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),MR.setTimeout(()=>{window.localStorage.removeItem(n)},500),MD[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=MD[this.name].indexOf(this);MD[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},MZ=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:ML;function MF(){return Math.random().toString(36).substring(2)}var MV=class{options;channel;token=MF();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>MR.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{MR.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=MR.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>MR.clearInterval(e))}catch{}}}},Mz=class{channel;options;elector;token=MF();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new MZ(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new MV(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},MI=MN?document:null,MB=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function MH(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function MW(e){let{route:t}=e,n=(0,f2.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function Mq(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:x}=(0,f2.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=MW({route:n}),{settings:a}=(0,f2.Hv)(),s=(0,df.j0)();(0,ef.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=MI,events:i=MB,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:E=!1,disabled:j=!1}={}){let k=(0,ef.useRef)(MU()),S=(0,ef.useRef)(MU()),O=(0,ef.useRef)(null),_=(0,ef.useRef)(null),C=(0,ef.useRef)(0),M=(0,ef.useRef)(0),A=(0,ef.useRef)(0),T=(0,ef.useRef)(0),P=(0,ef.useRef)(!1),N=(0,ef.useRef)(!1),R=(0,ef.useRef)(!1),D=(0,ef.useRef)(!0),L=(0,ef.useRef)(!1),Z=(0,ef.useRef)(null),F=(0,ef.useRef)(null),V=(0,ef.useRef)(e),z=(0,ef.useRef)(0);(0,ef.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(V.current=e-n,z.current=n):(V.current=e,z.current=t),!D.current){if(g||j)return;P.current&&(G.current(null,eT),F.current&&F.current.active()),ec()}},[e,t,n,g,j]);let I=(0,ef.useRef)(y);(0,ef.useEffect)(()=>{I.current=y},[y]);let B=(0,ef.useRef)(a),H=(0,ef.useRef)(r),U=(0,ef.useRef)([...new Set([...i,...a]).values()]),W=(0,ef.useRef)(j);(0,ef.useEffect)(()=>{W.current=j,!D.current&&(j?ep():g||ec())},[j]);let q=(0,ef.useRef)(s);(0,ef.useEffect)(()=>{q.current=s},[s]);let $=(0,ef.useRef)(l);(0,ef.useEffect)(()=>{$.current=l},[l]);let Y=(0,ef.useRef)(u);(0,ef.useEffect)(()=>{Y.current=u},[u]);let G=(0,ef.useRef)(c);(0,ef.useEffect)(()=>{G.current=c},[c]);let K=(0,ef.useRef)(d);(0,ef.useEffect)(()=>{K.current=d},[d]);let X=(0,ef.useRef)(f);(0,ef.useEffect)(()=>{X.current=f},[f]);let Q=(0,ef.useMemo)(()=>{let e=(e,t)=>K.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?MH(e,p):e},[p,h]),J=(0,ef.useRef)();(0,ef.useEffect)(()=>{b&&w&&(J.current=MH(()=>{F.current.active()},w))},[b,w]);let ee=()=>{null!==Z.current&&(MR.clearTimeout(Z.current),Z.current=null)},et=(e,t=!0)=>{ee(),Z.current=MR.setTimeout(eo,e||V.current),t&&(_.current=MU())},en=e=>{N.current||P.current||($.current(e,eT),q.current({type:"active",prompted:!0},eT)),T.current=0,A.current=MU(),N.current=!0,et(z.current,!1)},er=()=>{ee(),P.current||(Y.current(null,eT),q.current({type:"idle"},eT)),P.current=!0,O.current=MU(),I.current?eu():N.current&&(A.current=0,N.current=!1)},ei=e=>{ee(),(P.current||N.current)&&(G.current(e,eT),q.current({type:"active",prompted:!1},eT)),N.current=!1,A.current=0,P.current=!1,C.current+=MU()-O.current,M.current+=MU()-O.current,el(),et()},eo=e=>{if(!P.current){Q.cancel&&Q.cancel();let t=MU()-_.current;if(!(V.current+z.current0&&!N.current){F.current?F.current.prompt():en(e);return}F.current?F.current.idle():er();return}F.current?F.current.active():ei(e)},ea=e=>{if(v||_.current||(_.current=MU(),G.current(null,eT)),Q(e,eT),N.current)return;if(ee(),!P.current&&B.current.includes(e.type)){eo(e);return}let t=MU()-_.current;if(P.current&&!y||!P.current&&t>=V.current){eo(e);return}R.current=!1,T.current=0,A.current=0,et(),b&&w&&J.current()},es=(0,ef.useRef)(ea);(0,ef.useEffect)(()=>{let e=L.current;e&&eu(),m>0?es.current=MH(ea,m):es.current=ea,e&&el()},[m,p,h,K,b,w]);let el=()=>{MN&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},eu=(e=!1)=>{MN&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ec=(0,ef.useCallback)(e=>!W.current&&(ee(),el(),P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,F.current&&!e&&F.current.start(),et(),!0),[Z,P,W,V,F]),ed=(0,ef.useCallback)(e=>!W.current&&(ee(),el(),S.current=MU(),C.current+=MU()-O.current,M.current+=MU()-O.current,C.current=0,P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,F.current&&!e&&F.current.reset(),g||et(),!0),[Z,P,V,g,W,F]),eh=(0,ef.useCallback)(e=>!W.current&&(ee(),el(),(P.current||N.current)&&ei(),P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,S.current=MU(),F.current&&!e&&F.current.activate(),et(),!0),[Z,P,N,W,V,F]),ep=(0,ef.useCallback)((e=!1)=>!W.current&&!R.current&&(T.current=eE(),R.current=!0,eu(),ee(),F.current&&!e&&F.current.pause(),!0),[Z,W,F]),em=(0,ef.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||el(),P.current||et(T.current),A.current&&(A.current=MU()),F.current&&!e&&F.current.resume(),!0),[Z,V,W,T,F]),ev=(0,ef.useCallback)((e,t)=>(F.current?(t&&X.current(e,eT),F.current.message(e)):t&&X.current(e,eT),!0),[f]),eg=(0,ef.useCallback)(()=>P.current,[P]),ey=(0,ef.useCallback)(()=>N.current,[N]),eb=(0,ef.useCallback)(()=>F.current?F.current.isLeader:null,[F]),ex=(0,ef.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,ef.useCallback)(()=>F.current?F.current.token:null,[F]),eE=(0,ef.useCallback)(()=>{if(R.current)return T.current;let e=Math.floor((T.current?T.current:z.current+V.current)-(_.current?MU()-_.current:0));return e<0?0:Math.abs(e)},[V,z,N,T,_]),ej=(0,ef.useCallback)(()=>Math.round(MU()-S.current),[S]),ek=(0,ef.useCallback)(()=>Math.round(MU()-k.current),[k]),eS=(0,ef.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,ef.useCallback)(()=>_.current?new Date(_.current):null,[_]),e_=(0,ef.useCallback)(()=>P.current?Math.round(MU()-O.current+C.current):Math.round(C.current),[O,C]),eC=(0,ef.useCallback)(()=>P.current?Math.round(MU()-O.current+M.current):Math.round(M.current),[O,M]),eM=(0,ef.useCallback)(()=>{let e=Math.round(ej()-e_());return e>=0?e:0},[O,C]),eA=(0,ef.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,C]);(0,ef.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(MR.setTimeout=o.setTimeout,MR.clearTimeout=o.clearTimeout,MR.setInterval=o.setInterval,MR.clearInterval=o.clearInterval);let e=()=>{F.current&&F.current.close(),Q.cancel&&Q.cancel(),ee(),eu(!0)};return MN&&window.addEventListener("beforeunload",e),()=>{MN&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),Q.cancel&&Q.cancel(),ee(),eu(!0)}},[]),(0,ef.useEffect)(()=>{F.current&&F.current.close(),b?F.current=new Mz({channelName:x,leaderElection:E,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{X.current(e,eT)},start:ec,reset:ed,activate:eh,pause:ep,resume:em}):F.current=null},[b,x,E,$,Y,G,X,ec,ed,ep,em]),(0,ef.useEffect)(()=>{D.current||(ee(),eu(!0)),g||j||(v?ec():el())},[g,v,j,D]),(0,ef.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...a]).values()];eu(),U.current=e,H.current=r,B.current=a,g||j||(v?ec():el())}},[r,JSON.stringify(i),JSON.stringify(a),D,j,g,v]),(0,ef.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eT={message:ev,start:ec,reset:ed,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:eO,getIdleTime:e_,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,q.current=e},setOnPrompt:e=>{l=e,$.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,K.current=e},setOnMessage:e=>{f=e,X.current=e}}}({disabled:!t,onIdle:(0,ef.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!x.autoLock,lockTimeout:x.autoLockTimeout,lock:b}),(0,ed.jsxs)(Mg,{appName:t,title:n,children:[(0,ed.jsx)(Mm,{}),(0,ed.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,ed.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,ed.jsx)(Mj,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,ed.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,ed.jsx)(Mh,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,ed.jsx)(uT,{className:"z-0",children:(0,ed.jsx)(l5,{size:o,pad:!1,children:(0,ed.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,ed.jsx)(l5,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function M$(e,t,n,r){let[i,o]=(0,ef.useState)();return(0,ef.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,ef.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function MY(e){let{filtered:t}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.Hb6,{className:"scale-[200%]"})}),(0,ed.jsx)(n_,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,ef.createContext)(null).Consumer;let MG=[];function MK(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=M$(o.data,o.isValidating,o.error,MG),[u,c]=(0,ef.useState)(),d=(0,ef.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,ef.useCallback)(e=>Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r}),[a]);return(0,ed.jsx)(uR,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsxs)(dm,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,ed.jsxs)("div",{className:"flex gap-1",children:[(0,ed.jsx)(lD,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,ed.jsx)(lD,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,ed.jsx)(lD,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,ed.jsx)(lD,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,ed.jsx)(lD,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,ed.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,ed.jsxs)(lD,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,ed.jsx)(lL.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,ed.jsx)(MY,{filtered:!1}),"error"===l&&(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center justify-center h-[100px]",MJ()),children:(0,ed.jsx)(n_,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,ed.jsx)(MQ,{}),!l&&(0,ed.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,ed.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,ed.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,ed.jsxs)(n_,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,ed.jsx)(lD,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,ed.jsx)(lL.NlZ,{})})]}),(0,ed.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ed.jsx)(n_,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,ed.jsx)(n_,{color:"contrast",ellipsis:!0,children:(0,gX.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||MX;return(0,ed.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,ed.jsx)(MY,{filtered:!!u})})]})})}function MX(e){let{label:t,value:n}=e;return(0,ed.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,ed.jsx)(n_,{color:"subtle",children:t}),(0,ed.jsx)(n_,{color:"contrast",ellipsis:!0,children:String(n)})]})}function MQ(){return(0,ed.jsx)(ed.Fragment,{children:O2(10,e=>(0,ed.jsx)("div",{className:(0,eX.cx)("relative flex gap-4 p-3.5",MJ()),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ed.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,ed.jsx)(hn,{className:"w-[160px] h-[20px]"}),(0,ed.jsx)(hn,{className:"w-[160px] h-[20px]"})]}),(0,ed.jsx)(hn,{className:"w-[100px] h-[20px]"}),(0,ed.jsx)(hn,{className:"w-full h-[120px]"})]})},e))})}function MJ(){return(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var M0=n(89644),M1=n.n(M0),M2=n(63955),M4=n(92263),M3=n(45500),M5=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},M6=(I=n(6623).Z,function(e){var t,n=(0,M4.Z)(e);return"[object Map]"==n?(0,M3.Z)(e):"[object Set]"==n?M5(e):(t=I(e),(0,kk.Z)(t,function(t){return[t,e[t]]}))});function M8(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,ef.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,ef.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function M7(e){return(0,ef.useCallback)(t=>{OA({title:"Error",body:M6(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function M9(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=M8({name:t,form:n,field:u}),p=(0,ed.jsx)(fO,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,ed.jsx)(_b,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var Ae=n(52390),At=function(e,t){return kG(kU(e,t,kq.Z),e+"")},An=n(78804),Ar=n(63282),Ai=n(66401),Ao=function(e,t,n){if(!(0,vz.Z)(n))return!1;var r=typeof t;return("number"==r?!!((0,Ar.Z)(n)&&(0,Ai.Z)(t,n.length)):"string"==r&&t in n)&&(0,An.Z)(n[t],e)},Aa=At(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ao(e,t[0],t[1])?t=[]:n>2&&Ao(t[0],t[1],t[2])&&(t=[t[0]]),(0,Ae.Z)(e,kI(t,1),[])});async function As(e){let{api:t,route:n,password:r}=e;try{return await M1().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function Al(e){let{appName:t,route:n,routes:r}=e,i=(0,df.j0)(),{settings:o,setSettings:a}=(0,f2.Hv)(),{allowCustomApi:s}=o,l=(0,ef.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,M2.cI)({mode:"onBlur",defaultValues:l});(0,ef.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,ef.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await As({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=M7(d),h=u.formState.errors.api||u.formState.errors.password,p=Aa(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,ed.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,ed.jsx)(nA,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,ed.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(n_,{font:"mono",weight:"bold",size:"20",children:t}),(0,ed.jsx)(dl,{label:"login settings",trigger:(0,ed.jsx)(lD,{icon:"hover",variant:"ghost",children:(0,ed.jsx)(lL.shL,{})}),children:(0,ed.jsx)(du,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,ed.jsx)(c6,{className:"w-full mt-2 mb-3"}),(0,ed.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,ed.jsxs)(l4,{children:[(0,ed.jsx)(M9,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,ed.jsx)(dl,{trigger:(0,ed.jsx)(lD,{type:"button",children:(0,ed.jsx)(lL.wGX,{})}),children:p.map(e=>(0,ed.jsx)(du,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,ed.jsx)(M9,{name:"password",form:u,fields:d,group:!1}),h&&(0,ed.jsx)(n_,{size:"14",color:"red",children:h.message}),(0,ed.jsx)(_x,{size:"small",form:u,children:"Unlock"})]})})]})})})}var Au=n(7114),Ac=n(24511);let Ad={address:"",siacoin:void 0,includeFee:!1},Af=Ac.Ry().shape({address:Ac.Z_().required("Required"),siacoin:Ac.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fJ())(e||0).isZero())});function Ah(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,ed.jsx)(OU,{value:t,type:"address"})]}),(0,ed.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ed.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,ed.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,ed.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,ed.jsx)(OU,{value:i,type:"transaction"})]})]})}function Ap(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,ed.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,ed.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,ed.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,ed.jsxs)("div",{className:(0,eX.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,ed.jsx)(n_,{color:l?"contrast":"verySubtle",className:(0,eX.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,ed.jsx)("div",{className:(0,eX.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,ed.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function Am(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(Ah,{address:t,siacoin:n,fee:r,transactionId:i}),(0,ed.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.Z$8,{})}),(0,ed.jsx)(n_,{children:"Transaction successfully broadcasted."})]})]})}let Av=(0,gX.qN)(.00393),Ag={address:"",siacoin:new(fJ())(0),includeFee:!1};function Ay(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,ef.useState)("setup"),[l,u]=(0,ef.useState)(),[c,d]=(0,ef.useState)(Ag),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,Au.TA)({initialValues:Ad,validationSchema:Af,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,gX.qN)(e.siacoin).minus(n):(0,gX.qN)(e.siacoin);if(t){if(t.isLessThan((0,gX.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,gX.qN)(i.values.siacoin||0),a=(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(_w,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,ed.jsx)(_w,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,ed.jsxs)("div",{className:"flex items-center",children:[(0,ed.jsx)(hv,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,ed.jsx)(f6,{children:"Include or exclude the network fee from the above transaction value."}),(0,ed.jsx)("div",{className:"flex flex-1"})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,ed.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",children:"Network fee"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ed.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",children:"Total"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:Av,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,Au.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}});return{form:(0,ed.jsx)("div",{className:"flex flex-col gap-4",children:(0,ed.jsx)(Ah,{address:o,siacoin:a,fee:r})}),formik:s}}({fee:Av,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,ef.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,ed.jsx)(uR,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,ed.jsx)("div",{className:"flex flex-col gap-1",children:(0,ed.jsx)(__,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(Ap,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,ed.jsx)(c6,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,ed.jsx)(Am,{data:c,fee:Av,transactionId:l})]})})}let Ab=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),Ax={port:9981,ip:""},Aw=Ac.Ry().shape({port:Ac.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:Ac.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>Ab().test(e||""))});function AE(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,Au.TA)({initialValues:Ax,validationSchema:Aw,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else OM({title:"Connected to peer"}),t.resetForm(),i(!1)}});return(0,ed.jsx)(uR,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Connect to a peer by IP address."}),(0,ed.jsx)("form",{onSubmit:o.handleSubmit,children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(_w,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,ed.jsx)(_w,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,ed.jsx)(__,{formik:o,size:"medium",children:"Connect"})]})})]})})}function Aj(e){var t,n;let{id:r,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,ed.jsx)(uR,{title:OZ((null==i?void 0:i.txType)?_c(OH(i.txType)):"Transaction",r,16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,ed.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,ed.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Inflow"}),(0,ed.jsx)(O$,{value:new(fJ())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Outflow"}),(0,ed.jsx)(O$,{value:new(fJ())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Miner fee"}),(0,ed.jsx)(O$,{value:new(fJ())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(fJ())(0)))||0)})]}),(0,ed.jsx)("div",{className:"flex-1"}),(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Timestamp"}),(0,ed.jsx)(n_,{children:(null==i?void 0:i.timestamp)?(0,gX.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,ed.jsx)(lJ,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,ed.jsx)(n_,{children:"Could not find transaction in wallet"})})}Ac.Ry().shape({address:Ac.Z_().required("Required"),description:Ac.Z_().required("Required"),index:Ac.Rx().integer().required("Required")});var Ak=n(38001);function AS(e){let{title:t,description:n,address:r}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,ed.jsx)(dm,{size:"20",font:"mono",children:t}),n&&(0,ed.jsx)(n_,{children:n}),(0,ed.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,ed.jsx)("div",{className:"absolute",children:(0,ed.jsx)(Ak.Z,{size:200,value:r})})}),(0,ed.jsx)(OU,{type:"address",value:r})]})}function AO(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,ed.jsx)(uR,{title:OZ("Address",OL(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,ed.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,ed.jsx)(AS,{address:t||""}):(0,ed.jsx)(n_,{children:"Could not retreive wallet address"})})})}function A_(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{color:"amber",children:(0,ed.jsx)(lL.qdM,{})}),(0,ed.jsxs)(n_,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{color:"amber",children:(0,ed.jsx)(lL.qdM,{})}),(0,ed.jsxs)(n_,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let AC={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function AM(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,f2.Hv)();return(0,ed.jsx)(f9,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,ed.jsx)(he,{value:t,children:n},t)})})}let AA=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function AT(){let{settings:e,setSettings:t}=(0,f2.Hv)();return(0,ed.jsx)(f9,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:AA.map(e=>{let{id:t,label:n}=e;return(0,ed.jsx)(he,{value:t,children:n},t)})})}function AP(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,f2.Hv)();return(0,ed.jsx)(uR,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,ed.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,ed.jsx)("div",{className:"flex flex-col gap-4",children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Display"}),(0,ed.jsx)(nC,{size:"14",children:"Configure visual and locale display preferences."}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Currency display"}),(0,ed.jsx)(AT,{})]}),(0,ed.jsx)(nC,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Fiat"}),(0,ed.jsx)(AM,{})]}),(0,ed.jsx)(nC,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Theme"}),(0,ed.jsx)(pG,{})]}),(0,ed.jsx)(nC,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"GPU"}),(0,ed.jsx)(hv,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,ed.jsxs)(nC,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Security"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Configure security preferences."}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Lock app"}),(0,ed.jsx)(hv,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,ed.jsxs)(f9,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,ed.jsx)(he,{value:kQ(5),children:"5 minutes"}),(0,ed.jsx)(he,{value:kQ(10),children:"10 minutes"}),(0,ed.jsx)(he,{value:kQ(20),children:"20 minutes"}),(0,ed.jsx)(he,{value:kQ(30),children:"30 minutes"}),(0,ed.jsx)(he,{value:kQ(60),children:"1 hour"})]})]}),(0,ed.jsx)(nC,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Privacy"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Sia Central"}),(0,ed.jsx)(hv,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,ed.jsx)(nC,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Help"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)(dS,{href:AC.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.lq1,{}),"Website"]}),(0,ed.jsxs)(dS,{href:AC.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.RdX,{}),"Docs"]}),(0,ed.jsxs)(dS,{href:AC.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.Sfn,{}),"About"]}),(0,ed.jsxs)(dS,{href:AC.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.b47,{}),"Discord"]})]})]})]})]})})}function AN(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,ed.jsx)(Mb,{side:"bottom",balanceSc:t,children:(0,ed.jsx)(nA,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,ed.jsx)(OK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,ed.jsx)(lN,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ed.jsxs)(nA,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,ed.jsx)(n_,{color:"amber",children:(0,ed.jsx)(lL.qdM,{})}),(0,ed.jsx)(OK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function AR(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,ed.jsxs)(ed.Fragment,{children:[o&&(0,ed.jsx)(AN,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,ed.jsxs)(lD,{size:"small",onClick:s,children:[(0,ed.jsx)(lL.xHM,{}),"Receive"]}),(0,ed.jsxs)(lD,{size:"small",variant:"accent",onClick:a,children:[(0,ed.jsx)(lL.rW0,{}),"Send"]})]})}function AD(e,t){if(!e||!e.length)return[];let n=Object.keys(kX(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}function AL(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-k0(Number(e)),end:t}}let AZ={"5m":e=>{let t=e+kQ(5);return"5m interval from ".concat((0,gX.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,gX.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kQ(15);return"15m interval from ".concat((0,gX.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,gX.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+kJ(1);return"Hour interval from ".concat((0,gX.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,gX.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+kJ(24);return"Day interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},weekly:e=>{let t=e+k0(7);return"Week interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},monthly:e=>{let t=e+k0(30);return"Month interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},yearly:e=>{let t=e+k0(365);return"Year interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},default:e=>"".concat((0,gX.rN)(e))};function AF(e){return AZ[e]||AZ.default}function AV(e){if(!e||!e.length)return{};let t=Object.keys(kX(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0;return Az({total:t.reduce((t,n)=>t+(n[e]||0),0),start:i,end:o,count:t.length})}(n,e)}),{}),total:function(e,t){let n=AI(e,t[0]),r=AI(e,t[t.length-1]);return Az({total:t.reduce((t,n)=>t+AI(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function Az(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function AI(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function AB(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,p$.F)(),o=(0,ef.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:gK.accent[800]}}:{sc:{label:"siacoin",color:gK.accentdark[800]}},[i]),a=(0,ef.useMemo)(()=>({data:AD(t,"none"),stats:AV(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,gX.Vz)(e),formatTimestamp:AF("default"),formatTickY:e=>(0,gX.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,o,r]);return(0,ed.jsx)("div",{className:"relative",children:(0,ed.jsx)(k6,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function AH(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,ed.jsx)(_p,{title:"Peers",actions:(0,ed.jsx)(lD,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function AU(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,ed.jsx)("div",{className:"relative top-px",children:(0,ed.jsx)(hi,{style:{backgroundColor:o}})}),(0,ed.jsx)(n_,{size:t,children:n})]})}let AW={total:"total",average:"average",latest:"latest"};function Aq(e){let{category:t,label:n,color:r,sc:i,scFixed:o=2,value:a,extendedSuffix:s,valueFormat:l=e=>e.toFixed(2),defaultMode:u,enabledModes:c=["total","average","latest"],isLoading:d,showChange:f=!0}=e,[h,p]=(0,k2.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:u});return(0,ed.jsx)(_m,{isLoading:d,label:(0,ed.jsx)(AU,{label:n,color:r}),actions:(0,ed.jsx)(f9,{onChange:e=>p(e.currentTarget.value),defaultValue:h,children:c.map(e=>(0,ed.jsx)(he,{value:e,children:AW[e]},e))}),sc:(null==i?void 0:i[h])!==void 0?new(fJ())(i[h]):void 0,scFixed:o,extendedSuffix:s,value:(null==a?void 0:a[h])!==void 0&&l?l(a[h]):void 0,comment:i?(0,ed.jsxs)("div",{className:"flex items-center gap-4",children:[(0,ed.jsx)(OK,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(fJ())(i.diff)}),f&&void 0!==i.change&&(0,ed.jsx)(lN,{content:"Percent change over time range",children:(0,ed.jsxs)(n_,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):a&&(0,ed.jsxs)("div",{className:"flex items-center gap-4",children:[(0,ed.jsx)(OX,{tooltip:"Net change over time range:",format:e=>l(e.toNumber()),value:new(fJ())(a.diff)}),f&&void 0!==a.change&&(0,ed.jsx)(lN,{content:"Percent change over time range",children:(0,ed.jsxs)(n_,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[a.change.toFixed(2),"%"]})})]})})}function A$(e){let{children:t,bleed:n}=e;return(0,ed.jsx)("div",{className:(0,eX.cx)(n?"-mx-5 overflow-hidden":""),children:(0,ed.jsx)(uT,{children:(0,ed.jsx)("div",{className:(0,eX.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function AY(e){let{children:t,variant:n,align:r}=e;return(0,ed.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,ed.jsx)(n_,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function AG(e){let{date:t,align:n,variant:r}=e;return t?(0,ed.jsx)(AY,{variant:r,align:n,children:(0,gX.rN)(t)}):null}function AK(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,ed.jsx)(AY,{variant:r,align:n,children:t.toLocaleString()}):null}function AX(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=(0,gX.pp)(d),h=(0,gX.jr)(n,r.startHeight),p=(0,gX.jr)(n,i),m=(0,gX.jr)(n,o),v=(p-h)/f,g=(m-h)/f;return(0,ed.jsxs)("div",{className:(0,eX.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:AQ(v),width:AQ(g-v)},children:[(0,ed.jsx)("div",{className:(0,eX.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,ed.jsx)("div",{className:(0,eX.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:AQ(1-g)}:{left:AQ(v)},children:[(0,ed.jsx)(AK,{blockHeight:i,align:"start",variant:"primary"}),(0,ed.jsx)(AY,{variant:"primary",children:t}),(0,ed.jsx)(AK,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,ed.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:AQ(1-g)}:{left:AQ(v)},children:[(0,ed.jsx)(AG,{date:p,align:"start",variant:"secondary"}),(0,ed.jsx)(AG,{date:m,align:"start",variant:"secondary"})]}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:AQ(1-g)}:{left:AQ(v)},children:[(0,ed.jsx)(AG,{date:p,align:"start",variant:"secondary"}),(0,ed.jsx)(AG,{date:m,align:"start",variant:"secondary"})]})]})}function AQ(e){return"".concat(100*e,"%")}function AJ(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:o,bottomLabel:a,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,gX.pp)(f),p=(0,gX.jr)(n,i.startHeight),m=r?(0,gX.jr)(n,r):0;return r?(0,ed.jsx)("div",{className:(0,eX.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,ed.jsxs)("div",{className:(0,eX.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,ed.jsx)("div",{className:(0,eX.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,ed.jsx)("div",{className:(0,eX.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,ed.jsx)("div",{className:(0,eX.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,ed.jsx)(AK,{blockHeight:r,align:"start",variant:"primary"}),(0,ed.jsx)(AY,{variant:"primary",children:o})]}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,ed.jsx)(AG,{date:m,align:"start",variant:"secondary"}),a&&(0,ed.jsx)(AY,{variant:"secondary",children:a})]})]})}):null}function A0(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,ed.jsx)("div",{className:"group/main relative w-full",children:(0,ed.jsx)("div",{className:"relative py-6",children:(0,ed.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,ed.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,ed.jsxs)("div",{className:"group/segments",children:[(0,ed.jsx)(AX,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,ed.jsx)(AX,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,ed.jsx)(AJ,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,ed.jsx)(AJ,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,ed.jsx)(AJ,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,ed.jsx)(AJ,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var A1=n(90463),A2=n(81721),A4=function(e,t){return!!(null==e?0:e.length)&&(0,A2.Z)(e,t,0)>-1},A3=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(o=A6.Z,a=!1,t=new A1.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,ed.jsx)(lL.xVB,{})}),(0,ed.jsx)(lD,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,ed.jsx)(lL.pHg,{})})]})]})}function Tn(e){let{title:t,children:n}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,ed.jsx)(dm,{anchorLink:!0,size:"24",children:t}),(0,ed.jsx)(nA,{className:"p-6",children:(0,ed.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Tr(e){let{title:t,description:n,control:r}=e;return(0,ed.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,ed.jsx)(dm,{size:"20",children:t}),(0,ed.jsx)(nC,{size:"14",children:n})]}),(0,ed.jsx)("div",{className:"",children:r})]})}function Ti(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,M2.cI)(),d=(0,ef.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,ed.jsx)(uR,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,ed.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,ed.jsx)("div",{className:"flex gap-1 justify-end",children:(0,ed.jsx)(_x,{variant:s,form:c,size:"small",children:l})})]})})})}function To(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(n_,{font:"mono",weight:"bold",size:"20",children:t}),(0,ed.jsxs)("div",{className:"flex items-center",children:[n?(0,ed.jsxs)(lD,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,ed.jsx)(n_,{color:"subtle",children:n.toLocaleString()}),(0,ed.jsx)(lL.RK4,{})]}):null,i&&r?(0,ed.jsx)(lN,{content:"Blockchain is synced",children:(0,ed.jsx)("div",{className:"relative left-2",children:(0,ed.jsxs)(lD,{variant:"ghost",state:"waiting",children:[(0,ed.jsx)(n_,{color:"subtle",children:i.toLocaleString()}),(0,ed.jsx)(n_,{color:"green",children:(0,ed.jsx)(lL.Y3p,{})})]})})}):null]})]})}function Ta(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,ed.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,ed.jsx)(d9,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,ed.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,ed.jsx)(n_,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,ed.jsx)(n_,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,ed.jsx)(n_,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Ts(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,ed.jsx)(pr,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,ed.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,ed.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,ed.jsxs)(n_,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,ed.jsx)(d_,{size:30})]}),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,ed.jsx)(To,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,ed.jsx)(c6,{className:"w-full mb-0.5"}):(0,ed.jsx)(Ta,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(n_,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,ed.jsx)(c6,{className:"w-full mb-1"})]}),c]})})}function Tl(e){let{testnetName:t}=e;return(0,ed.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,ed.jsx)(n_,{color:"lo",children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsxs)(n_,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Tu(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(lN,{align:"start",side:"bottom",content:i,children:(0,ed.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ed.jsx)(n_,{className:"flex relative",children:o||(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(n_,{size:"12",ellipsis:!0,children:r?(0,ed.jsx)(dS,{href:r,target:"_blank",children:n}):n})]})}),(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,ed.jsx)(O$,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,ed.jsx)(OX,{value:a,variant:"value",size:"12",format:e=>"".concat(f0(e,l)," ").concat(u)})})]})}function Tc(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=M8({name:t,field:i,form:n}),y=(0,ef.useMemo)(()=>s?new(fJ())(s):a&&"boolean"!=typeof a?new(fJ())(a):void 0,[s,a]);return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)(f5,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:y,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),o&&(0,ed.jsx)(Tu,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,gX.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,ed.jsx)(Tu,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,gX.qN)(a),onClick:()=>{m(a,!0)}}),(0,ed.jsx)(d||(()=>null),{name:t,form:n,fields:r})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Td(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=M8({form:n,field:i,name:t}),m=(0,ef.useMemo)(()=>c?new(fJ())(c):s&&"boolean"!=typeof s?new(fJ())(s):void 0,[c,s]);return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)(f1,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{f(void 0!==e?new(fJ())(e):void 0,!0)},onBlur:()=>{f(h,!0)}}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,ed.jsx)(Tu,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,ed.jsx)(Tu,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tf(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(lN,{align:"start",side:"bottom",content:r,children:(0,ed.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ed.jsx)(n_,{className:"flex relative",children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(n_,{size:"12",children:n?(0,ed.jsx)(dS,{href:n,target:"_blank",children:t}):t})]})}),(0,ed.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,ed.jsx)(n_,{size:"12",children:(0,ed.jsx)(l1,{children:i})})})]})}function Th(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=M8({name:t,form:n,field:o});return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)(fO,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,ed.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,ed.jsx)(Tf,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tp(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=M8({name:t,field:i,form:n});return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)("div",{className:"flex justify-end w-full",children:(0,ed.jsx)(hv,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,ed.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,ed.jsx)(Tf,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tm(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=M8({name:t,form:n,field:i});return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)("div",{className:"flex justify-end w-full",children:(0,ed.jsx)(f9,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,ed.jsx)(he,{value:e.value,children:e.label},e.value))})}),(0,ed.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,ed.jsx)(Tf,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tv(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,ed.jsx)(Tn,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,ed.jsxs)(ef.Fragment,{children:[(0,ed.jsx)(Tr,{title:a.title,description:a.description,control:"number"===a.type?(0,ed.jsx)(Td,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,ed.jsx)(Tc,{form:r,name:n,fields:i}):"text"===a.type?(0,ed.jsx)(Th,{form:r,name:n,fields:i}):"password"===a.type?(0,ed.jsx)(Th,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,ed.jsx)(Tp,{form:r,name:n,fields:i}):"select"===a.type?(0,ed.jsx)(Tm,{form:r,name:n,fields:i}):null}),t{u(void 0!==e?new(fJ())(e):void 0,!0)},onBlur:()=>{u(d,!0)}})})}function Ty(e){let{name:t,form:n,fields:r,size:i="medium",group:o=!0,children:a}=e,s=r[t],{setValue:l,value:u,error:c}=M8({name:t,field:s,form:n}),d=(0,ed.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,ed.jsx)(hv,{"aria-label":t,name:t,size:i,checked:u,state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,ed.jsx)(_b,{title:s.title,name:t,form:n,children:d}):d}function Tb(e){let{form:t,remoteValues:n}=e,r=(0,ef.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,n]);(0,ef.useEffect)(()=>{r()},[n])}function Tx(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function Tw(e){let{form:t,remoteValues:n}=e,[r,i]=(0,ef.useState)(!1),{isUnlockedAndAuthedRoute:o}=(0,f2.Hv)();(0,ef.useEffect)(()=>{o||i(!1)},[o]),(0,ef.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}lL.lg1,lL.eHR,lL.I$H,lL.KiD,lL.P5r,lL.CCF,lL.w9S,lL.EL$,lL.aPl,lL.wEY,lL.EOT,lL.kSc,lL.W$S,lL.lJ7,lL.ORH,lL.ka0,lL.BdP,lL.d19,lL.Mes,lL.VUg,lL.U_S,lL.T85;let TE=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,ef.useState)(!0),l=(0,ef.useRef)(!1),u=(0,ef.useRef)(0);return(0,ef.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,ef.createElement)(nl,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,ef.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,ef.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,ef.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Tj(e){let{children:t}=e,[n,r]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{r(!0)},[]),(0,ed.jsx)("div",{children:n?t:null})}function Tk(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,ed.jsx)(Tj,{children:(0,ed.jsx)(f2.kl,{fallback:r,children:(0,ed.jsx)(p$.f,{attribute:"class",children:(0,ed.jsx)(TE,{children:(0,ed.jsx)(f2.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,ed.jsxs)("div",{id:"root",className:t,children:[(0,ed.jsx)(OP,{}),i]})})})})})})}var TS=n(87459),TO=n(63249),T_=TS.Z&&1/(0,TO.Z)(new TS.Z([,-0]))[1]==1/0?function(e){return new TS.Z(e)}:function(){},TC=function(e,t,n){var r=-1,i=A4,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=A3;else if(o>=200){var u=t?null:T_(e);if(u)return(0,TO.Z)(u);a=!1,i=A6.Z,l=new A1.Z}else l=t?[]:s;t:for(;++r=120&&c.length>=120)?new A1.Z(a&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,ef.useCallback)(e=>{l(t=>{var n;return(n=[...t,...e]).length?TC(n):[]})},[l]),d=(0,ef.useCallback)(e=>{l(t=>Te(t,e))},[l]),f=(0,ef.useCallback)(()=>{l(r)},[l,r]),h=(0,ef.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),p=(0,ef.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[o,a]=(0,k2.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,k2.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,ef.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),setSortDirection:l,setSortField:a,sortableColumns:(0,ef.useMemo)(()=>r?TP(r.map(e=>e.id),i):[],[r,i]),sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),x=(0,ef.useMemo)(()=>o?TP(o.map(e=>e.id),p):[],[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function TD(){let[e,t]=(0,ef.useState)([]),n=function(){let e=(0,df.xj)(),t=(0,df.jD)(),n=(0,df.lr)();return(0,ef.useCallback)(()=>{if(!e||!t)return;let r=new URLSearchParams(n),i=r.toString();r.delete("limit"),r.delete("offset"),r.delete("marker");let o=r.toString(),a=i?"".concat(t,"?").concat(i):t,s=o?"".concat(t,"?").concat(o):t;s!==a&&e.replace(s)},[e,n,t])}(),r=(0,ef.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,ef.useCallback)(()=>{t([]),n()},[t,n]),o=(0,ef.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),a=(0,ef.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function TL(e){return(0,gX.B$)(e).times(4)}function TZ(e){return(0,gX.Uz)(TL(e))}function TF(e){var t;return t=(0,gX.Hz)(e),(0,gX.il)(t).div(4).integerValue()}function TV(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,gX.gU)(5),n.startHeight=n.startHeight-(0,gX.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=k0(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}new(fJ())(0);let Tz=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function TI(e){let t=[];for(let n=0,r=e.length;n{let r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function TW(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tq(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),TW(i)}let T$=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||T$(n,t))};function TY(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let o=Tz();try{t.className=`${t.className} ${o}`}catch(e){return}let a=document.createElement("style");a.appendChild(function(e,t,n){let r=`.${e}:${t}`,i=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):TI(n).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${i}}`)}(o,n,r)),t.appendChild(a)}let TG="application/font-woff",TK="image/jpeg",TX={woff:TG,woff2:TG,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:TK,jpeg:TK,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function TQ(e){return TX[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function TJ(e){return -1!==e.search(/^(data:)/)}function T0(e,t){return`data:${t};base64,${e}`}async function T1(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)})}let T2={};async function T4(e,t,n){var r,i,o;let a,s;let l=(r=e,i=t,o=n.includeQueryParams,s=r.replace(/\?.*/,""),o&&(s=r),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=T2[l])return T2[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await T1(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));a=T0(r,t)}catch(r){a=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return T2[l]=a,a}async function T3(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):TU(t)}async function T5(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),TU(t.toDataURL())}let n=e.poster,r=TQ(n);return TU(await T4(n,r,t))}async function T6(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await Pt(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function T8(e,t){return T$(e,HTMLCanvasElement)?T3(e):T$(e,HTMLVideoElement)?T5(e,t):T$(e,HTMLIFrameElement)?T6(e):e.cloneNode(!1)}let T7=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function T9(e,t,n){var r,i;let o=[];return 0===(o=T7(e)&&e.assignedNodes?TI(e.assignedNodes()):T$(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?TI(e.contentDocument.body.childNodes):TI((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes)).length||T$(e,HTMLVideoElement)||await o.reduce((e,r)=>e.then(()=>Pt(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Pe(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iT8(e,t)).then(n=>T9(e,n,t)).then(t=>{var n,r;return n=e,T$(r=t,Element)&&(!function(e,t){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):TI(r).forEach(i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}T$(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))})}(n,r),TY(n,r,":before"),TY(n,r,":after"),T$(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),T$(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(T$(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>Pe(e,t)):null}let Pn=/url\((['"]?)([^'"]+?)\1\)/g,Pr=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Pi=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function Po(e,t,n,r,i){try{let o;let a=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,s=TQ(t);if(i){let e=await i(a);o=T0(e,s)}else o=await T4(a,s,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${o}$3`)}catch(e){}return e}function Pa(e){return -1!==e.search(Pn)}async function Ps(e,t,n){if(!Pa(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(Pi,e=>{for(;;){let[n,,r]=Pr.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(Pn,(e,n,r)=>(t.push(r),e)),t.filter(e=>!TJ(e))})(r).reduce((e,r)=>e.then(e=>Po(e,r,t,n)),Promise.resolve(r))}async function Pl(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await Ps(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function Pu(e,t){await Pl("background",e,t)||await Pl("background-image",e,t),await Pl("mask",e,t)||await Pl("mask-image",e,t)}async function Pc(e,t){let n=T$(e,HTMLImageElement);if(!(n&&!TJ(e.src))&&!(T$(e,SVGImageElement)&&!TJ(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await T4(r,TQ(r),t);await new Promise((t,r)=>{e.onload=t,e.onerror=r,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function Pd(e,t){let n=TI(e.childNodes).map(e=>Pf(e,t));await Promise.all(n).then(()=>e)}async function Pf(e,t){T$(e,Element)&&(await Pu(e,t),await Pc(e,t),await Pd(e,t))}let Ph={};async function Pp(e){let t=Ph[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},Ph[e]=t,t}async function Pm(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),T1(o,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function Pv(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=o.exec(n)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function Pg(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{TI(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1,a=e.href,s=Pp(a).then(e=>Pm(e,t)).then(e=>Pv(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(s)}})}catch(o){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(Pp(n.href).then(e=>Pm(e,t)).then(e=>Pv(e).forEach(e=>{i.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{TI(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function Py(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=TI(e.ownerDocument.styleSheets);return(await Pg(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Pa(e.style.getPropertyValue("src")))}async function Pb(e,t){let n=await Py(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Ps(e.cssText,n,t)}))).join("\n")}async function Px(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await Pb(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function Pw(e,t={}){let{width:n,height:r}=TH(e,t),i=await Pt(e,t,!0);return await Px(i,t),await Pf(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await Tq(i,n,r)}async function PE(e,t={}){let{width:n,height:r}=TH(e,t),i=await Pw(e,t),o=await TU(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return a.width=u*l,a.height=c*l,!t.skipAutoScale&&(a.width>16384||a.height>16384)&&(a.width>16384&&a.height>16384?a.width>a.height?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384):a.width>16384?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384)),a.style.width=`${u}`,a.style.height=`${c}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function Pj(e,t={}){return(await PE(e,t)).toDataURL()}async function Pk(e,t){let{name:n,quality:r,copy:i,download:o}=t;if(!e)throw Error("HTML node required");let a=await Pj(e,{quality:r||.5});if(o){let e=document.createElement("a");e.download="".concat(n,".png"),e.href=a,e.click()}if(i){let e=await fetch(a);OR(await e.blob(),"image/png",n)}}},99605:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.a},Fb:function(){return a.a},j0:function(){return c.useRouter},jD:function(){return u.usePathname},lr:function(){return u.useSearchParams},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),o=n(97729),a=n.n(o),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},10363:function(e,t,n){"use strict";n.d(t,{bW:function(){return V},kl:function(){return G},gw:function(){return a},Tc:function(){return $},du:function(){return Y},Hv:function(){return F},iv:function(){return q},Nf:function(){return W},E:function(){return U},mw:function(){return I},q0:function(){return z},Tb:function(){return A},V1:function(){return H},I7:function(){return B}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return M}});var i=n(79381);function o(e,t){return!e||t?null:e}function a(e){return new Promise(t=>setTimeout(t,e))}var s=n(89644),l=n.n(s),u=n(2784);function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e){return{...e,config:{...null==e?void 0:e.config}}}function h(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function p(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=h(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function m(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t)for(let n of Object.keys(t)){let r=String(t[n]);e.includes(":".concat(n))?e=e.replace(":".concat(n),r):e.includes("?")?e+="&".concat(n,"=").concat(encodeURIComponent(r)):e+="?".concat(n,"=").concat(encodeURIComponent(r))}return e}(t,i)))return null;let o=h(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function v(e,t,n,r){let i=h(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var g=n(52322),y=n(99605),b=n(92762);function x(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let w=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function E(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let j="undefined"==typeof window,k=(()=>{if(j)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class S extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let O=[],_=[];function C(e){return null!=e}let M=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>x(void 0,void 0,void 0,function*(){let a={};if(j)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>x(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new S("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=E(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=E(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return x(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof S)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=Math.abs(x-t*n);re===n?t-r:e-n);if(!v.length){let e=w.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,b]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,b);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,b)});function A(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let{getGPUTier:T}=r,P=(0,u.createContext)({}),N=()=>(0,u.useContext)(P);function R(e){let{children:t}=e,n=function(){let[e,t]=(0,u.useState)({}),n=(0,u.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]);return{setWorkflow:n,removeWorkflow:(0,u.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,u.useCallback)(()=>{t({})},[t]),workflows:(0,u.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,g.jsx)(P.Provider,{value:n,children:t})}let D=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],L={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:D[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},Z=(0,u.createContext)({}),F=()=>(0,u.useContext)(Z);function V(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,o=(0,u.useMemo)(()=>({...L,...r}),[r]),[a,s]=(0,b.Z)("v1/settings",{defaultValue:o});(0,u.useEffect)(()=>{s(e=>({...o,...e}))},[]);let l=(0,u.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=N(),d=(0,u.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,u.useCallback)(e=>{let t=D.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,y.xj)(),p=(0,y.jD)(),[m,v]=(0,u.useState)({}),g=(0,u.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,u.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,y.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),E=(0,u.useMemo)(()=>!!l.password,[l]);return{settings:l,setSettings:d,setCurrency:f,currencyOptions:D,gpu:function(){let e=A(),[t,n]=(0,u.useState)(!1),[r,i]=(0,u.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,b.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,u.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,u.useCallback)(async()=>{let e=!1;{let t=await T();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&l(!1,!1)}i(e),n(!0)},[i,l,a]);return(0,u.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:l}}(),lock:x,isUnlockedAndAuthedRoute:E&&w,passwordProtectRequestHooks:t,setOnLockCallback:g}}(n);return(0,g.jsx)(Z.Provider,{value:r,children:t})}function z(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0),c=(0,u.useMemo)(()=>o(s?"".concat(s).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!r.password),[s,e,n,a,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!s)throw Error("No route");try{return(await l().post(s,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function I(e,t){let{setWorkflow:n,removeWorkflow:r}=N(),{mutate:o}=(0,i.kY)(),{settings:a}=F(),s=c(e);return{post:async e=>{let i=f(e);try{let u;let c=p(a,s,i),d=m(a,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(a,d,e,i);n(f,{path:h,payload:u});let g=await l().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let r=v(a,n,e,i);return t(r)},n,r)},i,g),r(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0),c=(0,u.useMemo)(()=>o(s?"".concat(s).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!r.password),[s,e,n,a,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!s)throw Error("No route");try{return(await l().put(s,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function H(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{put:async e=>{let i=f(e);try{let u;let c=p(r,s,i),d=m(r,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(r,d,e,i);o(f,{path:h,payload:u});let g=await l().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function U(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{patch:async e=>{let i=f(e);try{let u;let c=p(r,s,i),d=m(r,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(r,d,e,i);o(f,{path:h,payload:u});let g=await l().patch(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function W(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0);return(0,i.ZP)(o(e.standalone?"".concat(e.standalone,"/").concat(s):s,n.disabled||a&&!r.password),async()=>{if(!n.route)throw Error("No route");let e=p(r,n,void 0);if(!s)throw Error("No route");try{return(await l().get(s,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function q(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{delete:async e=>{let i=f(e);try{let u=p(r,s,i),c=m(r,s.route,s,i);if(!c)throw Error("No route");let d=v(r,c,e,i);o(c,{path:d});let f=await l().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,f),a(c),{status:f.status,data:f.data,headers:f.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function $(){return Math.round((new Date().getTime()-14336e8)/6e5)}function Y(){return Math.round((new Date().getTime()-16736e8)/6e5)}function G(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,g.jsx)(R,{children:(0,g.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},59880:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return Z},Uy:function(){return F},GP:function(){return y},kr:function(){return b},nH:function(){return l},KU:function(){return x},rV:function(){return E},Az:function(){return k},uo:function(){return S},Te:function(){return j},d$:function(){return s},On:function(){return a},Wl:function(){return d},cQ:function(){return c},cM:function(){return R},Kw:function(){return D},hV:function(){return g},ST:function(){return _},_3:function(){return N},HU:function(){return M},uq:function(){return T},G:function(){return P},Rz:function(){return A},Fn:function(){return O},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(10363),i=n(79381);let o="/state/host";function a(e){return(0,r.Nf)({...e,route:o})}function s(e){return(0,r.Nf)({...e,route:"/state/consensus"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}});return(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,r.du)():(0,r.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}let u="/syncer/peers";function c(e){return(0,r.Nf)({...e,route:u})}function d(e){return(0,r.V1)({...e,route:"/syncer/peers"},async e=>{e(e=>e===u)})}function f(e){return(0,r.Nf)({...e,route:"/wallet"})}function h(e){return(0,r.Nf)({...e,route:"/wallet/transactions"})}let p="/wallet/pending";function m(e){return(0,r.Nf)({...e,route:p})}function v(e){return(0,r.mw)({...e,route:"/wallet/send"},async e=>{await (0,r.gw)(2e3),e(e=>e.startsWith(p))})}function g(e){return(0,r.Nf)({...e,route:"/tpool/fee"})}function y(e){return(0,r.q0)({...e,route:"/contracts"})}function b(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function x(e){return(0,r.Nf)({...e,route:"/metrics/:interval"})}let w="/settings";function E(e){return(0,r.Nf)({...e,route:w})}function j(e){return(0,r.E)({...e,route:"/settings"},async e=>{await e(e=>e.startsWith(w))})}function k(e){return(0,r.mw)({...e,route:"/settings/announce"})}function S(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function O(e){return(0,r.Nf)({...e,route:"/volumes"})}function _(e){return(0,r.Nf)({...e,route:"/volumes/:id"})}let C="/volumes";function M(e){return(0,r.mw)({...e,route:C},async e=>{e(e=>e.startsWith(C))})}function A(e){return(0,r.V1)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function P(e){return(0,r.V1)({...e,route:"/volumes/:id/resize"},async e=>{await (0,r.gw)(1e4),e(e=>e.startsWith(C))})}function N(e){return(0,r.iv)({...e,route:"/volumes/:id/cancel"},async e=>{await (0,r.gw)(3e3),e(e=>e.startsWith(C))})}function R(e){return(0,r.Nf)({...e,route:"/system/dir"})}function D(e){return(0,r.V1)({...e,route:"/system/dir"})}let L="/alerts";function Z(e){return(0,r.Nf)({...e,route:L})}function F(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},95685:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{RVU:function(){return t$},eHR:function(){return t1},xHM:function(){return t2},IRm:function(){return t4},L6f:function(){return t3},rW0:function(){return t5},osk:function(){return t6},JaG:function(){return t8},wWN:function(){return iM},Dkj:function(){return iV},cfm:function(){return t9},YV2:function(){return ns},EMN:function(){return nl},bdU:function(){return nu},VUy:function(){return nc},Cp0:function(){return nd},kqg:function(){return nf},Mes:function(){return nh},DI$:function(){return nm},NlZ:function(){return nS},Y3p:function(){return n_},Z$8:function(){return nO},tEK:function(){return nM},yar:function(){return nC},PcV:function(){return nT},QN4:function(){return nA},Jsc:function(){return nN},T80:function(){return nP},wEY:function(){return nZ},olJ:function(){return nV},vtB:function(){return nF},KiD:function(){return nB},dDl:function(){return nH},Jrl:function(){return nq},aPl:function(){return n$},kBK:function(){return iD},Bpb:function(){return nK},vzB:function(){return nX},dr6:function(){return n1},d19:function(){return n2},w9S:function(){return n4},VBo:function(){return iA},Hb6:function(){return n6},CCF:function(){return n8},Qbr:function(){return rt},L37:function(){return rn},ROc:function(){return iZ},UG6:function(){return iL},lq1:function(){return rr},zvn:function(){return iT},K2o:function(){return iR},EL$:function(){return ro},BdP:function(){return rd},dsj:function(){return rf},P5r:function(){return rh},RdX:function(){return rp},U_S:function(){return rm},V8Q:function(){return rb},POp:function(){return rx},kSc:function(){return rw},mBM:function(){return iN},Lur:function(){return rS},b47:function(){return rO},Sfn:function(){return r_},W$S:function(){return rN},T85:function(){return rR},Ckx:function(){return rD},dZ8:function(){return rZ},EOT:function(){return rL},RK4:function(){return rV},jH8:function(){return rU},XJM:function(){return rW},RRj:function(){return rq},ka0:function(){return r$},hzZ:function(){return rG},VUg:function(){return r0},owP:function(){return r1},Fs9:function(){return r2},wGX:function(){return r4},Wet:function(){return r8},BB5:function(){return r7},ZEk:function(){return r9},$Iz:function(){return ii},shL:function(){return io},hiv:function(){return ia},mli:function(){return il},lJ7:function(){return iF},ORH:function(){return ic},xVB:function(){return iy},pHg:function(){return ib},I$H:function(){return iw},HCc:function(){return ix},oaN:function(){return iP},qdM:function(){return ij},gFQ:function(){return iE},SmH:function(){return iO},lg1:function(){return i_}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_,C,M,A,T,P,N,R,D,L,Z,F,V,z,I,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,ek,eS,eO,e_,eC,eM,eA,eT,eP,eN,eR,eD,eL,eZ,eF,eV,ez,eI,eB,eH,eU,eW,eq,e$,eY,eG,eK,eX,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tE,tj,tk,tS,tO,t_,tC,tM,tA,tT,tP,tN=["width","height","viewBox"],tR=["tabindex"],tD={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tL=n(13980),tZ=n.n(tL),tF=n(2784);function tV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tz(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tH=["className","children","tabIndex"],tU=["tabindex"],tW=tF.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tN),l=s.tabindex,u=o(s,tR),c=i(i(i({},tD),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tz(tz({},tB(e,tH)),{},{tabindex:a})),l=s.tabindex,u=tB(s,tU);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tF.createElement("svg",u,r)});tW.displayName="Icon",tW.propTypes={"aria-hidden":tZ().string,"aria-label":tZ().string,"aria-labelledby":tZ().string,children:tZ().node,className:tZ().string,height:tZ().oneOfType([tZ().number,tZ().string]),preserveAspectRatio:tZ().string,tabIndex:tZ().string,viewBox:tZ().string,width:tZ().oneOfType([tZ().number,tZ().string]),xmlns:tZ().string},tW.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tq=["children"],t$=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tq);return tF.createElement(tW,tI({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tF.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tY=["children"],tG=["children"],tK=["children"],tX=["children"],tQ=["children"],tJ=["children"],t0=["children"],t1=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tY);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tF.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tF.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),t2=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tG);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tF.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),t4=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tK);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tF.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),n)}),t3=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tX);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tF.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),t5=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tQ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tF.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),t6=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tJ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tF.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),t8=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,t0);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tF.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tF.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tF.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tF.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tF.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),b||(b=tF.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tF.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tF.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tF.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),t7=["children"],t9=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,t7);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tF.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),n)}),ne=["children"],nt=["children"],nn=["children"],nr=["children"],ni=["children"],no=["children"],na=["children"],ns=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ne);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tF.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),n)}),nl=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nt);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tF.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nu=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nn);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tF.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nc=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nr);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tF.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nd=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ni);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tF.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nf=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,no);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tF.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nh=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,na);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tF.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),np=["children"],nm=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,np);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tF.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),P||(P=tF.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),nv=["children"],ng=["children"],ny=["children"],nb=["children"],nx=["children"],nw=["children"],nE=["children"],nj=["children"],nk=["children"],nS=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nv);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tF.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nO=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ng);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tF.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),n_=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ny);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=tF.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),Z||(Z=tF.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nC=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nb);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tF.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),V||(V=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nM=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nx);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tF.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),I||(I=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nA=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nw);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tF.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nT=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nE);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tF.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nP=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nj);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tF.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),W||(W=tF.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nN=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nk);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tF.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),$||($=tF.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nR=["children"],nD=["children"],nL=["children"],nZ=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nR);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tF.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),G||(G=tF.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nF=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nD);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=tF.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),X||(X=tF.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nV=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nL);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tF.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),J||(J=tF.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nz=["children"],nI=["children"],nB=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nz);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ee||(ee=tF.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),et||(et=tF.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nH=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nI);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),en||(en=tF.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),er||(er=tF.createElement("circle",{cx:"11",cy:"8",r:"1"})),ei||(ei=tF.createElement("circle",{cx:"11",cy:"16",r:"1"})),eo||(eo=tF.createElement("circle",{cx:"11",cy:"24",r:"1"})),ea||(ea=tF.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),n)}),nU=["children"],nW=["children"],nq=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nU);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tF.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),el||(el=tF.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),n$=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nW);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tF.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ec||(ec=tF.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nY=["children"],nG=["children"],nK=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nY);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tF.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nX=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nG);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tF.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),nQ=["children"],nJ=["children"],n0=["children"],n1=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nQ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tF.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),n2=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nJ);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tF.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),em||(em=tF.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ev||(ev=tF.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),n4=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n0);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tF.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),n3=["children"],n5=["children"],n6=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n3);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=tF.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),n8=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n5);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tF.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),n7=["children"],n9=["children"],re=["children"],rt=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n7);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tF.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),rn=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n9);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tF.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eE||(eE=tF.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),rr=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,re);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tF.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ek||(ek=tF.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),ri=["children"],ro=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ri);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tF.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),ra=["children"],rs=["children"],rl=["children"],ru=["children"],rc=["children"],rd=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ra);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tF.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),rf=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rs);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),n)}),rh=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rl);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tF.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),rp=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ru);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tF.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eA||(eA=tF.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),rm=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rc);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tF.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),rv=["children"],rg=["children"],ry=["children"],rb=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rv);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tF.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eN||(eN=tF.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rx=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rg);return tF.createElement(tW,tI({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tF.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eD||(eD=tF.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rw=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ry);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tF.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rE=["children"],rj=["children"],rk=["children"],rS=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rE);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tF.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),rO=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rj);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tF.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eV||(eV=tF.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),r_=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rk);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tF.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rC=["children"],rM=["children"],rA=["children"],rT=["children"],rP=["children"],rN=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rC);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tF.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eB||(eB=tF.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rR=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rM);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tF.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),rD=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rA);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tF.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eW||(eW=tF.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rL=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rT);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tF.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e$||(e$=tF.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rZ=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rP);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tF.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eG||(eG=tF.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rF=["children"],rV=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rF);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tF.createElement("circle",{cx:"21",cy:"26",r:"2"})),eX||(eX=tF.createElement("circle",{cx:"21",cy:"6",r:"2"})),eQ||(eQ=tF.createElement("circle",{cx:"4",cy:"16",r:"2"})),eJ||(eJ=tF.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rz=["children"],rI=["children"],rB=["children"],rH=["children"],rU=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rz);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tF.createElement("circle",{cx:"8",cy:"16",r:"2"})),e1||(e1=tF.createElement("circle",{cx:"16",cy:"16",r:"2"})),e2||(e2=tF.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),rW=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rI);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e4||(e4=tF.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rq=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rB);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=tF.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),r$=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rH);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tF.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),e6||(e6=tF.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rY=["children"],rG=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rY);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),e7||(e7=tF.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rK=["children"],rX=["children"],rQ=["children"],rJ=["children"],r0=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rK);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tF.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),te||(te=tF.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),r1=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rX);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tF.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tn||(tn=tF.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),tr||(tr=tF.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),r2=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rQ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),r4=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rJ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tF.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),ta||(ta=tF.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),r3=["children"],r5=["children"],r6=["children"],r8=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,r3);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tF.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),r7=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,r5);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=tF.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),n)}),r9=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,r6);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tF.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),ie=["children"],it=["children"],ir=["children"],ii=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ie);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tF.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),io=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,it);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tF.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tf||(tf=tF.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),ia=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ir);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tF.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),is=["children"],il=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,is);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tF.createElement("path",{d:"M8 15H24V17H8z"})),n)}),iu=["children"],ic=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,iu);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tF.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),id=["children"],ih=["children"],ip=["children"],im=["children"],iv=["children"],ig=["children"],iy=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,id);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tF.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tg||(tg=tF.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),ib=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ih);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tF.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tb||(tb=tF.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),ix=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ip);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tF.createElement("path",{d:"M22 17H24V19H22z"})),tw||(tw=tF.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iw=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,im);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tF.createElement("path",{d:"M22 17H24V19H22z"})),tj||(tj=tF.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iE=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,iv);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),tS||(tS=tF.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),ij=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ig);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=tF.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),t_||(t_=tF.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),ik=["children"],iS=["children"],iO=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ik);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tF.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tM||(tM=tF.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),i_=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,iS);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=tF.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tT||(tT=tF.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tP||(tP=tF.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),iC=n(52322);function iM(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iC.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function iA(e){let{size:t=24,className:n}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iC.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iT(e){let{size:t=24,className:n}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,iC.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function iP(e){let{size:t=24,className:n}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iC.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function iN(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iC.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function iR(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,iC.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function iD(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iC.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function iL(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iC.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function iZ(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iC.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function iF(e){let{size:t=24}=e;return(0,iC.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,iC.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iC.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,iC.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,iC.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,iC.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iV(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iC.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},82494:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(10363);function i(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}},21487:function(e,t,n){"use strict";n.d(t,{Hz:function(){return u},Y:function(){return d},B$:function(){return a},xf:function(){return s},jr:function(){return S},pp:function(){return j},E6:function(){return k},Uz:function(){return l},BT:function(){return c},il:function(){return o},gU:function(){return w},vW:function(){return g},rN:function(){return x},yF:function(){return b},Vz:function(){return v},bc:function(){return y},S5:function(){return E},qN:function(){return p},ll:function(){return h}});var r=n(6391),i=n.n(r);function o(e){return new(i())(e).div(1024).div(1024)}function a(e){return new(i())(e).times(1024).times(1024)}function s(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function l(e){return new(i())(e).div(1e3).div(1e3).div(1e3)}function u(e){return new(i())(e).times(1e3).times(1e3).times(1e3)}function c(e){return new(i())(e).div(1e3).div(1e3)}function d(e){return new(i())(e).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let f=new r.BigNumber("10").exponentiatedBy(24);function h(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(f).toFixed(t)):new r.BigNumber(e).dividedBy(f)}function p(e){return new r.BigNumber(new r.BigNumber(e).times(f).toFixed(0))}let m={fixed:3,dynamicUnits:!0,hastingUnits:!1};function v(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...m,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),c=l.isNegative()?"-":"";if(!i)return"".concat(c).concat(h(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(c).concat(u," H"):"".concat(c,"0 SC");let d=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===d.length-1)return"".concat(c).concat(i.toFormat(n)," ").concat(d[e])}return""}function g(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3));return(n/Math.pow(1e3,o)).toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function y(e,t){let{format:n="abbreviated"}=t||{},r="abbreviated"===n;if(e<1e3)return"".concat(e.toFixed(0)).concat(r?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(r?"s":" seconds");let o=i/60;if(o<60)return"".concat(o.toFixed(0)).concat(r?"m":" minutes");let a=o/60;return a<24?"".concat(a.toFixed(0)).concat(r?"h":" hours"):"".concat((a/24).toFixed(0)).concat(r?"d":" days")}function b(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function x(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function w(e){return 144*e}function E(e){return 4320*e}function j(e){return e/16666666666666669e-22}function k(e){return e/4320}function S(e,t){return new Date().getTime()+j(t-e)}n(81395)},45932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},67531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("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)},76923:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("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)},58710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(56428),o=n(26297),a=n(76923),s=n(33607),l=n(9424),u=n(84830),c=n(70929),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext);return(0,r.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return(0,r.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),o=i?t[1]:t;!o||o.startsWith("__PAGE__")||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("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)},70929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===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)},32254:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("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)},84830:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return h},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return m}});let o=n(37449),a=n(45932),s=n(32254),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(o)&&o in s.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("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)},37449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},33607:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return 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)},40413:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("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)},41275:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(60261),("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)},84589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let r=n(43219),i=n(16794)._(n(2784)),o=r._(n(28316)),a=r._(n(70666)),s=n(35022),l=n(59595),u=n(22530);n(85667);let c=n(14442),d=r._(n(1071)),f={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:!0};function h(e,t,n,r,i,o){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function p(e){let[t,n]=i.version.split(".",2),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:m,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:j,...k}=e;return i.default.createElement("img",{...k,...p(d),loading:m,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:o,srcSet:r,src:n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&h(e,f,y,b,x,v))},[n,f,y,b,x,j,v,t]),onLoad:e=>{h(e.currentTarget,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),j&&j(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...p(n.fetchPriority)};return t&&o.default.preload?(o.default.preload(n.src,r),null):i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let g=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(c.RouterContext),r=(0,i.useContext)(u.ImageConfigContext),o=(0,i.useMemo)(()=>{let e=f||r||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:h}=e,p=(0,i.useRef)(a);(0,i.useEffect)(()=>{p.current=a},[a]);let g=(0,i.useRef)(h);(0,i.useEffect)(()=>{g.current=h},[h]);let[y,b]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),{props:E,meta:j}=(0,s.getImgProps)(e,{defaultLoader:d.default,imgConf:o,blurComplete:y,showAltText:x});return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:t}),j.priority?i.default.createElement(v,{isAppRouter:!n,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)},7117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(43219)._(n(2784)),i=n(86338),o=n(25863),a=n(6408),s=n(20654),l=n(41127),u=n(14442),c=n(56428),d=n(54746),f=n(41275),h=n(35722),p=n(40413),m=new Set;function v(e,t,n,r,i,a){if(a||(0,o.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}Promise.resolve(a?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let n,a;let{href:m,as:y,children:b,prefetch:x=null,passHref:w,replace:E,shallow:j,scroll:k,locale:S,onClick:O,onMouseEnter:_,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let T=r.default.useContext(u.RouterContext),P=r.default.useContext(c.AppRouterContext),N=null!=T?T:P,R=!T,D=!1!==x,L=null===x?p.PrefetchKind.AUTO:p.PrefetchKind.FULL,{href:Z,as:F}=r.default.useMemo(()=>{if(!T){let e=g(m);return{href:e,as:y?g(y):e}}let[e,t]=(0,i.resolveHref)(T,m,!0);return{href:e,as:y?(0,i.resolveHref)(T,y):t||e}},[T,m,y]),V=r.default.useRef(Z),z=r.default.useRef(F);M&&(a=r.default.Children.only(n));let I=M?a&&"object"==typeof a&&a.ref:t,[B,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(e=>{(z.current!==F||V.current!==Z)&&(U(),z.current=F,V.current=Z),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[F,I,Z,U,B]);r.default.useEffect(()=>{N&&H&&D&&v(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==T?void 0:T.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof O||O(e),M&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,i,a,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,o.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[a?"replace":"push"](n,i,{shallow:s,locale:u,scroll:e}):t[a?"replace":"push"](i||n,{scroll:e})};c?r.default.startTransition(f):f()}(e,N,Z,F,E,j,k,S,R)},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,s.isAbsoluteUrl)(F))q.href=F;else if(!M||w||"a"===a.type&&!("href"in a.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,h.addBasePath)((0,l.addLocale)(F,e,null==T?void 0:T.defaultLocale))}return M?r.default.cloneElement(a,q):r.default.createElement("a",{...A,...q},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)},54746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(27155),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},35022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(85667);let r=n(48026),i=n(59595);function o(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 n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:S,layout:O,objectFit:_,objectPosition:C,lazyBoundary:M,lazyRoot:A,...T}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let Z=T.loader||D;delete T.loader,delete T.srcSet;let F="__next_img_default"in Z;if(F){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=Z;Z=t=>{let{config:n,...r}=t;return e(r)}}if(O){"fill"===O&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!d&&(d=t)}let V="",z=a(g),I=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(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,k=k||e.blurDataURL,V=e.src,!b){if(z||I){if(z&&!I){let t=z/e.width;I=Math.round(e.height*t)}else if(!z&&I){let t=I/e.height;z=Math.round(e.width*t)}}else z=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:C}:{},N?{}:{color:"transparent"},x),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:z,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:z,quality:H,sizes:d,loader:Z});return{props:{...T,loading:B?"lazy":p,fetchPriority:S,width:z,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},meta:{unoptimized:f,priority:h,placeholder:j,fill:b}}}},48026:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,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='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},84420:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return l},default:function(){return u}});let r=n(43219),i=n(35022),o=n(85667),a=n(84589),s=r._(n(1071)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.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:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},1071:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},9424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let r=n(16794)._(n(2784)),i=r.default.createContext(null);function o(e){let t=(0,r.useContext)(i);t&&t(e)}},50521:function(){},28863:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},46058:function(e){e.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){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===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],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 o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,E=e.allowPinchZoom,j=e.as,k=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),O=(0,u.pi)((0,u.pi)({},k),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!E,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},O),{ref:S})):c.createElement(void 0===j?"div":j,(0,u.pi)({},O,{className:m,ref:S}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},j=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k=b(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return j(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var C=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(e){_=!1}var M=!!_&&{passive:!1},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?A(t):T(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},V=0,z=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(V++)[0],o=c.useState(function(){return b()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[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=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(z.length&&z[z.length-1]===o){var n="deltaY"in e?Z(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,Z(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return z.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){z=z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(O,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(93542);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** +Defaulting to \`null\`.`)}};let d2=(0,ef.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=d0("ProgressIndicator",r);return(0,ef.createElement)(ew.WV.div,(0,ep.Z)({"data-state":d3(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function d4(e,t){return`${Math.round(e/t*100)}%`}function d3(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function d5(e){return"number"==typeof e}function d6(e){return d5(e)&&!isNaN(e)&&e>0}function d8(e,t){return d5(e)&&!isNaN(e)&&e<=t&&e>=0}let d7=(0,eX.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),d9=ef.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,ed.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,ed.jsx)(d1,{...s,ref:t,value:o,max:a,className:d7({variant:r,className:i}),children:(0,ed.jsx)(d2,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,ed.jsx)(n_,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function fe(e){let t=(0,ef.useRef)({value:e,previous:e});return(0,ef.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let ft="Radio",[fn,fr]=(0,em.b)(ft),[fi,fo]=fn(ft),fa=(0,ef.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,ef.useState)(null),h=(0,ev.e)(t,e=>f(e)),p=dw(d),m=(0,ef.useRef)(!1),v=!d||!!d.closest("form");return(0,ef.createElement)(fi,{scope:n,checked:o,disabled:s},(0,ef.createElement)(ew.WV.button,(0,ep.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":fu(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,eb.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,ef.createElement)(fl,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),fs=(0,ef.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=fo("RadioIndicator",n);return(0,ef.createElement)(ej.z,{present:r||o.checked},(0,ef.createElement)(ew.WV.span,(0,ep.Z)({"data-state":fu(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),fl=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,ef.useRef)(null),a=fe(n),s=tq(t);return(0,ef.useEffect)(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[a,n,r]),(0,ef.createElement)("input",(0,ep.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fu(e){return e?"checked":"unchecked"}let fc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fd="RadioGroup",[ff,fh]=(0,em.b)(fd,[uK,fr]),fp=uK(),fm=fr(),[fv,fg]=ff(fd),fy=(0,ef.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=dw(),p=fp(n),m=l7(u),[v,g]=(0,ex.T)({prop:a,defaultProp:o,onChange:d});return(0,ef.createElement)(fv,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,ef.createElement)(uJ,(0,ep.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,ef.createElement)(ew.WV.div,(0,ep.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fb=(0,ef.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=fg("RadioGroupItem",n),a=fp(n),s=fm(n),l=(0,ef.useRef)(null),u=(0,ev.e)(t,l),c=o.value===i.value,d=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=e=>{fc.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,ef.createElement)(u1,(0,ep.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,ef.createElement)(fa,(0,ep.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,eb.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,eb.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),fx=(0,ef.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fm(n);return(0,ef.createElement)(fs,(0,ep.Z)({},i,r,{ref:t}))}),fw=(0,eX.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fE=(0,eX.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fj=ef.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(fb,{...o,className:fE({size:n,className:r}),ref:t,children:(0,ed.jsx)(fx,{className:fw({size:n})})}),(0,ed.jsx)(n_,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fk=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)(fy,{...r,className:(0,eX.cx)("flex gap-2",n),ref:t})});(0,eX.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nO(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fS=(0,eX.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fO=ef.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,ed.jsx)("input",{ref:t,className:fS({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});function f_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function fC(){}function fM(e){return!!(e||"").match(/\d/)}function fA(e){return null==e}function fT(e){return fA(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function fP(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fN(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function fR(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function fD(e,t){return Array(t+1).join(e)}function fL(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(!(o=Number(o)))return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+fD("0",Math.abs(a))+i:a>=s?i+=fD("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function fZ(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=fN(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:l.toFixed(t)).split(".");return(s?"-":"")+o.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])+(r?".":"")+fR(u[1]||"",t,n)}function fF(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(c=U||(U={})).event="event",c.props="prop";var fV=(d=function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}},h=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return f&&e.length===f.length&&e.every(function(e,t){return e===f[t]})?h:(f=e,h=d.apply(void 0,e))});function fz(e){return Math.max(e.selectionStart,e.selectionEnd)}function fI(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function fB(e,t,n,r){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return -1===t&&(t=i),t}function fH(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:r-gO.length-u.length||SA?M=p:p>e.length-u.length&&(M=p),e=e.substring(0,M),void 0===(r=E?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),o=/(-)/.test(r),a=i.test(r),r=r.replace(/-/g,""),o&&!a&&s&&(r="-"+r);var T=(e=((e=r).match(RegExp("(^-)|[0-9]|"+fP(g),"g"))||[]).join("")).indexOf(g),P=fN(e=e.replace(RegExp(fP(g),"g"),function(e,t){return t===T?".":""}),s),N=P.beforeDecimal,R=P.afterDecimal,D=P.addNegation;return f.end-f.start=l.start&&i{h(navigator.language);let e=()=>{h(navigator.language)};return h(navigator.language),window.addEventListener("languagechange",e),()=>{window.removeEventListener("languagechange",e)}},[]);let p=(0,ef.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:v}=(0,ef.useMemo)(()=>(function(e,t){if("none"===t)return{groupingSeparator:"",groupingStyle:"none"};let n=new Intl.NumberFormat(e).format(123456789),r=n.replace(/[0-9]/g,"")[0],i=n.split(r).map(e=>e.length);return t?{groupingSeparator:r,groupingStyle:t}:{groupingSeparator:r,groupingStyle:i.every(e=>3===e)?"thousand":i.length>=2&&i.slice(1).every(e=>2===e)&&3===i[0]?"lakh":i.every(e=>4===e)?"wan":"thousand"}})(f,a),[f,a]);return(0,ed.jsxs)("div",{className:"relative",children:[(0,ed.jsx)(fK,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:v,thousandSeparator:m,className:(0,eX.cx)(fS({variant:n,size:r,state:i,focus:s,noSpin:o,cursor:l,className:u}),t?"pr-9":"")}),t&&(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,ed.jsx)(n_,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var fQ=n(6391),fJ=n.n(fQ);function f0(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function f1(e){let{value:t,placeholder:n=new(fJ())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:o,onChange:a,size:s="small",units:l,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,ef.useMemo)(()=>new(fJ())(t),[t]),[m,v]=(0,ef.useState)(""),g=(0,ef.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(fJ())(e):void 0)},[a]),y=(0,ef.useCallback)(e=>{v(e),g(e)},[v,g]);return(0,ef.useEffect)(()=>{p.isEqualTo(m)||v(f0(p,r))},[p]),(0,ed.jsx)(fX,{...h,thousandsGroupStyle:o?"none":void 0,"data-testid":"numberfield",size:s,placeholder:n.isNaN()?"":f0(n,r),units:l,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var f2=n(67108),f4=n(85375);let f3=new(fJ())(0);function f5(e){let{sc:t,placeholder:n=new(fJ())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:o,size:a="medium",units:s="SC",showFiat:l=!0,error:u,changed:c,prefix:d,onBlur:f,onFocus:h,name:p,...m}=e,v=(0,ef.useMemo)(()=>new(fJ())(void 0===t?NaN:t),[t]),{settings:g}=(0,f2.Hv)(),y=(0,f4.BW)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,ef.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fJ())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||f3):f3},[y.data,g]),[x,w]=(0,ef.useState)(),[E,j]=(0,ef.useState)(""),[k,S]=(0,ef.useState)(""),O=(0,ef.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(fJ())(e):void 0)},[o]),_=(0,ef.useCallback)(e=>{S(f0(e,r))},[S,r]),C=(0,ef.useCallback)(e=>{let t=f0(e,i);return j(t),O(t),t},[j,i,O]),M=(0,ef.useCallback)(e=>{j(e),O(e)},[j,O]),A=(0,ef.useCallback)(e=>{_(new(fJ())(e).times(b))},[_,b]),T=(0,ef.useCallback)(e=>{C(new(fJ())(e).dividedBy(b))},[C,b]),[P,N]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{if(!v.isEqualTo(E)){let e=f0(v,i);j(e),"fiat"!==x&&A(e)}P||N(!0)},[v]),(0,ef.useEffect)(()=>{P&&A(E)},[b]),(0,ef.useEffect)(()=>{"sc"===x&&A(E)},[E]),(0,ef.useEffect)(()=>{"fiat"===x&&T(k)},[k]),(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",u?"border-red-500 dark:border-red-400":c?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ed.jsx)(fX,{...m,name:p,"data-testid":"scInput",size:a,variant:"ghost",focus:"none",placeholder:f0(n,i),units:s,value:"NaN"!==E?E:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{M(e.value||"")},onBlur:e=>{w(void 0),f&&f(e)},onFocus:e=>{w("sc"),h&&h(e)}}),l&&g.siaCentral&&(0,ed.jsx)(fX,{...m,"data-testid":"fiatInput",name:"".concat(p,"-fiat"),size:a,variant:"ghost",focus:"none",value:"NaN"!==k?k:"",units:g.currency.label,decimalScale:i,allowNegative:!1,onValueChange:e=>{S(e.value||"")},placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(r):"0.42"),prefix:d||g.currency.prefix,onFocus:e=>{w("fiat"),h&&h(e)},onBlur:e=>{w(void 0),f&&f(e)}})]})}function f6(e){let{children:t}=e;return(0,ed.jsx)(lN,{content:t,children:(0,ed.jsx)("div",{className:"relative items-center inline mx-1",children:(0,ed.jsx)(n_,{color:"subtle",children:(0,ed.jsx)(lL.RdX,{className:"scale-75"})})})})}function f8(e){let{values:t,options:n,onChange:r}=e;return(0,ed.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,ed.jsx)(lD,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let f7=(0,eX.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),f9=ef.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,ed.jsxs)("div",{className:f7({size:n,state:r,className:o}),children:[i,(0,ed.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,ed.jsx)(lL.Cp0,{className:"pointer-events-none scale-75"})]})}),he=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)("option",{ref:t,...r,className:(0,eX.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),ht=(0,eX.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hn(e){let{className:t}=e;return(0,ed.jsx)("div",{className:ht({className:t})})}let hr=(0,eX.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),hi=ef.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,ed.jsx)("div",{ref:t,className:hr({size:n,className:r}),...i})}),ho="Switch",[ha,hs]=(0,em.b)(ho),[hl,hu]=ha(ho),hc=(0,ef.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,ef.useState)(null),p=(0,ev.e)(t,e=>h(e)),m=dw(f),v=(0,ef.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,ex.T)({prop:o,defaultProp:a,onChange:c});return(0,ef.createElement)(hl,{scope:n,checked:y,disabled:l},(0,ef.createElement)(ew.WV.button,(0,ep.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hh(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,eb.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,ef.createElement)(hf,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hd=(0,ef.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hu("SwitchThumb",n);return(0,ef.createElement)(ew.WV.span,(0,ep.Z)({"data-state":hh(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hf=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,ef.useRef)(null),a=fe(n),s=tq(t);return(0,ef.useEffect)(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[a,n,r]),(0,ef.createElement)("input",(0,ep.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hh(e){return e?"checked":"unchecked"}let hp=(0,eX.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hm=(0,eX.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hv=(0,ef.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(hc,{className:hm({size:n,state:r,className:i}),...a,ref:t,children:(0,ed.jsx)(hd,{className:hp({size:n})})}),o&&(0,ed.jsx)(n_,{color:a.disabled?"subtle":"contrast",children:o})]})}),hg=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e,i=ef.Children.toArray(n),o=i.find(hx);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:ef.Children.count(e)>1?ef.Children.only(null):(0,ef.isValidElement)(e)?e.props.children:null);return(0,ef.createElement)(hy,(0,ep.Z)({},r,{ref:t}),(0,ef.isValidElement)(e)?(0,ef.cloneElement)(e,void 0,n):null)}return(0,ef.createElement)(hy,(0,ep.Z)({},r,{ref:t}),n)});hg.displayName="Slot";let hy=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,ef.isValidElement)(n)?(0,ef.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,ev.F)(t,n.ref)}):ef.Children.count(n)>1?ef.Children.only(null):null});hy.displayName="SlotClone";let hb=({children:e})=>(0,ef.createElement)(ef.Fragment,null,e);function hx(e){return(0,ef.isValidElement)(e)&&e.type===hb}let hw=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,ef.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hg:t;return(0,ef.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,ef.createElement)(o,(0,ep.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hE=(0,ef.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ef.createElement)(hw.svg,(0,ep.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,ef.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hj="Popper",[hk,hS]=(0,em.b)(hj),[hO,h_]=hk(hj),hC=(0,ef.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=h_("PopperAnchor",n),a=(0,ef.useRef)(null),s=(0,ev.e)(t,a);return(0,ef.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,ef.createElement)(hw.div,(0,ep.Z)({},i,{ref:s}))}),hM="PopperContent",[hA,hT]=hk(hM),[hP,hN]=hk(hM,{hasParent:!1,positionUpdateFns:new Set}),hR=(0,ef.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:E,...j}=e,k=h_(hM,d),[S,O]=(0,ef.useState)(null),_=(0,ev.e)(t,e=>O(e)),[C,M]=(0,ef.useState)(null),A=tq(C),T=null!==(n=null==A?void 0:A.width)&&void 0!==n?n:0,P=null!==(r=null==A?void 0:A.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(g)?g:[g],D=R.length>0,L={padding:N,boundary:R.filter(hZ),altBoundary:D},{reference:Z,floating:F,strategy:V,x:z,y:I,placement:B,middlewareData:H,update:U}=tH({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tV,middleware:[hF(),tc({mainAxis:h+P,alignmentAxis:m}),w?tf({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?th():void 0,...L}):void 0,C?tU({element:C,padding:v}):void 0,w?ta({...L}):void 0,{name:"size",options:c={...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await e8(e,l),d=eJ(r),f=e0(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=e9(u.left,0),p=e9(u.right,0),m=e9(u.top,0),v=e9(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:e9(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:e9(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hV({arrowWidth:T,arrowHeight:P}),x?tu({strategy:"referenceHidden"}):void 0].filter(hL)});(0,eE.b)(()=>{Z(k.anchor)},[Z,k.anchor]);let W=null!==z&&null!==I,[q,$]=hz(B),Y=(0,lV.W)(E);(0,eE.b)(()=>{W&&(null==Y||Y())},[W,Y]);let G=null===(i=H.arrow)||void 0===i?void 0:i.x,K=null===(o=H.arrow)||void 0===o?void 0:o.y,X=(null===(a=H.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,J]=(0,ef.useState)();(0,eE.b)(()=>{S&&J(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:ee,positionUpdateFns:et}=hN(hM,d),en=!ee;(0,ef.useLayoutEffect)(()=>{if(!en)return et.add(U),()=>{et.delete(U)}},[en,et,U]),(0,eE.b)(()=>{en&&W&&Array.from(et).reverse().forEach(e=>requestAnimationFrame(e))},[en,W,et]);let er={"data-side":q,"data-align":$,...j,ref:_,style:{...j.style,animation:W?void 0:"none",opacity:null!==(s=H.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,ef.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:W?`translate3d(${Math.round(z)}px, ${Math.round(I)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=H.transformOrigin)||void 0===l?void 0:l.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,ef.createElement)(hA,{scope:d,placedSide:q,onArrowChange:M,arrowX:G,arrowY:K,shouldHideArrow:X},en?(0,ef.createElement)(hP,{scope:d,hasParent:!0,positionUpdateFns:et},(0,ef.createElement)(hw.div,er)):(0,ef.createElement)(hw.div,er)))}),hD={top:"bottom",right:"left",bottom:"top",left:"right"};function hL(e){return void 0!==e}function hZ(e){return null!==e}let hF=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hz(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hz(e){let[t,n="center"]=e.split("-");return[t,n]}let hI=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,ef.useState)(null);return(0,ef.createElement)(hO,{scope:t,anchor:r,onAnchorChange:i},n)},hB=(0,ef.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?tI.createPortal((0,ef.createElement)(hw.div,(0,ep.Z)({},i,{ref:t})),r):null}),hH="dismissableLayer.update",hU=(0,ef.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hW=(0,ef.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,ef.useContext)(hU),[f,h]=(0,ef.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,ef.useState)({}),v=(0,ev.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lV.W)(e),r=(0,ef.useRef)(!1),i=(0,ef.useRef)(()=>{});return(0,ef.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){h$("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lV.W)(e),r=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h$("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lV.W)(e);(0,ef.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,ef.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hq(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,ef.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hq())},[f,d]),(0,ef.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hH,e),()=>document.removeEventListener(hH,e)},[]),(0,ef.createElement)(hw.div,(0,ep.Z)({},c,{ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:(0,eb.M)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,eb.M)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,eb.M)(e.onPointerDownCapture,j.onPointerDownCapture)}))});function hq(){let e=new CustomEvent(hH);document.dispatchEvent(e)}function h$(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tI.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hY="HoverCard",[hG,hK]=(0,em.b)(hY,[hS]),hX=hS(),[hQ,hJ]=hG(hY),h0=(0,ef.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hJ("HoverCardTrigger",n),o=hX(n);return(0,ef.createElement)(hC,(0,ep.Z)({asChild:!0},o),(0,ef.createElement)(hw.a,(0,ep.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,eb.M)(e.onPointerEnter,h8(i.onOpen)),onPointerLeave:(0,eb.M)(e.onPointerLeave,h8(i.onClose)),onFocus:(0,eb.M)(e.onFocus,i.onOpen),onBlur:(0,eb.M)(e.onBlur,i.onClose),onTouchStart:(0,eb.M)(e.onTouchStart,e=>e.preventDefault())})))}),h1="HoverCardPortal",[h2,h4]=hG(h1,{forceMount:void 0}),h3="HoverCardContent",h5=(0,ef.forwardRef)((e,t)=>{let n=h4(h3,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hJ(h3,e.__scopeHoverCard);return(0,ef.createElement)(ej.z,{present:r||o.open},(0,ef.createElement)(h6,(0,ep.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,eb.M)(e.onPointerEnter,h8(o.onOpen)),onPointerLeave:(0,eb.M)(e.onPointerLeave,h8(o.onClose)),ref:t})))}),h6=(0,ef.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hJ(h3,n),c=hX(n),d=(0,ef.useRef)(null),f=(0,ev.e)(t,d),[h,p]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,ef.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,ef.useEffect)(()=>{d.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(d.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,ef.createElement)(hW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,eb.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,ef.createElement)(hR,(0,ep.Z)({},c,l,{onPointerDown:(0,eb.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function h8(e){return t=>"touch"===t.pointerType?void 0:e()}let h7=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hX(t),u=(0,ef.useRef)(0),c=(0,ef.useRef)(0),d=(0,ef.useRef)(!1),f=(0,ef.useRef)(!1),[h=!1,p]=(0,ex.T)({prop:r,defaultProp:i,onChange:o}),m=(0,ef.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,ef.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,ef.useCallback)(()=>p(!1),[p]);return(0,ef.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,ef.createElement)(hQ,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,ef.createElement)(hI,l,n))},h9=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hJ(h1,t);return(0,ef.createElement)(h2,{scope:t,forceMount:n},(0,ef.createElement)(ej.z,{present:n||o.open},(0,ef.createElement)(hB,{asChild:!0,container:i},r)))},pe=(0,eX.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),pt=(0,eX.cx)(nM(),"max-w-sm","py-0.5","px-1"),pn={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pr=ef.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=lT({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ed.jsxs)(h7,{open:l,onOpenChange:u,...i,children:[n&&(0,ed.jsx)(h0,{asChild:!0,children:n}),(0,ed.jsx)(n9,{children:l?(0,ed.jsx)(h9,{forceMount:!0,children:(0,ed.jsx)(h5,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,ed.jsx)(lA.div,{variants:pn,initial:"init",animate:"show",exit:"exit",className:pe(),children:(0,ed.jsx)("div",{className:(0,eX.cx)(pt,a),children:r})})})}):null})]})});function pi(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,ef.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,ef.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,ef.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,ef.useMemo)(()=>a,Object.values(a));return(0,ef.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,ef.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,ef.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function po(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pa(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function ps(...e){return(0,ef.useCallback)(pa(...e),e)}let pl=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e,i=ef.Children.toArray(n),o=i.find(pd);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:ef.Children.count(e)>1?ef.Children.only(null):(0,ef.isValidElement)(e)?e.props.children:null);return(0,ef.createElement)(pu,(0,ep.Z)({},r,{ref:t}),(0,ef.isValidElement)(e)?(0,ef.cloneElement)(e,void 0,n):null)}return(0,ef.createElement)(pu,(0,ep.Z)({},r,{ref:t}),n)});pl.displayName="Slot";let pu=(0,ef.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,ef.isValidElement)(n)?(0,ef.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?pa(t,n.ref):n.ref}):ef.Children.count(n)>1?ef.Children.only(null):null});pu.displayName="SlotClone";let pc=({children:e})=>(0,ef.createElement)(ef.Fragment,null,e);function pd(e){return(0,ef.isValidElement)(e)&&e.type===pc}let pf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,ef.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pl:t;return(0,ef.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,ef.createElement)(o,(0,ep.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ph(e){let t=(0,ef.useRef)(e);return(0,ef.useEffect)(()=>{t.current=e}),(0,ef.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pp=(null==globalThis?void 0:globalThis.document)?ef.useLayoutEffect:()=>{},pm=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,ef.useState)(),o=(0,ef.useRef)({}),a=(0,ef.useRef)(e),s=(0,ef.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,ef.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,ef.useEffect)(()=>{let e=pv(o.current);s.current="mounted"===l?e:"none"},[l]),pp(()=>{let t=o.current,n=a.current;if(n!==e){let r=s.current,i=pv(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),pp(()=>{if(r){let e=e=>{let t=pv(o.current).includes(e.animationName);e.target===r&&t&&(0,tI.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=pv(o.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,ef.useCallback)(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):ef.Children.only(n),o=ps(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,ef.cloneElement)(i,{ref:o}):null};function pv(e){return(null==e?void 0:e.animationName)||"none"}pm.displayName="Presence";let pg=eh["useId".toString()]||(()=>void 0),py=0;function pb(e){let t=e+"CollectionProvider",[n,r]=pi(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=ef.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ps(t,o(a,n).collectionRef);return ef.createElement(pl,{ref:i},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=ef.useRef(null),o=ef.useRef(new Map).current;return ef.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:ef.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=ef.useRef(null),s=ps(t,a),c=o(l,n);return ef.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),ef.createElement(pl,{[u]:"",ref:s},r)})},function(t){let n=o(e+"CollectionConsumer",t);return ef.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}let px="dismissableLayer.update",pw=(0,ef.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pE=(0,ef.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,ef.useContext)(pw),[f,h]=(0,ef.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,ef.useState)({}),v=ps(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=ph(e),r=(0,ef.useRef)(!1),i=(0,ef.useRef)(()=>{});return(0,ef.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){pk("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=ph(e),r=(0,ef.useRef)(!1);return(0,ef.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pk("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=ph(e);(0,ef.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,ef.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pj(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,ef.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pj())},[f,d]),(0,ef.useEffect)(()=>{let e=()=>m({});return document.addEventListener(px,e),()=>document.removeEventListener(px,e)},[]),(0,ef.createElement)(pf.div,(0,ep.Z)({},c,{ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:po(e.onFocusCapture,k.onFocusCapture),onBlurCapture:po(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:po(e.onPointerDownCapture,j.onPointerDownCapture)}))});function pj(){let e=new CustomEvent(px);document.dispatchEvent(e)}function pk(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,tI.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,ef.createElement)(pf.span,(0,ep.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}}));let pS="NavigationMenu",[pO,p_,pC]=pb(pS),[pM,pA,pT]=pb(pS),[pP,pN]=pi(pS,[pC,pT]),[pR,pD]=pP(pS),[pL,pZ]=pP(pS),[pF,pV]=pP("NavigationMenuItem"),pz=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pD("NavigationMenuIndicator",n),o=p_(n),[a,s]=(0,ef.useState)(null),[l,u]=(0,ef.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,ef.useEffect)(()=>{var e;let t=null===(e=o().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&s(t)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pq(a,f),pq(i.indicatorTrack,f),l?(0,ef.createElement)(pf.div,(0,ep.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pI=((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=pD(pz,e.__scopeNavigationMenu);return pp(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pp(()=>()=>r(e.value),[e.value,r]),null},"navigationMenu.rootContentDismiss"),pB=(0,ef.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pD(pz,n),d=(0,ef.useRef)(null),f=ps(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=p_(n),v=(0,ef.useRef)(null),{onItemDismiss:g}=c;(0,ef.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pI,t),()=>e.removeEventListener(pI,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,ef.useMemo)(()=>{let e=m().map(e=>e.value);"rtl"===c.dir&&e.reverse();let t=e.indexOf(c.value),n=e.indexOf(c.previousValue),i=r===c.value,o=n===e.indexOf(r);if(!i&&!o)return v.current;let a=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(o&&-1!==t)return t>n?"to-start":"to-end"}return null})();return v.current=a,a},[c.previousValue,c.value,c.dir,m,r]);return(0,ef.createElement)(pH,{asChild:!0},(0,ef.createElement)(pE,(0,ep.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pI,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:po(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:po(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:po(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=function(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);if(pW(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=o.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:po(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pH=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pD("NavigationMenuViewport",n),a=ps(t,o.onViewportChange),s=pZ(pz,e.__scopeNavigationMenu),[l,u]=(0,ef.useState)(null),[c,d]=(0,ef.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pq(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,ef.createElement)(pf.div,(0,ep.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:po(e.onPointerEnter,o.onContentEnter),onPointerLeave:po(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,ef.createElement)(pm,{key:e,present:n||i},(0,ef.createElement)(pB,(0,ep.Z)({},r,{ref:pa(t,e=>{i&&e&&d(e)})})))}))},(0,ef.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pD("FocusGroup",n);return(0,ef.createElement)(pM.Provider,{scope:n},(0,ef.createElement)(pM.Slot,{scope:n},(0,ef.createElement)(pf.div,(0,ep.Z)({dir:i.dir},r,{ref:t}))))})),pU=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pA(n),o=pD("FocusGroupItem",n);return(0,ef.createElement)(pM.ItemSlot,{scope:n},(0,ef.createElement)(pf.button,(0,ep.Z)({},r,{ref:t,onKeyDown:po(e.onKeyDown,e=>{if(["Home","End",...pU].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),pU.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pW(t)),e.preventDefault()}})})))};function pW(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pq(e,t){let n=ph(t);pp(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var p$=n(38617);let pY=ef.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ed.jsx)(fb,{...r,ref:t,className:(0,eX.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pG(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,p$.F)();return(0,ed.jsxs)(fy,{value:i,tabIndex:r,className:(0,eX.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,ed.jsx)(pY,{value:"system",children:(0,ed.jsx)(lN,{className:n,sideOffset:16,content:"System",children:(0,ed.jsx)(lL.$Iz,{})})}),(0,ed.jsx)(pY,{value:"light",children:(0,ed.jsx)(lN,{className:n,sideOffset:16,content:"Light",children:(0,ed.jsx)(lL.JaG,{})})}),(0,ed.jsx)(pY,{value:"dark",children:(0,ed.jsx)(lN,{className:n,sideOffset:16,content:"Dark",children:(0,ed.jsx)(lL.osk,{})})})]})}var pK=n(13980),pX=n.n(pK),pQ=n(22970),pJ=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 p0(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=pJ.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var p1=[".DS_Store","Thumbs.db"];function p2(e){return"object"==typeof e&&null!==e}function p4(e){return e.filter(function(e){return -1===p1.indexOf(e.name)})}function p3(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,ml(n)];if(e.sizen)return[!1,ml(n)]}return[!0,null]}function mh(e){return null!=e}function mp(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function mm(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 mv(e){e.preventDefault()}function mg(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var mT=(0,ef.forwardRef)(function(e,t){var n=e.children,r=mR(mA(e,mx)),i=r.open,o=mA(r,mw);return(0,ef.useImperativeHandle)(t,function(){return{open:i}},[i]),ef.createElement(ef.Fragment,null,n(mC(mC({},o),{},{open:i})))});mT.displayName="Dropzone";var mP={disabled:!1,getFilesFromEvent:function(e){return(0,pQ.mG)(this,void 0,void 0,function(){return(0,pQ.Jh)(this,function(t){return p2(e)&&p2(e.dataTransfer)?[2,function(e,t){return(0,pQ.mG)(this,void 0,void 0,function(){var n;return(0,pQ.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=p3(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(p5))];case 1:return[2,p4(function e(t){return t.reduce(function(t,n){return(0,pQ.ev)((0,pQ.ev)([],(0,pQ.CR)(t),!1),(0,pQ.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,p4(p3(e.files).map(function(e){return p0(e)}))]}})})}(e.dataTransfer,e.type)]:p2(e)&&p2(e.target)?[2,p3(e.target.files).map(function(e){return p0(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,pQ.mG)(this,void 0,void 0,function(){return(0,pQ.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 p0(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};mT.defaultProps=mP,mT.propTypes={children:pX().func,accept:pX().objectOf(pX().arrayOf(pX().string)),multiple:pX().bool,preventDropOnDocument:pX().bool,noClick:pX().bool,noKeyboard:pX().bool,noDrag:pX().bool,noDragEventsBubbling:pX().bool,minSize:pX().number,maxSize:pX().number,maxFiles:pX().number,disabled:pX().bool,getFilesFromEvent:pX().func,onFileDialogCancel:pX().func,onFileDialogOpen:pX().func,useFsAccessApi:pX().bool,autoFocus:pX().bool,onDragEnter:pX().func,onDragLeave:pX().func,onDragOver:pX().func,onDrop:pX().func,onDropAccepted:pX().func,onDropRejected:pX().func,onError:pX().func,validator:pX().func};var mN={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function mR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=mC(mC({},mP),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,p=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,g=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,E=t.noDrag,j=t.noDragEventsBubbling,k=t.onError,S=t.validator,O=(0,ef.useMemo)(function(){return function(e){if(mh(e))return Object.entries(e).reduce(function(e,t){var n=mi(t,2),r=n[0],i=n[1];return[].concat(me(e),[r],me(i))},[]).filter(function(e){return my(e)||mb(e)}).join(",")}(n)},[n]),_=(0,ef.useMemo)(function(){return mh(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=mi(e,2),n=t[0],r=t[1],i=!0;return my(n)||(console.warn('Skipped "'.concat(n,'" 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.')),i=!1),Array.isArray(r)&&r.every(mb)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=mi(t,2),r=n[0],i=n[1];return mn(mn({},e),{},mr({},r,i))},{})}]:n},[n]),C=(0,ef.useMemo)(function(){return"function"==typeof v?v:mL},[v]),M=(0,ef.useMemo)(function(){return"function"==typeof m?m:mL},[m]),A=(0,ef.useRef)(null),T=(0,ef.useRef)(null),P=mk((0,ef.useReducer)(mD,mN),2),N=P[0],R=P[1],D=N.isFocused,L=N.isFileDialogActive,Z=(0,ef.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),F=function(){!Z.current&&L&&setTimeout(function(){T.current&&!T.current.files.length&&(R({type:"closeDialog"}),M())},300)};(0,ef.useEffect)(function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}},[T,L,M,Z]);var V=(0,ef.useRef)([]),z=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),V.current=[])};(0,ef.useEffect)(function(){return b&&(document.addEventListener("dragover",mv,!1),document.addEventListener("drop",z,!1)),function(){b&&(document.removeEventListener("dragover",mv),document.removeEventListener("drop",z))}},[A,b]),(0,ef.useEffect)(function(){return!r&&y&&A.current&&A.current.focus(),function(){}},[A,y,r]);var I=(0,ef.useCallback)(function(e){k?k(e):console.error(e)},[k]),B=(0,ef.useCallback)(function(e){var t;e.preventDefault(),e.persist(),et(e),V.current=[].concat(function(e){if(Array.isArray(e))return mO(e)}(t=V.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||mS(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]),mm(e)&&Promise.resolve(i(e)).then(function(t){if(!mp(e)||j){var n,r,i,c,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:O,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:S}).files,i=n.accept,c=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=mi(md(e,i),1)[0],n=mi(mf(e,c,d),1)[0],r=p?p(e):null;return t&&n&&!r}));R({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return I(e)})},[i,u,I,j,O,a,o,s,l,S]),H=(0,ef.useCallback)(function(e){e.preventDefault(),e.persist(),et(e);var t=mm(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1},[d,j]),U=(0,ef.useCallback)(function(e){e.preventDefault(),e.persist(),et(e);var t=V.current.filter(function(e){return A.current&&A.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),V.current=t,!(t.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),mm(e)&&c&&c(e))},[A,c,j]),W=(0,ef.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=mk(md(e,O),2),i=t[0],s=t[1],l=mk(mf(e,a,o),2),u=l[0],c=l[1],d=S?S(e):null;if(i&&u&&!d)n.push(e);else{var f=[s,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach(function(e){r.push({file:e,errors:[mc]})}),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&p&&p(r,t),n.length>0&&h&&h(n,t)},[R,s,O,a,o,l,f,h,p,S]),q=(0,ef.useCallback)(function(e){e.preventDefault(),e.persist(),et(e),V.current=[],mm(e)&&Promise.resolve(i(e)).then(function(t){(!mp(e)||j)&&W(t,e)}).catch(function(e){return I(e)}),R({type:"reset"})},[i,W,I,j]),$=(0,ef.useCallback)(function(){if(Z.current){R({type:"openDialog"}),C(),window.showOpenFilePicker({multiple:s,types:_}).then(function(e){return i(e)}).then(function(e){W(e,null),R({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(M(e),R({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(Z.current=!1,T.current?(T.current.value=null,T.current.click()):I(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 was provided."))):I(e)});return}T.current&&(R({type:"openDialog"}),C(),T.current.value=null,T.current.click())},[R,C,M,g,W,I,_,s]),Y=(0,ef.useCallback)(function(e){A.current&&A.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),$())},[A,$]),G=(0,ef.useCallback)(function(){R({type:"focus"})},[]),K=(0,ef.useCallback)(function(){R({type:"blur"})},[]),X=(0,ef.useCallback)(function(){x||(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($,0):$())},[x,$]),Q=function(e){return r?null:e},J=function(e){return w?null:Q(e)},ee=function(e){return E?null:Q(e)},et=function(e){j&&e.stopPropagation()},en=(0,ef.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,i=e.onKeyDown,o=e.onFocus,a=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=mA(e,mE);return mC(mC(mM({onKeyDown:J(mg(i,Y)),onFocus:J(mg(o,G)),onBlur:J(mg(a,K)),onClick:Q(mg(s,X)),onDragEnter:ee(mg(l,B)),onDragOver:ee(mg(u,H)),onDragLeave:ee(mg(c,U)),onDrop:ee(mg(d,q)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,A),r||w?{}:{tabIndex:0}),f)}},[A,Y,G,K,X,B,H,U,q,w,E,r]),er=(0,ef.useCallback)(function(e){e.stopPropagation()},[]),ei=(0,ef.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=mA(e,mj);return mC(mC({},mM({accept:O,multiple:s,type:"file",style:{display:"none"},onChange:Q(mg(n,q)),onClick:Q(mg(r,er)),tabIndex:-1},void 0===t?"ref":t,T)),i)}},[T,n,s,q,r]);return mC(mC({},N),{},{isFocused:D&&!r,getRootProps:en,getInputProps:ei,rootRef:A,inputRef:T,open:Q($)})}function mD(e,t){switch(t.type){case"focus":return mC(mC({},e),{},{isFocused:!0});case"blur":return mC(mC({},e),{},{isFocused:!1});case"openDialog":return mC(mC({},mN),{},{isFileDialogActive:!0});case"closeDialog":return mC(mC({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mC(mC({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mC(mC({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mC({},mN);default:return e}}function mL(){}let{useDropzone:mZ}=ec;var mF=n(14582),mV=n(63739),mz=n(72779),mI=n.n(mz),mB=n(47440),mH=n(59309),mU=n(19067),mW=n(71220),mq=n(28142);function m$(e){return"bandwidth"in e?e.bandwidth():0}var mY=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mG(){return(mG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mY),g=null!=m?m:(0,mW.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+m$(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,mq.Z)(r(e)))?n:0)+y;return{index:t,from:new mU.Z({x:0,y:o}),to:new mU.Z({x:i,y:o})}});return ef.createElement(mH.Z,{className:mI()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return ef.createElement(mB.default,mG({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}mK.propTypes={tickValues:pX().array,width:pX().number.isRequired};var mX=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mQ(){return(mQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mX),g=null!=p?p:(0,mW.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+m$(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,mq.Z)(r(e)))?n:0)+y;return{index:t,from:new mU.Z({x:o,y:0}),to:new mU.Z({x:o,y:i})}});return ef.createElement(mH.Z,{className:mI()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return ef.createElement(mB.default,mQ({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}mJ.propTypes={tickValues:pX().array,height:pX().number.isRequired};var m0=n(64183),m1=n(8597);function m2(e){var t=e.id,n=e.width,r=e.height,i=e.children;return ef.createElement("defs",null,ef.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}m2.propTypes={id:pX().string.isRequired,width:pX().number.isRequired,height:pX().number.isRequired,children:pX().node.isRequired};var m4={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function m3(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return ef.createElement(m2,{id:t,width:n,height:r},!!h&&ef.createElement("rect",{className:mI()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return ef.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:mI()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case m4.horizontal:return"M 0,"+t/2+" l "+t+",0";case m4.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case m4.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case m4.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}m3.propTypes={id:pX().string.isRequired,width:pX().number.isRequired,height:pX().number.isRequired,className:pX().string,background:pX().string,stroke:pX().string,strokeWidth:pX().oneOfType([pX().number,pX().string]),strokeDasharray:pX().oneOfType([pX().string,pX().number]),strokeLinecap:pX().oneOf(["square","butt","round","inherit"]),shapeRendering:pX().oneOfType([pX().string,pX().number]),orientation:pX().array};var m5=["tooltipOpen"];function m6(){return(m6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m8);return ef.createElement("div",m7({ref:t,className:mI()("visx-tooltip",n),style:m7({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function vt(){return(vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va),v=!1,g=!1;if(u&&l){var y=void 0===r?0:r,b=void 0===f?0:f;if(l.width){var x=y+o+u.width-l.width,w=u.width-y-o;v=x>0&&x>w}else{var E=y+o+u.width-window.innerWidth,j=u.width-y-o;v=E>0&&E>j}if(l.height){var k=b+s+u.height-l.height,S=u.height-b-s;g=k>0&&k>S}else g=b+s+u.height>window.innerHeight;y=v?y-u.width-o:y+o,b=g?b-u.height-s:b+s,t="translate("+(y=Math.round(y))+"px, "+(b=Math.round(b))+"px)"}return ef.createElement(ve,vs({ref:p,style:vs({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),ef.createElement(vo,{value:{isFlippedVertically:!g,isFlippedHorizontally:!v}},n))}vl.propTypes={nodeRef:pX().oneOfType([pX().string,pX().func,pX().object])};var vu=((p=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=ef.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vn(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:tI.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():vr,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():vr}},n.render=function(){return ef.createElement(vl,vt({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(ef.PureComponent)).displayName="withBoundingRects("+(vl.displayName||"")+")",p),vc=n(99985);function vd(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return vx({},t,{isBrushing:!0,extent:vx({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=vx({},e,{isBrushing:!1,start:vx({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:vx({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vw(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return ef.createElement(vc.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return ef.createElement("g",null,h&&ef.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:vE}),ef.createElement("rect",vx({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(ef.Component);function vk(){return(vk=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return vk({},e,{isBrushing:!0,extent:vk({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return vk({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=vk({},c);r&&r(c),n.updateBrush(function(t){return vk({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?vh(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return vk({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=vk({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=vk({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vS(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),E=this.corners(),j=this.getBrushWidth(),k=this.getBrushHeight(),S=new Set(p);return ef.createElement(mH.Z,{className:"visx-brush",top:o,left:a},ef.createElement(vc.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return ef.createElement(mF.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,vP),g=o,y=s,b=a,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),ef.createElement("defs",null,ef.createElement("linearGradient",vN({id:n,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&ef.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&ef.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function vD(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function vL(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function vZ(){return 0}function vF(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}vR.propTypes={id:pX().string.isRequired,from:pX().string,to:pX().string,x1:pX().oneOfType([pX().string,pX().number]),x2:pX().oneOfType([pX().string,pX().number]),y1:pX().oneOfType([pX().string,pX().number]),y2:pX().oneOfType([pX().string,pX().number]),fromOffset:pX().oneOfType([pX().string,pX().number]),fromOpacity:pX().oneOfType([pX().string,pX().number]),toOffset:pX().oneOfType([pX().string,pX().number]),toOpacity:pX().oneOfType([pX().string,pX().number]),rotate:pX().oneOfType([pX().string,pX().number]),transform:pX().string,children:pX().node,vertical:pX().bool};var vz=n(93122),vI=n(93221),vB=function(){return vI.Z.Date.now()},vH=n(78807),vU=n(22758),vW=0/0,vq=/^[-+]0x[0-9a-f]+$/i,v$=/^0b[01]+$/i,vY=/^0o[0-7]+$/i,vG=parseInt,vK=function(e){if("number"==typeof e)return e;if((0,vU.Z)(e))return vW;if((0,vz.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,vz.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,vH.Z)(e);var n=v$.test(e);return n||vY.test(e)?vG(e.slice(2),n?2:8):vq.test(e)?vW:+e},vX=Math.max,vQ=Math.min,vJ=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function m(){var e,n,r,i=vB();if(p(i))return v(i);s=setTimeout(m,(e=i-l,n=i-u,r=t-e,d?vQ(r,o-n):r))}function v(e){return(s=void 0,f&&r)?h(e):(r=i=void 0,a)}function g(){var e,n=vB(),o=p(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(m,t),c?h(e):a;if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=vK(t)||0,(0,vz.Z)(n)&&(c=!!n.leading,o=(d="maxWait"in n)?vX(vK(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:v(vB())},g},v0=n(55746),v1=n(45742),v2=n(27266),v4=["id","markerWidth","markerHeight","markerUnits","children"];function v3(){return(v3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v4);return ef.createElement("defs",null,ef.createElement("marker",v3({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}v5.propTypes={id:pX().string.isRequired,size:pX().number,markerWidth:pX().oneOfType([pX().string,pX().number]),markerHeight:pX().oneOfType([pX().string,pX().number]),markerUnits:pX().string,refX:pX().oneOfType([pX().string,pX().number]),refY:pX().oneOfType([pX().string,pX().number]),strokeWidth:pX().number,children:pX().node.isRequired};var v6=["id","size","strokeWidth"];function v8(){return(v8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v6),s=2*r+o,l=s/2;return ef.createElement(v5,v8({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),ef.createElement("circle",{r:r,cx:l,cy:l}))}var v9=n(64170),ge={top:"top",left:"left",bottom:"bottom"};function gt(){return(gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gs),E=null!=v?v:"tickFormat"in m?m.tickFormat():gi.Z,j=f===ge.left,k=f===ge.top,S=k||f===ge.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(m),_=j||k?-1:1,C=m.range(),M=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:ga({start:0,end:0},t)),A=go({x:Number(C[0])+.5-M.start,y:0},S),T=go({x:Number(C[C.length-1])+.5+M.end,y:0},S),P=(null!=b?b:(0,mW.Z)(m,c)).filter(function(e){return!s||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=P.map(function(e){var t=e.value,n=e.index,r=(0,mq.Z)(O(t));return{value:t,index:n,from:go({x:r,y:0},S),to:go({x:r,y:y*_},S),formattedValue:E(t,n,P)}});return ef.createElement(mH.Z,{className:mI()("visx-axis",r),top:void 0===x?0:x,left:void 0===l?0:l},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,o=e.hideTicks,a=e.horizontal,s=e.label,l=void 0===s?"":s,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?gr:d,h=e.orientation,p=void 0===h?ge.bottom:h,m=e.scale,v=e.stroke,g=e.strokeDasharray,y=e.strokeWidth,b=void 0===y?1:y,x=e.tickClassName,w=e.tickComponent,E=e.tickLineProps,j=e.tickLabelProps,k=void 0===j?function(){return gr}:j,S=e.tickLength,O=e.tickStroke,_=e.tickTransform,C=e.ticks,M=e.ticksComponent,A=C.map(function(e){return k(e.value,e.index,C)}),T=Math.max.apply(Math,[10].concat(A.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return ef.createElement(ef.Fragment,null,(void 0===M?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,o=e.tickComponent,a=e.tickLabelProps,s=e.tickStroke,l=void 0===s?"#222":s,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var s,c=e.value,h=e.index,p=e.from,m=e.to,v=e.formattedValue,g=null!=(s=a[h])?s:{},y=Math.max(10,"number"==typeof g.fontSize&&g.fontSize||0),b=m.y+(n&&r!==ge.top?y:0);return ef.createElement(mH.Z,{key:"visx-tick-"+c+"-"+h,className:mI()("visx-axis-tick",i),transform:u},!t&&ef.createElement(mV.Z,gt({from:p,to:m,stroke:l,strokeWidth:d,strokeLinecap:"square"},f)),o?o(gt({},g,{x:m.x,y:b,formattedValue:v})):ef.createElement(v9.Z,gt({x:m.x,y:b},g),v))})}:M)({hideTicks:o,horizontal:a,orientation:p,scale:m,tickClassName:x,tickComponent:w,tickLabelProps:A,tickStroke:void 0===O?"#222":O,tickTransform:_,ticks:C,strokeWidth:b,tickLineProps:E}),!i&&ef.createElement(mV.Z,{className:mI()("visx-axis-line",n),from:t,to:r,stroke:void 0===v?"#222":v,strokeWidth:b,strokeDasharray:g}),l&&ef.createElement(v9.Z,gn({className:mI()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,o=e.labelProps,a=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=a===ge.left||a===ge.top?-1:1;if(a===ge.top||a===ge.bottom){var d=a===ge.bottom&&"number"==typeof o.fontSize?o.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(u+i+l+d)}else t=(Number(s[0])+Number(s[s.length-1]))/2*c,n=-(u+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===c?14:c,labelProps:f,orientation:p,range:m.range(),tickLabelFontSize:T,tickLength:void 0===S?8:S}),f),l))}:n)(gl({},w,{axisFromPoint:A,axisToPoint:T,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==o&&o,hideZero:s,horizontal:S,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:E,tickLength:y,tickPosition:O,tickSign:_,ticks:N})))}var gc=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gd(){return(gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gc);return ef.createElement(gu,gd({axisClassName:mI()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:ge.bottom,tickLabelProps:void 0===r?gf:r,tickLength:void 0===i?8:i},o))}var gp=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gm(){return(gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gp);return ef.createElement(gu,gm({axisClassName:mI()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:ge.left,tickLabelProps:void 0===r?gv:r,tickLength:void 0===i?8:i},o))}let gy=e=>new Date((null==e?void 0:e.timestamp)||0),gb=e=>(null==e?void 0:e.value)||0,gx="var(--colors-hiContrast)",gw={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:gx},gE={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:gx};function gj(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,ed.jsxs)(mH.Z,{left:d||o.left,top:c||o.top,children:[(0,ed.jsx)(v7,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,ed.jsx)(vR,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,ed.jsx)(v0.Z,{data:t,x:e=>a(gy(e))||0,y:e=>s(gb(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?v1.ZP:v2.Z}),!l&&(0,ed.jsx)(gh,{top:i,scale:a,numTicks:r>520?10:5,stroke:gx,tickStroke:gx,tickLabelProps:()=>gw}),!u&&(0,ed.jsx)(gg,{scale:s,numTicks:5,stroke:gx,tickStroke:gx,tickLabelProps:()=>gE}),h]})}let{inherit:gk,current:gS,transparent:gO,black:g_,white:gC,slate:gM,zinc:gA,neutral:gT,stone:gP,red:gN,orange:gR,amber:gD,yellow:gL,lime:gZ,green:gF,emerald:gV,teal:gz,cyan:gI,sky:gB,blue:gH,indigo:gU,violet:gW,purple:gq,fuchsia:g$,pink:gY,rose:gG}=n(6692),gK={inherit:gk,current:gS,transparent:gO,black:g_,white:gC,slate:gM,zinc:gA,neutral:gT,stone:gP,red:gN,orange:gR,amber:gD,yellow:gL,lime:gZ,green:gF,emerald:gV,teal:gz,cyan:gI,sky:gB,blue:gH,indigo:gU,violet:gW,purple:gq,fuchsia:g$,pink:gY,rose:gG,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var gX=n(21487);let gQ={top:10,bottom:15,left:10,right:10},gJ="brush_pattern",g0="brush_gradient",g1=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,vz.Z)(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),vJ(e,t,{leading:r,maxWait:t,trailing:i})}(e=>e(),15),g2=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(ivD(e(t),n),r=(t,n)=>e(t)-n):(t=e===vD||e===vL?e:vZ,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===m&&(m={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===v&&(v=function(e,t){return ef.createElement("div",t,e)});var g4=n(54073),g3=n.n(g4),g5=n(44711),g6=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function g8(){return(g8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g6),d=(0,ef.useRef)(null),f=(0,ef.useRef)(0),h=(0,ef.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],v=(0,ef.useMemo)(function(){var e=Array.isArray(a)?a:[a];return g3()(function(t){m(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:u})},[i,u,a]);return(0,ef.useEffect)(function(){var e=new g5.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){v({width:i,height:o,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),ef.createElement("div",g8({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(g8({},p,{ref:d.current,resize:v})))}g9.propTypes={className:pX().string,debounceTime:pX().number,enableDebounceLeadingCall:pX().bool,ignoreDimensions:pX().oneOfType([pX().any,pX().arrayOf(pX().any)]),children:pX().func.isRequired};var ye=n(52058);function yt(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:b,renderTooltipGlyph:x,renderLineSeries:w,sharedTooltip:E,showHorizontalCrosshair:j,showTooltip:k,showVerticalCrosshair:S,snapTooltipToDatum:O,stackOffset:_,margin:C,theme:M,xAxisOrientation:A,yAxisOrientation:T,AreaSeries:P,AreaStack:N,Axis:R,BarGroup:D,BarSeries:L,BarStack:Z,Grid:F,LineSeries:V,Tooltip:z,XYChart:I}=e;return(0,ed.jsxs)(I,{theme:M.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:C,captureEvents:!0,children:[(0,ed.jsx)("g",{children:(0,ed.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,ed.jsx)(vR,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,ed.jsxs)(ef.Fragment,{children:[(0,ed.jsx)(m3,{id:"pattern-".concat(yn(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,ed.jsx)(vR,{id:"gradient-".concat(yn(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,ed.jsx)(F,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,ed.jsx)(Z,{offset:l.stackOffset,children:c.map(e=>(0,ed.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>yr(t,e,l)},e))}),g&&(0,ed.jsx)(D,{children:c.map(e=>(0,ed.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>yr(t,e,l)},e))}),m&&(0,ed.jsx)(ed.Fragment,{children:c.map(e=>(0,ed.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:yr(t,e,l),fill:yr(t,e,l),curve:a},e))}),v&&(0,ed.jsx)(N,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==_,children:c.map(e=>(0,ed.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:yr(t,e,l),fill:yr(t,e,l)},e))}),w&&(0,ed.jsx)(ed.Fragment,{children:c.map(e=>{var t,n;return(0,ed.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,ed.jsx)(R,{orientation:A,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,gX.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,ed.jsx)(R,{label:null==_?"SC":"expand"===_?"Fraction of total":"",orientation:T,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),k&&(0,ed.jsx)(z,{showHorizontalCrosshair:j,showVerticalCrosshair:S,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:E&&!g,renderGlyph:b?x:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=E?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,gX.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,ye.Z)(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col gap-2 py-1"),children:[(0,ed.jsx)(n_,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,ed.jsx)(c6,{color:"panel",className:"w-full"}),(0,ed.jsx)("div",{className:(0,eX.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,ed.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,ed.jsx)(n_,{weight:"semibold",children:t}),(0,ed.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=o&&i.y[c](o);return(0,ed.jsxs)(ef.Fragment,{children:[(0,ed.jsx)(n_,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eX.cx)(a===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,ed.jsx)(n_,{size:"12",style:{textAlign:"end"},className:(0,eX.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,ed.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(n_,{className:"pt-2",children:"total"}),(0,ed.jsx)(n_,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,ed.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function yn(e,t){return"".concat(e,"-").concat(t)}function yr(e,t,n){var r;let i=yn(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var yi=n(24037),yo=n(86707);function ya(e){var t=e.top,n=e.left,r=e.className,i=e.children;return ef.createElement(mH.Z,{className:mI()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}ya.propTypes={top:pX().number,left:pX().number,className:pX().string,children:pX().node};var ys=["children","className","top","left","size"];function yl(){return(yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ys),s=(0,yi.Z)();return(s.type(yo.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?ef.createElement(ef.Fragment,null,t({path:s})):ef.createElement(ya,{top:r,left:i},ef.createElement("path",yl({className:mI()("visx-glyph-star",n),d:s()||""},a)))}yu.propTypes={children:pX().func,className:pX().string,top:pX().number,left:pX().number,size:pX().oneOfType([pX().number,pX().func])};var yc=["top","left","className"];function yd(){return(yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,yc);return ef.createElement(ya,{top:void 0===t?0:t,left:void 0===n?0:n},ef.createElement("circle",yd({className:mI()("visx-glyph-dot",r)},i)))}yf.propTypes={className:pX().string,top:pX().number,left:pX().number,r:pX().number,cx:pX().number,cy:pX().number};var yh=n(9135),yp=["children","className","top","left","size"];function ym(){return(ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,yp),s=(0,yi.Z)();return(s.type(yh.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?ef.createElement(ef.Fragment,null,t({path:s})):ef.createElement(ya,{top:r,left:i},ef.createElement("path",ym({className:mI()("visx-glyph-cross",n),d:s()||""},a)))}yv.propTypes={children:pX().func,className:pX().string,top:pX().number,left:pX().number,size:pX().oneOfType([pX().number,pX().func])};var yg=n(46385),yy=n(20651),yb={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},yx=yb.gray,yw=yx[7],yE=[yb.cyan[9],yb.cyan[3],yb.yellow[5],yb.red[4],yb.grape[8],yb.grape[5],yb.pink[9]];function yj(){return(yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)yC(e,n,{get:t[n],enumerable:!0})})(yM,{assign:()=>y8,colors:()=>y3,createStringInterpolator:()=>W,skipAnimation:()=>y5,to:()=>q,willAdvance:()=>y6});var yA=yq(),yT=e=>yB(e,yA),yP=yq();yT.write=e=>yB(e,yP);var yN=yq();yT.onStart=e=>yB(e,yN);var yR=yq();yT.onFrame=e=>yB(e,yR);var yD=yq();yT.onFinish=e=>yB(e,yD);var yL=[];yT.setTimeout=(e,t)=>{let n=yT.now()+t,r=()=>{let e=yL.findIndex(e=>e.cancel==r);~e&&yL.splice(e,1),yz-=~e?1:0},i={time:n,handler:e,cancel:r};return yL.splice(yZ(n),0,i),yz+=1,yH(),i};var yZ=e=>~(~yL.findIndex(t=>t.time>e)||~yL.length);yT.cancel=e=>{yN.delete(e),yR.delete(e),yD.delete(e),yA.delete(e),yP.delete(e)},yT.sync=e=>{yI=!0,yT.batchedUpdates(e),yI=!1},yT.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,yT.onStart(n)}return r.handler=e,r.cancel=()=>{yN.delete(n),t=null},r};var yF="undefined"!=typeof window?window.requestAnimationFrame:()=>{};yT.use=e=>yF=e,yT.now="undefined"!=typeof performance?()=>performance.now():Date.now,yT.batchedUpdates=e=>e(),yT.catch=console.error,yT.frameLoop="always",yT.advance=()=>{"demand"!==yT.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):yW()};var yV=-1,yz=0,yI=!1;function yB(e,t){yI?(t.delete(e),e(0)):(t.add(e),yH())}function yH(){yV<0&&(yV=0,"demand"!==yT.frameLoop&&yF(yU))}function yU(){~yV&&(yF(yU),yT.batchedUpdates(yW))}function yW(){let e=yV,t=yZ(yV=yT.now());if(t&&(y$(yL.splice(0,t),e=>e.handler()),yz-=t),!yz){yV=-1;return}yN.flush(),yA.flush(e?Math.min(64,yV-e):16.667),yR.flush(),yP.flush(),yD.flush()}function yq(){let e=new Set,t=e;return{add(n){yz+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(yz-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,yz-=t.size,y$(t,t=>t(n)&&e.add(t)),yz+=e.size,t=e)}}}function y$(e,t){e.forEach(e=>{try{t(e)}catch(e){yT.catch(e)}})}function yY(){}var yG=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yK={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 yX(e,t){if(yK.arr(e)){if(!yK.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yJ(e,t,n){if(yK.arr(e)){for(let r=0;ryK.und(e)?[]:yK.arr(e)?e:[e];function y1(e,t){if(e.size){let n=Array.from(e);e.clear(),yQ(n,t)}}var y2=(e,...t)=>y1(e,e=>e(...t)),y4=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),y3=null,y5=!1,y6=yY,y8=e=>{e.to&&(q=e.to),e.now&&(yT.now=e.now),void 0!==e.colors&&(y3=e.colors),null!=e.skipAnimation&&(y5=e.skipAnimation),e.createStringInterpolator&&(W=e.createStringInterpolator),e.requestAnimationFrame&&yT.use(e.requestAnimationFrame),e.batchedUpdates&&(yT.batchedUpdates=e.batchedUpdates),e.willAdvance&&(y6=e.willAdvance),e.frameLoop&&(yT.frameLoop=e.frameLoop)},y7=new Set,y9=[],be=[],bt=0,bn={get idle(){return!y7.size&&!y9.length},start(e){bt>e.priority?(y7.add(e),yT.onStart(br)):(bi(e),yT(ba))},advance:ba,sort(e){if(bt)yT.onFrame(()=>bn.sort(e));else{let t=y9.indexOf(e);~t&&(y9.splice(t,1),bo(e))}},clear(){y9=[],y7.clear()}};function br(){y7.forEach(bi),y7.clear(),yT(ba)}function bi(e){y9.includes(e)||bo(e)}function bo(e){y9.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(y9,t=>t.priority>e.priority),0,e)}function ba(e){let t=be;for(let n=0;n0}var bs="[-+]?\\d*\\.?\\d+",bl=bs+"%";function bu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var bc=RegExp("rgb"+bu(bs,bs,bs)),bd=RegExp("rgba"+bu(bs,bs,bs,bs)),bf=RegExp("hsl"+bu(bs,bl,bl)),bh=RegExp("hsla"+bu(bs,bl,bl,bs)),bp=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bm=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bv=/^#([0-9a-fA-F]{6})$/,bg=/^#([0-9a-fA-F]{8})$/;function by(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bb(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*by(i,r,e+1/3))<<24|Math.round(255*by(i,r,e))<<16|Math.round(255*by(i,r,e-1/3))<<8}function bx(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function bw(e){return(parseFloat(e)%360+360)%360/360}function bE(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function bj(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function bk(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=bv.exec(e))?parseInt(t[1]+"ff",16)>>>0:y3&&void 0!==y3[e]?y3[e]:(t=bc.exec(e))?(bx(t[1])<<24|bx(t[2])<<16|bx(t[3])<<8|255)>>>0:(t=bd.exec(e))?(bx(t[1])<<24|bx(t[2])<<16|bx(t[3])<<8|bE(t[4]))>>>0:(t=bp.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bg.exec(e))?parseInt(t[1],16)>>>0:(t=bm.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=bf.exec(e))?(255|bb(bw(t[1]),bj(t[2]),bj(t[3])))>>>0:(t=bh.exec(e))?(bb(bw(t[1]),bj(t[2]),bj(t[3]))|bE(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var bS=(e,t,n)=>{if(yK.fun(e))return e;if(yK.arr(e))return bS({range:e,output:t,extrapolate:n});if(yK.str(e.output[0]))return W(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},bO=Symbol.for("FluidValue.get"),b_=Symbol.for("FluidValue.observers"),bC=e=>!!(e&&e[bO]),bM=e=>e&&e[bO]?e[bO]():e,bA=e=>e[b_]||null;function bT(e,t){let n=e[b_];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var bP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");bN(this,e)}},bN=(e,t)=>bL(e,bO,t);function bR(e,t){if(e[bO]){let n=e[b_];n||bL(e,b_,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function bD(e,t){let n=e[b_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[b_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var bL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),bZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bV=RegExp(`(${bZ.source})(%|[a-z]+)`,"i"),bz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,bI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bB=e=>{let[t,n]=bH(e);if(!t||y4())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&bI.test(n))return bB(n);else if(n)return n;return e},bH=e=>{let t=bI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},bU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,bW=e=>{$||($=y3?RegExp(`(${Object.keys(y3).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>bM(e).replace(bI,bB).replace(bF,bk).replace($,bk)),n=t.map(e=>e.match(bZ).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>bS({...e,output:t}));return e=>{let n=!bV.test(t[0])&&t.find(e=>bV.test(e))?.replace(bZ,""),i=0;return t[0].replace(bZ,()=>`${r[i++](e)}${n||""}`).replace(bz,bU)}},bq="react-spring: ",b$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${bq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},bY=b$(console.warn),bG=b$(console.warn);function bK(e){return yK.str(e)&&("#"==e[0]||/\d/.test(e)||!y4()&&bI.test(e)||e in(y3||{}))}var bX=y4()?ef.useEffect:ef.useLayoutEffect,bQ=()=>{let e=(0,ef.useRef)(!1);return bX(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function bJ(){let e=(0,ef.useState)()[1],t=bQ();return()=>{t.current&&e(Math.random())}}var b0=e=>(0,ef.useEffect)(e,b1),b1=[];function b2(e){let t=(0,ef.useRef)();return(0,ef.useEffect)(()=>{t.current=e}),t.current}var b4=Symbol.for("Animated:node"),b3=e=>!!e&&e[b4]===e,b5=e=>e&&e[b4],b6=(e,t)=>yG(e,b4,t),b8=e=>e&&e[b4]&&e[b4].getPayload(),b7=class{constructor(){b6(this,this)}getPayload(){return this.payload||[]}},b9=class extends b7{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,yK.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new b9(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return yK.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,yK.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xe=class extends b9{constructor(e){super(0),this._string=null,this._toString=bS({output:[e,e]})}static create(e){return new xe(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(yK.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=bS({output:[this.getValue(),e]})),this._value=0,super.reset()}},xt={dependencies:null},xn=class extends b7{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yJ(this.source,(n,r)=>{b3(n)?t[r]=n.getValue(e):bC(n)?t[r]=bM(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yQ(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yJ(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xt.dependencies&&bC(e)&&xt.dependencies.add(e);let t=b8(e);t&&yQ(t,e=>this.add(e))}},xr=class extends xn{constructor(e){super(e)}static create(e){return new xr(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(xi)),!0)}};function xi(e){return(bK(e)?xe:b9).create(e)}function xo(e){let t=b5(e);return t?t.constructor:yK.arr(e)?xr:bK(e)?xe:b9}var xa=(e,t)=>{let n=!yK.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ef.forwardRef)((r,i)=>{let o=(0,ef.useRef)(null),a=n&&(0,ef.useCallback)(e=>{o.current=(i&&(yK.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return xt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new xn(e),xt.dependencies=null,[e,n]}(r,t),u=bJ(),c=()=>{let e=o.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new xs(c,l),f=(0,ef.useRef)();bX(()=>(f.current=d,yQ(l,e=>bR(e,d)),()=>{f.current&&(yQ(f.current.deps,e=>bD(e,f.current)),yT.cancel(f.current.update))})),(0,ef.useEffect)(c,[]),b0(()=>()=>{let e=f.current;yQ(e.deps,t=>bD(t,e))});let h=t.getComponentProps(s.getValue());return ef.createElement(e,{...h,ref:a})})},xs=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&yT.write(this.update)}},xl=Symbol.for("AnimatedComponent"),xu=e=>yK.str(e)?e:e&&yK.str(e.displayName)?e.displayName:yK.fun(e)&&e.name||null;function xc(e,...t){return yK.fun(e)?e(...t):e}var xd=(e,t)=>!0===e||!!(t&&e&&(yK.fun(e)?e(t):y0(e).includes(t))),xf=(e,t)=>yK.obj(e)?t&&e[t]:e,xh=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,xp=e=>e,xm=(e,t=xp)=>{let n=xv;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);yK.und(n)||(r[i]=n)}return r},xv=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xg={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 xy(e){let t=function(e){let t={},n=0;if(yJ(e,(e,r)=>{!xg[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yJ(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function xb(e){return e=bM(e),yK.arr(e)?e.map(xb):bK(e)?yM.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function xx(e){for(let t in e)return!0;return!1}function xw(e){return yK.fun(e)||yK.arr(e)&&yK.obj(e[0])}function xE(e,t){e.ref?.delete(e),t?.delete(e)}function xj(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var xk={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},xS=class{constructor(){this.velocity=0,Object.assign(this,xk)}};function xO(e,t){if(yK.und(t.decay)){let n=!yK.und(t.tension)||!yK.und(t.friction);!n&&yK.und(t.frequency)&&yK.und(t.damping)&&yK.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var x_=[],xC=class{constructor(){this.changed=!1,this.values=x_,this.toValues=null,this.fromValues=x_,this.config=new xS,this.immediate=!1}};function xM(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=xd(n.cancel??r?.cancel,t);if(c)h();else{yK.und(n.pause)||(i.paused=xd(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||xd(e,t)),l=xc(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-yT.now()}function f(){l>0&&!yM.skipAnimation?(i.delayed=!0,u=yT.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var xA=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?xN(e.get()):t.every(e=>e.noop)?xT(e.get()):xP(e.get(),t.every(e=>e.finished)),xT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xP=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xN=e=>({value:e,cancelled:!0,finished:!1});function xR(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=xm(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&xN(r)||i!==n.asyncId&&xP(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xL,a=new xZ;return(async()=>{if(yM.skipAnimation)throw xD(n),a.result=xP(r,!1),c(a),a;p(o);let s=yK.obj(e)?{...e}:{...t,to:e};s.parentId=i,yJ(f,(e,t)=>{yK.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(yM.skipAnimation)return xD(n),xP(r,!1);try{let t;t=yK.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=xP(r.get(),!0,!1)}catch(e){if(e instanceof xL)d=e.result;else if(e instanceof xZ)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return yK.fun(a)&&yT.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xD(e,t){y1(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xL=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.")}},xZ=class extends Error{constructor(){super("SkipAnimationSignal")}},xF=e=>e instanceof xz,xV=1,xz=class extends bP{constructor(){super(...arguments),this.id=xV++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=b5(this);return e&&e.getValue()}to(...e){return yM.to(this,e)}interpolate(...e){return bY(`${bq}The "interpolate" function is deprecated in v9 (use "to" instead)`),yM.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){bT(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||bn.sort(this),bT(this,{type:"priority",parent:this,priority:e})}},xI=Symbol.for("SpringPhase"),xB=e=>(1&e[xI])>0,xH=e=>(2&e[xI])>0,xU=e=>(4&e[xI])>0,xW=(e,t)=>t?e[xI]|=3:e[xI]&=-3,xq=(e,t)=>t?e[xI]|=4:e[xI]&=-5,x$=class extends xz{constructor(e,t){if(super(),this.animation=new xC,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,!yK.und(e)||!yK.und(t)){let n=yK.obj(e)?{...e}:{...t,from:e};yK.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xH(this)||this._state.asyncTo)||xU(this)}get goal(){return bM(this.animation.to)}get velocity(){let e=b5(this);return e instanceof b9?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xB(this)}get isAnimating(){return xH(this)}get isPaused(){return xU(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=b8(r.to);!a&&bC(r.to)&&(i=y0(bM(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==xe?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=yK.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(yK.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!yK.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*t)/o.mass;t+=1*e,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}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,o.round)&&(n=!0)});let s=b5(this),l=s.getValue();if(t){let e=bM(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return yT.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xH(this)){let{to:e,config:t}=this.animation;yT.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 n;return yK.und(e)?(n=this.queue||[],this.queue=[]):n=[yK.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>xA(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xD(this._state,e&&this._lastCallId),yT.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:n,from:r}=e;(null==(n=yK.obj(n)?n[t]:n)||xw(n))&&(n=void 0),null==(r=yK.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xB(this)||(e.reverse&&([n,r]=[r,n]),r=bM(r),yK.und(r)?b5(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,xm(e,(e,t)=>/^on/.test(t)?xf(e,n):e)),xJ(this,e,"onProps"),x0(this,"onProps",e,this);let i=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 o=this._state;return xM(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xU(this)||(xq(this,!0),y2(o.pauseQueue),x0(this,"onPause",xP(this,xY(this,this.animation.to)),this))},resume:()=>{xU(this)&&(xq(this,!1),xH(this)&&this._resume(),y2(o.resumeQueue),x0(this,"onResume",xP(this,xY(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xG(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xN(this));let r=!yK.und(e.to),i=!yK.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(xN(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||yK.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!yX(d,u);f&&(s.from=d),d=bM(d);let h=!yX(c,l);h&&this._focus(c);let p=xw(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(xO(n={...n},t),t={...n,...t}),xO(e,t),Object.assign(e,t),xk)null==e[r]&&(e[r]=xk[r]);let{frequency:r,damping:i}=e,{mass:o}=e;yK.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,xc(t.config,o),t.config!==a.config?xc(a.config,o):void 0);let y=b5(this);if(!y||yK.und(c))return n(xP(this,!0));let b=yK.und(t.reset)?i&&!t.default:!yK.und(d)&&xd(t.reset,o),x=b?d:this.get(),w=xb(c),E=yK.num(w)||yK.arr(w)||bK(w),j=!p&&(!E||xd(a.immediate||t.immediate,o));if(h){let e=xo(c);if(e!==y.constructor){if(j)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,S=bC(c),O=!1;if(!S){let e=b||!xB(this)&&f;(h||e)&&(S=!(O=yX(xb(x),w))),(yX(s.immediate,j)||j)&&yX(m.decay,v)&&yX(m.velocity,g)||(S=!0)}if(O&&xH(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||bC(l))&&(s.values=y.getPayload(),s.toValues=bC(c)?null:k==xe?[1]:y0(w)),s.immediate==j||(s.immediate=j,j||b||this._set(l)),S)){let{onRest:e}=s;yQ(xQ,e=>xJ(this,t,e));let r=xP(this,xY(this,l));y2(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&yT.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?xc(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(xR(t.to,t,this._state,this)):S?this._start():xH(this)&&!h?this._pendingCalls.add(n):n(xT(x))}_focus(e){let t=this.animation;e!==t.to&&(bA(this)&&this._detach(),t.to=e,bA(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;bC(t)&&(bR(t,this),xF(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;bC(e)&&bD(e,this)}_set(e,t=!0){let n=bM(e);if(!yK.und(n)){let e=b5(this);if(!e||!yX(n,e.getValue())){let r=xo(n);e&&e.constructor==r?e.setValue(n):b6(this,r.create(n)),e&&yT.batchedUpdates(()=>{this._onChange(n,t)})}}return b5(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,x0(this,"onStart",xP(this,xY(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),xc(this.animation.onChange,e,this)),xc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;b5(this).reset(bM(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xH(this)||(xW(this,!0),xU(this)||this._resume())}_resume(){yM.skipAnimation?this.finish():bn.start(this)}_stop(e,t){if(xH(this)){xW(this,!1);let n=this.animation;yQ(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bT(this,{type:"idle",parent:this});let r=t?xN(this.get()):xP(this.get(),xY(this,e??n.to));y2(this._pendingCalls,r),n.changed&&(n.changed=!1,x0(this,"onRest",r,this))}}};function xY(e,t){let n=xb(t);return yX(xb(e.get()),n)}function xG(e,t=e.loop,n=e.to){let r=xc(t);if(r){let i=!0!==r&&xy(r),o=(i||e).reverse,a=!i||i.reset;return xK({...e,loop:t,default:!1,pause:void 0,to:!o||xw(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xK(e){let{to:t,from:n}=e=xy(e),r=new Set;return yK.obj(t)&&xX(t,r),yK.obj(n)&&xX(n,r),e.keys=r.size?Array.from(r):null,e}function xX(e,t){yJ(e,(e,n)=>null!=e&&t.add(n))}var xQ=["onStart","onRest","onChange","onPause","onResume"];function xJ(e,t,n){e.animation[n]=t[n]!==xh(t,n)?xf(t[n],e.key):void 0}function x0(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var x1=["onStart","onChange","onRest"],x2=1,x4=class{constructor(e,t){this.id=x2++,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,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];yK.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xK(e)),this}start(e){let{queue:t}=this;return(e?t=y0(e).map(xK):this.queue=[],this._flush)?this._flush(this,t):(we(this,t),x3(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yQ(y0(t),t=>n[t].stop(!!e))}else xD(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(yK.und(e))this.start({pause:!0});else{let t=this.springs;yQ(y0(e),e=>t[e].pause())}return this}resume(e){if(yK.und(e))this.start({pause:!1});else{let t=this.springs;yQ(y0(e),e=>t[e].resume())}return this}each(e){yJ(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,y1(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&y1(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,y1(n,([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)}yT.onFrame(this._onFrame)}};function x3(e,t){return Promise.all(t.map(t=>x5(e,t))).then(t=>xA(e,t))}async function x5(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=yK.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=yK.arr(i)||yK.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yQ(x1,n=>{let r=t[n];if(yK.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,y2(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===xh(t,"cancel");(c||h&&d.asyncId)&&f.push(xM(++e._lastAsyncId,{props:t,state:d,actions:{pause:yY,resume:yY,start(t,n){h?(xD(d,e._lastAsyncId),n(xN(e))):(t.onRest=s,n(xR(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=xA(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xG(t,a,i);if(n)return we(e,[n]),x5(e,n,!0)}return l&&yT.batchedUpdates(()=>l(p,e,e.item)),p}function x6(e,t){let n={...e.springs};return t&&yQ(y0(t),e=>{yK.und(e.keys)&&(e=xK(e)),yK.obj(e.to)||(e={...e,to:void 0}),x9(n,e,e=>x7(e))}),x8(e,n),n}function x8(e,t){yJ(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,bR(t,e))})}function x7(e,t){let n=new x$;return n.key=e,t&&bR(n,t),n}function x9(e,t,n){t.keys&&yQ(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function we(e,t){yQ(t,t=>{x9(e.springs,t,t=>x7(t,e))})}var wt=({children:e,...t})=>{let n=(0,ef.useContext)(wn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,ef.useState)(()=>({inputs:t,result:e()})),r=(0,ef.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=wn;return ef.createElement(o,{value:t},e)},wn=(Object.assign(wt,ef.createContext({})),wt.Provider._context=wt,wt.Consumer._context=wt,wt);wt.Provider=wn.Provider,wt.Consumer=wn.Consumer;var wr=()=>{let e=[],t=function(t){bG(`${bq}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 r=[];return yQ(e,(e,i)=>{if(yK.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return yQ(e,e=>e.pause(...arguments)),this},t.resume=function(){return yQ(e,e=>e.resume(...arguments)),this},t.set=function(t){yQ(e,(e,n)=>{let r=yK.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yQ(e,(e,r)=>{if(yK.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return yQ(e,e=>e.stop(...arguments)),this},t.update=function(t){return yQ(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return yK.fun(e)?e(n,t):e};return t._getProps=n,t};function wi(e,t){let n=yK.fun(e),[[r],i]=function(e,t,n){let r=yK.fun(t)&&t;r&&!n&&(n=[]);let i=(0,ef.useMemo)(()=>r||3==arguments.length?wr():void 0,[]),o=(0,ef.useRef)(0),a=bJ(),s=(0,ef.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=x6(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{x8(e,n),s.queue.push(()=>{r(x3(e,t))}),a()}):x3(e,t)}}),[]),l=(0,ef.useRef)([...s.ctrls]),u=[],c=b2(e)||0;function d(e,n){for(let i=e;i{yQ(l.current.slice(e,c),e=>{xE(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,ef.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>x6(e,u[t])),h=(0,ef.useContext)(wt),p=b2(h),m=h!==p&&xx(h);bX(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],yQ(e,e=>e())),yQ(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(xj(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),b0(()=>()=>{yQ(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function wo(e,t,n){let r=yK.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,ef.useMemo)(()=>r||3==arguments.length?wr():void 0,[]),h=y0(e),p=[],m=(0,ef.useRef)(null),v=i?null:m.current;bX(()=>{m.current=p}),b0(()=>(yQ(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yQ(m.current,e=>{e.expired&&clearTimeout(e.expirationId),xE(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):wa++})}return yK.und(n)?e:yK.fun(n)?e.map(n):y0(n)}(h,r?r():t,v),y=i&&m.current||[];bX(()=>yQ(y,({ctrl:e,item:t,key:n})=>{xE(e,f),xc(u,t,n)}));let b=[];if(v&&yQ(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),yQ(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new x4},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;yQ(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}yK.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let x=-a,w=bJ(),E=xm(t),j=new Map,k=(0,ef.useRef)(new Map),S=(0,ef.useRef)(!1);yQ(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=xc(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=xc(i,e.item,n),!(i=yK.obj(i)?xy(i):{to:i}).config){let t=d||E.config;i.config=xc(t,e.item,n,o)}x+=a;let y={...E,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&yK.und(y.from)){let i=r?r():t,o=yK.und(i.initial)||v?i.from:i.initial;y.from=xc(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{xc(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=xc(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(k.current.delete(n),l&&(S.current=!0),w())}}};let O=x6(e.ctrl,y);"leave"===o&&l?k.current.set(e,{phase:o,springs:O,payload:y}):j.set(e,{phase:o,springs:O,payload:y})});let O=(0,ef.useContext)(wt),_=b2(O),C=O!==_&&xx(O);bX(()=>{C&&yQ(p,e=>{e.ctrl.start({default:O})})},[O]),yQ(j,(e,t)=>{if(k.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),bX(()=>{yQ(k.current.size?k.current:j,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),C&&"enter"==e&&r.start({default:O}),t&&(xj(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let M=e=>ef.createElement(ef.Fragment,null,p.map((t,n)=>{let{springs:r}=j.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?ef.createElement(i.type,{...i.props,key:yK.str(t.key)||yK.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var wa=1,ws=class extends xz{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=bS(...t);let n=this._get();b6(this,xo(n).create(n))}advance(e){let t=this._get();yX(t,this.get())||(b5(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&wu(this._active)&&wc(this)}_get(){let e=yK.arr(this.source)?this.source.map(bM):y0(bM(this.source));return this.calc(...e)}_start(){this.idle&&!wu(this._active)&&(this.idle=!1,yQ(b8(this),e=>{e.done=!1}),yM.skipAnimation?(yT.batchedUpdates(()=>this.advance()),wc(this)):bn.start(this))}_attach(){let e=1;yQ(y0(this.source),t=>{bC(t)&&bR(t,this),xF(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yQ(y0(this.source),e=>{bC(e)&&bD(e,this)}),this._active.clear(),wc(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=y0(this.source).reduce((e,t)=>Math.max(e,(xF(t)?t.priority:0)+1),0))}};function wl(e){return!1!==e.idle}function wu(e){return!e.size||Array.from(e).every(wl)}function wc(e){e.idle||(e.idle=!0,yQ(b8(e),e=>{e.done=!0}),bT(e,{type:"idle",parent:e}))}var wd=(e,...t)=>new ws(e,t);yM.assign({createStringInterpolator:bW,to:(e,t)=>new ws(e,t)}),bn.advance;var wf=/^--/,wh={},wp={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},wm=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wv=["Webkit","Ms","Moz","O"];wp=Object.keys(wp).reduce((e,t)=>(wv.forEach(n=>e[wm(n,t)]=e[t]),e),wp);var wg=/^(matrix|translate|scale|rotate|skew)/,wy=/^(translate)/,wb=/^(rotate|skew)/,wx=(e,t)=>yK.num(e)&&0!==e?e+t:e,ww=(e,t)=>yK.arr(e)?e.every(e=>ww(e,t)):yK.num(e)?e===t:parseFloat(e)===t,wE=class extends xn{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>wx(e,"px")).join(",")})`,ww(e,0)])),yJ(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(wg.test(t)){if(delete r[t],yK.und(e))return;let n=wy.test(t)?"px":wb.test(t)?"deg":"";i.push(y0(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${wx(i,n)})`,ww(i,0)]:e=>[`${t}(${e.map(e=>wx(e,n)).join(",")})`,ww(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new wj(i,o)),super(r)}},wj=class extends bP{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 yQ(this.inputs,(n,r)=>{let i=bM(n[0]),[o,a]=this.transforms[r](yK.arr(i)?i:n.map(bM));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&yQ(this.inputs,e=>yQ(e,e=>bC(e)&&bR(e,this)))}observerRemoved(e){0==e&&yQ(this.inputs,e=>yQ(e,e=>bC(e)&&bD(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),bT(this,e)}};yM.assign({batchedUpdates:tI.unstable_batchedUpdates,createStringInterpolator:bW,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 wk=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new xn(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=xu(e)||"Anonymous";return(e=yK.str(e)?o[e]||(o[e]=xa(e,i)):e[xl]||(e[xl]=xa(e,i))).displayName=`Animated(${t})`,e};return yJ(e,(t,n)=>{yK.arr(e)&&(n=xu(t)),o[n]=o(t)}),{animated:o}})(["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 n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:wh[t]||(wh[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||wf.test(t)||wp.hasOwnProperty(t)&&wp[t]?(""+d).trim():d+"px";wf.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new wE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,wS=n(23442),wO=(0,ef.createContext)({});function w_(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,ef.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return ef.createElement(wO.Provider,{value:a},o)}function wC(){return(wC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wR),p=(0,ef.useContext)(wT)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,ef.useMemo)(function(){return y?wP(y):0},[y]),E=(0,ef.useMemo)(function(){return b?wP(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var j=s&&l||null==a?null:null==x?void 0:x.get(a),k=s||(null==j?void 0:j.xAccessor),S=l||(null==j?void 0:j.yAccessor);if(!y||!b||!v||!m||!k||!S||!g)return null;var O=(null!=(t=(0,mq.Z)(y(k(o))))?t:NaN)+w/2,_=(null!=(n=(0,mq.Z)(b(S(o))))?n:NaN)+E/2,C=O+c+16>g.left+v?-c:c,M=_+f+16>g.top+m?-f:f;return wN(O)&&wN(_)?ef.createElement(r,wD({width:v,height:m},h,{x:O,y:_,dx:C,dy:M}),i):null}wL.propTypes={dataKey:pX().string,xAccessor:pX().func,yAccessor:pX().func};var wZ=["x","y","AnnotationComponent"],wF=["editable"];function wV(){return(wV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wI(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=wz(e,wZ),s=(0,ef.useRef)({x:n,y:i}),l=wi({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,ef.useEffect)(function(){s.current={x:n,y:i}},[n,i]),ef.createElement(wk.g,{transform:wd([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},ef.createElement(o,wV({x:n,y:i},a)))}function wB(e){var t=e.editable,n=wz(e,wF),r=(0,ef.useCallback)(function(e){return ef.createElement(wI,wV({AnnotationComponent:t?wA:w_},e))},[t]);return ef.createElement(wL,wV({AnnotationComponent:r},n))}wB.propTypes={editable:pX().bool};var wH=n(12766),wU=["d","stroke","fill"];function wW(){return(wW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wU),o=(0,ef.useRef)(t),a=(0,ef.useCallback)(g3()(function(e){o.current=e},50),[]),s=(0,wH.interpolatePath)(o.current,t);a(t);var l=wi({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=wi({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return ef.createElement(wk.path,wW({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var w$=n(12935),wY=n(12151);function wG(){return(wG=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function w6(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>w5(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let w8=w6(w5);w8.right;let w7=w8.left;function w9(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=w6(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=w7(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,Ed),S=(0,ef.useContext)(wT),O=S.colorScale,_=S.theme,C=S.horizontal,M=(0,ef.useMemo)(function(){return b?wX(x,b):void 0},[x,b]),A=(0,ef.useMemo)(function(){return wX(x,y)},[x,y]),T=(0,ef.useMemo)(function(){return E?wX(j,E):void 0},[j,E]),P=(0,ef.useMemo)(function(){return wX(j,w)},[j,w]),N=(0,ef.useCallback)(function(e){return wN(x(y(e)))&&wN(j(w(e)))},[x,y,j,w]),R=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+l,L=Ea({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[wJ,D]}),Z=(0,ef.useMemo)(function(){var e=wQ(C?x:j);return C?{x0:null!=M?M:e,x1:A,y:P}:{x:A,y0:null!=T?T:e,y1:P}},[x,j,C,A,P,M,T]),F=!!(d||c),V=(0,ef.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return ef.createElement(ef.Fragment,{key:e.key},Ec(Ef({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return ef.createElement(ef.Fragment,null,ef.createElement(w$.Z,Ef({},Z,k,{curve:a,defined:N}),function(e){var t=e.path;return ef.createElement(o,Ef({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},k,{d:t(s)||""},L))}),(void 0===g||g)&&ef.createElement(wY.Z,Ef({x:A,y:P,defined:N,curve:a},u),function(e){var t=e.path;return ef.createElement(o,Ef({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),F&&ef.createElement(El,{dataKey:l,data:s,xAccessor:y,yAccessor:w,xScale:x,yScale:j,renderGlyphs:V}))}Eh.propTypes={renderLine:pX().bool};var Ep=wK(Eh);function Em(){return(Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function EE(e,t){return e[t]}function Ej(e){let t=[];return t.key=e,t}Array.prototype.slice;var Ek=n(74322),ES=n(58543);function EO(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,ef.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=Eb([]),t=Ew,n=Ex,r=EE;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),Ej),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(EO(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(EO(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function EP(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?Et:Ee)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,Ey.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,Ey.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,Ey.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,Ey.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var EN=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function ER(){return(ER=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,EN)),u=ER({fill:null!=(n=null!=(r=null==v?void 0:v(e.key))?r:null==w?void 0:null==(i=w.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[S,O,v,k,w]),C=(0,ef.useCallback)(function(e){var t,n,r=null==(t=k.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?EP(e,r,y):null},[k,y]),M="AREASTACK_EVENT_SOURCE-"+j.join("-"),A=Ea({dataKey:j,enableEvents:void 0===o||o,findNearestDatum:C,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:M,allowedSources:[wJ,M]}),T=!!(l||s),P=(0,ef.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return ef.createElement(ef.Fragment,{key:e.key},Ec(ER({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[T,A.onFocus,A.onBlur]);return!j.some(function(e){return null==g.get(e)})&&b&&x&&v?ef.createElement("g",{className:"visx-area-stack"},_.map(function(e){return ef.createElement(w$.Z,ER({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return ef.createElement(n,ER({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,A))})}),(void 0===p||p)&&_.map(function(e){return ef.createElement(Eg.Z,ER({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return ef.createElement(n,ER({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),T&&_.map(function(e,t){var n=_[_.length-t-1];return ef.createElement(El,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:ED,yScale:ED,renderGlyphs:P})})):null}function EZ(){return(EZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ez),c=(0,ef.useContext)(wT),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,ef.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,x=(0,ef.useMemo)(function(){return b||y?function(e,t,n){return EI({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),w="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,E="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,j="left"===g||"right"===g?h:f;return j?ef.createElement(l,EI({top:w,left:E,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:j})):null}function EH(){return(EH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return Eq({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return Eq({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,j,v)},[j,v]),S="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",O=Ea({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:k,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wJ,S]}),_=(0,ef.useMemo)(function(){return b?wQ(b):0},[b]),C=(0,ef.useMemo)(function(){return x?wQ(x):0},[x]),M=E.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var A=wP(j),T=M.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-_:(null!=(i=x(r(e)))?i:NaN)-C},s=v?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=j(o))?t:0,u=v?function(e){return _+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return C+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return A},f=v?function(){return A}:function(e){return Math.abs(a(e))},h=w.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!wN(r))return null;var i=c(e);if(!wN(i))return null;var a=d(e);if(!wN(a))return null;var s=f(e);return wN(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return ef.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&ef.createElement(o,E$({horizontal:v,xScale:b,yScale:x},e,O,{key:e.key}))}))}EY.propTypes={children:pX().node.isRequired,padding:pX().number,sortBars:pX().func};var EG=n(10897),EK=function(e){return!!(null==e?void 0:e.includes("url("))},EX=function(e){return EK(e)?"rgba(0,0,0,0.1)":e},EQ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],EJ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function E0(){return(E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function E2(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:EX(e.fill),opacity:1}}function E4(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=E1(e,EQ);return ef.createElement(ef.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return ef.createElement(EG.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return ef.createElement(wq,E0({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function E3(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,E1(e,EJ)),u=wo(i,E0({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,ef.useMemo)(function(){var e=wQ(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:EX(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:E2,update:E2,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return ef.createElement(ef.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:ef.createElement(wk.rect,E0({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:EK(t.fill)?t.fill:s,opacity:u},l))}))}function E5(e){return null==e.radius?ef.createElement(E3,e):ef.createElement(E4,E0({},e,{radius:e.radius}))}function E6(){return(E6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E7),w=(0,ef.useContext)(wT),E=w.colorScale,j=w.horizontal,k=w.theme,S=w.innerWidth,O=w.innerHeight,_=(0,ef.useMemo)(function(){return wX(g,v)},[g,v]),C=(0,ef.useMemo)(function(){return wX(b,y)},[b,y]),M=wP(j?b:g)||(j?void 0===O?0:O:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,ef.useMemo)(function(){return g?wQ(g):0},[g]),T=(0,ef.useMemo)(function(){return b?wQ(b):0},[b]),P=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==k?void 0:null==(r=k.colors)?void 0:r[0])?t:"#222",N=(0,ef.useMemo)(function(){var e=j?0:-M/2,t=j?-M/2:0;return s.map(function(n,r){var i,o=_(n)+e;if(!wN(o))return null;var s=C(n)+t;if(!wN(s))return null;var l=j?o-A:s-T;return wN(l)?{key:""+r,x:j?A+Math.min(0,l):o,y:j?s:T+Math.min(0,l),width:j?Math.abs(l):M,height:j?M:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:P}:null}).filter(function(e){return e})},[M,P,a,s,_,C,j,A,T]),R="BARSERIES_EVENT_SOURCE-"+l,D=Ea({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wJ,R]});return ef.createElement("g",{className:"vx-bar-series"},ef.createElement(i,E9({bars:N,horizontal:j,xScale:g,yScale:b},D,x)))}je.propTypes={barPadding:pX().number,colorAccessor:pX().func};var jt=wK(je),jn=["colorAccessor"];function jr(){return(jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jn);return ef.createElement(jt,jr({},n,{colorAccessor:t,BarsComponent:E5}))}var jo=n(15590);function ja(){return(ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jf),i=(0,ef.useCallback)(function(e){return ef.createElement(jd,jh({},e,{renderGlyph:n}))},[n]);return ef.createElement(Eu,jh({},r,{renderGlyphs:i}))}var jm=n(93353),jv=n(63962),jg=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jy(){return(jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jg),a=(0,ef.useContext)(wT),s=a.theme,l=a.xScale,u=a.yScale,c=a.margin,d=a.innerWidth,f=a.innerHeight,h=null==s?void 0:s.gridStyles;return ef.createElement(ef.Fragment,null,(void 0===t||t)&&u&&null!=d&&ef.createElement(r,jy({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},o)),(void 0===n||n)&&l&&null!=f&&ef.createElement(i,jy({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:l},o)))}jb.propTypes={rows:pX().bool,columns:pX().bool};var jx=["animationTrajectory"];function jw(){return(jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jx),r=(0,ef.useMemo)(function(){return function(e){return ef.createElement(jm.Z,jw({},e,{animationTrajectory:t}))}},[t]),i=(0,ef.useMemo)(function(){return function(e){return ef.createElement(jv.Z,jw({},e,{animationTrajectory:t}))}},[t]);return ef.createElement(jb,jw({GridRowsComponent:r,GridColumnsComponent:i},n))}var jj=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jk(){return(jk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jj),E=(0,ef.useContext)(wT),j=E.colorScale,k=E.theme,S=(0,ef.useMemo)(function(){return wX(v,m)},[v,m]),O=(0,ef.useMemo)(function(){return wX(y,g)},[y,g]),_=(0,ef.useCallback)(function(e){return wN(v(m(e)))&&wN(y(g(e)))},[v,m,y,g]),C=null!=(t=null!=(n=null==j?void 0:j(s))?n:null==k?void 0:null==(r=k.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,A=Ea({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[wJ,M]}),T=!!(u||l),P=(0,ef.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return ef.createElement(ef.Fragment,{key:e.key},Ec(jk({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[T,A.onFocus,A.onBlur]);return ef.createElement(ef.Fragment,null,ef.createElement(wY.Z,jk({x:S,y:O,defined:_,curve:o},w),function(e){var t,n=e.path;return ef.createElement(x,jk({stroke:null!=(t=null==i?void 0:i(s))?t:C,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(a)||""},A))}),T&&ef.createElement(El,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:P}))}jS.propTypes={colorAccessor:pX().func};var jO=wK(jS);function j_(){return(j_=Object.assign?Object.assign.bind():function(e){for(var t=1;tjT.every(n=>e[n]===t[n]);function jN(e,t){return(jN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jR=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jN(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?tI.createPortal(this.props.children,this.node):null},t}(ef.PureComponent);jR.propTypes={zIndex:pX().oneOfType([pX().number,pX().string])};var jD=["detectBounds","zIndex"],jL=["left","top","detectBounds","zIndex"];function jZ(){return(jZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jV=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jz=["x","y"];function jI(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jB(){return(jB=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,ef.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jP(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jA()(e,d):e,c?jA()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,ef.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,ef.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,ef.useEffect)(()=>{v(),g()},[r,m,p]),(0,ef.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(jF(et,jD)))[0],es=eo[1],el=eo[2],eu=(0,ef.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=jF(e,jL),a=null==i?ei:i,s=(null==r?er:r)?vu:ve,l=(void 0===t?0:t)+(es.left||0)+window.scrollX,u=(void 0===n?0:n)+(es.top||0)+window.scrollY;return ef.createElement(jR,{zIndex:a},ef.createElement(s,jZ({left:l,top:u},o)))}},[er,ei,es.left,es.top]),{containerRef:ea,containerBounds:es,forceRefreshBounds:el,TooltipInPortal:eu}),N=P.containerRef,R=P.TooltipInPortal,D=P.forceRefreshBounds,L=(0,ef.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),Z=null!=T&&T.tooltipOpen?o(jB({},T,{colorScale:j})):null,F=(null==T?void 0:T.tooltipOpen)&&null!=Z,V=(0,ef.useRef)(!1);(0,ef.useEffect)(function(){F&&!V.current&&D(),V.current=F},[F,D]);var z=null==T?void 0:T.tooltipLeft,I=null==T?void 0:T.tooltipTop,B=C?wP(C):0,H=M?wP(M):0,U=(0,ef.useCallback)(function(e,t){var n,r,i=null==A?void 0:A.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:C&&o?null!=(n=Number(C(o(t)))+B/2)?n:0:void 0,top:M&&a?null!=(r=Number(M(a(t)))+H/2)?r:0:void 0}},[A,B,H,C,M]),W=null==T?void 0:null==(ec=T.tooltipData)?void 0:ec.nearestDatum,q=null!=(ed=null==W?void 0:W.key)?ed:"";if(F&&W&&(v||y)){var $=U(q,W.datum),Y=$.left,G=$.top;z=v&&wN(Y)?Y:z,I=y&&wN(G)?G:I}var K=[];if(F&&(void 0!==c&&c||h)){var X=Number(null!=(ek=null==i?void 0:i.radius)?ek:4);if(h)Object.values(null!=(eS=null==T?void 0:null==(eO=T.tooltipData)?void 0:eO.datumByKey)?eS:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==j?void 0:j(o))?n:null==k?void 0:null==(r=k.htmlLabel)?void 0:r.color)?t:"#222",u=U(o,a),c=u.left,d=u.top;wN(c)&&wN(d)&&K.push({key:o,color:l,datum:a,index:s,size:X,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===o})});else if(W){var Q=U(q,W.datum),J=Q.left,ee=Q.top;if(wN(J)&&wN(ee)){var et,en,er,ei,eo,ea,es,el,eu,ec,ed,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,ek,eS,eO,e_,eC,eM,eA,eT,eP,eN=null!=(e_=null!=(eC=null!=(eM=null!=(eA=q&&(null==j?void 0:j(q)))?eA:null)?eM:null==k?void 0:null==(eT=k.gridStyles)?void 0:eT.stroke)?eC:null==k?void 0:null==(eP=k.htmlLabel)?void 0:eP.color)?e_:"#222";K.push({key:q,color:eN,datum:W.datum,index:W.index,size:X,x:J,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return ef.createElement(ef.Fragment,null,ef.createElement("svg",{ref:L,style:jU}),F&&ef.createElement(ef.Fragment,null,void 0!==p&&p&&ef.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:z,top:null==_?void 0:_.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jH},ef.createElement("svg",{width:"1",height:S,overflow:"visible"},ef.createElement("line",jB({x1:0,x2:0,y1:0,y2:S,strokeWidth:1.5,stroke:null!=(eh=null!=(ep=null==k?void 0:null==(em=k.gridStyles)?void 0:em.stroke)?ep:null==k?void 0:null==(ev=k.htmlLabel)?void 0:ev.color)?eh:"#222"},b)))),void 0!==d&&d&&ef.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==_?void 0:_.left,top:I,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jH},ef.createElement("svg",{width:O,height:"1",overflow:"visible"},ef.createElement("line",jB({x1:0,x2:O,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eg=null!=(ey=null==k?void 0:null==(eb=k.gridStyles)?void 0:eb.stroke)?ey:null==k?void 0:null==(ex=k.htmlLabel)?void 0:ex.color)?eg:"#222"},r)))),K.map(function(e,t){var n=e.x,r=e.y,i=jI(e,jz);return ef.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jH},ef.createElement("svg",{overflow:"visible"},s(jB({x:0,y:0},i))))}),ef.createElement(R,jB({left:z,top:I,style:jB({},m9,{background:null!=(ew=null==k?void 0:k.backgroundColor)?ew:"white",boxShadow:"0 1px 2px "+(null!=k&&null!=(eE=k.htmlLabel)&&eE.color?(null==k?void 0:null==(ej=k.htmlLabel)?void 0:ej.color)+"55":"#22222255")},null==k?void 0:k.htmlLabel)},w),Z)))}function jY(e){var t=(0,ef.useContext)(w0);return null!=t&&t.tooltipOpen?ef.createElement(j$,e):null}jW.propTypes={isNearestDatum:pX().bool.isRequired},j$.propTypes={renderTooltip:pX().func.isRequired,renderGlyph:pX().func,snapTooltipToDatumX:pX().bool,snapTooltipToDatumY:pX().bool,showVerticalCrosshair:pX().bool,showHorizontalCrosshair:pX().bool,showDatumGlyph:pX().bool,showSeriesGlyphs:pX().bool},jY.propTypes={renderTooltip:pX().func.isRequired,renderGlyph:pX().func,snapTooltipToDatumX:pX().bool,snapTooltipToDatumY:pX().bool,showVerticalCrosshair:pX().bool,showHorizontalCrosshair:pX().bool,showDatumGlyph:pX().bool,showSeriesGlyphs:pX().bool};var jG=n(70390);function jK(e){var t=e.children,n=(0,ef.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return ef.createElement(w1.Provider,{value:n},t)}function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,m5);return m6({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,ef.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,ef.useRef)(null),g=(0,ef.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(wN(o)?o:1/0,2)+Math.pow(wN(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&wN(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&i>0&&g({width:p,height:i,margin:s})},[g,p,i,s]);var x=w4({source:wJ});return(Eo({dataKey:"nearest"===(void 0===f?"nearest":f)?Ei:Er,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:kt}),g)?null==p||null==i?ef.createElement(jG.Z,null,function(t){return ef.createElement(kn,j9({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?ef.createElement(jQ,null,ef.createElement(kn,e)):null==b?ef.createElement(jK,null,ef.createElement(kn,e)):p>0&&i>0?ef.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&ef.createElement("rect",j9({x:s.left,y:s.top,width:p-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},x))):null:m&&v?ef.createElement(j7,{xScale:m,yScale:v,theme:h,initialDimensions:{width:p,height:i,margin:s},horizontal:o},ef.createElement(kn,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function kr(e){return ef.createElement(Ep,e)}function ki(e){return ef.createElement(EL,e)}function ko(){return(ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kd(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=kc(e,ks),u=!!(l.onFocus||l.onBlur);return ef.createElement(ef.Fragment,null,t.map(function(e){var t=e.key,c=kc(e,kl);return null==n?ef.createElement("rect",ku({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):ef.createElement(EG.Z,ku({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function kf(){return(kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kp);return ef.createElement(jt,km({},n,{colorAccessor:t,BarsComponent:kd}))};function kg(){return(kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&r(l)?n>1?e(l,n-1,r,i,o):(0,kD.Z)(o,l):i||(o[o.length]=l)}return o},kB=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},kH=Math.max,kU=function(e,t,n){return t=kH(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=kH(r.length-t,0),a=Array(o);++i0){if(++g>=800)return arguments[0]}else g=0;return k$.apply(void 0,arguments)}),kK=n(9878),kX=kG(kU(b=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,kk.Z)(t,function(t){return t=(0,kO.Z)(t,e),r||(r=t.length>1),t}),(0,kP.Z)(e,(0,kK.Z)(e),n),r&&(n=(0,kS.Z)(n,7,kR));for(var i=t.length;i--;)kT(n,t[i]);return n},void 0,function(e){return(null==e?0:e.length)?kI(e,1):[]}),b+"");function kQ(e){return 6e4*e}function kJ(e){return 36e5*e}function k0(e){return 864e5*e}function k1(e){return 1e3*e}var k2=n(92762);function k4(e){let{initialChartType:t,chartType:n,setChartType:r,curveType:i,setCurveType:o,isLine:a,isStack:s,stackOffset:l,setStackOffset:u,xAxisOrientation:c,setXAxisOrientation:d,yAxisOrientation:f,setYAxisOrientation:h}=e,p="line"===t,m="area"===t;return(0,ed.jsx)(uR,{trigger:(0,ed.jsx)(lD,{tip:"Configure chart",variant:"gray",size:"small",children:(0,ed.jsx)(lL.shL,{})}),title:"Chart settings",contentVariants:{className:"max-h-[70vh]"},children:(0,ed.jsxs)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-10 py-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Graph type"}),(0,ed.jsxs)(fk,{value:n,onValueChange:e=>r(e),className:"flex flex-col gap-1",children:[(0,ed.jsx)(fj,{value:"line",children:"Line"}),(0,ed.jsx)(fj,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,ed.jsx)(fj,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,ed.jsx)(fj,{disabled:p,value:"area",children:"Area"}),(0,ed.jsx)(fj,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Stack series offset"}),(0,ed.jsxs)(fk,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,ed.jsxs)(fj,{disabled:!s,value:"none",children:["None",(0,ed.jsx)(f6,{children:"zero-baseline"})]}),(0,ed.jsxs)(fj,{disabled:!s,value:"diverging",children:["Diverging",(0,ed.jsx)(f6,{children:"non zero-baseline"})]}),(0,ed.jsxs)(fj,{disabled:!s,value:"expand",children:["Expand",(0,ed.jsx)(f6,{children:"values sum to 1"})]}),(0,ed.jsxs)(fj,{disabled:!s,value:"wiggle",children:["Wiggle",(0,ed.jsx)(f6,{children:"stream graph"})]})]})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Curve shape"}),(0,ed.jsxs)(fk,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,ed.jsx)(fj,{disabled:!a,value:"linear",children:"Linear"}),(0,ed.jsx)(fj,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,ed.jsx)(fj,{disabled:!a,value:"step",children:"Step"})]})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{weight:"semibold",children:"Axes"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,ed.jsxs)(fk,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,ed.jsx)(fj,{value:"bottom",children:"Bottom"}),(0,ed.jsx)(fj,{value:"top",children:"Top"})]}),(0,ed.jsxs)(fk,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,ed.jsx)(fj,{value:"left",children:"Left"}),(0,ed.jsx)(fj,{value:"right",children:"Right"})]})]})]})]})})}let k3=(0,ef.forwardRef)((e,t)=>{let{className:n}=e;return(0,ed.jsxs)("div",{ref:t,className:(0,eX.cx)("flex gap-1 items-center",n),children:[(0,ed.jsx)(k5,{}),(0,ed.jsx)(k5,{}),(0,ed.jsx)(k5,{})]})});function k5(){return(0,ed.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function k6(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,ef.useState)(!(0,f2.Tb)()&&!n.disableAnimations),{resolvedTheme:o}=(0,p$.F)(),a=(0,ef.useMemo)(()=>"dark"===o?y_:yO,[o]),[s,l]=(0,ef.useState)("center"),[u,c]=(0,ef.useState)([!1,!1]),[d,f]=u,[h,p]=(0,k2.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,v]=(0,k2.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[g,y]=(0,ef.useState)(!0),[b,x]=(0,ef.useState)(!0),[w,E]=(0,ef.useState)(!1),[j,k]=(0,ef.useState)(!0),[S,O]=(0,ef.useState)(!0),[_,C]=(0,k2.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[M,A]=(0,k2.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[T,P]=(0,k2.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,ef.useMemo)(()=>n.chartType,[]),R=(0,ef.useMemo)(()=>n.curveType,[]),D=(0,ef.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(_),Z=["barstack","areastack"].includes(_),F=a.xyChartTheme.gridStyles.stroke,[V,z]=(0,ef.useState)(!1),[I,B]=(0,ef.useState)("star"),H=(0,ef.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===I?(0,ed.jsx)(yu,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===I?(0,ed.jsx)(yf,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===I?(0,ed.jsx)(yv,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,ed.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[I,F]),U=(0,ef.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==_&&"bargroup"!==_?[...t,{...e,timestamp:e.timestamp+k0(1)}]:t},[_,t]),W=(0,ef.useMemo)(()=>{if(U.length<2)return 0;let e=[U[0].timestamp,U[U.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys(kX(t[0],"timestamp")),[t]),$=(0,ef.useMemo)(()=>n.enabledGraph||q,[q,n]),Y=(0,ef.useMemo)(()=>n.enabledTip||q,[q,n]),G=(0,ef.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]);return{id:e,accessors:G,animationTrajectory:s,config:n,scales:(0,ef.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:U,curve:(0,ef.useMemo)(()=>"cardinal"===M&&yg.ZP||"step"===M&&v1.ZP||yy.Z,[M]),chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:_,curveType:M,keys:q,enabledGraph:$,enabledTip:Y,renderBarGroup:"bargroup"===_,renderBarStack:"barstack"===_,enableTooltipGlyph:V,renderTooltipGlyph:H,renderAreaSeries:"area"===_,renderAreaStack:"areastack"===_,renderLineSeries:"line"===_,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:g,showVerticalCrosshair:b,snapTooltipToDatum:!Z&&j,stackOffset:T,theme:a,margin:(0,ef.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]),xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:E,setSnapTooltipToDatum:k,setSharedTooltip:O,setChartType:C,setCurveType:A,setStackOffset:P,setEnableTooltipGlyph:z,setTooltipGlyphComponent:B,...r?{Annotation:wB,AreaSeries:Ev,AreaStack:EF,Axis:EU,BarGroup:E8,BarSeries:ji,BarStack:ju,GlyphSeries:jp,Grid:jE,LineSeries:jC,Tooltip:jY,XYChart:kn}:{AreaSeries:kr,AreaStack:ki,Axis:ka,BarGroup:kh,BarSeries:kv,BarStack:ky,Grid:kE,LineSeries:kj,Tooltip:jY,XYChart:kn}}}(t,r,i),f=(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,ed.jsx)(k4,{...d})]}),(0,ed.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,ed.jsx)(g9,{children:e=>{let{width:t,height:n}=e;return a?(0,ed.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,ed.jsx)(k3,{className:"scale-150"})}):0===r.length&&l?l:(0,ed.jsx)(yt,{...d,width:t,height:n})}})]});return"panel"===u?(0,ed.jsx)(nA,{className:"relative p-px",style:{height:n},children:f}):(0,ed.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var k8="text/plain",k7=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var k9="undefined"==typeof window?void 0:window,Se="undefined"==typeof globalThis?void 0:globalThis,St=null!=(Y=null==k9?void 0:k9.Promise)?Y:null==Se?void 0:Se.Promise,Sn="undefined"==typeof navigator?void 0:navigator,Sr=null==Sn?void 0:Sn.clipboard;null==(G=null==Sr?void 0:Sr.read)||G.bind(Sr),null==(K=null==Sr?void 0:Sr.readText)||K.bind(Sr);var Si=null==(X=null==Sr?void 0:Sr.write)?void 0:X.bind(Sr),So=null==(Q=null==Sr?void 0:Sr.writeText)?void 0:Q.bind(Sr),Sa=null==k9?void 0:k9.ClipboardItem,Ss=function(){if(!St)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return St}();function Sl(e,t,n){for(var r in k7("listener called"),e.success=!0,t){var i=t[r],o=n.clipboardData;o.setData(r,i),r===k8&&o.getData(r)!==i&&(k7("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Su(e){var t={success:!1},n=Sl.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function Sc(e,t){Sd(e);var n=Su(t);return Sf(),n}function Sd(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function Sf(){var e=document.getSelection();e&&e.removeAllRanges()}function Sh(e){var t,n,r,i,o,a,s,l=k8 in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==k9?void 0:k9.clipboardData)&&void 0!==(null==k9?void 0:k9.clipboardData.setData)){if(!l)throw Error("No `text/plain` value was specified.");if(function(e){if(!k9.clipboardData)return!1;var t=k9.clipboardData.setData("Text",e);return t&&k7("writeTextIE worked"),t}(e[k8]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return Su(e)?(k7("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(k7('UA "Edge" => assuming success'),!0):Sc(document.body,e)?(k7("copyUsingTempSelection worked"),!0):((a=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),a.textContent="temporary element",document.body.appendChild(a),s=Sc(a,e),document.body.removeChild(a),s)?(k7("copyUsingTempElem worked"),!0):(t=e[k8],k7("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(k7("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),Sd(i),o=document.execCommand("copy"),Sf(),document.body.removeChild(n),!!o&&(k7("copyTextUsingDOM worked"),!0))}function Sp(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return Ss.all(n).then(t=>{for(var n={},r=0;rSs.resolve(!0),Sg=Ss.resolve(!1);function Sy(e){return new Ss((t,n)=>{try{t(e())}catch(e){n(e)}})}function Sb(e){var t;if(!Sh(((t={})[k8]=e,t)))throw Error("writeText() failed")}function Sx(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function Sw(e){return Sp(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),Sa?n(new Sa(t,i)):r("window.ClipboardItem is not defined")}))}let SE={data:""},Sj=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||SE,Sk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,SS=/\/\*[^]*?\*\/|\s\s+|\n/g,SO=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?SO(a,o):o+"{"+SO(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=SO(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=SO.p?SO.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},S_={},SC=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+SC(e[n]);return t}return e},SM=(e,t,n,r,i)=>{var o;let a=SC(e),s=S_[a]||(S_[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!S_[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=Sk.exec(e.replace(SS,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);S_[s]=SO(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=S_[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},SA=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":SO(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function ST(e){let t=this||{},n=e.call?e(t.p):e;return SM(n.unshift?n.raw?SA(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Sj(t.target),t.g,t.o,t.k)}ST.bind({g:1});let SP,SN,SR,SD=ST.bind({k:1});function SL(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:SN&&SN()},s),n.o=/ *go\d+/.test(l),s.className=ST.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),SR&&u[0]&&SR(s),SP(u,s)}return t?t(i):i}}function SZ(){return(SZ=Object.assign||function(e){for(var t=1;t-1&&Sq.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return SZ({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||SG[t.type],style:SZ({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return SZ({},n,{toasts:i})},SX=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),SZ({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||Sz()}));return SY({type:J.UPSERT_TOAST,toast:i}),i.id}},SQ=function(e,t){return SX("blank")(e,t)};SQ.error=SX("error"),SQ.success=SX("success"),SQ.loading=SX("loading"),SQ.custom=SX("custom"),SQ.dismiss=function(e){SY({type:J.DISMISS_TOAST,toastId:e})},SQ.remove=function(e){return SY({type:J.REMOVE_TOAST,toastId:e})},SQ.promise=function(e,t,n){var r=SQ.loading(t.loading,SZ({},n,null==n?void 0:n.loading));return e.then(function(e){return SQ.success(SV(t.success,e),SZ({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){SQ.error(SV(t.error,e),SZ({id:r},n,null==n?void 0:n.error))}),e};var SJ=function(e){var t=SK(e),n=t.toasts,r=t.pausedAt;(0,ef.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&SQ.dismiss(t.id);return}return setTimeout(function(){return SQ.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,ef.useMemo)(function(){return{startPause:function(){SY({type:J.START_PAUSE,time:Date.now()})},endPause:function(){r&&SY({type:J.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return SY({type:J.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=i.gutter,s=void 0===a?8:a,l=i.defaultPosition,u=n.filter(function(t){return(t.position||l)===(e.position||l)&&t.height}),c=u.findIndex(function(t){return t.id===e.id}),d=u.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Oj=function(){return e},e}j=ef.createElement,SO.p=void 0,SP=j,SN=void 0,SR=void 0;var Ok=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return SZ({left:0,right:0,display:"flex",position:"absolute",transition:SI()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},OS=ST(Oj()),OO=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=SJ(i),c=u.toasts,d=u.handlers;return(0,ef.createElement)("div",{style:SZ({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=Ok(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,ef.createElement)("div",{ref:l,className:e.visible?OS:"",key:e.id,style:s},"custom"===e.type?SV(e.message,e):a?a(e):(0,ef.createElement)(OE,{toast:e,position:i}))}))};function O_(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,ed.jsxs)("div",{className:"flex flex-col overflow-hidden",children:[(0,ed.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,ed.jsx)(n_,{className:"flex items-center",color:"subtle",children:t}),(0,ed.jsx)(lN,{content:n,children:(0,ed.jsx)(n_,{ellipsis:!0,className:"flex-1",children:n})}),(0,ed.jsx)("div",{className:"flex items-center pl-1",children:(0,ed.jsx)(lD,{icon:"hover",size:"none",onClick:e=>{SQ.dismiss(i)},children:(0,ed.jsx)(lL.PcV,{})})})]}),r&&(0,ed.jsx)("div",{className:"pb-1",children:(0,ed.jsx)(uT,{children:(0,ed.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,ed.jsx)(n_,{color:"subtle",size:"14",children:r})})})})]})}let OC=e=>{let{title:t,body:n,icon:r,options:i={}}=e;SQ(e=>(0,ed.jsx)(O_,{toastId:e.id,title:t,body:n,icon:r}),OT(i))};function OM(e){let{title:t,body:n,options:r}=e;OC({title:t,body:n,icon:(0,ed.jsx)(lL.yar,{className:"text-green-600"}),options:r})}function OA(e){let{title:t,body:n,options:r}=e;OC({title:t,body:n,icon:(0,ed.jsx)(lL.T80,{className:"text-red-600"}),options:r})}function OT(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eX.cx)(nM(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,ed.jsx)("div",{className:"!flex-none w-5",children:(0,ed.jsx)(lL.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,ed.jsx)("div",{className:"!flex-none w-5",children:(0,ed.jsx)(lL.Jsc,{className:"w-5 text-red-600"})})},...t}}function OP(){return(0,ed.jsx)(OO,{toastOptions:OT(),containerStyle:{zIndex:20}})}let ON=(e,t)=>{OC({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,ed.jsx)(lL.vtB,{})}),Sy(()=>So?(k7("Using `navigator.clipboard.writeText()`."),So(e).catch(Sb)):Ss.resolve(Sb(e)))},OR=(e,t,n)=>{var r;OC({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,ed.jsx)(lL.vtB,{})}),r=[new ClipboardItem({[t]:e})],Sy(()=>Si&&Sa?(k7("Using `navigator.clipboard.write()`."),Ss.all(r.map(Sw)).then(e=>Si(e).then(Sv).catch(e=>{if(!Sx(r,k8)&&!Sx(r,"text/html"))throw e;return Sg}))):Sg).then(e=>{var t;return e?Sm:(Sx(r,k8)||k7("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call suppressWarnings() to suppress this warning."),Sp((t=r[0]).types,function(e){return t.getType(e).then(e=>new Ss((t,n)=>{var r=new FileReader;r.addEventListener("load",()=>{var e=r.result;"string"==typeof e?t(e):n("could not convert blob to string")}),r.readAsText(e)}))}).then(e=>{if(!Sh(e))throw Error("write() failed")}))})};function OD(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function OL(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function OZ(e,t,n){return t?"".concat(e," ").concat(OD(t,n)):"".concat(e)}function OF(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let OV={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},Oz={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},OI={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function OB(e){return e?OV[e]:void 0}function OH(e){return e?OI[e]:void 0}function OU(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,font:c,color:d="contrast",className:f,siascanUrl:h,contextMenu:p}=e,m=i||(r?Oz[r]:void 0),v=a||(r&&["ip","hostIp"].includes(r)?20:12),g=OL(t),y=n||g,b="".concat(null==y?void 0:y.slice(0,v)).concat(((null==y?void 0:y.length)||0)>v?"...":"");return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex items-center",f),children:[o?(0,ed.jsx)(dS,{href:o,underline:"hover",size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}):(0,ed.jsx)(n_,{size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}),(0,ed.jsx)("div",{className:"ml-1 flex items-center",children:p||(0,ed.jsx)(OW,{cleanValue:g,label:m,size:s,siascanUrl:h,type:r})})]})}function OW(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:o,type:a}=e;return(0,ed.jsxs)(dl,{trigger:(0,ed.jsx)(lD,{size:"none",variant:"ghost",children:(0,ed.jsx)(lL.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,ed.jsxs)(du,{onSelect:e=>{ON(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,ed.jsx)(dd,{children:(0,ed.jsx)(lL.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,ed.jsx)(dS,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(o,a,r),className:"block w-full",underline:"none",children:(0,ed.jsxs)(du,{onClick:e=>{e.stopPropagation()},children:[(0,ed.jsx)(dd,{children:(0,ed.jsx)(lL.V8Q,{})}),"View on Siascan"]})})]})}function Oq(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,gX.yF)(String(t),{units:"SF"});return(0,ed.jsx)(lN,{content:(i?"".concat(i," "):"")+a,children:(0,ed.jsxs)(n_,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function O$(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,ed.jsxs)(n_,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,gX.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,gX.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,ed.jsx)(n_,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,ed.jsx)(lN,{content:(i?"".concat(i," "):"")+(0,gX.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function OY(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,f4.BW)(),{settings:{currency:d}}=(0,f2.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(fJ())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,ed.jsx)(n_,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(OG(p.absoluteValue(),m))});return u?(0,ed.jsx)(lN,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(OG(p.absoluteValue(),l)),children:v}):v}function OG(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function OK(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,f2.Hv)(),v=(0,f4.BW)(),g=(0,ef.useMemo)(()=>(0,ed.jsx)(O$,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,a,u,c,d,f,m,h,p]),y=(0,ef.useMemo)(()=>(0,ed.jsx)(OY,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,ed.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,ed.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function OX(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,ed.jsx)(lN,{content:(i?"".concat(i," "):"")+s(t),children:(0,ed.jsx)(n_,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var OQ=n(19510),OJ=1/0,O0=function(e){var t,n=(t=e)?(t=vK(t))===OJ||t===-OJ?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},O1=Math.min,O2=function(e,t){if((e=O0(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=O1(e,4294967295);t="function"==typeof(n=t)?n:kq.Z,e-=4294967295;for(var o=(0,OQ.Z)(i,t);++r(0,ed.jsxs)("div",{className:(0,eX.cx)("relative flex gap-4 p-3.5",(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,ed.jsx)(hn,{className:"w-[60px] h-[50px]"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ed.jsx)(hn,{className:"w-[90%] h-[20px]"}),(0,ed.jsx)(hn,{className:"w-[140px] h-[14px]"})]})]},e))})}var O3=n(66700),O5=n(19785);function O6(e,t){(0,O5.Z)(2,arguments);var n=(0,O3.Z)(e),r=(0,O3.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var O8={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},O7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function O9(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var _e={date:O9({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:O9({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:O9({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _n(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function _r(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:_e,formatRelative:function(e,t,n,r){return _t[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:_n({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_n({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:_n({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:_n({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:_n({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(k={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(k.matchPattern);if(!n)return null;var r=n[0],i=e.match(k.parsePattern);if(!i)return null;var o=k.valueCallback?k.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:_r({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:_r({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_r({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:_r({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:_r({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function _o(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var _a=n(81441),_s=n(32690),_l=n(36202),_u=n(25186),_c=function(e){e=(0,_u.Z)(e);var t=(0,_s.Z)(e)?(0,_l.Z)(e):void 0,n=t?t[0]:e.charAt(0),r=t?(0,_a.Z)(t,1).join(""):e.slice(1);return n.toUpperCase()+r};function _d(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,ed.jsx)(lK,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,ed.jsx)(dS,{href:i,underline:"none",children:s})||s;return t?(0,ed.jsx)(lN,{content:n||OB(t),children:(0,ed.jsx)("div",{className:"",children:l})}):l}function _f(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex gap-4 p-4",(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,ed.jsx)(_d,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function _h(e){let t=e.sc,n=e.sf,r=e.hash&&(0,ed.jsx)(OU,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&OH(e.txType)||OB(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?_c(i):i;return(0,ed.jsx)(_f,{...e,children:(0,ed.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,ed.jsx)(n_,{color:"subtle",weight:"semibold",children:(0,ed.jsx)(dS,{href:e.blockHref,underline:"none",children:(0,gX.yF)(e.height)})}),o?(0,ed.jsx)(lN,{content:o,children:(0,ed.jsx)(n_,{ellipsis:!0,weight:"medium",children:o})}):(0,ed.jsx)(n_,{ellipsis:!0,weight:"medium",children:r})]}),(0,ed.jsx)("div",{className:"flex-1"}),(0,ed.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,ed.jsx)(OK,{variant:e.scVariant,value:t}),!!n&&(0,ed.jsx)(Oq,{variant:e.sfVariant,value:n})]})]}),(0,ed.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ed.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,ed.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(n_,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,ed.jsx)(n_,{color:"verySubtle",children:(0,ed.jsx)(lL.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,ed.jsx)(n_,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,O5.Z)(2,arguments);var a=o.locale||_i;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=O6(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(n=(0,O3.Z)(t),r=(0,O3.Z)(e)):(n=(0,O3.Z)(e),r=(0,O3.Z)(t));var u=function(e,t,n){(0,O5.Z)(2,arguments);var r,i=function(e,t){return(0,O5.Z)(2,arguments),(0,O3.Z)(e).getTime()-(0,O3.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?O8[r]:O8.trunc)(i)}(r,n),c=Math.round((u-(_o(r)-_o(n))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440)return a.formatDistance("aboutXHours",Math.round(c/60),l);if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200)return a.formatDistance("xDays",Math.round(c/1440),l);if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,O5.Z)(2,arguments);var n,r=(0,O3.Z)(e),i=(0,O3.Z)(t),o=O6(r,i),a=Math.abs(function(e,t){(0,O5.Z)(2,arguments);var n=(0,O3.Z)(e),r=(0,O3.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=O6(r,i)===-o;(function(e){(0,O5.Z)(1,arguments);var t=(0,O3.Z)(e);return(function(e){(0,O5.Z)(1,arguments);var t=(0,O3.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,O5.Z)(1,arguments);var t=(0,O3.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,O3.Z)(e))&&1===a&&1===O6(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12)return a.formatDistance("xMonths",Math.round(c/43200),l);var d=i%12,f=Math.floor(i/12);return d<3?a.formatDistance("aboutXYears",f,l):d<9?a.formatDistance("overXYears",f,l):a.formatDistance("almostXYears",f+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function _p(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||l||(c="skeleton"),((null==r?void 0:r.length)||l)&&(c="currentData"),(0,ed.jsx)(nA,{children:(0,ed.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,ed.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,ed.jsx)(dm,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,ed.jsx)("div",{className:"flex-1"}),n]}),(0,ed.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(o||(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center justify-center h-[84px]",(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,ed.jsx)(n_,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===c&&(l||(null==r?void 0:r.map((e,t)=>(0,ed.jsx)(_h,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,ed.jsx)(O4,{skeletonCount:s})]})]})})}function _m(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:v}=e,g=(0,ed.jsx)(n_,{color:"subtle",size:"12",className:"h-6",children:f});return(0,ed.jsx)(nA,{children:(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",v?"cursor-pointer":""),onClick:v,children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,ed.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,ed.jsx)(n_,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?_c(t):t}),i]}),(0,ed.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,ed.jsx)(hn,{className:"h-12 w-[150px]"}):(0,ed.jsxs)(ed.Fragment,{children:[void 0!==u&&(0,ed.jsx)(OK,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,ed.jsx)(Oq,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,ed.jsx)(OU,{scaleSize:p,label:OB(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,ed.jsx)(n_,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,ed.jsx)(OU,{scaleSize:p,label:"hash",value:l}),void 0!==a&&(0,ed.jsx)(n_,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:a})]}),g?(0,ed.jsx)("div",{className:"mt-1",children:m?(0,ed.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,ed.jsx)(hn,{className:"h-4 w-[100px]"})}):h?(0,ed.jsx)(lN,{content:h,children:g}):g}):null]})]})})})}function _v(e){let{title:t,actions:n,name:r}=e;return(0,ed.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,ed.jsx)(dE,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function _g(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,ed.jsx)(n_,{size:"14",color:"red",children:o}):null}function _y(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,ed.jsxs)("div",{className:(0,eX.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,ed.jsx)(_v,{name:i,title:n,actions:r}),(0,ed.jsx)(_g,{form:t,name:i})]}):null}function _b(e){let{children:t,...n}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ed.jsx)(_y,{...n}),t]})}function _x(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsx)(lD,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,ed.jsx)(k3,{}):i})})}function _w(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,ed.jsx)(_O,{formik:t,title:n,name:r,children:"number"===g?(0,ed.jsx)(_j,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,ed.jsx)(_k,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,ed.jsx)(_E,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function _E(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,ed.jsx)(fO,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function _j(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,ed.jsx)(f1,{id:n,units:r,name:n,placeholder:new(fJ())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function _k(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,ed.jsx)(f5,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fJ())(t.values[n]),placeholder:new(fJ())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function _S(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,ed.jsxs)("div",{className:(0,eX.cx)("flex justify-between items-center gap-4",s),children:[i?(0,ed.jsx)(dE,{htmlFor:o,children:i}):(0,ed.jsx)("div",{}),l&&(0,ed.jsx)(n_,{size:"14",color:"red",children:u})]})}function _O(e){let{children:t,...n}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ed.jsx)(_S,{...n}),t]})}function __(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,ed.jsxs)(ed.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,ed.jsx)(n_,{color:"red",children:n.status.error}),(0,ed.jsx)(lD,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,ed.jsx)(k3,{}):a})]})}let _C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function _M(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function _A(e){return"nodeType"in e}function _T(e){var t,n;return e?_M(e)?e:_A(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function _P(e){let{Document:t}=_T(e);return e instanceof t}function _N(e){return!_M(e)&&e instanceof _T(e).HTMLElement}function _R(e){return e instanceof _T(e).SVGElement}function _D(e){return e?_M(e)?e.document:_A(e)?_P(e)?e:_N(e)||_R(e)?e.ownerDocument:document:document:document}let _L=_C?ef.useLayoutEffect:ef.useEffect;function _Z(e){let t=(0,ef.useRef)(e);return _L(()=>{t.current=e}),(0,ef.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function _V(e,t){let n=(0,ef.useRef)();return(0,ef.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function _z(e){let t=_Z(e),n=(0,ef.useRef)(null),r=(0,ef.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function _I(e){let t=(0,ef.useRef)();return(0,ef.useEffect)(()=>{t.current=e},[e]),t.current}let _B={};function _H(e,t){return(0,ef.useMemo)(()=>{if(t)return t;let n=null==_B[e]?0:_B[e]+1;return _B[e]=n,e+"-"+n},[e,t])}function _U(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let _W=_U(1),_q=_U(-1);function _$(e){if(!e)return!1;let{KeyboardEvent:t}=_T(e.target);return t&&e instanceof t}function _Y(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=_T(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let _G=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[_G.Translate.toString(e),_G.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),_K="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",_X={display:"none"};function _Q(e){let{id:t,value:n}=e;return ef.createElement("div",{id:t,style:_X},n)}function _J(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return ef.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let _0=(0,ef.createContext)(null),_1={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},_2={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _4(e){let{announcements:t=_2,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=_1}=e,{announce:o,announcement:a}=function(){let[e,t]=(0,ef.useState)("");return{announce:(0,ef.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=_H("DndLiveRegion"),[l,u]=(0,ef.useState)(!1);if((0,ef.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,ef.useContext)(_0);(0,ef.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,ef.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}}),[o,t])),!l)return null;let c=ef.createElement(ef.Fragment,null,ef.createElement(_Q,{id:r,value:i.draggable}),ef.createElement(_J,{id:s,announcement:a}));return n?(0,tI.createPortal)(c,n):c}function _3(){}function _5(e,t){return(0,ef.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(S=ee||(ee={})).DragStart="dragStart",S.DragMove="dragMove",S.DragEnd="dragEnd",S.DragCancel="dragCancel",S.DragOver="dragOver",S.RegisterDroppable="registerDroppable",S.SetDroppableDisabled="setDroppableDisabled",S.UnregisterDroppable="unregisterDroppable";let _6=Object.freeze({x:0,y:0});function _8(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let _7=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(r0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(_8)};function _9(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:_6}let Ce=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function Ct(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let Cn={ignoreTransform:!1};function Cr(e,t){void 0===t&&(t=Cn);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=_T(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=Ct(t);if(!r)return e;let{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function Ci(e){return Cr(e,{ignoreTransform:!0})}function Co(e,t){let n=[];return e?function r(i){var o;if(null!=t&&n.length>=t||!i)return n;if(_P(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!_N(i)||_R(i)||n.includes(i))return n;let a=_T(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=_T(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,a)&&n.push(i),void 0===(o=a)&&(o=_T(i).getComputedStyle(i)),"fixed"===o.position)?n:r(i.parentNode)}(e):n}function Ca(e){let[t]=Co(e,1);return null!=t?t:null}function Cs(e){return _C&&e?_M(e)?e:_A(e)?_P(e)||e===_D(e).scrollingElement?window:_N(e)?e:null:null:null}function Cl(e){return _M(e)?e.scrollX:e.scrollLeft}function Cu(e){return _M(e)?e.scrollY:e.scrollTop}function Cc(e){return{x:Cl(e),y:Cu(e)}}function Cd(e){return!!_C&&!!e&&e===document.scrollingElement}function Cf(e){let t={x:0,y:0},n=Cd(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(O=et||(et={}))[O.Forward=1]="Forward",O[O.Backward=-1]="Backward";let Ch={x:.2,y:.2};function Cp(e){return e.reduce((e,t)=>_W(e,Cc(t)),_6)}function Cm(e,t){if(void 0===t&&(t=Cr),!e)return;let{top:n,left:r,bottom:i,right:o}=t(e);Ca(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let Cv=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Cl(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Cu(t),0)}]];class Cg{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Co(t),r=Cp(n);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,Cv))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(n),a=r[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Cy{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Cb(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function Cx(e){e.preventDefault()}function Cw(e){e.stopPropagation()}(_=en||(en={})).Click="click",_.DragStart="dragstart",_.Keydown="keydown",_.ContextMenu="contextmenu",_.Resize="resize",_.SelectionChange="selectionchange",_.VisibilityChange="visibilitychange",(C=er||(er={})).Space="Space",C.Down="ArrowDown",C.Right="ArrowRight",C.Left="ArrowLeft",C.Up="ArrowUp",C.Esc="Escape",C.Enter="Enter";let CE={start:[er.Space,er.Enter],cancel:[er.Esc],end:[er.Space,er.Enter]},Cj=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case er.Right:return{...n,x:n.x+25};case er.Left:return{...n,x:n.x-25};case er.Down:return{...n,y:n.y+25};case er.Up:return{...n,y:n.y-25}}};class Ck{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Cy(_D(t)),this.windowListeners=new Cy(_T(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(en.Resize,this.handleCancel),this.windowListeners.add(en.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(en.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Cm(n),t(_6)}handleKeyDown(e){if(_$(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=CE,coordinateGetter:o=Cj,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:_6;this.referenceCoordinates||(this.referenceCoordinates=u);let c=o(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=_q(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=Cf(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===er.Right?h.right-h.width/2:h.right,Math.max(i===er.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===er.Down?h.bottom-h.height/2:h.bottom,Math.max(i===er.Down?h.top:h.top+h.height/2,c.y))},m=i===er.Right&&!s||i===er.Left&&!l,v=i===er.Down&&!u||i===er.Up&&!o;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,o=i===er.Right&&e<=d.x||i===er.Left&&e>=f.x;if(o&&!t.y){n.scrollTo({left:e,behavior:a});return}o?r.x=n.scrollLeft-e:r.x=i===er.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(v&&p.y!==c.y){let e=n.scrollTop+t.y,o=i===er.Down&&e<=d.y||i===er.Up&&e>=f.y;if(o&&!t.x){n.scrollTo({top:e,behavior:a});return}o?r.y=n.scrollTop-e:r.y=i===er.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,_W(_q(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function CS(e){return!!(e&&"distance"in e)}function CO(e){return!!(e&&"delay"in e)}Ck.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=CE,onActivation:i}=t,{active:o}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class C_{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=_T(e);return e instanceof t?e:_D(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=_D(o),this.documentListeners=new Cy(this.document),this.listeners=new Cy(n),this.windowListeners=new Cy(_T(o)),this.initialCoordinates=null!=(r=_Y(i))?r:_6,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(en.Resize,this.handleCancel),this.windowListeners.add(en.DragStart,Cx),this.windowListeners.add(en.VisibilityChange,this.handleCancel),this.windowListeners.add(en.ContextMenu,Cx),this.documentListeners.add(en.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(CO(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(CS(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(en.Click,Cw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(en.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;let s=null!=(t=_Y(e))?t:_6,l=_q(r,s);if(!n&&a){if(CS(a)){if(null!=a.tolerance&&Cb(l,a.tolerance))return this.handleCancel();if(Cb(l,a.distance))return this.handleStart()}return CO(a)&&Cb(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===er.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let CC={move:{name:"pointermove"},end:{name:"pointerup"}};class CM extends C_{constructor(e){let{event:t}=e;super(e,CC,_D(t.target))}}CM.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let CA={move:{name:"mousemove"},end:{name:"mouseup"}};(M=ei||(ei={}))[M.RightClick=2]="RightClick";class CT extends C_{constructor(e){super(e,CA,_D(e.event.target))}}CT.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ei.RightClick&&(null==r||r({event:n}),!0)}}];let CP={move:{name:"touchmove"},end:{name:"touchend"}};class CN extends C_{constructor(e){super(e,CP)}static setup(){return window.addEventListener(CP.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(CP.move.name,e)};function e(){}}}CN.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(A=eo||(eo={}))[A.Pointer=0]="Pointer",A[A.DraggableRect=1]="DraggableRect",(T=ea||(ea={}))[T.TreeOrder=0]="TreeOrder",T[T.ReversedTreeOrder=1]="ReversedTreeOrder";let CR={x:{[et.Backward]:!1,[et.Forward]:!1},y:{[et.Backward]:!1,[et.Forward]:!1}};(P=es||(es={}))[P.Always=0]="Always",P[P.BeforeDragging=1]="BeforeDragging",P[P.WhileDragging=2]="WhileDragging",(el||(el={})).Optimized="optimized";let CD=new Map;function CL(e,t){return _V(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function CZ(e){let{callback:t,disabled:n}=e,r=_Z(t),i=(0,ef.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,ef.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function CF(e){return new Cg(Cr(e),e)}function CV(e,t,n){void 0===t&&(t=CF);let[r,i]=(0,ef.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o},null),o=function(e){let{callback:t,disabled:n}=e,r=_Z(t),i=(0,ef.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,ef.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=CZ({callback:i});return _L(()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),r}let Cz=[];function CI(e,t){void 0===t&&(t=[]);let n=(0,ef.useRef)(null);return(0,ef.useEffect)(()=>{n.current=null},t),(0,ef.useEffect)(()=>{let t=e!==_6;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?_q(e,n.current):_6}function CB(e){return(0,ef.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let CH=[];function CU(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return _N(t)?t:e}let CW=[{sensor:CM,options:{}},{sensor:Ck,options:{}}],Cq={current:{}},C$={draggable:{measure:Ci},droppable:{measure:Ci,strategy:es.WhileDragging,frequency:el.Optimized},dragOverlay:{measure:Cr}};class CY extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let CG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new CY,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_3},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:C$,measureDroppableContainers:_3,windowRect:null,measuringScheduled:!1},CK={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_3,draggableNodes:new Map,over:null,measureDroppableContainers:_3},CX=(0,ef.createContext)(CK),CQ=(0,ef.createContext)(CG);function CJ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new CY}}}function C0(e,t){switch(t.type){case ee.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ee.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ee.DragEnd:case ee.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ee.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new CY(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case ee.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let a=new CY(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case ee.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let o=new CY(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function C1(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,ef.useContext)(CX),o=_I(r),a=_I(null==n?void 0:n.id);return(0,ef.useEffect)(()=>{if(!t&&!r&&o&&null!=a){if(!_$(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=e.matches(_K)?e:e.querySelector(_K);if(t){t.focus();break}}})}},[r,t,i,a,o]),null}function C2(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let C4=(0,ef.createContext)({..._6,scaleX:1,scaleY:1});(N=eu||(eu={}))[N.Uninitialized=0]="Uninitialized",N[N.Initializing=1]="Initializing",N[N.Initialized=2]="Initialized";let C3=(0,ef.memo)(function(e){var t,n,r,i,o,a;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=CW,collisionDetection:f=_7,measuring:h,modifiers:p,...m}=e,[v,g]=(0,ef.useReducer)(C0,void 0,CJ),[y,b]=function(){let[e]=(0,ef.useState)(()=>new Set),t=(0,ef.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,ef.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[x,w]=(0,ef.useState)(eu.Uninitialized),E=x===eu.Initialized,{draggable:{active:j,nodes:k,translate:S},droppable:{containers:O}}=v,_=j?k.get(j):null,C=(0,ef.useRef)({initial:null,translated:null}),M=(0,ef.useMemo)(()=>{var e;return null!=j?{id:j,data:null!=(e=null==_?void 0:_.data)?e:Cq,rect:C}:null},[j,_]),A=(0,ef.useRef)(null),[T,P]=(0,ef.useState)(null),[N,R]=(0,ef.useState)(null),D=_F(m,Object.values(m)),L=_H("DndDescribedBy",s),Z=(0,ef.useMemo)(()=>O.getEnabled(),[O]),F=(0,ef.useMemo)(()=>({draggable:{...C$.draggable,...null==h?void 0:h.draggable},droppable:{...C$.droppable,...null==h?void 0:h.droppable},dragOverlay:{...C$.dragOverlay,...null==h?void 0:h.dragOverlay}}),[null==h?void 0:h.draggable,null==h?void 0:h.droppable,null==h?void 0:h.dragOverlay]),{droppableRects:V,measureDroppableContainers:z,measuringScheduled:I}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[o,a]=(0,ef.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,ef.useRef)(e),d=function(){switch(u){case es.Always:return!1;case es.BeforeDragging:return n;default:return!n}}(),f=_F(d),h=(0,ef.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,ef.useRef)(null),m=_V(t=>{if(d&&!n)return CD;if(!t||t===CD||c.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Cg(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,d,l]);return(0,ef.useEffect)(()=>{c.current=e},[e]),(0,ef.useEffect)(()=>{d||h()},[n,d]),(0,ef.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,ef.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=o}}(Z,{dragging:E,dependencies:[S.x,S.y],config:F.droppable}),B=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return _V(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(k,j),H=(0,ef.useMemo)(()=>N?_Y(N):null,[N]),U=function(){let e=(null==T?void 0:T.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,n=E&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),W=CL(B,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,o=(0,ef.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;_L(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=_9(n(e),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Ca(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,s,r,n])}({activeNode:j?k.get(j):null,config:U.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let q=CV(B,F.draggable.measure,W),$=CV(B?B.parentElement:null),Y=(0,ef.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=O.getNodeFor(null==(t=Y.current.over)?void 0:t.id),K=function(e){let{measure:t}=e,[n,r]=(0,ef.useState)(null),i=CZ({callback:(0,ef.useCallback)(e=>{for(let{target:n}of e)if(_N(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[o,a]=_z((0,ef.useCallback)(e=>{let n=CU(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,ef.useMemo)(()=>({nodeRef:o,rect:n,setRef:a}),[n,o,a])}({measure:F.dragOverlay.measure}),X=null!=(n=K.nodeRef.current)?n:B,Q=E?null!=(r=K.rect)?r:q:null,J=!!(K.nodeRef.current&&K.rect),en=function(e){let t=CL(e);return _9(e,t)}(J?null:q),er=CB(X?_T(X):null),ei=function(e){let t=(0,ef.useRef)(e),n=_V(n=>e?n&&n!==Cz&&e&&t.current&&e.parentNode===t.current.parentNode?n:Co(e):Cz,[e]);return(0,ef.useEffect)(()=>{t.current=e},[e]),n}(E?null!=G?G:B:null),el=function(e,t){void 0===t&&(t=Cr);let[n]=e,r=CB(n?_T(n):null),[i,o]=(0,ef.useReducer)(function(){return e.length?e.map(e=>Cd(e)?r:new Cg(t(e),e)):CH},CH),a=CZ({callback:o});return e.length>0&&i===CH&&o(),_L(()=>{e.length?e.forEach(e=>null==a?void 0:a.observe(e)):(null==a||a.disconnect(),o())},[e]),i}(ei),ec=C2(p,{transform:{x:S.x-en.x,y:S.y-en.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:q,containerNodeRect:$,draggingNodeRect:Q,over:Y.current.over,overlayNodeRect:K.rect,scrollableAncestors:ei,scrollableAncestorRects:el,windowRect:er}),ed=H?_W(H,S):null,eh=function(e){let[t,n]=(0,ef.useState)(null),r=(0,ef.useRef)(e),i=(0,ef.useCallback)(e=>{let t=Cs(e.target);t&&n(e=>e?(e.set(t,Cc(t)),new Map(e)):null)},[]);return(0,ef.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let a=e.map(e=>{let t=Cs(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Cc(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=Cs(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,ef.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>_W(e,t),_6):Cp(e):_6,[e,t])}(ei),ep=CI(eh),em=CI(eh,[q]),ev=_W(ec,ep),eg=Q?Ce(Q,ec):null,ey=M&&eg?f({active:M,collisionRect:eg,droppableRects:V,droppableContainers:Z,pointerCoordinates:ed}):null,eb=function(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}(ey,"id"),[ex,ew]=(0,ef.useState)(null),eE=(o=J?ec:_W(ec,em),a=null!=(i=null==ex?void 0:ex.rect)?i:null,{...o,scaleX:a&&q?a.width/q.width:1,scaleY:a&&q?a.height/q.height:1}),ej=(0,ef.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==A.current)return;let i=k.get(A.current);if(!i)return;let o=e.nativeEvent,a=new n({active:A.current,activeNode:i,event:o,options:r,context:Y,onStart(e){let t=A.current;if(null==t)return;let n=k.get(t);if(!n)return;let{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:C}};(0,tI.unstable_batchedUpdates)(()=>{null==r||r(i),w(eu.Initializing),g({type:ee.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){g({type:ee.DragMove,coordinates:e})},onEnd:s(ee.DragEnd),onCancel:s(ee.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Y.current,a=null;if(t&&i){let{cancelDrop:s}=D.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===ee.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=ee.DragCancel)}A.current=null,(0,tI.unstable_batchedUpdates)(()=>{g({type:e}),w(eu.Uninitialized),ew(null),P(null),R(null);let t=e===ee.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=D.current[t];null==e||e(a),y({type:t,event:a})}})}}(0,tI.unstable_batchedUpdates)(()=>{P(a),R(e.nativeEvent)})},[k]),ek=(0,ef.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,o=k.get(r);null!==A.current||!o||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:o})||(i.dndKit={capturedBy:t.sensor},A.current=r,ej(n,t))},[k,ej]),eS=(0,ef.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:ek(e.handler,t)}))]},[]),[d,ek]);(0,ef.useEffect)(()=>{if(!_C)return;let e=d.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},d.map(e=>{let{sensor:t}=e;return t})),_L(()=>{q&&x===eu.Initializing&&w(eu.Initialized)},[q,x]),(0,ef.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=Y.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:ev.x,y:ev.y},over:i};(0,tI.unstable_batchedUpdates)(()=>{null==e||e(o),y({type:"onDragMove",event:o})})},[ev.x,ev.y]),(0,ef.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Y.current;if(!e||null==A.current||!t||!i)return;let{onDragOver:o}=D.current,a=r.get(eb),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,tI.unstable_batchedUpdates)(()=>{ew(s),null==o||o(l),y({type:"onDragOver",event:l})})},[eb]),_L(()=>{Y.current={activatorEvent:N,active:M,activeNode:B,collisionRect:eg,collisions:ey,droppableRects:V,draggableNodes:k,draggingNode:X,draggingNodeRect:Q,droppableContainers:O,over:ex,scrollableAncestors:ei,scrollAdjustedTranslate:ev},C.current={initial:Q,translated:eg}},[M,B,ey,eg,k,X,Q,V,O,ex,ei,ev]),function(e){let{acceleration:t,activator:n=eo.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=ea.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=_I(t);return _V(e=>{if(n||!r||!e)return CR;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[et.Backward]:e.x[et.Backward]||-1===i.x,[et.Forward]:e.x[et.Forward]||1===i.x},y:{[et.Backward]:e.y[et.Backward]||-1===i.y,[et.Forward]:e.y[et.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!o}),[p,m]=function(){let e=(0,ef.useRef)(null);return[(0,ef.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,ef.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,ef.useRef)({x:0,y:0}),g=(0,ef.useRef)({x:0,y:0}),y=(0,ef.useMemo)(()=>{switch(n){case eo.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case eo.DraggableRect:return i}},[n,i,l]),b=(0,ef.useRef)(null),x=(0,ef.useCallback)(()=>{let e=b.current;if(!e)return;let t=v.current.x*g.current.x,n=v.current.y*g.current.y;e.scrollBy(t,n)},[]),w=(0,ef.useMemo)(()=>s===ea.TreeOrder?[...u].reverse():u,[s,u]);(0,ef.useEffect)(()=>{if(!o||!u.length||!y){m();return}for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:o}=function(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Ch);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=Cf(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(h.y=et.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=et.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=et.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(h.x=et.Backward,p.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:h,speed:p}}(e,n,y,t,f);for(let e of["x","y"])h[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){m(),b.current=e,p(x,a),v.current=o,g.current=i;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,x,r,m,o,a,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:S,draggingRect:eg,pointerCoordinates:ed,scrollableAncestors:ei,scrollableAncestorRects:el});let eO=(0,ef.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:q,activatorEvent:N,collisions:ey,containerNodeRect:$,dragOverlay:K,draggableNodes:k,droppableContainers:O,droppableRects:V,over:ex,measureDroppableContainers:z,scrollableAncestors:ei,scrollableAncestorRects:el,measuringConfiguration:F,measuringScheduled:I,windowRect:er}),[M,B,q,N,ey,$,K,k,O,V,ex,z,ei,el,F,I,er]),e_=(0,ef.useMemo)(()=>({activatorEvent:N,activators:eS,active:M,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:k,over:ex,measureDroppableContainers:z}),[N,eS,M,q,g,L,k,ex,z]);return ef.createElement(_0.Provider,{value:b},ef.createElement(CX.Provider,{value:e_},ef.createElement(CQ.Provider,{value:eO},ef.createElement(C4.Provider,{value:eE},c)),ef.createElement(C1,{disabled:(null==l?void 0:l.restoreFocus)===!1})),ef.createElement(_4,{...l,hiddenTextDescribedById:L}))}),C5=(0,ef.createContext)(null),C6="button",C8={timeout:25};function C7(e){let{animation:t,children:n}=e,[r,i]=(0,ef.useState)(null),[o,a]=(0,ef.useState)(null),s=_I(n);return n||r||!s||i(s),_L(()=>{if(!o)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){i(null);return}Promise.resolve(t(n,o)).then(()=>{i(null)})},[t,r,o]),ef.createElement(ef.Fragment,null,n,r?(0,ef.cloneElement)(r,{ref:a}):null)}let C9={x:0,y:0,scaleX:1,scaleY:1};function Me(e){let{children:t}=e;return ef.createElement(CX.Provider,{value:CK},ef.createElement(C4.Provider,{value:C9},t))}let Mt={position:"fixed",touchAction:"none"},Mn=e=>_$(e)?"transform 250ms ease":void 0,Mr=(0,ef.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:c=Mn}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...Mt,width:s.width,height:s.height,top:s.top,left:s.left,transform:_G.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=_Y(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,s):void 0,transition:"function"==typeof c?c(r):c,...l};return ef.createElement(n,{className:a,style:f,ref:t},o)}),Mi={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:_G.Transform.toString(t)},{transform:_G.Transform.toString(n)}]},sideEffects:(R={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,r={},{styles:i,className:o}=R;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=o&&o.active&&t.node.classList.add(o.active),null!=o&&o.dragOverlay&&n.node.classList.add(o.dragOverlay),function(){for(let[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=o&&o.active&&t.node.classList.remove(o.active)}})},Mo=0,Ma=ef.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:E}=(0,ef.useContext)(CQ),j=(0,ef.useContext)(C4),k=(t=null==f?void 0:f.id,(0,ef.useMemo)(()=>{if(null!=t)return++Mo},[t])),S=C2(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:j,windowRect:E}),O=CL(h),_=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return _Z((e,o)=>{if(null===t)return;let a=n.get(e);if(!a)return;let s=a.node.current;if(!s)return;let l=CU(o);if(!l)return;let{transform:u}=_T(o).getComputedStyle(o),c=Ct(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Mi,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;let u={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},c={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==m||m(),e()}})}}(t);return Cm(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:b}),C=O?g.setRef:void 0;return ef.createElement(Me,null,ef.createElement(C7,{animation:_},f&&k?ef.createElement(Mr,{key:k,id:f.id,ref:C,as:l,activatorEvent:d,adjustScale:n,className:u,transition:a,rect:O,style:{zIndex:c,...o},transform:S},r):null))});function Ms(){return(0,ef.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:o,context:a,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,ed.jsx)("tr",{ref:t,...i,...o,style:r,id:n.id,onClick:n.onClick,className:(0,eX.cx)("border-b border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",h),children:s.map((e,t)=>{let{id:r,render:i,contentClassName:o,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,ed.jsx)("td",{className:(0,eX.cx)(d(t,(0,eX.cx)(s,h),!1),u&&u===n.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===c?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===c?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===c?"!shadow-red-500 dark:!shadow-red-400":"","amber"===c?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===c?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,ed.jsx)("div",{className:(0,eX.cx)(f(t,(0,eX.cx)(o,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,ed.jsx)(i,{data:n,context:a})})},"".concat(r,"/").concat(n.id))})},n.id)})}function Ml(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,o=_H("Droppable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,ef.useContext)(CX),{role:h=C6,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,g=(0,ef.useContext)(v?C4:C5),[y,b]=_z(),[x,w]=_z(),E=(0,ef.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[a,t]),j=_F(n);return _L(()=>(d.set(t,{id:t,key:o,node:y,activatorNode:x,data:j}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,ef.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!v&&h===C6||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]),isDragging:v,listeners:r?void 0:E,node:y,over:f,setNodeRef:b,setActivatorNodeRef:w,transform:g}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,ef.useMemo)(()=>Ms(),[]);return(0,ed.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function Mu(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,o=_H("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=(0,ef.useContext)(CX),c=(0,ef.useRef)({disabled:n}),d=(0,ef.useRef)(!1),f=(0,ef.useRef)(null),h=(0,ef.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...C8,...i},g=_F(null!=m?m:r),y=CZ({callback:(0,ef.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),disabled:p||!a}),[b,x]=_z((0,ef.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=_F(t);return(0,ef.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),_L(()=>(s({type:ee.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:w}}),()=>s({type:ee.UnregisterDroppable,key:o,id:r})),[r]),(0,ef.useEffect)(()=>{n!==c.current.disabled&&(s({type:ee.SetDroppableDisabled,id:r,key:o,disabled:n}),c.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:x}}({id:t.id}),d=(0,ef.useMemo)(()=>Ms(),[]);return(0,ed.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:n,columns:r,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function Mc(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,draggingDatum:b}=e,x="emptyState";!c||(null==n?void 0:n.length)||(x="skeleton"),(null==n?void 0:n.length)&&(x="currentData");let w=(0,ef.useCallback)((e,n,r)=>(0,eX.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),E=(0,ef.useCallback)((e,t)=>(0,eX.cx)("flex items-center",t),[]),j=(0,ef.useMemo)(()=>Ms(),[]),k=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(_5(CT,{activationConstraint:{distance:10}}),_5(CN,{activationConstraint:{delay:250,tolerance:5}}));return(0,ed.jsxs)(C3,{sensors:k,onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,children:[(0,ed.jsx)(Ma,{children:b&&(0,ed.jsx)(nA,{className:"inline-block",children:(0,ed.jsx)("table",{children:(0,ed.jsx)(j,{className:"pointer-events-none",data:b,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},b.id)})})}),(0,ed.jsxs)(nA,{children:[(0,ed.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,ed.jsx)("thead",{className:(0,eX.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,ed.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,ed.jsx)("th",{className:(0,eX.cx)(w(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,ed.jsx)("div",{className:(0,eX.cx)("overflow-hidden","py-3"),children:(0,ed.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,eX.cx)(E(t,d),f?"cursor-pointer":""),children:[(0,ed.jsx)(lN,{content:u,children:(0,ed.jsxs)(n_,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,ed.jsx)("div",{children:r}):null,(0,ed.jsx)(n_,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,ed.jsx)(n_,{color:"contrast",children:"asc"===o?(0,ed.jsx)(lL.kqg,{className:"scale-75"}):(0,ed.jsx)(lL.EMN,{className:"scale-75"})}),f&&!h&&(0,ed.jsx)(n_,{color:"verySubtle",children:(0,ed.jsx)(lL.kqg,{className:"scale-75"})})]})})},n)})})}),(0,ed.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===x&&(null==n?void 0:n.map(e=>(null==b?void 0:b.id)===e.id?null:e.isDraggable?(0,ed.jsx)(Ml,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},e.id):e.isDroppable?(0,ed.jsx)(Mu,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},e.id):(0,ed.jsx)(j,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:E},e.id))),"skeleton"===x&&O2(u).map(e=>(0,ed.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,ed.jsx)("td",{className:w(t,i,!1),children:(0,ed.jsx)("div",{className:(0,eX.cx)(E(t,r),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===x&&d]})]})}function Md(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,df.j0)();return(0,ed.jsxs)(l4,{children:[(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,ed.jsx)("div",{className:"flex scale-[0.65]",children:(0,ed.jsx)(lL.XJM,{})})}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,ed.jsx)(lL.bdU,{})}),(0,ed.jsx)(lD,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,ed.jsx)(k3,{className:"px-2"}):"No results"}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,ed.jsx)(lL.VUy,{})}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,ed.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,ed.jsx)(lL.RRj,{})})})]})}function Mf(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,df.j0)();return(0,ed.jsxs)(l4,{children:[(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,ed.jsx)("div",{className:"flex scale-[0.65]",children:(0,ed.jsx)(lL.XJM,{})})}),(0,ed.jsx)(lD,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,ed.jsx)(lL.bdU,{})}),i?(0,ed.jsx)(lD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ed.jsx)(k3,{className:"px-2"})}):r?(0,ed.jsxs)(lD,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,ed.jsx)(lD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ed.jsx)(lD,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,ed.jsx)(lL.VUy,{})})]})}function Mh(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,ed.jsx)(n_,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,ed.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,ed.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:n}),(0,ed.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,ed.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let Mp=("string"==typeof(D={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:D}:D).src;function Mm(e){let{children:t}=e;return(0,ed.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,ed.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,ed.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(Mp,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,ed.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function Mv(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,ed.jsxs)(df.Fb,{children:[(0,ed.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,ed.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,ed.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,ed.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,ed.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,ed.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,ed.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,ed.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,ed.jsx)("title",{children:i})]})}function Mg(e){let{appName:t,title:n,children:r}=e;return(0,ed.jsxs)("div",{className:"h-screen",children:[(0,ed.jsx)(Mv,{appName:t,title:n}),r]})}function My(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,ed.jsxs)(Mg,{appName:t,title:n,children:[(0,ed.jsx)(Mm,{}),(0,ed.jsx)("div",{className:"flex h-full",children:(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(Mh,{nav:i,actions:o}),(0,ed.jsx)("div",{className:"flex-1",children:(0,ed.jsx)(l5,{className:"h-full",children:r})})]})})]})}function Mb(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,ed.jsx)(lN,{side:t,content:(0,ed.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(n_,{children:"spendable"}),(0,ed.jsx)(n_,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,ed.jsx)("div",{className:"flex justify-end",children:(0,ed.jsx)(OK,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(n_,{children:"confirmed"}),(0,ed.jsx)(n_,{color:"subtle",children:"All confirmed outputs."})]}),(0,ed.jsx)("div",{className:"flex justify-end",children:(0,ed.jsx)(OK,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ed.jsx)(n_,{children:"unconfirmed"}),(0,ed.jsx)(n_,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,ed.jsx)("div",{className:"flex justify-end",children:(0,ed.jsx)(OK,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,ed.jsx)("div",{children:r})}):null}function Mx(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,ed.jsx)(OK,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,ed.jsx)(Mb,{side:"right",balanceSc:t,children:i}):(0,ed.jsx)(lN,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ed.jsx)("div",{children:i})})}function Mw(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,df.jD)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,ed.jsx)(dS,{href:r,className:"no-underline",children:(0,ed.jsx)(lN,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ed.jsx)(lD,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,ed.jsx)(lN,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ed.jsx)(lD,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function ME(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,ed.jsx)(Mw,{title:"Wallet",route:r.wallet.view,children:(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,ed.jsx)(lL.oaN,{}),n&&t&&(0,ed.jsx)(Mx,{isSynced:n,balanceSc:t})]})})}function Mj(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,ed.jsx)(nA,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,ed.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,ed.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,ed.jsx)(d_,{size:30})}),(0,ed.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,ed.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,ed.jsx)("div",{className:"flex-1"}),(0,ed.jsx)(c6,{className:"w-full"}),i&&(0,ed.jsx)(ME,{routes:t,isSynced:r,walletBalanceSc:o}),(0,ed.jsx)(Mw,{title:"Blockchain node",route:t.node.index,children:(0,ed.jsx)(lL.kBK,{})}),(0,ed.jsx)(Mw,{title:"App preferences",onClick:()=>s(),children:(0,ed.jsx)(lL.UG6,{})}),(0,ed.jsx)(Mw,{title:"Lock app",onClick:a,children:(0,ed.jsx)(lL.mBM,{})})]})]})})}var Mk=Object.create,MS=Object.defineProperty,MO=Object.getOwnPropertyDescriptor,M_=Object.getOwnPropertyNames,MC=Object.getPrototypeOf,MM=Object.prototype.hasOwnProperty,MA=(V=null!=(F=(L=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(Z||L((Z={exports:{}}).exports,Z),Z.exports))())?Mk(MC(F)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of M_(t))MM.call(e,n)||void 0===n||MS(e,n,{get:()=>t[n],enumerable:!(r=MO(t,n))||r.enumerable});return e})(F&&F.__esModule?V:MS(V,"default",{value:F,enumerable:!0}),F)),MT=e=>void 0!==e.method&&"call"===e.method,MP=e=>null===e.error&&"number"==typeof e.id;z=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(MT(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(MP(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,MA.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,MA.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,MA.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,MA.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=z(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var MN=(typeof window>"u"?"undefined":typeof window)=="object",MR={setTimeout:MN?setTimeout.bind(window):setTimeout,clearTimeout:MN?clearTimeout.bind(window):clearTimeout,setInterval:MN?setInterval.bind(window):setInterval,clearInterval:MN?clearInterval.bind(window):clearInterval},MD={},ML=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,MD[e]=MD[e]||[],MD[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),MR.setTimeout(()=>{window.localStorage.removeItem(n)},500),MD[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=MD[this.name].indexOf(this);MD[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},MZ=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:ML;function MF(){return Math.random().toString(36).substring(2)}var MV=class{options;channel;token=MF();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>MR.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{MR.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=MR.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>MR.clearInterval(e))}catch{}}}},Mz=class{channel;options;elector;token=MF();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new MZ(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new MV(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},MI=MN?document:null,MB=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function MH(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function MW(e){let{route:t}=e,n=(0,f2.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function Mq(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:x}=(0,f2.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=MW({route:n}),{settings:a}=(0,f2.Hv)(),s=(0,df.j0)();(0,ef.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=MI,events:i=MB,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:E=!1,disabled:j=!1}={}){let k=(0,ef.useRef)(MU()),S=(0,ef.useRef)(MU()),O=(0,ef.useRef)(null),_=(0,ef.useRef)(null),C=(0,ef.useRef)(0),M=(0,ef.useRef)(0),A=(0,ef.useRef)(0),T=(0,ef.useRef)(0),P=(0,ef.useRef)(!1),N=(0,ef.useRef)(!1),R=(0,ef.useRef)(!1),D=(0,ef.useRef)(!0),L=(0,ef.useRef)(!1),Z=(0,ef.useRef)(null),F=(0,ef.useRef)(null),V=(0,ef.useRef)(e),z=(0,ef.useRef)(0);(0,ef.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(V.current=e-n,z.current=n):(V.current=e,z.current=t),!D.current){if(g||j)return;P.current&&(G.current(null,eT),F.current&&F.current.active()),ec()}},[e,t,n,g,j]);let I=(0,ef.useRef)(y);(0,ef.useEffect)(()=>{I.current=y},[y]);let B=(0,ef.useRef)(a),H=(0,ef.useRef)(r),U=(0,ef.useRef)([...new Set([...i,...a]).values()]),W=(0,ef.useRef)(j);(0,ef.useEffect)(()=>{W.current=j,!D.current&&(j?ep():g||ec())},[j]);let q=(0,ef.useRef)(s);(0,ef.useEffect)(()=>{q.current=s},[s]);let $=(0,ef.useRef)(l);(0,ef.useEffect)(()=>{$.current=l},[l]);let Y=(0,ef.useRef)(u);(0,ef.useEffect)(()=>{Y.current=u},[u]);let G=(0,ef.useRef)(c);(0,ef.useEffect)(()=>{G.current=c},[c]);let K=(0,ef.useRef)(d);(0,ef.useEffect)(()=>{K.current=d},[d]);let X=(0,ef.useRef)(f);(0,ef.useEffect)(()=>{X.current=f},[f]);let Q=(0,ef.useMemo)(()=>{let e=(e,t)=>K.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?MH(e,p):e},[p,h]),J=(0,ef.useRef)();(0,ef.useEffect)(()=>{b&&w&&(J.current=MH(()=>{F.current.active()},w))},[b,w]);let ee=()=>{null!==Z.current&&(MR.clearTimeout(Z.current),Z.current=null)},et=(e,t=!0)=>{ee(),Z.current=MR.setTimeout(eo,e||V.current),t&&(_.current=MU())},en=e=>{N.current||P.current||($.current(e,eT),q.current({type:"active",prompted:!0},eT)),T.current=0,A.current=MU(),N.current=!0,et(z.current,!1)},er=()=>{ee(),P.current||(Y.current(null,eT),q.current({type:"idle"},eT)),P.current=!0,O.current=MU(),I.current?eu():N.current&&(A.current=0,N.current=!1)},ei=e=>{ee(),(P.current||N.current)&&(G.current(e,eT),q.current({type:"active",prompted:!1},eT)),N.current=!1,A.current=0,P.current=!1,C.current+=MU()-O.current,M.current+=MU()-O.current,el(),et()},eo=e=>{if(!P.current){Q.cancel&&Q.cancel();let t=MU()-_.current;if(!(V.current+z.current0&&!N.current){F.current?F.current.prompt():en(e);return}F.current?F.current.idle():er();return}F.current?F.current.active():ei(e)},ea=e=>{if(v||_.current||(_.current=MU(),G.current(null,eT)),Q(e,eT),N.current)return;if(ee(),!P.current&&B.current.includes(e.type)){eo(e);return}let t=MU()-_.current;if(P.current&&!y||!P.current&&t>=V.current){eo(e);return}R.current=!1,T.current=0,A.current=0,et(),b&&w&&J.current()},es=(0,ef.useRef)(ea);(0,ef.useEffect)(()=>{let e=L.current;e&&eu(),m>0?es.current=MH(ea,m):es.current=ea,e&&el()},[m,p,h,K,b,w]);let el=()=>{MN&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},eu=(e=!1)=>{MN&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ec=(0,ef.useCallback)(e=>!W.current&&(ee(),el(),P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,F.current&&!e&&F.current.start(),et(),!0),[Z,P,W,V,F]),ed=(0,ef.useCallback)(e=>!W.current&&(ee(),el(),S.current=MU(),C.current+=MU()-O.current,M.current+=MU()-O.current,C.current=0,P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,F.current&&!e&&F.current.reset(),g||et(),!0),[Z,P,V,g,W,F]),eh=(0,ef.useCallback)(e=>!W.current&&(ee(),el(),(P.current||N.current)&&ei(),P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,S.current=MU(),F.current&&!e&&F.current.activate(),et(),!0),[Z,P,N,W,V,F]),ep=(0,ef.useCallback)((e=!1)=>!W.current&&!R.current&&(T.current=eE(),R.current=!0,eu(),ee(),F.current&&!e&&F.current.pause(),!0),[Z,W,F]),em=(0,ef.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||el(),P.current||et(T.current),A.current&&(A.current=MU()),F.current&&!e&&F.current.resume(),!0),[Z,V,W,T,F]),ev=(0,ef.useCallback)((e,t)=>(F.current?(t&&X.current(e,eT),F.current.message(e)):t&&X.current(e,eT),!0),[f]),eg=(0,ef.useCallback)(()=>P.current,[P]),ey=(0,ef.useCallback)(()=>N.current,[N]),eb=(0,ef.useCallback)(()=>F.current?F.current.isLeader:null,[F]),ex=(0,ef.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,ef.useCallback)(()=>F.current?F.current.token:null,[F]),eE=(0,ef.useCallback)(()=>{if(R.current)return T.current;let e=Math.floor((T.current?T.current:z.current+V.current)-(_.current?MU()-_.current:0));return e<0?0:Math.abs(e)},[V,z,N,T,_]),ej=(0,ef.useCallback)(()=>Math.round(MU()-S.current),[S]),ek=(0,ef.useCallback)(()=>Math.round(MU()-k.current),[k]),eS=(0,ef.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,ef.useCallback)(()=>_.current?new Date(_.current):null,[_]),e_=(0,ef.useCallback)(()=>P.current?Math.round(MU()-O.current+C.current):Math.round(C.current),[O,C]),eC=(0,ef.useCallback)(()=>P.current?Math.round(MU()-O.current+M.current):Math.round(M.current),[O,M]),eM=(0,ef.useCallback)(()=>{let e=Math.round(ej()-e_());return e>=0?e:0},[O,C]),eA=(0,ef.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,C]);(0,ef.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(MR.setTimeout=o.setTimeout,MR.clearTimeout=o.clearTimeout,MR.setInterval=o.setInterval,MR.clearInterval=o.clearInterval);let e=()=>{F.current&&F.current.close(),Q.cancel&&Q.cancel(),ee(),eu(!0)};return MN&&window.addEventListener("beforeunload",e),()=>{MN&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),Q.cancel&&Q.cancel(),ee(),eu(!0)}},[]),(0,ef.useEffect)(()=>{F.current&&F.current.close(),b?F.current=new Mz({channelName:x,leaderElection:E,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{X.current(e,eT)},start:ec,reset:ed,activate:eh,pause:ep,resume:em}):F.current=null},[b,x,E,$,Y,G,X,ec,ed,ep,em]),(0,ef.useEffect)(()=>{D.current||(ee(),eu(!0)),g||j||(v?ec():el())},[g,v,j,D]),(0,ef.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...a]).values()];eu(),U.current=e,H.current=r,B.current=a,g||j||(v?ec():el())}},[r,JSON.stringify(i),JSON.stringify(a),D,j,g,v]),(0,ef.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eT={message:ev,start:ec,reset:ed,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:eO,getIdleTime:e_,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,q.current=e},setOnPrompt:e=>{l=e,$.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,K.current=e},setOnMessage:e=>{f=e,X.current=e}}}({disabled:!t,onIdle:(0,ef.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!x.autoLock,lockTimeout:x.autoLockTimeout,lock:b}),(0,ed.jsxs)(Mg,{appName:t,title:n,children:[(0,ed.jsx)(Mm,{}),(0,ed.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,ed.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,ed.jsx)(Mj,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,ed.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,ed.jsx)(Mh,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,ed.jsx)(uT,{className:"z-0",children:(0,ed.jsx)(l5,{size:o,pad:!1,children:(0,ed.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,ed.jsx)(l5,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function M$(e,t,n,r){let[i,o]=(0,ef.useState)();return(0,ef.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,ef.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function MY(e){let{filtered:t}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.Hb6,{className:"scale-[200%]"})}),(0,ed.jsx)(n_,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,ef.createContext)(null).Consumer;let MG=[];function MK(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=M$(o.data,o.isValidating,o.error,MG),[u,c]=(0,ef.useState)(),d=(0,ef.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,ef.useCallback)(e=>Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r}),[a]);return(0,ed.jsx)(uR,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsxs)(dm,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,ed.jsxs)("div",{className:"flex gap-1",children:[(0,ed.jsx)(lD,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,ed.jsx)(lD,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,ed.jsx)(lD,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,ed.jsx)(lD,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,ed.jsx)(lD,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,ed.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,ed.jsxs)(lD,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,ed.jsx)(lL.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,ed.jsx)(MY,{filtered:!1}),"error"===l&&(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center justify-center h-[100px]",MJ()),children:(0,ed.jsx)(n_,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,ed.jsx)(MQ,{}),!l&&(0,ed.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,ed.jsxs)("div",{className:(0,eX.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,ed.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,ed.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,ed.jsxs)(n_,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,ed.jsx)(lD,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,ed.jsx)(lL.NlZ,{})})]}),(0,ed.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ed.jsx)(n_,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,ed.jsx)(n_,{color:"contrast",ellipsis:!0,children:(0,gX.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||MX;return(0,ed.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,ed.jsx)(MY,{filtered:!!u})})]})})}function MX(e){let{label:t,value:n}=e;return(0,ed.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,ed.jsx)(n_,{color:"subtle",children:t}),(0,ed.jsx)(n_,{color:"contrast",ellipsis:!0,children:String(n)})]})}function MQ(){return(0,ed.jsx)(ed.Fragment,{children:O2(10,e=>(0,ed.jsx)("div",{className:(0,eX.cx)("relative flex gap-4 p-3.5",MJ()),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ed.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,ed.jsx)(hn,{className:"w-[160px] h-[20px]"}),(0,ed.jsx)(hn,{className:"w-[160px] h-[20px]"})]}),(0,ed.jsx)(hn,{className:"w-[100px] h-[20px]"}),(0,ed.jsx)(hn,{className:"w-full h-[120px]"})]})},e))})}function MJ(){return(0,eX.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var M0=n(89644),M1=n.n(M0),M2=n(63955),M4=n(92263),M3=n(45500),M5=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},M6=(I=n(6623).Z,function(e){var t,n=(0,M4.Z)(e);return"[object Map]"==n?(0,M3.Z)(e):"[object Set]"==n?M5(e):(t=I(e),(0,kk.Z)(t,function(t){return[t,e[t]]}))});function M8(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,ef.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,ef.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function M7(e){return(0,ef.useCallback)(t=>{OA({title:"Error",body:M6(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function M9(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=M8({name:t,form:n,field:u}),p=(0,ed.jsx)(fO,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,ed.jsx)(_b,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var Ae=n(52390),At=function(e,t){return kG(kU(e,t,kq.Z),e+"")},An=n(78804),Ar=n(63282),Ai=n(66401),Ao=function(e,t,n){if(!(0,vz.Z)(n))return!1;var r=typeof t;return("number"==r?!!((0,Ar.Z)(n)&&(0,Ai.Z)(t,n.length)):"string"==r&&t in n)&&(0,An.Z)(n[t],e)},Aa=At(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ao(e,t[0],t[1])?t=[]:n>2&&Ao(t[0],t[1],t[2])&&(t=[t[0]]),(0,Ae.Z)(e,kI(t,1),[])});async function As(e){let{api:t,route:n,password:r}=e;try{return await M1().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function Al(e){let{appName:t,route:n,routes:r}=e,i=(0,df.j0)(),{settings:o,setSettings:a}=(0,f2.Hv)(),{allowCustomApi:s}=o,l=(0,ef.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,M2.cI)({mode:"onBlur",defaultValues:l});(0,ef.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,ef.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await As({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=M7(d),h=u.formState.errors.api||u.formState.errors.password,p=Aa(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,ed.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,ed.jsx)(nA,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,ed.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(n_,{font:"mono",weight:"bold",size:"20",children:t}),(0,ed.jsx)(dl,{label:"login settings",trigger:(0,ed.jsx)(lD,{icon:"hover",variant:"ghost",children:(0,ed.jsx)(lL.shL,{})}),children:(0,ed.jsx)(du,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,ed.jsx)(c6,{className:"w-full mt-2 mb-3"}),(0,ed.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,ed.jsxs)(l4,{children:[(0,ed.jsx)(M9,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,ed.jsx)(dl,{trigger:(0,ed.jsx)(lD,{type:"button",children:(0,ed.jsx)(lL.wGX,{})}),children:p.map(e=>(0,ed.jsx)(du,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,ed.jsx)(M9,{name:"password",form:u,fields:d,group:!1}),h&&(0,ed.jsx)(n_,{size:"14",color:"red",children:h.message}),(0,ed.jsx)(_x,{size:"small",form:u,children:"Unlock"})]})})]})})})}var Au=n(7114),Ac=n(24511);let Ad={address:"",siacoin:void 0,includeFee:!1},Af=Ac.Ry().shape({address:Ac.Z_().required("Required"),siacoin:Ac.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fJ())(e||0).isZero())});function Ah(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,ed.jsx)(OU,{value:t,type:"address"})]}),(0,ed.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ed.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,ed.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,ed.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,ed.jsx)(n_,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,ed.jsx)(OU,{value:i,type:"transaction"})]})]})}function Ap(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,ed.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,ed.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,ed.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,ed.jsxs)("div",{className:(0,eX.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,ed.jsx)(n_,{color:l?"contrast":"verySubtle",className:(0,eX.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,ed.jsx)("div",{className:(0,eX.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,ed.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function Am(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(Ah,{address:t,siacoin:n,fee:r,transactionId:i}),(0,ed.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.Z$8,{})}),(0,ed.jsx)(n_,{children:"Transaction successfully broadcasted."})]})]})}let Av=(0,gX.qN)(.00393),Ag={address:"",siacoin:new(fJ())(0),includeFee:!1};function Ay(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,ef.useState)("setup"),[l,u]=(0,ef.useState)(),[c,d]=(0,ef.useState)(Ag),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,Au.TA)({initialValues:Ad,validationSchema:Af,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,gX.qN)(e.siacoin).minus(n):(0,gX.qN)(e.siacoin);if(t){if(t.isLessThan((0,gX.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,gX.qN)(i.values.siacoin||0),a=(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(_w,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,ed.jsx)(_w,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,ed.jsxs)("div",{className:"flex items-center",children:[(0,ed.jsx)(hv,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,ed.jsx)(f6,{children:"Include or exclude the network fee from the above transaction value."}),(0,ed.jsx)("div",{className:"flex flex-1"})]}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,ed.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",children:"Network fee"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ed.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,ed.jsx)(n_,{color:"verySubtle",children:"Total"}),(0,ed.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ed.jsx)(O$,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:Av,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,Au.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}});return{form:(0,ed.jsx)("div",{className:"flex flex-col gap-4",children:(0,ed.jsx)(Ah,{address:o,siacoin:a,fee:r})}),formik:s}}({fee:Av,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,ef.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,ed.jsx)(uR,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,ed.jsx)("div",{className:"flex flex-col gap-1",children:(0,ed.jsx)(__,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(Ap,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,ed.jsx)(c6,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,ed.jsx)(Am,{data:c,fee:Av,transactionId:l})]})})}let Ab=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),Ax={port:9981,ip:""},Aw=Ac.Ry().shape({port:Ac.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:Ac.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>Ab().test(e||""))});function AE(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,Au.TA)({initialValues:Ax,validationSchema:Aw,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else OM({title:"Connected to peer"}),t.resetForm(),i(!1)}});return(0,ed.jsx)(uR,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Connect to a peer by IP address."}),(0,ed.jsx)("form",{onSubmit:o.handleSubmit,children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(_w,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,ed.jsx)(_w,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,ed.jsx)(__,{formik:o,size:"medium",children:"Connect"})]})})]})})}function Aj(e){var t,n;let{id:r,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,ed.jsx)(uR,{title:OZ((null==i?void 0:i.txType)?_c(OH(i.txType)):"Transaction",r,16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,ed.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,ed.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Inflow"}),(0,ed.jsx)(O$,{value:new(fJ())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Outflow"}),(0,ed.jsx)(O$,{value:new(fJ())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Miner fee"}),(0,ed.jsx)(O$,{value:new(fJ())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(fJ())(0)))||0)})]}),(0,ed.jsx)("div",{className:"flex-1"}),(0,ed.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ed.jsx)(n_,{children:"Timestamp"}),(0,ed.jsx)(n_,{children:(null==i?void 0:i.timestamp)?(0,gX.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,ed.jsx)(lJ,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,ed.jsx)(n_,{children:"Could not find transaction in wallet"})})}Ac.Ry().shape({address:Ac.Z_().required("Required"),description:Ac.Z_().required("Required"),index:Ac.Rx().integer().required("Required")});var Ak=n(38001);function AS(e){let{title:t,description:n,address:r}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,ed.jsx)(dm,{size:"20",font:"mono",children:t}),n&&(0,ed.jsx)(n_,{children:n}),(0,ed.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,ed.jsx)("div",{className:"absolute",children:(0,ed.jsx)(Ak.Z,{size:200,value:r})})}),(0,ed.jsx)(OU,{type:"address",value:r})]})}function AO(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,ed.jsx)(uR,{title:OZ("Address",OL(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,ed.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,ed.jsx)(AS,{address:t||""}):(0,ed.jsx)(n_,{children:"Could not retreive wallet address"})})})}function A_(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{color:"amber",children:(0,ed.jsx)(lL.qdM,{})}),(0,ed.jsxs)(n_,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{color:"amber",children:(0,ed.jsx)(lL.qdM,{})}),(0,ed.jsxs)(n_,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let AC={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function AM(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,f2.Hv)();return(0,ed.jsx)(f9,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,ed.jsx)(he,{value:t,children:n},t)})})}let AA=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function AT(){let{settings:e,setSettings:t}=(0,f2.Hv)();return(0,ed.jsx)(f9,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:AA.map(e=>{let{id:t,label:n}=e;return(0,ed.jsx)(he,{value:t,children:n},t)})})}function AP(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,f2.Hv)();return(0,ed.jsx)(uR,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,ed.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,ed.jsx)("div",{className:"flex flex-col gap-4",children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Display"}),(0,ed.jsx)(nC,{size:"14",children:"Configure visual and locale display preferences."}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Currency display"}),(0,ed.jsx)(AT,{})]}),(0,ed.jsx)(nC,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Fiat"}),(0,ed.jsx)(AM,{})]}),(0,ed.jsx)(nC,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Theme"}),(0,ed.jsx)(pG,{})]}),(0,ed.jsx)(nC,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"GPU"}),(0,ed.jsx)(hv,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,ed.jsxs)(nC,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Security"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Configure security preferences."}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Lock app"}),(0,ed.jsx)(hv,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,ed.jsxs)(f9,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,ed.jsx)(he,{value:kQ(5),children:"5 minutes"}),(0,ed.jsx)(he,{value:kQ(10),children:"10 minutes"}),(0,ed.jsx)(he,{value:kQ(20),children:"20 minutes"}),(0,ed.jsx)(he,{value:kQ(30),children:"30 minutes"}),(0,ed.jsx)(he,{value:kQ(60),children:"1 hour"})]})]}),(0,ed.jsx)(nC,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Privacy"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,ed.jsx)(lF,{children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ed.jsx)(n_,{children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(dm,{size:"20",className:"flex-1",children:"Sia Central"}),(0,ed.jsx)(hv,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,ed.jsx)(nC,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,ed.jsx)(c6,{className:"w-full"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ed.jsx)(n_,{size:"16",weight:"bold",children:"Help"}),(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ed.jsx)(nC,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,ed.jsxs)("div",{className:"flex gap-4",children:[(0,ed.jsxs)(dS,{href:AC.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.lq1,{}),"Website"]}),(0,ed.jsxs)(dS,{href:AC.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.RdX,{}),"Docs"]}),(0,ed.jsxs)(dS,{href:AC.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.Sfn,{}),"About"]}),(0,ed.jsxs)(dS,{href:AC.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,ed.jsx)(lL.b47,{}),"Discord"]})]})]})]})]})})}function AN(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,ed.jsx)(Mb,{side:"bottom",balanceSc:t,children:(0,ed.jsx)(nA,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,ed.jsx)(OK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,ed.jsx)(lN,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ed.jsxs)(nA,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,ed.jsx)(n_,{color:"amber",children:(0,ed.jsx)(lL.qdM,{})}),(0,ed.jsx)(OK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function AR(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,ed.jsxs)(ed.Fragment,{children:[o&&(0,ed.jsx)(AN,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,ed.jsxs)(lD,{size:"small",onClick:s,children:[(0,ed.jsx)(lL.xHM,{}),"Receive"]}),(0,ed.jsxs)(lD,{size:"small",variant:"accent",onClick:a,children:[(0,ed.jsx)(lL.rW0,{}),"Send"]})]})}function AD(e,t){if(!e||!e.length)return[];let n=Object.keys(kX(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}function AL(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-k0(Number(e)),end:t}}let AZ={"5m":e=>{let t=e+kQ(5);return"5m interval from ".concat((0,gX.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,gX.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kQ(15);return"15m interval from ".concat((0,gX.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,gX.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+kJ(1);return"Hour interval from ".concat((0,gX.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,gX.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+kJ(24);return"Day interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},weekly:e=>{let t=e+k0(7);return"Week interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},monthly:e=>{let t=e+k0(30);return"Month interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},yearly:e=>{let t=e+k0(365);return"Year interval from ".concat((0,gX.rN)(e)," to ").concat((0,gX.rN)(t))},default:e=>"".concat((0,gX.rN)(e))};function AF(e){return AZ[e]||AZ.default}function AV(e){if(!e||!e.length)return{};let t=Object.keys(kX(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0;return Az({total:t.reduce((t,n)=>t+(n[e]||0),0),start:i,end:o,count:t.length})}(n,e)}),{}),total:function(e,t){let n=AI(e,t[0]),r=AI(e,t[t.length-1]);return Az({total:t.reduce((t,n)=>t+AI(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function Az(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function AI(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function AB(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,p$.F)(),o=(0,ef.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:gK.accent[800]}}:{sc:{label:"siacoin",color:gK.accentdark[800]}},[i]),a=(0,ef.useMemo)(()=>({data:AD(t,"none"),stats:AV(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,gX.Vz)(e),formatTimestamp:AF("default"),formatTickY:e=>(0,gX.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,o,r]);return(0,ed.jsx)("div",{className:"relative",children:(0,ed.jsx)(k6,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function AH(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,ed.jsx)(_p,{title:"Peers",actions:(0,ed.jsx)(lD,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function AU(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,ed.jsxs)("div",{className:(0,eX.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,ed.jsx)("div",{className:"relative top-px",children:(0,ed.jsx)(hi,{style:{backgroundColor:o}})}),(0,ed.jsx)(n_,{size:t,children:n})]})}let AW={total:"total",average:"average",latest:"latest"};function Aq(e){let{category:t,label:n,color:r,sc:i,scFixed:o=2,value:a,extendedSuffix:s,valueFormat:l=e=>e.toFixed(2),defaultMode:u,enabledModes:c=["total","average","latest"],isLoading:d,showChange:f=!0}=e,[h,p]=(0,k2.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:u});return(0,ed.jsx)(_m,{isLoading:d,label:(0,ed.jsx)(AU,{label:n,color:r}),actions:(0,ed.jsx)(f9,{onChange:e=>p(e.currentTarget.value),defaultValue:h,children:c.map(e=>(0,ed.jsx)(he,{value:e,children:AW[e]},e))}),sc:(null==i?void 0:i[h])!==void 0?new(fJ())(i[h]):void 0,scFixed:o,extendedSuffix:s,value:(null==a?void 0:a[h])!==void 0&&l?l(a[h]):void 0,comment:i?(0,ed.jsxs)("div",{className:"flex items-center gap-4",children:[(0,ed.jsx)(OK,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(fJ())(i.diff)}),f&&void 0!==i.change&&(0,ed.jsx)(lN,{content:"Percent change over time range",children:(0,ed.jsxs)(n_,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):a&&(0,ed.jsxs)("div",{className:"flex items-center gap-4",children:[(0,ed.jsx)(OX,{tooltip:"Net change over time range:",format:e=>l(e.toNumber()),value:new(fJ())(a.diff)}),f&&void 0!==a.change&&(0,ed.jsx)(lN,{content:"Percent change over time range",children:(0,ed.jsxs)(n_,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[a.change.toFixed(2),"%"]})})]})})}function A$(e){let{children:t,bleed:n}=e;return(0,ed.jsx)("div",{className:(0,eX.cx)(n?"-mx-5 overflow-hidden":""),children:(0,ed.jsx)(uT,{children:(0,ed.jsx)("div",{className:(0,eX.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function AY(e){let{children:t,variant:n,align:r}=e;return(0,ed.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,ed.jsx)(n_,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function AG(e){let{date:t,align:n,variant:r}=e;return t?(0,ed.jsx)(AY,{variant:r,align:n,children:(0,gX.rN)(t)}):null}function AK(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,ed.jsx)(AY,{variant:r,align:n,children:t.toLocaleString()}):null}function AX(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=(0,gX.pp)(d),h=(0,gX.jr)(n,r.startHeight),p=(0,gX.jr)(n,i),m=(0,gX.jr)(n,o),v=(p-h)/f,g=(m-h)/f;return(0,ed.jsxs)("div",{className:(0,eX.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:AQ(v),width:AQ(g-v)},children:[(0,ed.jsx)("div",{className:(0,eX.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,ed.jsx)("div",{className:(0,eX.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:AQ(1-g)}:{left:AQ(v)},children:[(0,ed.jsx)(AK,{blockHeight:i,align:"start",variant:"primary"}),(0,ed.jsx)(AY,{variant:"primary",children:t}),(0,ed.jsx)(AK,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,ed.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:AQ(1-g)}:{left:AQ(v)},children:[(0,ed.jsx)(AG,{date:p,align:"start",variant:"secondary"}),(0,ed.jsx)(AG,{date:m,align:"start",variant:"secondary"})]}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:AQ(1-g)}:{left:AQ(v)},children:[(0,ed.jsx)(AG,{date:p,align:"start",variant:"secondary"}),(0,ed.jsx)(AG,{date:m,align:"start",variant:"secondary"})]})]})}function AQ(e){return"".concat(100*e,"%")}function AJ(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:o,bottomLabel:a,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,gX.pp)(f),p=(0,gX.jr)(n,i.startHeight),m=r?(0,gX.jr)(n,r):0;return r?(0,ed.jsx)("div",{className:(0,eX.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,ed.jsxs)("div",{className:(0,eX.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,ed.jsx)("div",{className:(0,eX.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,ed.jsx)("div",{className:(0,eX.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,ed.jsx)("div",{className:(0,eX.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,ed.jsx)(AK,{blockHeight:r,align:"start",variant:"primary"}),(0,ed.jsx)(AY,{variant:"primary",children:o})]}),(0,ed.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,ed.jsx)(AG,{date:m,align:"start",variant:"secondary"}),a&&(0,ed.jsx)(AY,{variant:"secondary",children:a})]})]})}):null}function A0(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,ed.jsx)("div",{className:"group/main relative w-full",children:(0,ed.jsx)("div",{className:"relative py-6",children:(0,ed.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,ed.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,ed.jsxs)("div",{className:"group/segments",children:[(0,ed.jsx)(AX,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,ed.jsx)(AX,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,ed.jsx)(AJ,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,ed.jsx)(AJ,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,ed.jsx)(AJ,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,ed.jsx)(AJ,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var A1=n(90463),A2=n(81721),A4=function(e,t){return!!(null==e?0:e.length)&&(0,A2.Z)(e,t,0)>-1},A3=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(o=A6.Z,a=!1,t=new A1.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,ed.jsx)(lL.xVB,{})}),(0,ed.jsx)(lD,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,ed.jsx)(lL.pHg,{})})]})]})}function Tn(e){let{title:t,children:n}=e;return(0,ed.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,ed.jsx)(dm,{anchorLink:!0,size:"24",children:t}),(0,ed.jsx)(nA,{className:"p-6",children:(0,ed.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Tr(e){let{title:t,description:n,control:r}=e;return(0,ed.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,ed.jsx)(dm,{size:"20",children:t}),(0,ed.jsx)(nC,{size:"14",children:n})]}),(0,ed.jsx)("div",{className:"",children:r})]})}function Ti(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,M2.cI)(),d=(0,ef.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,ed.jsx)(uR,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,ed.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,ed.jsx)("div",{className:"flex gap-1 justify-end",children:(0,ed.jsx)(_x,{variant:s,form:c,size:"small",children:l})})]})})})}function To(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(n_,{font:"mono",weight:"bold",size:"20",children:t}),(0,ed.jsxs)("div",{className:"flex items-center",children:[n?(0,ed.jsxs)(lD,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,ed.jsx)(n_,{color:"subtle",children:n.toLocaleString()}),(0,ed.jsx)(lL.RK4,{})]}):null,i&&r?(0,ed.jsx)(lN,{content:"Blockchain is synced",children:(0,ed.jsx)("div",{className:"relative left-2",children:(0,ed.jsxs)(lD,{variant:"ghost",state:"waiting",children:[(0,ed.jsx)(n_,{color:"subtle",children:i.toLocaleString()}),(0,ed.jsx)(n_,{color:"green",children:(0,ed.jsx)(lL.Y3p,{})})]})})}):null]})]})}function Ta(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,ed.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,ed.jsx)(d9,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,ed.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,ed.jsx)(n_,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,ed.jsx)(n_,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,ed.jsx)(n_,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Ts(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,ed.jsx)(pr,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,ed.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,ed.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,ed.jsxs)(n_,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,ed.jsx)(d_,{size:30})]}),children:(0,ed.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,ed.jsx)(To,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,ed.jsx)(c6,{className:"w-full mb-0.5"}):(0,ed.jsx)(Ta,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(n_,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,ed.jsx)(c6,{className:"w-full mb-1"})]}),c]})})}function Tl(e){let{testnetName:t}=e;return(0,ed.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,ed.jsx)(n_,{color:"lo",children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsxs)(n_,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Tu(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(lN,{align:"start",side:"bottom",content:i,children:(0,ed.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ed.jsx)(n_,{className:"flex relative",children:o||(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(n_,{size:"12",ellipsis:!0,children:r?(0,ed.jsx)(dS,{href:r,target:"_blank",children:n}):n})]})}),(0,ed.jsx)("div",{className:(0,eX.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,ed.jsx)(O$,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,ed.jsx)(OX,{value:a,variant:"value",size:"12",format:e=>"".concat(f0(e,l)," ").concat(u)})})]})}function Tc(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=M8({name:t,field:i,form:n}),y=(0,ef.useMemo)(()=>s?new(fJ())(s):a&&"boolean"!=typeof a?new(fJ())(a):void 0,[s,a]);return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)(f5,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:y,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),o&&(0,ed.jsx)(Tu,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,gX.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,ed.jsx)(Tu,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,gX.qN)(a),onClick:()=>{m(a,!0)}}),(0,ed.jsx)(d||(()=>null),{name:t,form:n,fields:r})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Td(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=M8({form:n,field:i,name:t}),m=(0,ef.useMemo)(()=>c?new(fJ())(c):s&&"boolean"!=typeof s?new(fJ())(s):void 0,[c,s]);return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)(f1,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{f(void 0!==e?new(fJ())(e):void 0,!0)},onBlur:()=>{f(h,!0)}}),(0,ed.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,ed.jsx)(Tu,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,ed.jsx)(Tu,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tf(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,ed.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ed.jsx)(lN,{align:"start",side:"bottom",content:r,children:(0,ed.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ed.jsx)(n_,{className:"flex relative",children:(0,ed.jsx)(lL.RdX,{})}),(0,ed.jsx)(n_,{size:"12",children:n?(0,ed.jsx)(dS,{href:n,target:"_blank",children:t}):t})]})}),(0,ed.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,ed.jsx)(n_,{size:"12",children:(0,ed.jsx)(l1,{children:i})})})]})}function Th(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=M8({name:t,form:n,field:o});return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)(fO,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,ed.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,ed.jsx)(Tf,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tp(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=M8({name:t,field:i,form:n});return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)("div",{className:"flex justify-end w-full",children:(0,ed.jsx)(hv,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,ed.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,ed.jsx)(Tf,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tm(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=M8({name:t,form:n,field:i});return(0,ed.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ed.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ed.jsx)("div",{className:"flex justify-end w-full",children:(0,ed.jsx)(f9,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,ed.jsx)(he,{value:e.value,children:e.label},e.value))})}),(0,ed.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,ed.jsx)(Tf,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,ed.jsx)("div",{className:"h-[20px]",children:(0,ed.jsx)(_y,{form:n,name:t})})]})}function Tv(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,ed.jsx)(Tn,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,ed.jsxs)(ef.Fragment,{children:[(0,ed.jsx)(Tr,{title:a.title,description:a.description,control:"number"===a.type?(0,ed.jsx)(Td,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,ed.jsx)(Tc,{form:r,name:n,fields:i}):"text"===a.type?(0,ed.jsx)(Th,{form:r,name:n,fields:i}):"password"===a.type?(0,ed.jsx)(Th,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,ed.jsx)(Tp,{form:r,name:n,fields:i}):"select"===a.type?(0,ed.jsx)(Tm,{form:r,name:n,fields:i}):null}),t{u(void 0!==e?new(fJ())(e):void 0,!0)},onBlur:()=>{u(d,!0)}})})}function Ty(e){let{name:t,form:n,fields:r,size:i="medium",group:o=!0,children:a}=e,s=r[t],{setValue:l,value:u,error:c}=M8({name:t,field:s,form:n}),d=(0,ed.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,ed.jsx)(hv,{"aria-label":t,name:t,size:i,checked:u,state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,ed.jsx)(_b,{title:s.title,name:t,form:n,className:"pb-[1.5px]",children:d}):d}function Tb(e){let{form:t,remoteValues:n}=e,r=(0,ef.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,n]);(0,ef.useEffect)(()=>{r()},[n])}function Tx(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function Tw(e){let{form:t,remoteValues:n}=e,[r,i]=(0,ef.useState)(!1),{isUnlockedAndAuthedRoute:o}=(0,f2.Hv)();(0,ef.useEffect)(()=>{o||i(!1)},[o]),(0,ef.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}lL.lg1,lL.eHR,lL.I$H,lL.KiD,lL.P5r,lL.CCF,lL.w9S,lL.EL$,lL.aPl,lL.wEY,lL.EOT,lL.kSc,lL.W$S,lL.lJ7,lL.ORH,lL.ka0,lL.BdP,lL.d19,lL.Mes,lL.VUg,lL.U_S,lL.T85;let TE=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,ef.useState)(!0),l=(0,ef.useRef)(!1),u=(0,ef.useRef)(0);return(0,ef.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,ef.createElement)(nl,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,ef.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,ef.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,ef.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Tj(e){let{children:t}=e,[n,r]=(0,ef.useState)(!1);return(0,ef.useEffect)(()=>{r(!0)},[]),(0,ed.jsx)("div",{children:n?t:null})}function Tk(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,ed.jsx)(Tj,{children:(0,ed.jsx)(f2.kl,{fallback:r,children:(0,ed.jsx)(p$.f,{attribute:"class",children:(0,ed.jsx)(TE,{children:(0,ed.jsx)(f2.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,ed.jsxs)("div",{id:"root",className:t,children:[(0,ed.jsx)(OP,{}),i]})})})})})})}var TS=n(87459),TO=n(63249),T_=TS.Z&&1/(0,TO.Z)(new TS.Z([,-0]))[1]==1/0?function(e){return new TS.Z(e)}:function(){},TC=function(e,t,n){var r=-1,i=A4,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=A3;else if(o>=200){var u=t?null:T_(e);if(u)return(0,TO.Z)(u);a=!1,i=A6.Z,l=new A1.Z}else l=t?[]:s;t:for(;++r=120&&c.length>=120)?new A1.Z(a&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,ef.useCallback)(e=>{l(t=>{var n;return(n=[...t,...e]).length?TC(n):[]})},[l]),d=(0,ef.useCallback)(e=>{l(t=>Te(t,e))},[l]),f=(0,ef.useCallback)(()=>{l(r)},[l,r]),h=(0,ef.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),p=(0,ef.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[o,a]=(0,k2.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,k2.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,ef.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),setSortDirection:l,setSortField:a,sortableColumns:(0,ef.useMemo)(()=>r?TP(r.map(e=>e.id),i):[],[r,i]),sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),x=(0,ef.useMemo)(()=>o?TP(o.map(e=>e.id),p):[],[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function TD(){let[e,t]=(0,ef.useState)([]),n=function(){let e=(0,df.xj)(),t=(0,df.jD)(),n=(0,df.lr)();return(0,ef.useCallback)(()=>{if(!e||!t)return;let r=new URLSearchParams(n),i=r.toString();r.delete("limit"),r.delete("offset"),r.delete("marker");let o=r.toString(),a=i?"".concat(t,"?").concat(i):t,s=o?"".concat(t,"?").concat(o):t;s!==a&&e.replace(s)},[e,n,t])}(),r=(0,ef.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,ef.useCallback)(()=>{t([]),n()},[t,n]),o=(0,ef.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),a=(0,ef.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function TL(e){return(0,gX.B$)(e).times(4)}function TZ(e){return(0,gX.Uz)(TL(e))}function TF(e){var t;return t=(0,gX.Hz)(e),(0,gX.il)(t).div(4).integerValue()}function TV(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,gX.gU)(5),n.startHeight=n.startHeight-(0,gX.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=k0(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}new(fJ())(0);let Tz=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function TI(e){let t=[];for(let n=0,r=e.length;n{let r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function TW(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tq(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),TW(i)}let T$=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||T$(n,t))};function TY(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let o=Tz();try{t.className=`${t.className} ${o}`}catch(e){return}let a=document.createElement("style");a.appendChild(function(e,t,n){let r=`.${e}:${t}`,i=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):TI(n).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${i}}`)}(o,n,r)),t.appendChild(a)}let TG="application/font-woff",TK="image/jpeg",TX={woff:TG,woff2:TG,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:TK,jpeg:TK,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function TQ(e){return TX[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function TJ(e){return -1!==e.search(/^(data:)/)}function T0(e,t){return`data:${t};base64,${e}`}async function T1(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)})}let T2={};async function T4(e,t,n){var r,i,o;let a,s;let l=(r=e,i=t,o=n.includeQueryParams,s=r.replace(/\?.*/,""),o&&(s=r),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=T2[l])return T2[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await T1(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));a=T0(r,t)}catch(r){a=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return T2[l]=a,a}async function T3(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):TU(t)}async function T5(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),TU(t.toDataURL())}let n=e.poster,r=TQ(n);return TU(await T4(n,r,t))}async function T6(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await Pt(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function T8(e,t){return T$(e,HTMLCanvasElement)?T3(e):T$(e,HTMLVideoElement)?T5(e,t):T$(e,HTMLIFrameElement)?T6(e):e.cloneNode(!1)}let T7=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function T9(e,t,n){var r,i;let o=[];return 0===(o=T7(e)&&e.assignedNodes?TI(e.assignedNodes()):T$(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?TI(e.contentDocument.body.childNodes):TI((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes)).length||T$(e,HTMLVideoElement)||await o.reduce((e,r)=>e.then(()=>Pt(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Pe(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iT8(e,t)).then(n=>T9(e,n,t)).then(t=>{var n,r;return n=e,T$(r=t,Element)&&(!function(e,t){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):TI(r).forEach(i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}T$(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))})}(n,r),TY(n,r,":before"),TY(n,r,":after"),T$(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),T$(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(T$(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>Pe(e,t)):null}let Pn=/url\((['"]?)([^'"]+?)\1\)/g,Pr=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Pi=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function Po(e,t,n,r,i){try{let o;let a=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,s=TQ(t);if(i){let e=await i(a);o=T0(e,s)}else o=await T4(a,s,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${o}$3`)}catch(e){}return e}function Pa(e){return -1!==e.search(Pn)}async function Ps(e,t,n){if(!Pa(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(Pi,e=>{for(;;){let[n,,r]=Pr.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(Pn,(e,n,r)=>(t.push(r),e)),t.filter(e=>!TJ(e))})(r).reduce((e,r)=>e.then(e=>Po(e,r,t,n)),Promise.resolve(r))}async function Pl(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await Ps(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function Pu(e,t){await Pl("background",e,t)||await Pl("background-image",e,t),await Pl("mask",e,t)||await Pl("mask-image",e,t)}async function Pc(e,t){let n=T$(e,HTMLImageElement);if(!(n&&!TJ(e.src))&&!(T$(e,SVGImageElement)&&!TJ(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await T4(r,TQ(r),t);await new Promise((t,r)=>{e.onload=t,e.onerror=r,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function Pd(e,t){let n=TI(e.childNodes).map(e=>Pf(e,t));await Promise.all(n).then(()=>e)}async function Pf(e,t){T$(e,Element)&&(await Pu(e,t),await Pc(e,t),await Pd(e,t))}let Ph={};async function Pp(e){let t=Ph[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},Ph[e]=t,t}async function Pm(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),T1(o,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function Pv(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=o.exec(n)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function Pg(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{TI(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1,a=e.href,s=Pp(a).then(e=>Pm(e,t)).then(e=>Pv(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(s)}})}catch(o){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(Pp(n.href).then(e=>Pm(e,t)).then(e=>Pv(e).forEach(e=>{i.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{TI(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function Py(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=TI(e.ownerDocument.styleSheets);return(await Pg(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Pa(e.style.getPropertyValue("src")))}async function Pb(e,t){let n=await Py(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Ps(e.cssText,n,t)}))).join("\n")}async function Px(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await Pb(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function Pw(e,t={}){let{width:n,height:r}=TH(e,t),i=await Pt(e,t,!0);return await Px(i,t),await Pf(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await Tq(i,n,r)}async function PE(e,t={}){let{width:n,height:r}=TH(e,t),i=await Pw(e,t),o=await TU(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return a.width=u*l,a.height=c*l,!t.skipAutoScale&&(a.width>16384||a.height>16384)&&(a.width>16384&&a.height>16384?a.width>a.height?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384):a.width>16384?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384)),a.style.width=`${u}`,a.style.height=`${c}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function Pj(e,t={}){return(await PE(e,t)).toDataURL()}async function Pk(e,t){let{name:n,quality:r,copy:i,download:o}=t;if(!e)throw Error("HTML node required");let a=await Pj(e,{quality:r||.5});if(o){let e=document.createElement("a");e.download="".concat(n,".png"),e.href=a,e.click()}if(i){let e=await fetch(a);OR(await e.blob(),"image/png",n)}}},2002:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return Z},Uy:function(){return F},GP:function(){return y},kr:function(){return b},nH:function(){return l},KU:function(){return x},rV:function(){return E},Az:function(){return k},uo:function(){return S},Te:function(){return j},d$:function(){return s},On:function(){return a},Wl:function(){return d},cQ:function(){return c},cM:function(){return R},Kw:function(){return D},hV:function(){return g},ST:function(){return _},_3:function(){return N},HU:function(){return M},uq:function(){return T},G:function(){return P},Rz:function(){return A},Fn:function(){return O},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(67108),i=n(79381);let o="/state/host";function a(e){return(0,r.Nf)({...e,route:o})}function s(e){return(0,r.Nf)({...e,route:"/state/consensus"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}});return(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,r.du)():(0,r.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}let u="/syncer/peers";function c(e){return(0,r.Nf)({...e,route:u})}function d(e){return(0,r.V1)({...e,route:"/syncer/peers"},async e=>{e(e=>e===u)})}function f(e){return(0,r.Nf)({...e,route:"/wallet"})}function h(e){return(0,r.Nf)({...e,route:"/wallet/transactions"})}let p="/wallet/pending";function m(e){return(0,r.Nf)({...e,route:p})}function v(e){return(0,r.mw)({...e,route:"/wallet/send"},async e=>{await (0,r.gw)(2e3),e(e=>e.startsWith(p))})}function g(e){return(0,r.Nf)({...e,route:"/tpool/fee"})}function y(e){return(0,r.q0)({...e,route:"/contracts"})}function b(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function x(e){return(0,r.Nf)({...e,route:"/metrics/:interval"})}let w="/settings";function E(e){return(0,r.Nf)({...e,route:w})}function j(e){return(0,r.E)({...e,route:"/settings"},async e=>{await e(e=>e.startsWith(w))})}function k(e){return(0,r.mw)({...e,route:"/settings/announce"})}function S(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function O(e){return(0,r.Nf)({...e,route:"/volumes"})}function _(e){return(0,r.Nf)({...e,route:"/volumes/:id"})}let C="/volumes";function M(e){return(0,r.mw)({...e,route:C},async e=>{e(e=>e.startsWith(C))})}function A(e){return(0,r.V1)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function P(e){return(0,r.V1)({...e,route:"/volumes/:id/resize"},async e=>{await (0,r.gw)(1e4),e(e=>e.startsWith(C))})}function N(e){return(0,r.iv)({...e,route:"/volumes/:id/cancel"},async e=>{await (0,r.gw)(3e3),e(e=>e.startsWith(C))})}function R(e){return(0,r.Nf)({...e,route:"/system/dir"})}function D(e){return(0,r.V1)({...e,route:"/system/dir"})}let L="/alerts";function Z(e){return(0,r.Nf)({...e,route:L})}function F(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},99605:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.a},Fb:function(){return a.a},j0:function(){return c.useRouter},jD:function(){return u.usePathname},lr:function(){return u.useSearchParams},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),o=n(97729),a=n.n(o),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},67108:function(e,t,n){"use strict";n.d(t,{bW:function(){return V},kl:function(){return G},gw:function(){return a},Tc:function(){return $},du:function(){return Y},Hv:function(){return F},iv:function(){return q},Nf:function(){return W},E:function(){return U},mw:function(){return I},q0:function(){return z},Tb:function(){return A},V1:function(){return H},I7:function(){return B}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return M}});var i=n(79381);function o(e,t){return!e||t?null:e}function a(e){return new Promise(t=>setTimeout(t,e))}var s=n(89644),l=n.n(s),u=n(2784);function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e){return{...e,config:{...null==e?void 0:e.config}}}function h(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function p(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=h(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function m(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t)for(let n of Object.keys(t)){let r=String(t[n]);e.includes(":".concat(n))?e=e.replace(":".concat(n),r):e.includes("?")?e+="&".concat(n,"=").concat(encodeURIComponent(r)):e+="?".concat(n,"=").concat(encodeURIComponent(r))}return e}(t,i)))return null;let o=h(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function v(e,t,n,r){let i=h(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var g=n(52322),y=n(99605),b=n(92762);function x(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let w=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function E(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let j="undefined"==typeof window,k=(()=>{if(j)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class S extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let O=[],_=[];function C(e){return null!=e}let M=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>x(void 0,void 0,void 0,function*(){let a={};if(j)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>x(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new S("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=E(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=E(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return x(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof S)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=Math.abs(x-t*n);re===n?t-r:e-n);if(!v.length){let e=w.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,b]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,b);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,b)});function A(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let{getGPUTier:T}=r,P=(0,u.createContext)({}),N=()=>(0,u.useContext)(P);function R(e){let{children:t}=e,n=function(){let[e,t]=(0,u.useState)({}),n=(0,u.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]);return{setWorkflow:n,removeWorkflow:(0,u.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,u.useCallback)(()=>{t({})},[t]),workflows:(0,u.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,g.jsx)(P.Provider,{value:n,children:t})}let D=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],L={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:D[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},Z=(0,u.createContext)({}),F=()=>(0,u.useContext)(Z);function V(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,o=(0,u.useMemo)(()=>({...L,...r}),[r]),[a,s]=(0,b.Z)("v1/settings",{defaultValue:o});(0,u.useEffect)(()=>{s(e=>({...o,...e}))},[]);let l=(0,u.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=N(),d=(0,u.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,u.useCallback)(e=>{let t=D.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,y.xj)(),p=(0,y.jD)(),[m,v]=(0,u.useState)({}),g=(0,u.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,u.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,y.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),E=(0,u.useMemo)(()=>!!l.password,[l]);return{settings:l,setSettings:d,setCurrency:f,currencyOptions:D,gpu:function(){let e=A(),[t,n]=(0,u.useState)(!1),[r,i]=(0,u.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,b.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,u.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,u.useCallback)(async()=>{let e=!1;{let t=await T();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&l(!1,!1)}i(e),n(!0)},[i,l,a]);return(0,u.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:l}}(),lock:x,isUnlockedAndAuthedRoute:E&&w,passwordProtectRequestHooks:t,setOnLockCallback:g}}(n);return(0,g.jsx)(Z.Provider,{value:r,children:t})}function z(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0),c=(0,u.useMemo)(()=>o(s?"".concat(s).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!r.password),[s,e,n,a,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!s)throw Error("No route");try{return(await l().post(s,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function I(e,t){let{setWorkflow:n,removeWorkflow:r}=N(),{mutate:o}=(0,i.kY)(),{settings:a}=F(),s=c(e);return{post:async e=>{let i=f(e);try{let u;let c=p(a,s,i),d=m(a,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(a,d,e,i);n(f,{path:h,payload:u});let g=await l().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let r=v(a,n,e,i);return t(r)},n,r)},i,g),r(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0),c=(0,u.useMemo)(()=>o(s?"".concat(s).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!r.password),[s,e,n,a,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!s)throw Error("No route");try{return(await l().put(s,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function H(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{put:async e=>{let i=f(e);try{let u;let c=p(r,s,i),d=m(r,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(r,d,e,i);o(f,{path:h,payload:u});let g=await l().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function U(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{patch:async e=>{let i=f(e);try{let u;let c=p(r,s,i),d=m(r,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(r,d,e,i);o(f,{path:h,payload:u});let g=await l().patch(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function W(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0);return(0,i.ZP)(o(e.standalone?"".concat(e.standalone,"/").concat(s):s,n.disabled||a&&!r.password),async()=>{if(!n.route)throw Error("No route");let e=p(r,n,void 0);if(!s)throw Error("No route");try{return(await l().get(s,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function q(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{delete:async e=>{let i=f(e);try{let u=p(r,s,i),c=m(r,s.route,s,i);if(!c)throw Error("No route");let d=v(r,c,e,i);o(c,{path:d});let f=await l().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,f),a(c),{status:f.status,data:f.data,headers:f.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function $(){return Math.round((new Date().getTime()-14336e8)/6e5)}function Y(){return Math.round((new Date().getTime()-16736e8)/6e5)}function G(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,g.jsx)(R,{children:(0,g.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},95685:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{RVU:function(){return t$},eHR:function(){return t1},xHM:function(){return t2},IRm:function(){return t4},L6f:function(){return t3},rW0:function(){return t5},osk:function(){return t6},JaG:function(){return t8},wWN:function(){return iM},Dkj:function(){return iV},cfm:function(){return t9},YV2:function(){return ns},EMN:function(){return nl},bdU:function(){return nu},VUy:function(){return nc},Cp0:function(){return nd},kqg:function(){return nf},Mes:function(){return nh},DI$:function(){return nm},NlZ:function(){return nS},Y3p:function(){return n_},Z$8:function(){return nO},tEK:function(){return nM},yar:function(){return nC},PcV:function(){return nT},QN4:function(){return nA},Jsc:function(){return nN},T80:function(){return nP},wEY:function(){return nZ},olJ:function(){return nV},vtB:function(){return nF},KiD:function(){return nB},dDl:function(){return nH},Jrl:function(){return nq},aPl:function(){return n$},kBK:function(){return iD},Bpb:function(){return nK},vzB:function(){return nX},dr6:function(){return n1},d19:function(){return n2},w9S:function(){return n4},VBo:function(){return iA},Hb6:function(){return n6},CCF:function(){return n8},Qbr:function(){return rt},L37:function(){return rn},ROc:function(){return iZ},UG6:function(){return iL},lq1:function(){return rr},zvn:function(){return iT},K2o:function(){return iR},EL$:function(){return ro},BdP:function(){return rd},dsj:function(){return rf},P5r:function(){return rh},RdX:function(){return rp},U_S:function(){return rm},V8Q:function(){return rb},POp:function(){return rx},kSc:function(){return rw},mBM:function(){return iN},Lur:function(){return rS},b47:function(){return rO},Sfn:function(){return r_},W$S:function(){return rN},T85:function(){return rR},Ckx:function(){return rD},dZ8:function(){return rZ},EOT:function(){return rL},RK4:function(){return rV},jH8:function(){return rU},XJM:function(){return rW},RRj:function(){return rq},ka0:function(){return r$},hzZ:function(){return rG},VUg:function(){return r0},owP:function(){return r1},Fs9:function(){return r2},wGX:function(){return r4},Wet:function(){return r8},BB5:function(){return r7},ZEk:function(){return r9},$Iz:function(){return ii},shL:function(){return io},hiv:function(){return ia},mli:function(){return il},lJ7:function(){return iF},ORH:function(){return ic},xVB:function(){return iy},pHg:function(){return ib},I$H:function(){return iw},HCc:function(){return ix},oaN:function(){return iP},qdM:function(){return ij},gFQ:function(){return iE},SmH:function(){return iO},lg1:function(){return i_}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_,C,M,A,T,P,N,R,D,L,Z,F,V,z,I,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,ek,eS,eO,e_,eC,eM,eA,eT,eP,eN,eR,eD,eL,eZ,eF,eV,ez,eI,eB,eH,eU,eW,eq,e$,eY,eG,eK,eX,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tE,tj,tk,tS,tO,t_,tC,tM,tA,tT,tP,tN=["width","height","viewBox"],tR=["tabindex"],tD={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tL=n(13980),tZ=n.n(tL),tF=n(2784);function tV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tz(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tH=["className","children","tabIndex"],tU=["tabindex"],tW=tF.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tN),l=s.tabindex,u=o(s,tR),c=i(i(i({},tD),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tz(tz({},tB(e,tH)),{},{tabindex:a})),l=s.tabindex,u=tB(s,tU);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tF.createElement("svg",u,r)});tW.displayName="Icon",tW.propTypes={"aria-hidden":tZ().string,"aria-label":tZ().string,"aria-labelledby":tZ().string,children:tZ().node,className:tZ().string,height:tZ().oneOfType([tZ().number,tZ().string]),preserveAspectRatio:tZ().string,tabIndex:tZ().string,viewBox:tZ().string,width:tZ().oneOfType([tZ().number,tZ().string]),xmlns:tZ().string},tW.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tq=["children"],t$=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tq);return tF.createElement(tW,tI({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tF.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tY=["children"],tG=["children"],tK=["children"],tX=["children"],tQ=["children"],tJ=["children"],t0=["children"],t1=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tY);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tF.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tF.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),t2=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tG);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tF.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),t4=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tK);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tF.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),n)}),t3=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tX);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tF.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),t5=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tQ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tF.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),t6=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,tJ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tF.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),t8=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,t0);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tF.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tF.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tF.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tF.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tF.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),b||(b=tF.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tF.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tF.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tF.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),t7=["children"],t9=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,t7);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tF.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),n)}),ne=["children"],nt=["children"],nn=["children"],nr=["children"],ni=["children"],no=["children"],na=["children"],ns=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ne);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tF.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),n)}),nl=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nt);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tF.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nu=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nn);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tF.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nc=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nr);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tF.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nd=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ni);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tF.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nf=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,no);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tF.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nh=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,na);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tF.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),np=["children"],nm=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,np);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tF.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),P||(P=tF.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),nv=["children"],ng=["children"],ny=["children"],nb=["children"],nx=["children"],nw=["children"],nE=["children"],nj=["children"],nk=["children"],nS=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nv);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tF.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nO=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ng);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tF.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),n_=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ny);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=tF.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),Z||(Z=tF.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nC=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nb);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tF.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),V||(V=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nM=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nx);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tF.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),I||(I=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nA=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nw);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tF.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nT=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nE);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tF.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nP=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nj);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tF.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),W||(W=tF.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nN=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nk);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tF.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),$||($=tF.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nR=["children"],nD=["children"],nL=["children"],nZ=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nR);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tF.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),G||(G=tF.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nF=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nD);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=tF.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),X||(X=tF.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nV=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nL);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tF.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),J||(J=tF.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nz=["children"],nI=["children"],nB=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nz);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ee||(ee=tF.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),et||(et=tF.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nH=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nI);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),en||(en=tF.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),er||(er=tF.createElement("circle",{cx:"11",cy:"8",r:"1"})),ei||(ei=tF.createElement("circle",{cx:"11",cy:"16",r:"1"})),eo||(eo=tF.createElement("circle",{cx:"11",cy:"24",r:"1"})),ea||(ea=tF.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),n)}),nU=["children"],nW=["children"],nq=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nU);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tF.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),el||(el=tF.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),n$=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nW);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tF.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ec||(ec=tF.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nY=["children"],nG=["children"],nK=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nY);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tF.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nX=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nG);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tF.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),nQ=["children"],nJ=["children"],n0=["children"],n1=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nQ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tF.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),n2=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,nJ);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tF.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),em||(em=tF.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ev||(ev=tF.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),n4=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n0);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tF.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),n3=["children"],n5=["children"],n6=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n3);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=tF.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),n8=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n5);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tF.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),n7=["children"],n9=["children"],re=["children"],rt=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n7);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tF.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),rn=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,n9);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tF.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eE||(eE=tF.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),rr=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,re);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tF.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ek||(ek=tF.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),ri=["children"],ro=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ri);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tF.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),ra=["children"],rs=["children"],rl=["children"],ru=["children"],rc=["children"],rd=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ra);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tF.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),rf=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rs);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),n)}),rh=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rl);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tF.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),rp=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ru);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tF.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eA||(eA=tF.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),rm=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rc);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tF.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),rv=["children"],rg=["children"],ry=["children"],rb=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rv);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tF.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eN||(eN=tF.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rx=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rg);return tF.createElement(tW,tI({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tF.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eD||(eD=tF.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rw=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ry);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tF.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rE=["children"],rj=["children"],rk=["children"],rS=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rE);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tF.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),rO=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rj);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tF.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eV||(eV=tF.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),r_=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rk);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tF.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rC=["children"],rM=["children"],rA=["children"],rT=["children"],rP=["children"],rN=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rC);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tF.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eB||(eB=tF.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rR=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rM);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tF.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),rD=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rA);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tF.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eW||(eW=tF.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rL=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rT);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tF.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e$||(e$=tF.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rZ=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rP);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tF.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eG||(eG=tF.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rF=["children"],rV=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rF);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tF.createElement("circle",{cx:"21",cy:"26",r:"2"})),eX||(eX=tF.createElement("circle",{cx:"21",cy:"6",r:"2"})),eQ||(eQ=tF.createElement("circle",{cx:"4",cy:"16",r:"2"})),eJ||(eJ=tF.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rz=["children"],rI=["children"],rB=["children"],rH=["children"],rU=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rz);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tF.createElement("circle",{cx:"8",cy:"16",r:"2"})),e1||(e1=tF.createElement("circle",{cx:"16",cy:"16",r:"2"})),e2||(e2=tF.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),rW=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rI);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e4||(e4=tF.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rq=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rB);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=tF.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),r$=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rH);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tF.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),e6||(e6=tF.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rY=["children"],rG=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rY);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),e7||(e7=tF.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rK=["children"],rX=["children"],rQ=["children"],rJ=["children"],r0=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rK);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tF.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),te||(te=tF.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),r1=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rX);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tF.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tn||(tn=tF.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),tr||(tr=tF.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),r2=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rQ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),r4=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,rJ);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tF.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),ta||(ta=tF.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),r3=["children"],r5=["children"],r6=["children"],r8=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,r3);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tF.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),r7=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,r5);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=tF.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),n)}),r9=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,r6);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tF.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),ie=["children"],it=["children"],ir=["children"],ii=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ie);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tF.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),io=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,it);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tF.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tf||(tf=tF.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),ia=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ir);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tF.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),is=["children"],il=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,is);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tF.createElement("path",{d:"M8 15H24V17H8z"})),n)}),iu=["children"],ic=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,iu);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tF.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),id=["children"],ih=["children"],ip=["children"],im=["children"],iv=["children"],ig=["children"],iy=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,id);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tF.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tg||(tg=tF.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),ib=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ih);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tF.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tb||(tb=tF.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),ix=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ip);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tF.createElement("path",{d:"M22 17H24V19H22z"})),tw||(tw=tF.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iw=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,im);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tF.createElement("path",{d:"M22 17H24V19H22z"})),tj||(tj=tF.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iE=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,iv);return tF.createElement(tW,tI({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tF.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),tS||(tS=tF.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),ij=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ig);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=tF.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),t_||(t_=tF.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),ik=["children"],iS=["children"],iO=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,ik);return tF.createElement(tW,tI({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tF.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tM||(tM=tF.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),i_=tF.forwardRef(function(e,t){var n=e.children,r=tB(e,iS);return tF.createElement(tW,tI({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=tF.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tT||(tT=tF.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tP||(tP=tF.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),iC=n(52322);function iM(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iC.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function iA(e){let{size:t=24,className:n}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iC.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iT(e){let{size:t=24,className:n}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,iC.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function iP(e){let{size:t=24,className:n}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iC.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function iN(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iC.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function iR(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,iC.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function iD(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iC.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function iL(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iC.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function iZ(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iC.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function iF(e){let{size:t=24}=e;return(0,iC.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,iC.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iC.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,iC.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,iC.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,iC.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iV(e){let{size:t=24}=e;return(0,iC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iC.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},85375:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(67108);function i(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}},21487:function(e,t,n){"use strict";n.d(t,{Hz:function(){return u},Y:function(){return d},B$:function(){return a},xf:function(){return s},jr:function(){return S},pp:function(){return j},E6:function(){return k},Uz:function(){return l},BT:function(){return c},il:function(){return o},gU:function(){return w},vW:function(){return g},rN:function(){return x},yF:function(){return b},Vz:function(){return v},bc:function(){return y},S5:function(){return E},qN:function(){return p},ll:function(){return h}});var r=n(6391),i=n.n(r);function o(e){return new(i())(e).div(1024).div(1024)}function a(e){return new(i())(e).times(1024).times(1024)}function s(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function l(e){return new(i())(e).div(1e3).div(1e3).div(1e3)}function u(e){return new(i())(e).times(1e3).times(1e3).times(1e3)}function c(e){return new(i())(e).div(1e3).div(1e3)}function d(e){return new(i())(e).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let f=new r.BigNumber("10").exponentiatedBy(24);function h(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(f).toFixed(t)):new r.BigNumber(e).dividedBy(f)}function p(e){return new r.BigNumber(new r.BigNumber(e).times(f).toFixed(0))}let m={fixed:3,dynamicUnits:!0,hastingUnits:!1};function v(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...m,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),c=l.isNegative()?"-":"";if(!i)return"".concat(c).concat(h(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(c).concat(u," H"):"".concat(c,"0 SC");let d=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===d.length-1)return"".concat(c).concat(i.toFormat(n)," ").concat(d[e])}return""}function g(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3));return(n/Math.pow(1e3,o)).toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function y(e,t){let{format:n="abbreviated"}=t||{},r="abbreviated"===n;if(e<1e3)return"".concat(e.toFixed(0)).concat(r?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(r?"s":" seconds");let o=i/60;if(o<60)return"".concat(o.toFixed(0)).concat(r?"m":" minutes");let a=o/60;return a<24?"".concat(a.toFixed(0)).concat(r?"h":" hours"):"".concat((a/24).toFixed(0)).concat(r?"d":" days")}function b(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function x(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function w(e){return 144*e}function E(e){return 4320*e}function j(e){return e/16666666666666669e-22}function k(e){return e/4320}function S(e,t){return new Date().getTime()+j(t-e)}n(81395)},45932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},67531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("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)},76923:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("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)},58710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(56428),o=n(26297),a=n(76923),s=n(33607),l=n(9424),u=n(84830),c=n(70929),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext);return(0,r.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return(0,r.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),o=i?t[1]:t;!o||o.startsWith("__PAGE__")||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("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)},70929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===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)},32254:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("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)},84830:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return h},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return m}});let o=n(37449),a=n(45932),s=n(32254),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(o)&&o in s.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("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)},37449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},33607:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return 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)},40413:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("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)},41275:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(60261),("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)},84589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let r=n(43219),i=n(16794)._(n(2784)),o=r._(n(28316)),a=r._(n(70666)),s=n(35022),l=n(59595),u=n(22530);n(85667);let c=n(14442),d=r._(n(1071)),f={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:!0};function h(e,t,n,r,i,o){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function p(e){let[t,n]=i.version.split(".",2),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:m,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:j,...k}=e;return i.default.createElement("img",{...k,...p(d),loading:m,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:o,srcSet:r,src:n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&h(e,f,y,b,x,v))},[n,f,y,b,x,j,v,t]),onLoad:e=>{h(e.currentTarget,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),j&&j(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...p(n.fetchPriority)};return t&&o.default.preload?(o.default.preload(n.src,r),null):i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let g=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(c.RouterContext),r=(0,i.useContext)(u.ImageConfigContext),o=(0,i.useMemo)(()=>{let e=f||r||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:h}=e,p=(0,i.useRef)(a);(0,i.useEffect)(()=>{p.current=a},[a]);let g=(0,i.useRef)(h);(0,i.useEffect)(()=>{g.current=h},[h]);let[y,b]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),{props:E,meta:j}=(0,s.getImgProps)(e,{defaultLoader:d.default,imgConf:o,blurComplete:y,showAltText:x});return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:t}),j.priority?i.default.createElement(v,{isAppRouter:!n,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)},7117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(43219)._(n(2784)),i=n(86338),o=n(25863),a=n(6408),s=n(20654),l=n(41127),u=n(14442),c=n(56428),d=n(54746),f=n(41275),h=n(35722),p=n(40413),m=new Set;function v(e,t,n,r,i,a){if(a||(0,o.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}Promise.resolve(a?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let n,a;let{href:m,as:y,children:b,prefetch:x=null,passHref:w,replace:E,shallow:j,scroll:k,locale:S,onClick:O,onMouseEnter:_,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let T=r.default.useContext(u.RouterContext),P=r.default.useContext(c.AppRouterContext),N=null!=T?T:P,R=!T,D=!1!==x,L=null===x?p.PrefetchKind.AUTO:p.PrefetchKind.FULL,{href:Z,as:F}=r.default.useMemo(()=>{if(!T){let e=g(m);return{href:e,as:y?g(y):e}}let[e,t]=(0,i.resolveHref)(T,m,!0);return{href:e,as:y?(0,i.resolveHref)(T,y):t||e}},[T,m,y]),V=r.default.useRef(Z),z=r.default.useRef(F);M&&(a=r.default.Children.only(n));let I=M?a&&"object"==typeof a&&a.ref:t,[B,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(e=>{(z.current!==F||V.current!==Z)&&(U(),z.current=F,V.current=Z),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[F,I,Z,U,B]);r.default.useEffect(()=>{N&&H&&D&&v(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==T?void 0:T.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof O||O(e),M&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,i,a,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,o.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[a?"replace":"push"](n,i,{shallow:s,locale:u,scroll:e}):t[a?"replace":"push"](i||n,{scroll:e})};c?r.default.startTransition(f):f()}(e,N,Z,F,E,j,k,S,R)},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,s.isAbsoluteUrl)(F))q.href=F;else if(!M||w||"a"===a.type&&!("href"in a.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,h.addBasePath)((0,l.addLocale)(F,e,null==T?void 0:T.defaultLocale))}return M?r.default.cloneElement(a,q):r.default.createElement("a",{...A,...q},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)},54746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(27155),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},35022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(85667);let r=n(48026),i=n(59595);function o(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 n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:S,layout:O,objectFit:_,objectPosition:C,lazyBoundary:M,lazyRoot:A,...T}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let Z=T.loader||D;delete T.loader,delete T.srcSet;let F="__next_img_default"in Z;if(F){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=Z;Z=t=>{let{config:n,...r}=t;return e(r)}}if(O){"fill"===O&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!d&&(d=t)}let V="",z=a(g),I=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(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,k=k||e.blurDataURL,V=e.src,!b){if(z||I){if(z&&!I){let t=z/e.width;I=Math.round(e.height*t)}else if(!z&&I){let t=I/e.height;z=Math.round(e.width*t)}}else z=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:C}:{},N?{}:{color:"transparent"},x),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:z,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:z,quality:H,sizes:d,loader:Z});return{props:{...T,loading:B?"lazy":p,fetchPriority:S,width:z,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},meta:{unoptimized:f,priority:h,placeholder:j,fill:b}}}},48026:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,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='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},84420:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return l},default:function(){return u}});let r=n(43219),i=n(35022),o=n(85667),a=n(84589),s=r._(n(1071)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.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:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},1071:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},9424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let r=n(16794)._(n(2784)),i=r.default.createContext(null);function o(e){let t=(0,r.useContext)(i);t&&t(e)}},50521:function(){},28863:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},46058:function(e){e.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){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===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],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 o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,E=e.allowPinchZoom,j=e.as,k=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),O=(0,u.pi)((0,u.pi)({},k),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!E,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},O),{ref:S})):c.createElement(void 0===j?"div":j,(0,u.pi)({},O,{className:m,ref:S}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},j=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k=b(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return j(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var C=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(e){_=!1}var M=!!_&&{passive:!1},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?A(t):T(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},V=0,z=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(V++)[0],o=c.useState(function(){return b()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[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=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(z.length&&z[z.length-1]===o){var n="deltaY"in e?Z(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,Z(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return z.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){z=z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(O,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(93542);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/hostd/assets/_next/static/chunks/pages/config-08c906f9a89ca8ab.js b/hostd/assets/_next/static/chunks/pages/config-08c906f9a89ca8ab.js deleted file mode 100644 index d1b36ff82..000000000 --- a/hostd/assets/_next/static/chunks/pages/config-08c906f9a89ca8ab.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(76082)}])},53644:function(e,n,s){"use strict";s.d(n,{q:function(){return j}});var i=s(52322),t=s(64453),r=s(59880),l=s(6391),a=s.n(l),c=s(98334),o=s(38855);function d(){let e=(0,r.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(t.t6k,{testnetName:e.data.network}):null}var x=s(86254),u=s(74667),h=s(21487);function f(){var e,n,s,l,a,c,d,f;let{openDialog:j}=(0,x.Rh)(),v=(0,r.On)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.rV)({config:{swr:{revalidateOnFocus:!1}}}),g=(0,o.n)(),p=(0,r.cQ)(),w=(0,u.B)(),y=null===(e=v.data)||void 0===e?void 0:e.version,b=(null==y?void 0:y.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(y):"https://github.com/SiaFoundation/hostd/tree/".concat(y),N=v.data?new Date().getTime()-new Date(null===(n=v.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(t.HfT,{name:"hostd",peerCount:null===(s=p.data)||void 0===s?void 0:s.length,connectPeer:()=>j("connectPeer"),isSynced:g.isSynced,syncPercent:g.syncPercent,nodeBlockHeight:g.nodeBlockHeight,estimatedBlockHeight:g.estimatedBlockHeight,firstTimeSyncing:g.firstTimeSyncing,moreThan100BlocksToSync:g.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.XxW,{size:"14",value:null===(l=m.data)||void 0===l?void 0:l.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.XxW,{size:"14",maxLength:24,value:null===(c=v.data)||void 0===c?void 0:c.walletAddress,type:"address"})})]}),v.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.xvT,{size:"14",children:(0,h.bc)(N,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(t.xvT,{size:"14",children:null===(d=v.data)||void 0===d?void 0:d.network})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(t.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(f=v.data)||void 0===f?void 0:f.version})]})]})}function j(e){let n=(0,r.Os)(),{isSynced:s}=(0,o.n)();return(0,i.jsx)(t.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,i.jsx)(d,{}),profile:(0,i.jsx)(f,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},77002:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var i=s(52322),t=s(64453),r=s(95685),l=s(59880),a=s(82851),c=s(98334),o=s(86254);function d(){var e,n;let{openDialog:s}=(0,o.Rh)(),d=(0,l.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=d.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.KJW,{title:"Dashboard",route:c._.home,children:(0,i.jsx)(r.K2o,{})}),(0,i.jsx)(t.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,i.jsx)(r.zvn,{})}),(0,i.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,i.jsx)(t.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,i.jsx)(t.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},76082:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return b}});var i=s(52322),t=s(64453),r=s(95685),l=s(77002),a=s(98334),c=s(86254),o=s(53644),d=s(51507);function x(){let{showAdvanced:e,setShowAdvanced:n}=(0,d.ZR)();return(0,i.jsx)("div",{className:"pl-1",children:(0,i.jsx)(t.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,i.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,i.jsx)(t.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,i.jsx)(t.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function u(){let{revalidateAndResetForm:e}=(0,d.ZR)();return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,i.jsx)(t.xvT,{children:(0,i.jsx)(r.gFQ,{className:"scale-[200%]"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,i.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error retrieving settings from daemon. Please check your connection and try again."}),(0,i.jsx)(t.zxk,{onClick:()=>e(),children:"Reload"})]})]})}var h=s(59880),f=s(21487),j=s(2784),v=s(6391),m=s.n(v);function g(){var e,n,s;let{openConfirmDialog:l}=(0,c.Rh)(),a=(0,h.hV)(),o=(0,h.Az)(),d=(0,h.On)(),x=(0,h.rV)({config:{swr:{refreshInterval:(0,t.sWj)(1)}}}),u=(null===(n=d.data)||void 0===n?void 0:null===(e=n.lastAnnouncement)||void 0===e?void 0:e.address)!==(null===(s=x.data)||void 0===s?void 0:s.netAddress),v=(0,j.useCallback)(()=>l({title:"Announce",action:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.cfm,{}),"Announce"]}),variant:"accent",body:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(t.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),a.data&&(0,i.jsxs)(t.nvN,{size:"14",children:["Announcing will cost"," ",(0,f.Vz)(new(m())(a.data).times(1e3)),"."]})]}),onConfirm:async()=>{if((await o.post({})).error){(0,t.OHV)({title:"Error announcing host"});return}(0,t.OPV)({title:"Successfully broadcast host announcement"})}}),[l,o,a]);return(0,i.jsxs)(t.zxk,{tip:"Announce host address",onClick:v,disabled:!u,children:[(0,i.jsx)(r.cfm,{}),"Announce"]})}function p(){let{takeScreenshot:e}=(0,d.ZR)();return(0,i.jsxs)(t.h_2,{trigger:(0,i.jsx)(t.zxk,{children:(0,i.jsx)(r.jH8,{})}),contentProps:{align:"end"},children:[(0,i.jsx)(t.Juw,{children:"Actions"}),(0,i.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(r.olJ,{})}),"Copy image of configuration"]}),(0,i.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(r.vzB,{})}),"Download image of configuration"]})]})}function w(){let{changeCount:e,revalidateAndResetForm:n,form:s,onSubmit:l}=(0,d.ZR)();return(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[!!e&&(0,i.jsx)(t.xvT,{size:"12",color:"subtle",children:1===e?"1 change":"".concat(e," changes")}),(0,i.jsx)(t.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!e,onClick:n,children:(0,i.jsx)(r.Wet,{})}),(0,i.jsxs)(t.zxk,{tip:"Save all changes",variant:"accent",disabled:!s.formState.isDirty||s.formState.isSubmitting,onClick:l,children:[(0,i.jsx)(r.ZEk,{}),"Save changes"]}),(0,i.jsx)(g,{}),(0,i.jsx)(p,{})]})}function y(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:h,dynDNSCheck:f,form:j,remoteError:v,configRef:m}=(0,d.ZR)();return(0,i.jsx)(o.q,{title:"Configuration",routes:a._,nav:(0,i.jsx)(x,{}),sidenav:(0,i.jsx)(l.N,{}),stats:(null===(e=h.data)||void 0===e?void 0:e.ddns.provider)&&!f.isValidating?f.error?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.xvT,{color:"amber",children:(0,i.jsx)(r.qdM,{})}),(0,i.jsxs)(t.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",f.error.message]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.xvT,{color:"green",children:(0,i.jsx)(r.Y3p,{})}),(0,i.jsx)(t.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,i.jsx)(w,{}),openSettings:()=>n("settings"),size:"3",children:v?(0,i.jsx)(u,{}):(0,i.jsxs)("div",{ref:m,className:"px-5 py-6 flex flex-col gap-16",children:[(0,i.jsx)(t.vRO,{title:"Host",category:"host",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Pricing",category:"pricing",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"DNS",category:"DNS",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Registry",category:"registry",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Accounts",category:"RHP3",fields:s,form:j})]})})}function b(){return(0,i.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/config-757aca48475f72e5.js b/hostd/assets/_next/static/chunks/pages/config-757aca48475f72e5.js new file mode 100644 index 000000000..3f789c88e --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/config-757aca48475f72e5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(76082)}])},53644:function(e,n,s){"use strict";s.d(n,{q:function(){return j}});var i=s(52322),t=s(64453),r=s(2002),l=s(6391),a=s.n(l),c=s(98334),o=s(38855);function d(){let e=(0,r.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(t.t6k,{testnetName:e.data.network}):null}var x=s(86254),u=s(74667),h=s(21487);function f(){var e,n,s,l,a,c,d,f;let{openDialog:j}=(0,x.Rh)(),v=(0,r.On)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.rV)({config:{swr:{revalidateOnFocus:!1}}}),g=(0,o.n)(),p=(0,r.cQ)(),w=(0,u.B)(),y=null===(e=v.data)||void 0===e?void 0:e.version,b=(null==y?void 0:y.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(y):"https://github.com/SiaFoundation/hostd/tree/".concat(y),N=v.data?new Date().getTime()-new Date(null===(n=v.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(t.HfT,{name:"hostd",peerCount:null===(s=p.data)||void 0===s?void 0:s.length,connectPeer:()=>j("connectPeer"),isSynced:g.isSynced,syncPercent:g.syncPercent,nodeBlockHeight:g.nodeBlockHeight,estimatedBlockHeight:g.estimatedBlockHeight,firstTimeSyncing:g.firstTimeSyncing,moreThan100BlocksToSync:g.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.XxW,{size:"14",value:null===(l=m.data)||void 0===l?void 0:l.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.XxW,{size:"14",maxLength:24,value:null===(c=v.data)||void 0===c?void 0:c.walletAddress,type:"address"})})]}),v.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(t.xvT,{size:"14",children:(0,h.bc)(N,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(t.xvT,{size:"14",children:null===(d=v.data)||void 0===d?void 0:d.network})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(t.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(f=v.data)||void 0===f?void 0:f.version})]})]})}function j(e){let n=(0,r.Os)(),{isSynced:s}=(0,o.n)();return(0,i.jsx)(t.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,i.jsx)(d,{}),profile:(0,i.jsx)(f,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},77002:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var i=s(52322),t=s(64453),r=s(95685),l=s(2002),a=s(82851),c=s(98334),o=s(86254);function d(){var e,n;let{openDialog:s}=(0,o.Rh)(),d=(0,l.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=d.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.KJW,{title:"Dashboard",route:c._.home,children:(0,i.jsx)(r.K2o,{})}),(0,i.jsx)(t.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,i.jsx)(r.zvn,{})}),(0,i.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,i.jsx)(t.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,i.jsx)(t.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},76082:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return b}});var i=s(52322),t=s(64453),r=s(95685),l=s(77002),a=s(98334),c=s(86254),o=s(53644),d=s(51507);function x(){let{showAdvanced:e,setShowAdvanced:n}=(0,d.ZR)();return(0,i.jsx)("div",{className:"pl-1",children:(0,i.jsx)(t.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,i.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,i.jsx)(t.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,i.jsx)(t.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function u(){let{revalidateAndResetForm:e}=(0,d.ZR)();return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,i.jsx)(t.xvT,{children:(0,i.jsx)(r.gFQ,{className:"scale-[200%]"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,i.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error retrieving settings from daemon. Please check your connection and try again."}),(0,i.jsx)(t.zxk,{onClick:()=>e(),children:"Reload"})]})]})}var h=s(2002),f=s(21487),j=s(2784),v=s(6391),m=s.n(v);function g(){var e,n,s;let{openConfirmDialog:l}=(0,c.Rh)(),a=(0,h.hV)(),o=(0,h.Az)(),d=(0,h.On)(),x=(0,h.rV)({config:{swr:{refreshInterval:(0,t.sWj)(1)}}}),u=(null===(n=d.data)||void 0===n?void 0:null===(e=n.lastAnnouncement)||void 0===e?void 0:e.address)!==(null===(s=x.data)||void 0===s?void 0:s.netAddress),v=(0,j.useCallback)(()=>l({title:"Announce",action:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.cfm,{}),"Announce"]}),variant:"accent",body:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(t.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),a.data&&(0,i.jsxs)(t.nvN,{size:"14",children:["Announcing will cost"," ",(0,f.Vz)(new(m())(a.data).times(1e3)),"."]})]}),onConfirm:async()=>{if((await o.post({})).error){(0,t.OHV)({title:"Error announcing host"});return}(0,t.OPV)({title:"Successfully broadcast host announcement"})}}),[l,o,a]);return(0,i.jsxs)(t.zxk,{tip:"Announce host address",onClick:v,disabled:!u,children:[(0,i.jsx)(r.cfm,{}),"Announce"]})}function p(){let{takeScreenshot:e}=(0,d.ZR)();return(0,i.jsxs)(t.h_2,{trigger:(0,i.jsx)(t.zxk,{children:(0,i.jsx)(r.jH8,{})}),contentProps:{align:"end"},children:[(0,i.jsx)(t.Juw,{children:"Actions"}),(0,i.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(r.olJ,{})}),"Copy image of configuration"]}),(0,i.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(r.vzB,{})}),"Download image of configuration"]})]})}function w(){let{changeCount:e,revalidateAndResetForm:n,form:s,onSubmit:l}=(0,d.ZR)();return(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[!!e&&(0,i.jsx)(t.xvT,{size:"12",color:"subtle",children:1===e?"1 change":"".concat(e," changes")}),(0,i.jsx)(t.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!e,onClick:n,children:(0,i.jsx)(r.Wet,{})}),(0,i.jsxs)(t.zxk,{tip:"Save all changes",variant:"accent",disabled:!s.formState.isDirty||s.formState.isSubmitting,onClick:l,children:[(0,i.jsx)(r.ZEk,{}),"Save changes"]}),(0,i.jsx)(g,{}),(0,i.jsx)(p,{})]})}function y(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:h,dynDNSCheck:f,form:j,remoteError:v,configRef:m}=(0,d.ZR)();return(0,i.jsx)(o.q,{title:"Configuration",routes:a._,nav:(0,i.jsx)(x,{}),sidenav:(0,i.jsx)(l.N,{}),stats:(null===(e=h.data)||void 0===e?void 0:e.ddns.provider)&&!f.isValidating?f.error?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.xvT,{color:"amber",children:(0,i.jsx)(r.qdM,{})}),(0,i.jsxs)(t.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",f.error.message]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.xvT,{color:"green",children:(0,i.jsx)(r.Y3p,{})}),(0,i.jsx)(t.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,i.jsx)(w,{}),openSettings:()=>n("settings"),size:"3",children:v?(0,i.jsx)(u,{}):(0,i.jsxs)("div",{ref:m,className:"px-5 py-6 flex flex-col gap-16",children:[(0,i.jsx)(t.vRO,{title:"Host",category:"host",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Pricing",category:"pricing",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"DNS",category:"DNS",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Registry",category:"registry",fields:s,form:j}),(0,i.jsx)(t.vRO,{title:"Accounts",category:"RHP3",fields:s,form:j})]})})}function b(){return(0,i.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-35367124651e5156.js b/hostd/assets/_next/static/chunks/pages/contracts-35367124651e5156.js deleted file mode 100644 index 483de8a89..000000000 --- a/hostd/assets/_next/static/chunks/pages/contracts-35367124651e5156.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return n(53260)}])},53644:function(e,s,n){"use strict";n.d(s,{q:function(){return m}});var t=n(52322),l=n(64453),a=n(59880),i=n(6391),r=n.n(i),c=n(98334),o=n(38855);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}var x=n(86254),u=n(74667),h=n(21487);function j(){var e,s,n,i,r,c,d,j;let{openDialog:m}=(0,x.Rh)(),f=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,o.n)(),g=(0,a.cQ)(),b=(0,u.B)(),w=null===(e=f.data)||void 0===e?void 0:e.version,N=(null==w?void 0:w.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(w):"https://github.com/SiaFoundation/hostd/tree/".concat(w),y=f.data?new Date().getTime()-new Date(null===(s=f.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,t.jsxs)(l.HfT,{name:"hostd",peerCount:null===(n=g.data)||void 0===n?void 0:n.length,connectPeer:()=>m("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(i=v.data)||void 0===i?void 0:i.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(r=f.data)||void 0===r?void 0:r.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:24,value:null===(c=f.data)||void 0===c?void 0:c.walletAddress,type:"address"})})]}),f.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:(0,h.bc)(y,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(d=f.data)||void 0===d?void 0:d.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:N,underline:"hover",target:"_blank",ellipsis:!0,children:null===(j=f.data)||void 0===j?void 0:j.version})]})]})}function m(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(j,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},77002:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var t=n(52322),l=n(64453),a=n(95685),i=n(59880),r=n(82851),c=n(98334),o=n(86254);function d(){var e,s;let{openDialog:n}=(0,o.Rh)(),d=(0,i.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=d.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(l.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},53260:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return k}});var t=n(52322),l=n(77002),a=n(98334),i=n(64453),r=n(86254),c=n(38923),o=n(53644),d=n(95685);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(75262),m=n(52058);function f(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,c.G)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),v=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Order by"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,m.Z)(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,t.jsx)("optgroup",{label:s,children:n.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Direction"}),(0,t.jsx)(i.kFS,{children:(0,t.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(i.Clw,{}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function v(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(f,{})})}var p=n(99182),g=n(2784),b=n(34148);function w(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[l,a]=(0,g.useState)(!1),[r,o]=(0,g.useState)(""),[x,u]=(0,g.useState)([]),h=x[x.length-1],j=(x.length,(0,g.useRef)(null)),m=(0,g.useRef)(null),f=(0,g.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,g.useCallback)(()=>{u([])},[u]);(0,g.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,g.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),N=(0,g.useCallback)(()=>{o(""),v()},[v]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(i.eQh,{children:[(0,t.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(p.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||n(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=m.current)||void 0===s||s.blur()}},children:[(0,t.jsx)(p.mY.Input,{ref:m,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(i.xrM,{children:[h&&(0,t.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(p.mY.List,{children:(0,t.jsx)(b.F,{currentPage:h,beforeSelect:w,afterSelect:N,pushPage:f})})]})})]})]})}function N(){let{offset:e,limit:s,totalCount:n,pageCount:l,dataState:a}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:l})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:m,toggleSort:f,limit:p,dataState:g,cellContext:b}=(0,c.G)();return(0,t.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,t.jsx)(l.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(v,{}),stats:(0,t.jsx)(N,{}),size:"full",children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(x,{}):"noneYet"===g?(0,t.jsx)(u,{}):"error"===g?(0,t.jsx)(h,{}):null,pageSize:p,data:n,columns:s,sortableColumns:m,sortDirection:j,sortField:d,toggleSort:f})})})}function k(){return(0,t.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-6a17454aa7e3b504.js b/hostd/assets/_next/static/chunks/pages/contracts-6a17454aa7e3b504.js new file mode 100644 index 000000000..cf81d20c0 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/contracts-6a17454aa7e3b504.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return n(53260)}])},53644:function(e,s,n){"use strict";n.d(s,{q:function(){return m}});var t=n(52322),l=n(64453),a=n(2002),i=n(6391),r=n.n(i),c=n(98334),o=n(38855);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}var x=n(86254),u=n(74667),h=n(21487);function j(){var e,s,n,i,r,c,d,j;let{openDialog:m}=(0,x.Rh)(),f=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,o.n)(),g=(0,a.cQ)(),b=(0,u.B)(),w=null===(e=f.data)||void 0===e?void 0:e.version,N=(null==w?void 0:w.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(w):"https://github.com/SiaFoundation/hostd/tree/".concat(w),y=f.data?new Date().getTime()-new Date(null===(s=f.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,t.jsxs)(l.HfT,{name:"hostd",peerCount:null===(n=g.data)||void 0===n?void 0:n.length,connectPeer:()=>m("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(i=v.data)||void 0===i?void 0:i.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(r=f.data)||void 0===r?void 0:r.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:24,value:null===(c=f.data)||void 0===c?void 0:c.walletAddress,type:"address"})})]}),f.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:(0,h.bc)(y,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(d=f.data)||void 0===d?void 0:d.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:N,underline:"hover",target:"_blank",ellipsis:!0,children:null===(j=f.data)||void 0===j?void 0:j.version})]})]})}function m(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(j,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},77002:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var t=n(52322),l=n(64453),a=n(95685),i=n(2002),r=n(82851),c=n(98334),o=n(86254);function d(){var e,s;let{openDialog:n}=(0,o.Rh)(),d=(0,i.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=d.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(l.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},53260:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return k}});var t=n(52322),l=n(77002),a=n(98334),i=n(64453),r=n(86254),c=n(38923),o=n(53644),d=n(95685);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(75262),m=n(52058);function f(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,c.G)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),v=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Order by"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,m.Z)(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,t.jsx)("optgroup",{label:s,children:n.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Direction"}),(0,t.jsx)(i.kFS,{children:(0,t.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(i.Clw,{}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function v(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(f,{})})}var p=n(99182),g=n(2784),b=n(34148);function w(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[l,a]=(0,g.useState)(!1),[r,o]=(0,g.useState)(""),[x,u]=(0,g.useState)([]),h=x[x.length-1],j=(x.length,(0,g.useRef)(null)),m=(0,g.useRef)(null),f=(0,g.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,g.useCallback)(()=>{u([])},[u]);(0,g.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,g.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),N=(0,g.useCallback)(()=>{o(""),v()},[v]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(i.eQh,{children:[(0,t.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(p.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||n(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=m.current)||void 0===s||s.blur()}},children:[(0,t.jsx)(p.mY.Input,{ref:m,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(i.xrM,{children:[h&&(0,t.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(p.mY.List,{children:(0,t.jsx)(b.F,{currentPage:h,beforeSelect:w,afterSelect:N,pushPage:f})})]})})]})]})}function N(){let{offset:e,limit:s,totalCount:n,pageCount:l,dataState:a}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:l})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:m,toggleSort:f,limit:p,dataState:g,cellContext:b}=(0,c.G)();return(0,t.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,t.jsx)(l.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(v,{}),stats:(0,t.jsx)(N,{}),size:"full",children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(x,{}):"noneYet"===g?(0,t.jsx)(u,{}):"error"===g?(0,t.jsx)(h,{}):null,pageSize:p,data:n,columns:s,sortableColumns:m,sortDirection:j,sortField:d,toggleSort:f})})})}function k(){return(0,t.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/index-2b994bedf7172423.js b/hostd/assets/_next/static/chunks/pages/index-2b994bedf7172423.js deleted file mode 100644 index 24d05a65a..000000000 --- a/hostd/assets/_next/static/chunks/pages/index-2b994bedf7172423.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(67786)}])},53644:function(e,a,s){"use strict";s.d(a,{q:function(){return h}});var t=s(52322),o=s(64453),i=s(59880),l=s(6391),n=s.n(l),d=s(98334),r=s(38855);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=s(86254),x=s(74667),f=s(21487);function u(){var e,a,s,l,n,d,c,u;let{openDialog:h}=(0,g.Rh)(),v=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.n)(),b=(0,i.cQ)(),p=(0,x.B)(),L=null===(e=v.data)||void 0===e?void 0:e.version,y=(null==L?void 0:L.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(L):"https://github.com/SiaFoundation/hostd/tree/".concat(L),w=v.data?new Date().getTime()-new Date(null===(a=v.data)||void 0===a?void 0:a.startTime).getTime():0;return(0,t.jsxs)(o.HfT,{name:"hostd",peerCount:null===(s=b.data)||void 0===s?void 0:s.length,connectPeer:()=>h("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(l=j.data)||void 0===l?void 0:l.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(n=v.data)||void 0===n?void 0:n.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",maxLength:24,value:null===(d=v.data)||void 0===d?void 0:d.walletAddress,type:"address"})})]}),v.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.xvT,{size:"14",children:(0,f.bc)(w,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.xvT,{size:"14",children:null===(c=v.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(o.rUS,{size:"14",href:y,underline:"hover",target:"_blank",ellipsis:!0,children:null===(u=v.data)||void 0===u?void 0:u.version})]})]})}function h(e){let a=(0,i.Os)(),{isSynced:s}=(0,r.n)();return(0,t.jsx)(o.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},77002:function(e,a,s){"use strict";s.d(a,{N:function(){return c}});var t=s(52322),o=s(64453),i=s(95685),l=s(59880),n=s(82851),d=s(98334),r=s(86254);function c(){var e,a;let{openDialog:s}=(0,r.Rh)(),c=(0,l.Z7)(),g=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(a=c.data)||void 0===a?void 0:a.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.KJW,{title:"Dashboard",route:d._.home,children:(0,t.jsx)(i.K2o,{})}),(0,t.jsx)(o.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,t.jsx)(i.zvn,{})}),(0,t.jsx)(o.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(o.KJW,{title:"Configuration",route:d._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,t.jsx)("div",{className:(0,n.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!g&&(0,t.jsx)(o.xvT,{size:"10",className:(0,n.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(o.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(i.Dkj,{})})]})]})}},67786:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return y}});var t=s(52322),o=s(64453),i=s(95685),l=s(83738);function n(){let{revenue:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Revenue"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"revenue",label:"potential - all",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,t.jsx)(o.Z0O,{variant:"vertical"}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - all",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var d=s(21487);function r(){let{storage:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Storage"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"storage",label:"storage - physical",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - contract",color:e.config.data.contractSectors.color,value:e.stats.contractSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - temp",color:e.config.data.tempSectors.color,value:e.stats.tempSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:d.vW})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Contracts"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/contracts",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}var g=s(56468);function x(){let{pricing:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Pricing"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:g.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:g.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:g.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:g.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:g.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:g.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=s(53644),u=s(98334),h=s(77002),v=s(86254),j=s(72473);function m(){let{operations:e}=(0,l.B)();return(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Operations"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:d.yF}),(0,t.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:d.yF})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function b(){let{bandwidth:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Bandwidth"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,valueFormat:d.vW}),(0,t.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,valueFormat:d.vW})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function p(){let{collateral:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Collateral"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/collateral",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}function L(){let{openDialog:e}=(0,v.Rh)(),{timeRange:a,dataTimeSpan:s,setDataTimeSpan:g,dataInterval:L}=(0,l.B)();return(0,t.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,t.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)("div",{className:"flex gap-2 flex-1",children:(0,t.jsxs)(o.eQh,{children:[(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.start,{dateStyle:"long"})})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(L),children:(0,t.jsx)("div",{children:(0,t.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,t.jsx)(i.BB5,{}),L]})})}),(0,t.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,t.jsx)("div",{children:(0,t.jsx)(o.PhF,{value:String(s),onChange:e=>{g(e.currentTarget.value)},icon:(0,t.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,t.jsx)(i.YV2,{})}),children:j.lv.map(e=>(0,t.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,t.jsx)(n,{}),(0,t.jsx)(p,{}),(0,t.jsx)(r,{}),(0,t.jsx)(b,{}),(0,t.jsx)(m,{}),(0,t.jsx)(c,{}),(0,t.jsx)(x,{})]})})}function y(){return(0,t.jsx)(L,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/index-a73aa737e97b5b62.js b/hostd/assets/_next/static/chunks/pages/index-a73aa737e97b5b62.js new file mode 100644 index 000000000..8d7cda85f --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/index-a73aa737e97b5b62.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(67786)}])},53644:function(e,a,s){"use strict";s.d(a,{q:function(){return h}});var t=s(52322),o=s(64453),i=s(2002),l=s(6391),n=s.n(l),d=s(98334),r=s(38855);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=s(86254),x=s(74667),f=s(21487);function u(){var e,a,s,l,n,d,c,u;let{openDialog:h}=(0,g.Rh)(),v=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.n)(),b=(0,i.cQ)(),p=(0,x.B)(),L=null===(e=v.data)||void 0===e?void 0:e.version,y=(null==L?void 0:L.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(L):"https://github.com/SiaFoundation/hostd/tree/".concat(L),w=v.data?new Date().getTime()-new Date(null===(a=v.data)||void 0===a?void 0:a.startTime).getTime():0;return(0,t.jsxs)(o.HfT,{name:"hostd",peerCount:null===(s=b.data)||void 0===s?void 0:s.length,connectPeer:()=>h("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(l=j.data)||void 0===l?void 0:l.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(n=v.data)||void 0===n?void 0:n.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",maxLength:24,value:null===(d=v.data)||void 0===d?void 0:d.walletAddress,type:"address"})})]}),v.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.xvT,{size:"14",children:(0,f.bc)(w,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.xvT,{size:"14",children:null===(c=v.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(o.rUS,{size:"14",href:y,underline:"hover",target:"_blank",ellipsis:!0,children:null===(u=v.data)||void 0===u?void 0:u.version})]})]})}function h(e){let a=(0,i.Os)(),{isSynced:s}=(0,r.n)();return(0,t.jsx)(o.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},77002:function(e,a,s){"use strict";s.d(a,{N:function(){return c}});var t=s(52322),o=s(64453),i=s(95685),l=s(2002),n=s(82851),d=s(98334),r=s(86254);function c(){var e,a;let{openDialog:s}=(0,r.Rh)(),c=(0,l.Z7)(),g=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(a=c.data)||void 0===a?void 0:a.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.KJW,{title:"Dashboard",route:d._.home,children:(0,t.jsx)(i.K2o,{})}),(0,t.jsx)(o.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,t.jsx)(i.zvn,{})}),(0,t.jsx)(o.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(o.KJW,{title:"Configuration",route:d._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,t.jsx)("div",{className:(0,n.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!g&&(0,t.jsx)(o.xvT,{size:"10",className:(0,n.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(o.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(i.Dkj,{})})]})]})}},67786:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return y}});var t=s(52322),o=s(64453),i=s(95685),l=s(83738);function n(){let{revenue:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Revenue"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"revenue",label:"potential - all",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,t.jsx)(o.Z0O,{variant:"vertical"}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - all",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var d=s(21487);function r(){let{storage:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Storage"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"storage",label:"storage - physical",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - contract",color:e.config.data.contractSectors.color,value:e.stats.contractSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - temp",color:e.config.data.tempSectors.color,value:e.stats.tempSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:d.vW})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Contracts"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/contracts",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}var g=s(56468);function x(){let{pricing:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Pricing"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:g.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:g.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:g.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:g.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:g.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:g.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=s(53644),u=s(98334),h=s(77002),v=s(86254),j=s(72473);function m(){let{operations:e}=(0,l.B)();return(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Operations"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:d.yF}),(0,t.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:d.yF})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function b(){let{bandwidth:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Bandwidth"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,valueFormat:d.vW}),(0,t.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,valueFormat:d.vW})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function p(){let{collateral:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Collateral"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/collateral",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}function L(){let{openDialog:e}=(0,v.Rh)(),{timeRange:a,dataTimeSpan:s,setDataTimeSpan:g,dataInterval:L}=(0,l.B)();return(0,t.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,t.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)("div",{className:"flex gap-2 flex-1",children:(0,t.jsxs)(o.eQh,{children:[(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.start,{dateStyle:"long"})})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(L),children:(0,t.jsx)("div",{children:(0,t.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,t.jsx)(i.BB5,{}),L]})})}),(0,t.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,t.jsx)("div",{children:(0,t.jsx)(o.PhF,{value:String(s),onChange:e=>{g(e.currentTarget.value)},icon:(0,t.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,t.jsx)(i.YV2,{})}),children:j.lv.map(e=>(0,t.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,t.jsx)(n,{}),(0,t.jsx)(p,{}),(0,t.jsx)(r,{}),(0,t.jsx)(b,{}),(0,t.jsx)(m,{}),(0,t.jsx)(c,{}),(0,t.jsx)(x,{})]})})}function y(){return(0,t.jsx)(L,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-15ca52c134133a1a.js b/hostd/assets/_next/static/chunks/pages/node-15ca52c134133a1a.js deleted file mode 100644 index 0c53195f9..000000000 --- a/hostd/assets/_next/static/chunks/pages/node-15ca52c134133a1a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(16365)}])},53644:function(e,n,t){"use strict";t.d(n,{q:function(){return f}});var s=t(52322),i=t(64453),l=t(59880),a=t(6391),r=t.n(a),d=t(98334),o=t(38855);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(86254),x=t(74667),h=t(21487);function v(){var e,n,t,a,r,d,c,v;let{openDialog:f}=(0,u.Rh)(),m=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,o.n)(),g=(0,l.cQ)(),w=(0,x.B)(),b=null===(e=m.data)||void 0===e?void 0:e.version,N=(null==b?void 0:b.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(b):"https://github.com/SiaFoundation/hostd/tree/".concat(b),y=m.data?new Date().getTime()-new Date(null===(n=m.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(t=g.data)||void 0===t?void 0:t.length,connectPeer:()=>f("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(a=j.data)||void 0===a?void 0:a.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(r=m.data)||void 0===r?void 0:r.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(d=m.data)||void 0===d?void 0:d.walletAddress,type:"address"})})]}),m.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:(0,h.bc)(y,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=m.data)||void 0===c?void 0:c.network})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:N,underline:"hover",target:"_blank",ellipsis:!0,children:null===(v=m.data)||void 0===v?void 0:v.version})]})]})}function f(e){let n=(0,l.Os)(),{isSynced:t}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(v,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},77002:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(64453),l=t(95685),a=t(59880),r=t(82851),d=t(98334),o=t(86254);function c(){var e,n;let{openDialog:t}=(0,o.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:d._.home,children:(0,s.jsx)(l.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,s.jsx)(l.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:d._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(l.Dkj,{})})]})]})}},16365:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(64453),l=t(59880),a=t(98334),r=t(86254),d=t(77002),o=t(53644),c=t(2784),u=t(52390),x=t(97885),h=t(38855);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:v}=(0,r.Rh)(),f=(0,c.useMemo)(()=>{var e,t,s;return n.data?(e=n.data,t=["address"],null==e?[]:((0,x.Z)(t)||(t=null==t?[]:[t]),(0,x.Z)(s)||(s=null==s?[]:[s]),(0,u.Z)(e,t,s))).map(e=>e.address):null},[n.data]);return(0,s.jsx)(o.q,{routes:a._,sidenav:(0,s.jsx)(d.N,{}),openSettings:()=>v("settings"),title:"Node",children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,s.jsx)(i.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,s.jsx)(i.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,s.jsx)(i.u5Q,{peers:f,isLoading:n.isValidating,connectPeer:()=>v("connectPeer")})]})})}function f(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-c05d5626afd56748.js b/hostd/assets/_next/static/chunks/pages/node-c05d5626afd56748.js new file mode 100644 index 000000000..6618e7131 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/node-c05d5626afd56748.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(16365)}])},53644:function(e,n,t){"use strict";t.d(n,{q:function(){return f}});var s=t(52322),i=t(64453),l=t(2002),a=t(6391),r=t.n(a),d=t(98334),o=t(38855);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(86254),x=t(74667),h=t(21487);function v(){var e,n,t,a,r,d,c,v;let{openDialog:f}=(0,u.Rh)(),m=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,o.n)(),g=(0,l.cQ)(),w=(0,x.B)(),b=null===(e=m.data)||void 0===e?void 0:e.version,N=(null==b?void 0:b.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(b):"https://github.com/SiaFoundation/hostd/tree/".concat(b),y=m.data?new Date().getTime()-new Date(null===(n=m.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(t=g.data)||void 0===t?void 0:t.length,connectPeer:()=>f("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(a=j.data)||void 0===a?void 0:a.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(r=m.data)||void 0===r?void 0:r.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(d=m.data)||void 0===d?void 0:d.walletAddress,type:"address"})})]}),m.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:(0,h.bc)(y,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=m.data)||void 0===c?void 0:c.network})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:N,underline:"hover",target:"_blank",ellipsis:!0,children:null===(v=m.data)||void 0===v?void 0:v.version})]})]})}function f(e){let n=(0,l.Os)(),{isSynced:t}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(v,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},77002:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(64453),l=t(95685),a=t(2002),r=t(82851),d=t(98334),o=t(86254);function c(){var e,n;let{openDialog:t}=(0,o.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:d._.home,children:(0,s.jsx)(l.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,s.jsx)(l.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:d._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(l.Dkj,{})})]})]})}},16365:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(64453),l=t(2002),a=t(98334),r=t(86254),d=t(77002),o=t(53644),c=t(2784),u=t(52390),x=t(97885),h=t(38855);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:v}=(0,r.Rh)(),f=(0,c.useMemo)(()=>{var e,t,s;return n.data?(e=n.data,t=["address"],null==e?[]:((0,x.Z)(t)||(t=null==t?[]:[t]),(0,x.Z)(s)||(s=null==s?[]:[s]),(0,u.Z)(e,t,s))).map(e=>e.address):null},[n.data]);return(0,s.jsx)(o.q,{routes:a._,sidenav:(0,s.jsx)(d.N,{}),openSettings:()=>v("settings"),title:"Node",children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,s.jsx)(i.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,s.jsx)(i.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,s.jsx)(i.u5Q,{peers:f,isLoading:n.isValidating,connectPeer:()=>v("connectPeer")})]})})}function f(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-984d9b38b33fc244.js b/hostd/assets/_next/static/chunks/pages/volumes-984d9b38b33fc244.js new file mode 100644 index 000000000..61483719b --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/volumes-984d9b38b33fc244.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return n(4119)}])},53644:function(e,s,n){"use strict";n.d(s,{q:function(){return m}});var t=n(52322),i=n(64453),l=n(2002),a=n(6391),r=n.n(a),o=n(98334),d=n(38855);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=n(86254),u=n(74667),h=n(21487);function v(){var e,s,n,a,r,o,c,v;let{openDialog:m}=(0,x.Rh)(),j=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,d.n)(),g=(0,l.cQ)(),w=(0,u.B)(),b=null===(e=j.data)||void 0===e?void 0:e.version,y=(null==b?void 0:b.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(b):"https://github.com/SiaFoundation/hostd/tree/".concat(b),N=j.data?new Date().getTime()-new Date(null===(s=j.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=g.data)||void 0===n?void 0:n.length,connectPeer:()=>m("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(a=f.data)||void 0===a?void 0:a.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(r=j.data)||void 0===r?void 0:r.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(o=j.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),j.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,h.bc)(N,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=j.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:y,underline:"hover",target:"_blank",ellipsis:!0,children:null===(v=j.data)||void 0===v?void 0:v.version})]})]})}function m(e){let s=(0,l.Os)(),{isSynced:n}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:o.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(v,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},77002:function(e,s,n){"use strict";n.d(s,{N:function(){return c}});var t=n(52322),i=n(64453),l=n(95685),a=n(2002),r=n(82851),o=n(98334),d=n(86254);function c(){var e,s;let{openDialog:n}=(0,d.Rh)(),c=(0,a.Z7)(),x=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=c.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:o._.home,children:(0,t.jsx)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:o._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(l.Dkj,{})})]})]})}},4119:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return m}});var t=n(52322),i=n(64453),l=n(95685),a=n(21487),r=n(53644),o=n(86254),d=n(77002),c=n(98334),x=n(63224);function u(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:a,setColumnsHidden:r,enabledColumns:o}=(0,x.F)(),d=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),c=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(l.hiv,{}),"View",(0,t.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:o,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:o,onChange:e=>s(e)})})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(l.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function v(){let{openDialog:e}=(0,o.Rh)(),{dataset:s,isLoading:n,columns:v}=(0,x.F)(),m=null==s?void 0:s.reduce((e,s)=>e+s.totalBytes,0),j=null==s?void 0:s.reduce((e,s)=>e+s.usedBytes,0);return(0,t.jsx)(r.q,{title:"Volumes",routes:c._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(l.RVU,{}),"Create volume"]}),(0,t.jsx)(u,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m-j)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:n,pageSize:20,data:s,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function m(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-bcc18b63192ece31.js b/hostd/assets/_next/static/chunks/pages/volumes-bcc18b63192ece31.js deleted file mode 100644 index c6c4898b5..000000000 --- a/hostd/assets/_next/static/chunks/pages/volumes-bcc18b63192ece31.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return n(4119)}])},53644:function(e,s,n){"use strict";n.d(s,{q:function(){return m}});var t=n(52322),i=n(64453),l=n(59880),a=n(6391),r=n.n(a),o=n(98334),d=n(38855);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=n(86254),u=n(74667),h=n(21487);function v(){var e,s,n,a,r,o,c,v;let{openDialog:m}=(0,x.Rh)(),j=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,d.n)(),g=(0,l.cQ)(),w=(0,u.B)(),b=null===(e=j.data)||void 0===e?void 0:e.version,y=(null==b?void 0:b.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(b):"https://github.com/SiaFoundation/hostd/tree/".concat(b),N=j.data?new Date().getTime()-new Date(null===(s=j.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=g.data)||void 0===n?void 0:n.length,connectPeer:()=>m("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(a=f.data)||void 0===a?void 0:a.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(r=j.data)||void 0===r?void 0:r.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(o=j.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),j.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,h.bc)(N,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=j.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:y,underline:"hover",target:"_blank",ellipsis:!0,children:null===(v=j.data)||void 0===v?void 0:v.version})]})]})}function m(e){let s=(0,l.Os)(),{isSynced:n}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:o.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(v,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},77002:function(e,s,n){"use strict";n.d(s,{N:function(){return c}});var t=n(52322),i=n(64453),l=n(95685),a=n(59880),r=n(82851),o=n(98334),d=n(86254);function c(){var e,s;let{openDialog:n}=(0,d.Rh)(),c=(0,a.Z7)(),x=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=c.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:o._.home,children:(0,t.jsx)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:o._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(l.Dkj,{})})]})]})}},4119:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return m}});var t=n(52322),i=n(64453),l=n(95685),a=n(21487),r=n(53644),o=n(86254),d=n(77002),c=n(98334),x=n(63224);function u(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:a,setColumnsHidden:r,enabledColumns:o}=(0,x.F)(),d=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),c=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(l.hiv,{}),"View",(0,t.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:o,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:o,onChange:e=>s(e)})})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(l.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function v(){let{openDialog:e}=(0,o.Rh)(),{dataset:s,isLoading:n,columns:v}=(0,x.F)(),m=null==s?void 0:s.reduce((e,s)=>e+s.totalBytes,0),j=null==s?void 0:s.reduce((e,s)=>e+s.usedBytes,0);return(0,t.jsx)(r.q,{title:"Volumes",routes:c._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(l.RVU,{}),"Create volume"]}),(0,t.jsx)(u,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m-j)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:n,pageSize:20,data:s,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function m(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-30a2b7bd64385be9.js b/hostd/assets/_next/static/chunks/pages/wallet-30a2b7bd64385be9.js new file mode 100644 index 000000000..314acb86e --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/wallet-30a2b7bd64385be9.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return s(74273)}])},53644:function(e,n,s){"use strict";s.d(n,{q:function(){return v}});var t=s(52322),i=s(64453),a=s(2002),l=s(6391),d=s.n(l),r=s(98334),c=s(38855);function o(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(86254),u=s(74667),f=s(21487);function h(){var e,n,s,l,d,r,o,h;let{openDialog:v}=(0,x.Rh)(),j=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,c.n)(),w=(0,a.cQ)(),g=(0,u.B)(),y=null===(e=j.data)||void 0===e?void 0:e.version,b=(null==y?void 0:y.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(y):"https://github.com/SiaFoundation/hostd/tree/".concat(y),N=j.data?new Date().getTime()-new Date(null===(n=j.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(s=w.data)||void 0===s?void 0:s.length,connectPeer:()=>v("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(l=m.data)||void 0===l?void 0:l.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(d=j.data)||void 0===d?void 0:d.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=j.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),j.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,f.bc)(N,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(o=j.data)||void 0===o?void 0:o.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(h=j.data)||void 0===h?void 0:h.version})]})]})}function v(e){let n=(0,a.Os)(),{isSynced:s}=(0,c.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(o,{}),profile:(0,t.jsx)(h,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(d())(n.data.spendable),confirmed:new(d())(n.data.confirmed),unconfirmed:new(d())(n.data.unconfirmed)},...e})}},77002:function(e,n,s){"use strict";s.d(n,{N:function(){return o}});var t=s(52322),i=s(64453),a=s(95685),l=s(2002),d=s(82851),r=s(98334),c=s(86254);function o(){var e,n;let{openDialog:s}=(0,c.Rh)(),o=(0,l.Z7)(),x=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:r._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,d.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,d.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},74273:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(64453),a=s(2002),l=s(86254),d=s(98334),r=s(6391),c=s.n(r),o=s(77002),x=s(53644),u=s(38855),f=s(95685);function h(){let{openDialog:e}=(0,l.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,t.jsx)(i.EKh,{children:"hostd"})," wallet address to get started."]}),(0,t.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var v=s(40730);function j(){let{isSynced:e,syncPercent:n,isWalletSynced:s,walletScanPercent:a}=(0,u.n)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(i.DmW,{isSynced:e,isWalletSynced:s,syncPercent:n,walletScanPercent:a}),(0,t.jsx)("div",{className:"flex-1"})]})}function m(){let{openDialog:e}=(0,l.Rh)(),n=(0,a.Os)(),{isSynced:s,isWalletSynced:r,syncPercent:f,walletScanPercent:m}=(0,u.n)(),{dataset:p,balances:w,metrics:g,offset:y,limit:b,dataState:N,pageCount:_}=(0,v.n)();return(0,t.jsx)(x.q,{routes:d._,sidenav:(0,t.jsx)(o.N,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,t.jsx)(i.QUh,{isSynced:s,isWalletSynced:r,syncPercent:f,walletScanPercent:m,balanceSc:n.data?{spendable:new(c())(n.data.spendable),unconfirmed:new(c())(n.data.unconfirmed),confirmed:new(c())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,t.jsx)(j,{}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==w?void 0:w.length)&&w.find(e=>e.sc)?(0,t.jsx)(i.Z58,{balances:w,isLoading:g.isValidating}):null,(0,t.jsx)(i.XOF,{title:"Transactions",dataset:p,isLoading:"loading"===N,emptyState:(0,t.jsx)(h,{}),actions:(0,t.jsx)(i.wFK,{offset:y,limit:b,pageTotal:_,isLoading:"loading"===N})})]})})}function p(){return(0,t.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-b6f26fc83228446a.js b/hostd/assets/_next/static/chunks/pages/wallet-b6f26fc83228446a.js deleted file mode 100644 index dcf8779db..000000000 --- a/hostd/assets/_next/static/chunks/pages/wallet-b6f26fc83228446a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return s(74273)}])},53644:function(e,n,s){"use strict";s.d(n,{q:function(){return v}});var t=s(52322),i=s(64453),a=s(59880),l=s(6391),d=s.n(l),r=s(98334),c=s(38855);function o(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(86254),u=s(74667),f=s(21487);function h(){var e,n,s,l,d,r,o,h;let{openDialog:v}=(0,x.Rh)(),j=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,c.n)(),w=(0,a.cQ)(),g=(0,u.B)(),y=null===(e=j.data)||void 0===e?void 0:e.version,b=(null==y?void 0:y.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(y):"https://github.com/SiaFoundation/hostd/tree/".concat(y),N=j.data?new Date().getTime()-new Date(null===(n=j.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(s=w.data)||void 0===s?void 0:s.length,connectPeer:()=>v("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(l=m.data)||void 0===l?void 0:l.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(d=j.data)||void 0===d?void 0:d.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=j.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),j.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,f.bc)(N,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(o=j.data)||void 0===o?void 0:o.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(h=j.data)||void 0===h?void 0:h.version})]})]})}function v(e){let n=(0,a.Os)(),{isSynced:s}=(0,c.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(o,{}),profile:(0,t.jsx)(h,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(d())(n.data.spendable),confirmed:new(d())(n.data.confirmed),unconfirmed:new(d())(n.data.unconfirmed)},...e})}},77002:function(e,n,s){"use strict";s.d(n,{N:function(){return o}});var t=s(52322),i=s(64453),a=s(95685),l=s(59880),d=s(82851),r=s(98334),c=s(86254);function o(){var e,n;let{openDialog:s}=(0,c.Rh)(),o=(0,l.Z7)(),x=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:r._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,d.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,d.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},74273:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(64453),a=s(59880),l=s(86254),d=s(98334),r=s(6391),c=s.n(r),o=s(77002),x=s(53644),u=s(38855),f=s(95685);function h(){let{openDialog:e}=(0,l.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,t.jsx)(i.EKh,{children:"hostd"})," wallet address to get started."]}),(0,t.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var v=s(40730);function j(){let{isSynced:e,syncPercent:n,isWalletSynced:s,walletScanPercent:a}=(0,u.n)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(i.DmW,{isSynced:e,isWalletSynced:s,syncPercent:n,walletScanPercent:a}),(0,t.jsx)("div",{className:"flex-1"})]})}function m(){let{openDialog:e}=(0,l.Rh)(),n=(0,a.Os)(),{isSynced:s,isWalletSynced:r,syncPercent:f,walletScanPercent:m}=(0,u.n)(),{dataset:p,balances:w,metrics:g,offset:y,limit:b,dataState:N,pageCount:_}=(0,v.n)();return(0,t.jsx)(x.q,{routes:d._,sidenav:(0,t.jsx)(o.N,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,t.jsx)(i.QUh,{isSynced:s,isWalletSynced:r,syncPercent:f,walletScanPercent:m,balanceSc:n.data?{spendable:new(c())(n.data.spendable),unconfirmed:new(c())(n.data.unconfirmed),confirmed:new(c())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,t.jsx)(j,{}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==w?void 0:w.length)&&w.find(e=>e.sc)?(0,t.jsx)(i.Z58,{balances:w,isLoading:g.isValidating}):null,(0,t.jsx)(i.XOF,{title:"Transactions",dataset:p,isLoading:"loading"===N,emptyState:(0,t.jsx)(h,{}),actions:(0,t.jsx)(i.wFK,{offset:y,limit:b,pageTotal:_,isLoading:"loading"===N})})]})})}function p(){return(0,t.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/css/016c9b16a8697d1d.css b/hostd/assets/_next/static/css/016c9b16a8697d1d.css new file mode 100644 index 000000000..cbeb340b1 --- /dev/null +++ b/hostd/assets/_next/static/css/016c9b16a8697d1d.css @@ -0,0 +1,3 @@ +/* +! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-4{margin:-1rem}.m-0{margin:0}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mr-0{margin-right:0}.-mr-0\.5{margin-right:-.125rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-20{max-height:5rem}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-\[800px\]{max-width:800px!important}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[200px\]{max-width:200px}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-200\/20{background-color:rgba(191,219,254,.2)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pb-\[1\.5px\]{padding-bottom:1.5px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.pt-\[10px\]{padding-top:10px}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300\/20{background-color:rgba(147,197,253,.2)}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__sans_315985;src:url(/_next/static/media/cd124faa19a7ef9a-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/8fed4885c1998d22-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/fdd3a36928f25e30-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/a0ff83e86182150e-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/91e452a6ea0c2132-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/75bdf6088f33f6b5-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/c7dc84d05cfe8080-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9d81b3b04eda94e0-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/b57725b8c3470143-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/1f006d314a98579d-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9617e7fa3dc6e5c9-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/821657fca713650c-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/efb590a61a6e0af3-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/3b9fc75b5e4edbe8-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__sans_Fallback_315985;src:local("Arial");ascent-override:101.35%;descent-override:27.19%;line-gap-override:0.00%;size-adjust:101.13%}.__className_315985{font-family:__sans_315985,__sans_Fallback_315985}.__variable_315985{--font-sans:"__sans_315985","__sans_Fallback_315985"}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/eaf5386fcb6f48b8-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/95d3796716a13c75-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/ff2e3c2bdfe56465-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/c29124625443164b-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/0080c7cc0358560d-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9e96e104b3eba4d3-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/b01b725c4365f934-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9a27e3caec76e96d-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2a9c8cd1557dff1f-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/f3f50cbb62517d96-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/5e23ff29335edf6f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/92fb447c05bf9b9f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/7c138e5a79adee83-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2eb2520448311ef1-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__mono_Fallback_59b18b;src:local("Arial");ascent-override:102.50%;descent-override:27.50%;line-gap-override:0.00%;size-adjust:100.00%}.__className_59b18b{font-family:__mono_59b18b,__mono_Fallback_59b18b}.__variable_59b18b{--font-mono:"__mono_59b18b","__mono_Fallback_59b18b"} \ No newline at end of file diff --git a/hostd/assets/_next/static/css/92ce22ba1610c68b.css b/hostd/assets/_next/static/css/92ce22ba1610c68b.css deleted file mode 100644 index e06d803fe..000000000 --- a/hostd/assets/_next/static/css/92ce22ba1610c68b.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-4{margin:-1rem}.m-0{margin:0}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mr-0{margin-right:0}.-mr-0\.5{margin-right:-.125rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-20{max-height:5rem}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-\[800px\]{max-width:800px!important}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[200px\]{max-width:200px}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-200\/20{background-color:rgba(191,219,254,.2)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.pt-\[10px\]{padding-top:10px}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300\/20{background-color:rgba(147,197,253,.2)}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__sans_315985;src:url(/_next/static/media/cd124faa19a7ef9a-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/8fed4885c1998d22-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/fdd3a36928f25e30-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/a0ff83e86182150e-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/91e452a6ea0c2132-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/75bdf6088f33f6b5-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/c7dc84d05cfe8080-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9d81b3b04eda94e0-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/b57725b8c3470143-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/1f006d314a98579d-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9617e7fa3dc6e5c9-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/821657fca713650c-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/efb590a61a6e0af3-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/3b9fc75b5e4edbe8-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__sans_Fallback_315985;src:local("Arial");ascent-override:101.35%;descent-override:27.19%;line-gap-override:0.00%;size-adjust:101.13%}.__className_315985{font-family:__sans_315985,__sans_Fallback_315985}.__variable_315985{--font-sans:"__sans_315985","__sans_Fallback_315985"}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/eaf5386fcb6f48b8-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/95d3796716a13c75-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/ff2e3c2bdfe56465-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/c29124625443164b-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/0080c7cc0358560d-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9e96e104b3eba4d3-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/b01b725c4365f934-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9a27e3caec76e96d-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2a9c8cd1557dff1f-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/f3f50cbb62517d96-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/5e23ff29335edf6f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/92fb447c05bf9b9f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/7c138e5a79adee83-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2eb2520448311ef1-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__mono_Fallback_59b18b;src:local("Arial");ascent-override:102.50%;descent-override:27.50%;line-gap-override:0.00%;size-adjust:100.00%}.__className_59b18b{font-family:__mono_59b18b,__mono_Fallback_59b18b}.__variable_59b18b{--font-mono:"__mono_59b18b","__mono_Fallback_59b18b"} \ No newline at end of file diff --git a/hostd/assets/config.html b/hostd/assets/config.html index 2bb8ff1b5..0c35aadc8 100644 --- a/hostd/assets/config.html +++ b/hostd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/contracts.html b/hostd/assets/contracts.html index 059121950..57307b0c0 100644 --- a/hostd/assets/contracts.html +++ b/hostd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/index.html b/hostd/assets/index.html index cbd0596a5..485ecc5f1 100644 --- a/hostd/assets/index.html +++ b/hostd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/login.html b/hostd/assets/login.html index fe2eabeb3..410d6fcdd 100644 --- a/hostd/assets/login.html +++ b/hostd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/node.html b/hostd/assets/node.html index 8a140cea1..42c03903b 100644 --- a/hostd/assets/node.html +++ b/hostd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/volumes.html b/hostd/assets/volumes.html index 3034e2754..af197501e 100644 --- a/hostd/assets/volumes.html +++ b/hostd/assets/volumes.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/wallet.html b/hostd/assets/wallet.html index 43cac72aa..6c473d590 100644 --- a/hostd/assets/wallet.html +++ b/hostd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/404.html b/renterd/assets/404.html index 8b5a6ba35..d3032391d 100644 --- a/renterd/assets/404.html +++ b/renterd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/_next/static/Vmi4No8kmV2LS5_3gEtXG/_buildManifest.js b/renterd/assets/_next/static/Vmi4No8kmV2LS5_3gEtXG/_buildManifest.js deleted file mode 100644 index 91f9fcde4..000000000 --- a/renterd/assets/_next/static/Vmi4No8kmV2LS5_3gEtXG/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-791fba029a23de36.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/alerts":["static/chunks/pages/alerts-707a67e34a5aaee6.js"],"/buckets":[s,"static/chunks/pages/buckets-8030b904192e6bd3.js"],"/buckets/[bucket]/files/[[...path]]":[s,"static/chunks/pages/buckets/[bucket]/files/[[...path]]-0b6c7fddc068f7a4.js"],"/buckets/[bucket]/uploads":["static/chunks/pages/buckets/[bucket]/uploads-17b60daececb10e8.js"],"/config":["static/chunks/pages/config-da6499b2d958f4aa.js"],"/contracts":["static/chunks/pages/contracts-8a9f443e10e3a2f2.js"],"/hosts":["static/chunks/pages/hosts-7443f37b8cfffd55.js"],"/keys":["static/chunks/pages/keys-db3c3ac4fd520775.js"],"/login":["static/chunks/pages/login-bc04295c62f872b0.js"],"/node":["static/chunks/pages/node-63109534182b1e5b.js"],"/wallet":["static/chunks/pages/wallet-017c45406eaf5306.js"],sortedPages:["/","/_app","/_error","/alerts","/buckets","/buckets/[bucket]/files/[[...path]]","/buckets/[bucket]/uploads","/config","/contracts","/hosts","/keys","/login","/node","/wallet"]}}("static/chunks/448-27e20e3c79c7af49.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/448-27e20e3c79c7af49.js b/renterd/assets/_next/static/chunks/448-27e20e3c79c7af49.js deleted file mode 100644 index d89917eb8..000000000 --- a/renterd/assets/_next/static/chunks/448-27e20e3c79c7af49.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[448],{17398:function(e,s,t){t.d(s,{C:function(){return c}});var l=t(52322),i=t(97479),n=t(61020),a=t(41736);function r(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:t,isViewingUploads:r,navigateToUploads:c}=(0,a.b)();return(0,l.jsxs)(i.h_2,{trigger:(0,l.jsx)(i.zxk,{tipSide:"bottom",tip:r?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:r?(0,l.jsx)(n.bQp,{}):"directory"===e?(0,l.jsx)(n.Qbr,{}):(0,l.jsx)(n.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,l.jsxs)(i.Xiv,{onSelect:s,children:[(0,l.jsx)(i.KpP,{children:(0,l.jsx)(n.Qbr,{})}),"Directory"]}),(0,l.jsxs)(i.Xiv,{onSelect:t,children:[(0,l.jsx)(i.KpP,{children:(0,l.jsx)(n.nDH,{})}),"All files"]}),(0,l.jsxs)(i.Xiv,{onSelect:c,children:[(0,l.jsx)(i.KpP,{children:(0,l.jsx)(n.bQp,{})}),"Uploads"]})]})}function c(){let{isViewingBuckets:e}=(0,a.b)();return e?(0,l.jsx)(i.ua7,{content:"Viewing all buckets",children:(0,l.jsx)("div",{children:(0,l.jsx)(i.zxk,{state:"waiting",children:(0,l.jsx)(n.fi8,{size:16})})})}):(0,l.jsx)(r,{})}},57448:function(e,s,t){t.d(s,{h:function(){return et}});var l=t(52322),i=t(97992),n=t(98334),a=t(97112),r=t(2784),c=t(97479),o=t(61020),d=t(41736),x=t(17398);function u(){let{activeDirectory:e,setActiveDirectory:s}=(0,d.b)(),t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,l.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,l.jsx)(x.C,{}),(0,l.jsx)(c.xrM,{children:(0,l.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,l.jsx)(c.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),e.length>0&&(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),e.map((e,t)=>(0,l.jsxs)(r.Fragment,{children:[t>0&&(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(c.xvT,{onClick:()=>s(e=>e.slice(0,t+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+t)),(0,l.jsx)("div",{ref:t})]})})]})}var h=t(91362),j=t(74424),f=t(3077),m=t(52058);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:i,setSortField:n,sortDirection:a,setSortDirection:r,enabledColumns:x}=(0,d.b)();return(0,l.jsxs)(c.J2e,{trigger:(0,l.jsxs)(c.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(o.hiv,{}),"View",(0,l.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(c.WVB,{children:[(0,l.jsx)(c.__J,{children:"Order by"}),(0,l.jsx)(c.kFS,{children:(0,l.jsx)(c.PhF,{value:i,onChange:e=>{n(e.currentTarget.value)},children:Object.entries((0,m.Z)(f.Fo,"category")).map(e=>{let[s,t]=e;return(0,l.jsx)("optgroup",{label:s,children:t.map(e=>(0,l.jsx)(c.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(c.WVB,{children:[(0,l.jsx)(c.__J,{children:"Direction"}),(0,l.jsx)(c.kFS,{children:(0,l.jsxs)(c.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{r(e.currentTarget.value)},children:[(0,l.jsx)(c.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(c.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(c.Clw,{}),(0,l.jsxs)(c.WVB,{children:[(0,l.jsx)(c.__J,{children:"Display properties"}),(0,l.jsx)(c.kFS,{children:(0,l.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,l.jsx)(c.WVB,{children:(0,l.jsx)(c.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}var g=t(38855),p=t(57016),b=t(46081);function N(){let{autopilot:e}=(0,b.q)(),s=(0,p.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var w=t(42770);function T(){let{isViewingABucket:e}=(0,d.b)(),s=(0,g.n)(),t=N(),l=(0,w.F)();return e&&!t.active&&!l.active&&s.isSynced}let{useDropzone:y}=j;function z(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,d.b)(),i=T(),{getRootProps:n,getInputProps:r}=y({noDrag:!0,noClick:!i,onDrop:s});return(0,l.jsxs)("div",{className:"flex gap-2",children:[t?(0,l.jsxs)(c.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,l.jsx)(o.aXP,{}),"Create bucket"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,l.jsx)(o.UBs,{})}),(0,l.jsxs)(c.zxk,{...n(),tip:"Upload files",disabled:!i,children:[(0,l.jsx)("input",{...r()}),(0,l.jsx)(o.bQp,{})]}),(0,l.jsx)(c.zxk,{disabled:!i,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,l.jsx)(o.L37,{})})]}),(0,l.jsx)(v,{})]})}var k=t(75618),S=t(21487);function C(){let e=(0,p.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,l.jsx)(c.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize+e.data.totalUnfinishedObjectsSize,t=s?e.data.totalSectorsSize/s:0;return(0,l.jsx)(c.ua7,{side:"bottom",content:(0,l.jsxs)(c.xvT,{className:"flex justify-between gap-6",children:[(0,l.jsxs)(c.xvT,{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!t&&(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,l.jsx)(c.Z0O,{className:"w-full my-1"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,l.jsxs)(c.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalObjectsSize)}),(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalSectorsSize)}),!!t&&(0,l.jsxs)(c.xvT,{size:"12",font:"mono",children:[t.toFixed(1),"x"]}),(0,l.jsx)(c.Z0O,{className:"w-full my-1"}),(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalUploadedSize)})]})]}),children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",children:"".concat((0,S.vW)(e.data.totalObjectsSize)).concat(t?" @ ".concat(t.toFixed(1),"x"):"")})})}var F=t(18121);function _(){var e,s;let t=(0,p.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),{displayHealth:i,label:n}=(0,F.B)({health:null===(e=t.data)||void 0===e?void 0:e.minHealth,size:1,isDirectory:!0}),a=(null===(s=t.data)||void 0===s?void 0:s.totalObjectsSize)===0;return!t.data||a?null:(0,l.jsx)(c.ua7,{align:"end",content:(0,l.jsxs)("div",{className:"flex flex-col overflow-hidden mb-1",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)(c.xvT,{size:"12",children:n}),(0,l.jsxs)(c.xvT,{size:"12",children:[(100*i).toFixed(0),"%"]})]}),(0,l.jsx)(c.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"Health is calculated as the minimum health value from across all file slabs. For directories this is across all contained files."}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"Slab health is calculated as the number of shards with active contracts in the autopilot contract set above the minimum required shards and expressed as a percentage."})]}),(0,l.jsx)(c.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"excellent health"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"good health"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"poor health"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,l.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*F.V.excellent,"%"]}),(0,l.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*F.V.good,"% -"," ",100*F.V.excellent,"%"]}),(0,l.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*F.V.poor,"% - ",100*F.V.good,"%"]})]})]})]}),children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",className:"flex",children:n})})}var W=t(91332);function D(){let e=(0,g.n)(),s=function(){let{autopilot:e}=(0,b.q)(),s=function(){var e,s;let{autopilot:t}=(0,b.q)(),l=(0,p.e$)({disabled:"on"!==t.status}),i=(0,W.a)();return{isValidating:l.isValidating||i.isValidating,data:(null===(e=l.data)||void 0===e?void 0:e.contracts.set)===(null===(s=i.data)||void 0===s?void 0:s.default)}}();return{active:"on"===e.status&&!s.isValidating&&!s.data}}(),t=N(),i=(0,w.F)(),n=(0,r.useMemo)(()=>e.isSynced?null:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until renterd is synced."}),(0,l.jsx)(c.nvN,{size:"12",children:"The blockchain must be fully synced before uploading files. This can take a while depending on your hardware and network connection."})]},"syncStatus"),[e.isSynced]),a=(0,r.useMemo)(()=>t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(c.nvN,{size:"12",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(c.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(c.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]})]},"autopilotNotConfigured"):null,[t.active]),d=(0,r.useMemo)(()=>i.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(c.nvN,{size:"12",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",i.required," shards which means at least that many contracts are required."]})]},"notEnoughContracts"):null,[i]),x=(0,r.useMemo)(()=>s.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploaded data will not be managed by autopilot."}),(0,l.jsx)(c.nvN,{size:"12",children:"The autopilot contract set does not match the default contract set. This means that by default workers will not upload data to contracts that autopilot manages. Unless these contract are being manually maintained, this will result in data loss. Continue with caution or update the autopilot contract set to match the default contract set."})]},"contractSetMismatch"):null,[s.active]),u=(0,r.useMemo)(()=>[n,a,d,x].filter(Boolean),[n,a,d,x]);if(u.length)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.J2e,{trigger:(0,l.jsx)(c.zxk,{variant:"ghost",icon:"contrast",color:"amber",children:(0,l.jsx)(o.qdM,{})}),children:(0,l.jsx)("div",{className:"flex flex-col gap-3 px-1 py-2",children:u})}),(0,l.jsx)(c.Z0O,{variant:"vertical",className:"h-full"})]})}var V=t(43385);function O(){var e;let{isViewingABucket:s,uploadsList:t,activeExplorerMode:i}=(0,d.b)(),{pageCount:n}=(0,k.J)(),{pageCount:a}=(0,V.o)(),r=(0,p.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),o=((null===(e=r.data)||void 0===e?void 0:e.numObjects)||0)+t.length;return s?(0,l.jsxs)("div",{className:"flex gap-1",children:[(0,l.jsx)(c.ua7,{side:"bottom",content:"Number of files in page of current directory",children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",children:("flat"===i?a:n).toLocaleString()})}),(0,l.jsx)(c.ua7,{side:"bottom",content:"Number of files across all buckets",children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",children:r.data?"of ".concat(o.toLocaleString()," files"):" files"})})]}):(0,l.jsx)(c.ua7,{side:"bottom",content:"Number of files across all buckets",children:r.data?(0,l.jsxs)(c.xvT,{size:"12",font:"mono",children:[o.toLocaleString()," files"]}):(0,l.jsx)(c.xgg,{})})}function B(){return(0,l.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,l.jsx)(D,{}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(c.ua7,{side:"bottom",content:"Filtered statistics",children:(0,l.jsx)(c.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.q0D,{})})}),(0,l.jsx)(O,{})]}),(0,l.jsx)(c.Z0O,{variant:"vertical",className:"h-full"}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(c.ua7,{side:"bottom",content:"Global statistics",children:(0,l.jsx)(c.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.RFr,{})})}),(0,l.jsx)(C,{}),(0,l.jsx)(_,{})]})]})}var P=t(94225);function J(e){let{placeholder:s}=e,{setFilter:t,removeFilter:i,fileNamePrefixFilter:n}=(0,d.b)(),[a,x]=(0,r.useState)(n),[u]=(0,P.Nr)(a,500);return(0,r.useEffect)(()=>{n!==a&&x(n)},[n]),(0,r.useEffect)(()=>{n!==u&&(u.length?t({id:"fileNamePrefix",label:"",value:u}):i("fileNamePrefix"))},[u]),(0,l.jsxs)("div",{className:"flex gap-1 flex-1",children:[(0,l.jsx)(c.nvn,{variant:"ghost",focus:"none",placeholder:s||"Filter files in current directory",value:a,onChange:e=>x(e.currentTarget.value),className:"w-full !pl-0"}),!!a.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.zxk,{variant:"ghost",onClick:()=>x(""),children:(0,l.jsx)(o.PcV,{})}),(0,l.jsx)(c.Z0O,{variant:"vertical",className:"h-full"})]})]})}function E(){let{isViewingABucket:e,isViewingBuckets:s}=(0,d.b)(),{limit:t,offset:i,pageCount:n,dataState:a}=(0,k.J)();return(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[s?(0,l.jsx)("div",{className:"flex-1"}):(0,l.jsx)(J,{}),(0,l.jsx)(B,{}),e&&(0,l.jsx)(c.wFK,{offset:i,limit:t,pageTotal:n,isLoading:"loading"===a})]})}function K(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function M(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,l.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function U(){let{activeBucketName:e}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,l.jsx)(c.EKh,{children:e})," bucket does not contain any files, drag and drop files or click here to start uploading."]}),(0,l.jsx)(c.Qjf,{href:n._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function H(){let{isViewingRootOfABucket:e}=(0,d.b)(),{dataState:s}=(0,k.J)(),t=N(),i=(0,w.F)();return"noneMatchingFilters"===s?(0,l.jsx)(M,{}):"error"===s?(0,l.jsx)(K,{}):e&&"noneYet"===s&&t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(c.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(c.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,l.jsx)(c.Qjf,{variant:"accent",href:n._.config.index,children:"Configure"})]})]}):e&&"noneYet"===s&&i.active?(0,l.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",i.required," shards which means at least that many contracts are required."]}),(0,l.jsxs)(c.xvT,{size:"30",className:"text-center max-w-[500px]",children:[i.count,"/",i.required]})]})]}):"noneYet"===s?(0,l.jsx)(U,{}):null}var R=t(72199);function Q(){let{uploadFiles:e,sortField:s,sortDirection:t,sortableColumns:i,toggleSort:n}=(0,d.b)(),{datasetPage:a,pageCount:r,dataState:o,onDragEnd:x,onDragOver:u,onDragStart:h,onDragCancel:j,onDragMove:f,draggingObject:m}=(0,k.J)(),v=T();return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(c.fhJ,{onDrop:e,noClick:!v||r>0,noDrag:!v,children:(0,l.jsx)(c.iA_,{isLoading:"loading"===o,emptyState:(0,l.jsx)(H,{}),pageSize:10,data:a,columns:R.z,sortableColumns:i,sortField:s,sortDirection:t,toggleSort:n,rowSize:"dense",onDragStart:h,onDragOver:u,onDragEnd:x,onDragCancel:j,onDragMove:f,draggingDatum:m})})})}function q(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsx)(h.J,{title:"Files",navTitle:null,routes:n._,sidenav:(0,l.jsx)(i.e,{}),nav:(0,l.jsx)(u,{}),stats:(0,l.jsx)(E,{}),actions:(0,l.jsx)(z,{}),openSettings:()=>e("settings"),children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(Q,{})})})}function L(){let{activeBucketName:e,setActiveDirectory:s}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,l.jsx)(x.C,{}),(0,l.jsx)(c.xrM,{children:(0,l.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,l.jsx)(c.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(c.xvT,{onClick:()=>null,size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(c.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"All files"})]})})]})}function Z(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,l.jsx)(o.UBs,{})}),(0,l.jsx)(v,{})]})}function Y(){let{limit:e,pageCount:s,dataState:t,nextMarker:i,isMore:n}=(0,V.o)();return(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,l.jsx)(J,{placeholder:"Filter files in current bucket"}),(0,l.jsx)(B,{}),(0,l.jsx)(c._5,{marker:i,isMore:n,limit:e,pageTotal:s,isLoading:"loading"===t})]})}function X(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function A(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,l.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function I(){let{activeBucketName:e}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,l.jsx)(c.EKh,{children:e})," bucket does not contain any files."]}),(0,l.jsx)(c.Qjf,{href:n._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function $(){let{dataState:e}=(0,V.o)();return"noneMatchingFilters"===e?(0,l.jsx)(A,{}):"error"===e?(0,l.jsx)(X,{}):"noneYet"===e?(0,l.jsx)(I,{}):null}var G=t(33351);function ee(){let{sortableColumns:e,toggleSort:s}=(0,d.b)(),{datasetPage:t,dataState:i,sortField:n,sortDirection:a}=(0,V.o)();return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(c.iA_,{isLoading:"loading"===i,emptyState:(0,l.jsx)($,{}),pageSize:10,data:t,columns:G.z,sortableColumns:e,sortField:n,sortDirection:a,toggleSort:s,rowSize:"dense"})})}function es(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsx)(h.J,{title:"Files",navTitle:null,routes:n._,sidenav:(0,l.jsx)(i.e,{}),nav:(0,l.jsx)(L,{}),stats:(0,l.jsx)(Y,{}),actions:(0,l.jsx)(Z,{}),openSettings:()=>e("settings"),children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(ee,{})})})}function et(){let{isViewingBuckets:e,activeExplorerMode:s}=(0,d.b)();return"directory"===s||e?(0,l.jsx)(q,{}):(0,l.jsx)(es,{})}},91362:function(e,s,t){t.d(s,{J:function(){return j}});var l=t(52322),i=t(97479),n=t(57016),a=t(6391),r=t.n(a),c=t(98334),o=t(38855),d=t(97112),x=t(21487);function u(){var e,s,t,a,r,c;let{openDialog:u}=(0,d.Rh)(),h=(0,n.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,n.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,n.cQ)(),m=(0,o.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,g="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),p=h.data?new Date().getTime()-new Date(null===(s=h.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,l.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=f.data)||void 0===t?void 0:t.length,connectPeer:()=>u("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(a=j.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(i.xvT,{size:"14",children:(0,x.bc)(p,{format:"long"})})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(i.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(i.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,n.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(i.t6k,{testnetName:e.data.network}):null}function j(e){let s=(0,n.X2)(),{isSynced:t}=(0,o.n)();return(0,l.jsx)(i.tU3,{appName:"renterd",profile:(0,l.jsx)(u,{}),banner:(0,l.jsx)(h,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},97992:function(e,s,t){t.d(s,{e:function(){return o}});var l=t(52322),i=t(97479),n=t(61020),a=t(82851),r=t(98334),c=t(88385);function o(){let{totals:e}=(0,c.Z)(),s=e.all===e.info;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.KJW,{title:"Files",route:r._.buckets.index,children:(0,l.jsx)(n.ROc,{})}),(0,l.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,l.jsx)(n.wWN,{})}),(0,l.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,l.jsx)(n.VBo,{})}),(0,l.jsx)(i.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,l.jsx)(n.VHe,{})}),(0,l.jsx)(i.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,l.jsx)(n._m8,{})}),(0,l.jsxs)("div",{className:"relative",children:[e.all?s?(0,l.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,l.jsx)(i.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,l.jsx)(i.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,l.jsx)(n.Dkj,{})})]})]})}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/448-c00be3b5cd1c7f6b.js b/renterd/assets/_next/static/chunks/448-c00be3b5cd1c7f6b.js new file mode 100644 index 000000000..acf1befc0 --- /dev/null +++ b/renterd/assets/_next/static/chunks/448-c00be3b5cd1c7f6b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[448],{17398:function(e,s,t){t.d(s,{C:function(){return c}});var l=t(52322),i=t(97479),n=t(61020),a=t(41736);function r(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:t,isViewingUploads:r,navigateToUploads:c}=(0,a.b)();return(0,l.jsxs)(i.h_2,{trigger:(0,l.jsx)(i.zxk,{tipSide:"bottom",tip:r?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:r?(0,l.jsx)(n.bQp,{}):"directory"===e?(0,l.jsx)(n.Qbr,{}):(0,l.jsx)(n.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,l.jsxs)(i.Xiv,{onSelect:s,children:[(0,l.jsx)(i.KpP,{children:(0,l.jsx)(n.Qbr,{})}),"Directory"]}),(0,l.jsxs)(i.Xiv,{onSelect:t,children:[(0,l.jsx)(i.KpP,{children:(0,l.jsx)(n.nDH,{})}),"All files"]}),(0,l.jsxs)(i.Xiv,{onSelect:c,children:[(0,l.jsx)(i.KpP,{children:(0,l.jsx)(n.bQp,{})}),"Uploads"]})]})}function c(){let{isViewingBuckets:e}=(0,a.b)();return e?(0,l.jsx)(i.ua7,{content:"Viewing all buckets",children:(0,l.jsx)("div",{children:(0,l.jsx)(i.zxk,{state:"waiting",children:(0,l.jsx)(n.fi8,{size:16})})})}):(0,l.jsx)(r,{})}},57448:function(e,s,t){t.d(s,{h:function(){return es}});var l=t(52322),i=t(97992),n=t(98334),a=t(97112),r=t(2784),c=t(97479),o=t(61020),d=t(41736),x=t(17398);function u(){let{activeDirectory:e,setActiveDirectory:s}=(0,d.b)(),t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,l.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,l.jsx)(x.C,{}),(0,l.jsx)(c.xrM,{children:(0,l.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,l.jsx)(c.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),e.length>0&&(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),e.map((e,t)=>(0,l.jsxs)(r.Fragment,{children:[t>0&&(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(c.xvT,{onClick:()=>s(e=>e.slice(0,t+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+t)),(0,l.jsx)("div",{ref:t})]})})]})}var h=t(91362),j=t(74424),f=t(3077),m=t(52058);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:i,setSortField:n,sortDirection:a,setSortDirection:r,enabledColumns:x}=(0,d.b)();return(0,l.jsxs)(c.J2e,{trigger:(0,l.jsxs)(c.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(o.hiv,{}),"View",(0,l.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(c.WVB,{children:[(0,l.jsx)(c.__J,{children:"Order by"}),(0,l.jsx)(c.kFS,{children:(0,l.jsx)(c.PhF,{value:i,onChange:e=>{n(e.currentTarget.value)},children:Object.entries((0,m.Z)(f.Fo,"category")).map(e=>{let[s,t]=e;return(0,l.jsx)("optgroup",{label:s,children:t.map(e=>(0,l.jsx)(c.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(c.WVB,{children:[(0,l.jsx)(c.__J,{children:"Direction"}),(0,l.jsx)(c.kFS,{children:(0,l.jsxs)(c.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{r(e.currentTarget.value)},children:[(0,l.jsx)(c.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(c.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(c.Clw,{}),(0,l.jsxs)(c.WVB,{children:[(0,l.jsx)(c.__J,{children:"Display properties"}),(0,l.jsx)(c.kFS,{children:(0,l.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,l.jsx)(c.WVB,{children:(0,l.jsx)(c.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}var g=t(38855),p=t(55329),b=t(46081);function N(){let{autopilot:e}=(0,b.q)(),s=(0,p.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var w=t(42770);function T(){let{isViewingABucket:e}=(0,d.b)(),s=(0,g.n)(),t=N(),l=(0,w.F)();return e&&!t.active&&!l.active&&s.isSynced}let{useDropzone:y}=j;function z(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,d.b)(),i=T(),{getRootProps:n,getInputProps:r}=y({noDrag:!0,noClick:!i,onDrop:s});return(0,l.jsxs)("div",{className:"flex gap-2",children:[t?(0,l.jsxs)(c.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,l.jsx)(o.aXP,{}),"Create bucket"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,l.jsx)(o.UBs,{})}),(0,l.jsxs)(c.zxk,{...n(),tip:"Upload files",disabled:!i,children:[(0,l.jsx)("input",{...r()}),(0,l.jsx)(o.bQp,{})]}),(0,l.jsx)(c.zxk,{disabled:!i,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,l.jsx)(o.L37,{})})]}),(0,l.jsx)(v,{})]})}var k=t(75618),S=t(21487);function C(){let e=(0,p.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,l.jsx)(c.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize+e.data.totalUnfinishedObjectsSize,t=s?e.data.totalSectorsSize/s:0;return(0,l.jsx)(c.ua7,{side:"bottom",content:(0,l.jsxs)(c.xvT,{className:"flex justify-between gap-6",children:[(0,l.jsxs)(c.xvT,{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!t&&(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,l.jsx)(c.Z0O,{className:"w-full my-1"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,l.jsxs)(c.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalObjectsSize)}),(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalSectorsSize)}),!!t&&(0,l.jsxs)(c.xvT,{size:"12",font:"mono",children:[t.toFixed(1),"x"]}),(0,l.jsx)(c.Z0O,{className:"w-full my-1"}),(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,l.jsx)(c.xvT,{size:"12",children:(0,S.vW)(e.data.totalUploadedSize)})]})]}),children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",children:"".concat((0,S.vW)(e.data.totalObjectsSize)).concat(t?" @ ".concat(t.toFixed(1),"x"):"")})})}var F=t(18121);function _(){var e,s;let t=(0,p.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),{displayHealth:i,label:n}=(0,F.B)({health:null===(e=t.data)||void 0===e?void 0:e.minHealth,size:1,isDirectory:!0}),a=(null===(s=t.data)||void 0===s?void 0:s.totalObjectsSize)===0;return!t.data||a?null:(0,l.jsx)(c.ua7,{align:"end",content:(0,l.jsxs)("div",{className:"flex flex-col overflow-hidden mb-1",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)(c.xvT,{size:"12",children:n}),(0,l.jsxs)(c.xvT,{size:"12",children:[(100*i).toFixed(0),"%"]})]}),(0,l.jsx)(c.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"Health is calculated as the minimum health value from across all file slabs. For directories this is across all contained files."}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"Slab health is calculated as the number of shards with active contracts in the autopilot contract set above the minimum required shards and expressed as a percentage."})]}),(0,l.jsx)(c.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"excellent health"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"good health"}),(0,l.jsx)(c.xvT,{size:"12",color:"subtle",children:"poor health"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,l.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*F.V.excellent,"%"]}),(0,l.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*F.V.good,"% -"," ",100*F.V.excellent,"%"]}),(0,l.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*F.V.poor,"% - ",100*F.V.good,"%"]})]})]})]}),children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",className:"flex",children:n})})}function W(){let e=(0,g.n)(),s=function(){let{autopilot:e}=(0,b.q)(),s=function(){var e,s;let{autopilot:t}=(0,b.q)(),l=(0,p.e$)({disabled:"on"!==t.status}),i=(0,p.M6)();return{isValidating:l.isValidating||i.isValidating,data:(null===(e=l.data)||void 0===e?void 0:e.contracts.set)===(null===(s=i.data)||void 0===s?void 0:s.default)}}();return{active:"on"===e.status&&!s.isValidating&&!s.data}}(),t=N(),i=(0,w.F)(),n=(0,r.useMemo)(()=>e.isSynced?null:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until renterd is synced."}),(0,l.jsx)(c.nvN,{size:"12",children:"The blockchain must be fully synced before uploading files. This can take a while depending on your hardware and network connection."})]},"syncStatus"),[e.isSynced]),a=(0,r.useMemo)(()=>t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(c.nvN,{size:"12",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(c.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(c.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]})]},"autopilotNotConfigured"):null,[t.active]),d=(0,r.useMemo)(()=>i.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(c.nvN,{size:"12",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",i.required," shards which means at least that many contracts are required."]})]},"notEnoughContracts"):null,[i]),x=(0,r.useMemo)(()=>s.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploaded data will not be managed by autopilot."}),(0,l.jsx)(c.nvN,{size:"12",children:"The autopilot contract set does not match the default contract set. This means that by default workers will not upload data to contracts that autopilot manages. Unless these contract are being manually maintained, this will result in data loss. Continue with caution or update the autopilot contract set to match the default contract set."})]},"contractSetMismatch"):null,[s.active]),u=(0,r.useMemo)(()=>[n,a,d,x].filter(Boolean),[n,a,d,x]);if(u.length)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.J2e,{trigger:(0,l.jsx)(c.zxk,{variant:"ghost",icon:"contrast",color:"amber",children:(0,l.jsx)(o.qdM,{})}),children:(0,l.jsx)("div",{className:"flex flex-col gap-3 px-1 py-2",children:u})}),(0,l.jsx)(c.Z0O,{variant:"vertical",className:"h-full"})]})}var D=t(43385);function V(){var e;let{isViewingABucket:s,uploadsList:t,activeExplorerMode:i}=(0,d.b)(),{pageCount:n}=(0,k.J)(),{pageCount:a}=(0,D.o)(),r=(0,p.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),o=((null===(e=r.data)||void 0===e?void 0:e.numObjects)||0)+t.length;return s?(0,l.jsxs)("div",{className:"flex gap-1",children:[(0,l.jsx)(c.ua7,{side:"bottom",content:"Number of files in page of current directory",children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",children:("flat"===i?a:n).toLocaleString()})}),(0,l.jsx)(c.ua7,{side:"bottom",content:"Number of files across all buckets",children:(0,l.jsx)(c.xvT,{size:"12",font:"mono",children:r.data?"of ".concat(o.toLocaleString()," files"):" files"})})]}):(0,l.jsx)(c.ua7,{side:"bottom",content:"Number of files across all buckets",children:r.data?(0,l.jsxs)(c.xvT,{size:"12",font:"mono",children:[o.toLocaleString()," files"]}):(0,l.jsx)(c.xgg,{})})}function O(){return(0,l.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,l.jsx)(W,{}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(c.ua7,{side:"bottom",content:"Filtered statistics",children:(0,l.jsx)(c.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.q0D,{})})}),(0,l.jsx)(V,{})]}),(0,l.jsx)(c.Z0O,{variant:"vertical",className:"h-full"}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(c.ua7,{side:"bottom",content:"Global statistics",children:(0,l.jsx)(c.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.RFr,{})})}),(0,l.jsx)(C,{}),(0,l.jsx)(_,{})]})]})}var B=t(94225);function P(e){let{placeholder:s}=e,{setFilter:t,removeFilter:i,fileNamePrefixFilter:n}=(0,d.b)(),[a,x]=(0,r.useState)(n),[u]=(0,B.Nr)(a,500);return(0,r.useEffect)(()=>{n!==a&&x(n)},[n]),(0,r.useEffect)(()=>{n!==u&&(u.length?t({id:"fileNamePrefix",label:"",value:u}):i("fileNamePrefix"))},[u]),(0,l.jsxs)("div",{className:"flex gap-1 flex-1",children:[(0,l.jsx)(c.nvn,{variant:"ghost",focus:"none",placeholder:s||"Filter files in current directory",value:a,onChange:e=>x(e.currentTarget.value),className:"w-full !pl-0"}),!!a.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.zxk,{variant:"ghost",onClick:()=>x(""),children:(0,l.jsx)(o.PcV,{})}),(0,l.jsx)(c.Z0O,{variant:"vertical",className:"h-full"})]})]})}function J(){let{isViewingABucket:e,isViewingBuckets:s}=(0,d.b)(),{limit:t,offset:i,pageCount:n,dataState:a}=(0,k.J)();return(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[s?(0,l.jsx)("div",{className:"flex-1"}):(0,l.jsx)(P,{}),(0,l.jsx)(O,{}),e&&(0,l.jsx)(c.wFK,{offset:i,limit:t,pageTotal:n,isLoading:"loading"===a})]})}function E(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function K(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,l.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function M(){let{activeBucketName:e}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,l.jsx)(c.EKh,{children:e})," bucket does not contain any files, drag and drop files or click here to start uploading."]}),(0,l.jsx)(c.Qjf,{href:n._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function U(){let{isViewingRootOfABucket:e}=(0,d.b)(),{dataState:s}=(0,k.J)(),t=N(),i=(0,w.F)();return"noneMatchingFilters"===s?(0,l.jsx)(K,{}):"error"===s?(0,l.jsx)(E,{}):e&&"noneYet"===s&&t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(c.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(c.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,l.jsx)(c.Qjf,{variant:"accent",href:n._.config.index,children:"Configure"})]})]}):e&&"noneYet"===s&&i.active?(0,l.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",i.required," shards which means at least that many contracts are required."]}),(0,l.jsxs)(c.xvT,{size:"30",className:"text-center max-w-[500px]",children:[i.count,"/",i.required]})]})]}):"noneYet"===s?(0,l.jsx)(M,{}):null}var H=t(72199);function R(){let{uploadFiles:e,sortField:s,sortDirection:t,sortableColumns:i,toggleSort:n}=(0,d.b)(),{datasetPage:a,pageCount:r,dataState:o,onDragEnd:x,onDragOver:u,onDragStart:h,onDragCancel:j,onDragMove:f,draggingObject:m}=(0,k.J)(),v=T();return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(c.fhJ,{onDrop:e,noClick:!v||r>0,noDrag:!v,children:(0,l.jsx)(c.iA_,{isLoading:"loading"===o,emptyState:(0,l.jsx)(U,{}),pageSize:10,data:a,columns:H.z,sortableColumns:i,sortField:s,sortDirection:t,toggleSort:n,rowSize:"dense",onDragStart:h,onDragOver:u,onDragEnd:x,onDragCancel:j,onDragMove:f,draggingDatum:m})})})}function Q(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsx)(h.J,{title:"Files",navTitle:null,routes:n._,sidenav:(0,l.jsx)(i.e,{}),nav:(0,l.jsx)(u,{}),stats:(0,l.jsx)(J,{}),actions:(0,l.jsx)(z,{}),openSettings:()=>e("settings"),children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(R,{})})})}function q(){let{activeBucketName:e,setActiveDirectory:s}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,l.jsx)(x.C,{}),(0,l.jsx)(c.xrM,{children:(0,l.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,l.jsx)(c.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(c.xvT,{onClick:()=>null,size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,l.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(c.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"All files"})]})})]})}function L(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,l.jsx)(o.UBs,{})}),(0,l.jsx)(v,{})]})}function Z(){let{limit:e,pageCount:s,dataState:t,nextMarker:i,isMore:n}=(0,D.o)();return(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,l.jsx)(P,{placeholder:"Filter files in current bucket"}),(0,l.jsx)(O,{}),(0,l.jsx)(c._5,{marker:i,isMore:n,limit:e,pageTotal:s,isLoading:"loading"===t})]})}function Y(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function X(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,l.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function A(){let{activeBucketName:e}=(0,d.b)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(c.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsxs)(c.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,l.jsx)(c.EKh,{children:e})," bucket does not contain any files."]}),(0,l.jsx)(c.Qjf,{href:n._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function I(){let{dataState:e}=(0,D.o)();return"noneMatchingFilters"===e?(0,l.jsx)(X,{}):"error"===e?(0,l.jsx)(Y,{}):"noneYet"===e?(0,l.jsx)(A,{}):null}var $=t(33351);function G(){let{sortableColumns:e,toggleSort:s}=(0,d.b)(),{datasetPage:t,dataState:i,sortField:n,sortDirection:a}=(0,D.o)();return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(c.iA_,{isLoading:"loading"===i,emptyState:(0,l.jsx)(I,{}),pageSize:10,data:t,columns:$.z,sortableColumns:e,sortField:n,sortDirection:a,toggleSort:s,rowSize:"dense"})})}function ee(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsx)(h.J,{title:"Files",navTitle:null,routes:n._,sidenav:(0,l.jsx)(i.e,{}),nav:(0,l.jsx)(q,{}),stats:(0,l.jsx)(Z,{}),actions:(0,l.jsx)(L,{}),openSettings:()=>e("settings"),children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(G,{})})})}function es(){let{isViewingBuckets:e,activeExplorerMode:s}=(0,d.b)();return"directory"===s||e?(0,l.jsx)(Q,{}):(0,l.jsx)(ee,{})}},91362:function(e,s,t){t.d(s,{J:function(){return j}});var l=t(52322),i=t(97479),n=t(55329),a=t(6391),r=t.n(a),c=t(98334),o=t(38855),d=t(97112),x=t(21487);function u(){var e,s,t,a,r,c;let{openDialog:u}=(0,d.Rh)(),h=(0,n.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,n.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,n.cQ)(),m=(0,o.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,g="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),p=h.data?new Date().getTime()-new Date(null===(s=h.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,l.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=f.data)||void 0===t?void 0:t.length,connectPeer:()=>u("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(a=j.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(i.xvT,{size:"14",children:(0,x.bc)(p,{format:"long"})})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(i.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(i.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,n.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(i.t6k,{testnetName:e.data.network}):null}function j(e){let s=(0,n.X2)(),{isSynced:t}=(0,o.n)();return(0,l.jsx)(i.tU3,{appName:"renterd",profile:(0,l.jsx)(u,{}),banner:(0,l.jsx)(h,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},97992:function(e,s,t){t.d(s,{e:function(){return o}});var l=t(52322),i=t(97479),n=t(61020),a=t(82851),r=t(98334),c=t(88385);function o(){let{totals:e}=(0,c.Z)(),s=e.all===e.info;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.KJW,{title:"Files",route:r._.buckets.index,children:(0,l.jsx)(n.ROc,{})}),(0,l.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,l.jsx)(n.wWN,{})}),(0,l.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,l.jsx)(n.VBo,{})}),(0,l.jsx)(i.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,l.jsx)(n.VHe,{})}),(0,l.jsx)(i.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,l.jsx)(n._m8,{})}),(0,l.jsxs)("div",{className:"relative",children:[e.all?s?(0,l.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,l.jsx)(i.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,l.jsx)(i.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,l.jsx)(n.Dkj,{})})]})]})}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/_app-8ec282101b2a3bfc.js b/renterd/assets/_next/static/chunks/pages/_app-b38e861c783efc1c.js similarity index 76% rename from renterd/assets/_next/static/chunks/pages/_app-8ec282101b2a3bfc.js rename to renterd/assets/_next/static/chunks/pages/_app-b38e861c783efc1c.js index 4a212429c..77b975d00 100644 --- a/renterd/assets/_next/static/chunks/pages/_app-8ec282101b2a3bfc.js +++ b/renterd/assets/_next/static/chunks/pages/_app-b38e861c783efc1c.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{36662:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{I:function(){return y},_:function(){return m},a:function(){return p}});var o=["width","height","viewBox"],s=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"},u=n(13980),c=n.n(u),d=n(2784);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var v=["className","children","tabIndex"],g=["tabindex"],y=d.forwardRef(function(e,t){var n=e.className,r=e.children,u=e.tabIndex,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,u=void 0===r?"0 0 ".concat(t," ").concat(n):r,c=a(e,o),d=c.tabindex,f=a(c,s),h=i(i(i({},l),f),{},{width:t,height:n,viewBox:u});return h["aria-label"]||h["aria-labelledby"]||h.title?(h.role="img",null!=d&&(h.focusable="true",h.tabindex=d)):h["aria-hidden"]=!0,h}(h(h({},m(e,v)),{},{tabindex:u})),f=c.tabindex,p=m(c,g);return n&&(p.className=n),null!=f&&(p.tabIndex=f),t&&(p.ref=t),d.createElement("svg",p,r)});y.displayName="Icon",y.propTypes={"aria-hidden":c().string,"aria-label":c().string,"aria-labelledby":c().string,children:c().node,className:c().string,height:c().oneOfType([c().number,c().string]),preserveAspectRatio:c().string,tabIndex:c().string,viewBox:c().string,width:c().oneOfType([c().number,c().string]),xmlns:c().string},y.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},315:function(e,t,n){"use strict";n.d(t,{BdP:function(){return g},P5r:function(){return b},RdX:function(){return x},U_S:function(){return w},e1T:function(){return y}});var r,i,a,o,s,l,u,c=n(36662),d=n(2784),f=["children"],h=["children"],p=["children"],m=["children"],v=["children"],g=d.forwardRef(function(e,t){var n=e.children,i=(0,c._)(e,f);return d.createElement(c.I,(0,c.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=d.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),y=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,h);return d.createElement(c.I,(0,c.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=d.createElement("path",{d:"M19,14a3,3,0,1,0-3-3A3,3,0,0,0,19,14Zm0-4a1,1,0,1,1-1,1A1,1,0,0,1,19,10Z"})),a||(a=d.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,22H6V20l5-5,5.59,5.59a2,2,0,0,0,2.82,0L21,19l5,5Zm0-4.83-3.59-3.59a2,2,0,0,0-2.82,0L18,19.17l-5.59-5.59a2,2,0,0,0-2.82,0L6,17.17V6H26Z"})),n)}),b=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,p);return d.createElement(c.I,(0,c.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=d.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),x=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,m);return d.createElement(c.I,(0,c.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=d.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),l||(l=d.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),w=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,v);return d.createElement(c.I,(0,c.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=d.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)})},55791:function(e,t,n){"use strict";n.d(t,{Wet:function(){return p},ZEk:function(){return g},Zbu:function(){return v},xkX:function(){return m}});var r,i,a,o,s,l=n(36662),u=n(2784),c=["children"],d=["children"],f=["children"],h=["children"],p=u.forwardRef(function(e,t){var n=e.children,i=(0,l._)(e,c);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=u.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),m=u.forwardRef(function(e,t){var n=e.children,r=(0,l._)(e,d);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=u.createElement("path",{d:"M27,8H6.83l3.58-3.59L9,3,3,9l6,6,1.41-1.41L6.83,10H27V26H7V19H5v7a2,2,0,0,0,2,2H27a2,2,0,0,0,2-2V10A2,2,0,0,0,27,8Z"})),n)}),v=u.forwardRef(function(e,t){var n=e.children,r=(0,l._)(e,f);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=u.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),o||(o=u.createElement("path",{d:"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),n)}),g=u.forwardRef(function(e,t){var n=e.children,r=(0,l._)(e,h);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=u.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)})},98358:function(e,t,n){"use strict";n.d(t,{F3j:function(){return B},Jsc:function(){return q},NlZ:function(){return Z},PcV:function(){return U},QN4:function(){return H},T80:function(){return W},Y3p:function(){return z},Y9T:function(){return $},Z$8:function(){return F},bQp:function(){return K},tEK:function(){return I},yar:function(){return V}});var r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k=n(36662),E=n(2784),S=["children"],C=["children"],_=["children"],O=["children"],M=["children"],T=["children"],A=["children"],P=["children"],N=["children"],R=["children"],D=["children"],L=["children"],Z=E.forwardRef(function(e,t){var n=e.children,i=(0,k._)(e,S);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=E.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),F=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,C);return E.createElement(k.I,(0,k.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),a||(a=E.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),z=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,_);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=E.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),s||(s=E.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),V=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,O);return E.createElement(k.I,(0,k.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=E.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),u||(u=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),I=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,M);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=E.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),d||(d=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),B=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,T);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=E.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),H=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,A);return E.createElement(k.I,(0,k.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=E.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),U=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,P);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=E.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),W=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,N);return E.createElement(k.I,(0,k.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),m||(m=E.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),v||(v=E.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),q=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,R);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),g||(g=E.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),y||(y=E.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),$=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,D);return E.createElement(k.I,(0,k.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),b||(b=E.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),x||(x=E.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),K=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,L);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),w||(w=E.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),j||(j=E.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)})},44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return C},ResizeObserverSize:function(){return c}});var r,i,a,o=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(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}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,a=e.offsetHeight;return!(i||a||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=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},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},j=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},k=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),E=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,k),k;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!x&&"border-box"===n.boxSizing,a=b.test(n.writingMode||""),o=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),E=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),C=r?0:w(n.borderLeftWidth),_=m+c,O=l+p,M=C+E,T=v+S,A=s?e.offsetHeight-T-e.clientHeight:0,P=o?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?_+M:0)-P,R=r?r.height:w(n.height)-(i?O+T:0)-A,D=N+_+P+M,L=R+O+A+T,Z=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),a),borderBoxSize:j(D,L,a),contentBoxSize:j(N,R,a),contentRect:new d(m,l,N,R)});return g.set(e,Z),Z},S=function(e,t,n){var r=E(e,n),a=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return a;default:return o}},C=function(e){var t=E(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},_=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new C(t.target),i=_(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);o.some(function(e){return e.activeTargets.length>0});)M(e=O());return o.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),a=function(){n.textContent=""+(t?t--:t++)}}A.push(e),a()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Z=function(e){return void 0===e&&(e=0),Date.now()+e},F=!1,z=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),!F){F=!0;var n=Z(e);N(function(){var r=!1;try{r=T()}finally{if(F=!1,e=n-Z(),!R)return;r?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,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new I(t,n&&n.box)),V(1),z.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=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.");W.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(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.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(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return a}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return a},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,a=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:a},t)}return i.displayName=e+"Provider",[i,function(i){let a=(0,r.useContext)(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let a=(0,r.createContext)(i),o=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][o])||a,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][o])||a,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return K},VY:function(){return $},aV:function(){return q},dk:function(){return Y},fC:function(){return H},h_:function(){return W},x8:function(){return X},xz:function(){return U}});var r=n(7896),i=n(2784),a=n(41816),o=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let b="Dialog",[x,w]=(0,s.b)(b),[j,k]=x(b),E=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=k("DialogTrigger",n),u=(0,o.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":V(l.open)},s,{ref:u,onClick:(0,a.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[C,_]=x(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=_(O,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,s=k(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:a||s.open},(0,i.createElement)(T,(0,r.Z)({},o,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[o.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":V(o.open)},a,{ref:t,style:{pointerEvents:"auto",...a.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=_(A,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,s=k(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:a||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},o,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},o,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,o.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),a=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current=!0);let o=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(o))&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=k(A,n),h=(0,i.useRef)(null),p=(0,o.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":V(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",Z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:o.titleId},a,{ref:t}))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:o.descriptionId},a,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,s=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},o,{ref:t,onClick:(0,a.M)(e.onClick,()=>s.onOpenChange(!1))}))});function V(e){return e?"open":"closed"}let[I,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:a,onChange:o});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=E,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=k(S,t);return(0,i.createElement)(C,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||o.open},(0,i.createElement)(f.h,{asChild:!0,container:a},e))))},q=M,$=P,K=Z,Y=F,X=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),a=n(2784),o=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,a.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...b}=e,x=(0,a.useContext)(d),[w,j]=(0,a.useState)(null),[,k]=(0,a.useState)({}),E=(0,l.e)(t,e=>j(e)),S=Array.from(x.layers),[C]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(C),O=w?S.indexOf(w):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,T=O>=_,A=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1),r=(0,a.useRef)(()=>{});return(0,a.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!T||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{O!==x.layers.size-1||(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,a.useEffect)(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,x]),(0,a.useEffect)(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),(0,a.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.createElement)(s.WV.div,(0,i.Z)({},b,{ref:E,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,a):i.dispatchEvent(a)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return a}});var r=n(2784);let i=0;function a(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:o()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){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}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),a=n(2784),o=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,a.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,x]=(0,a.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),k=(0,a.useRef)(null),E=(0,o.e)(t,e=>x(e)),S=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.useEffect)(()=>{if(r){function e(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?k.current=t:m(k.current,{select:!0})}function t(e){S.paused||!b||b.contains(e.relatedTarget)||m(k.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,b,S.paused]),(0,a.useEffect)(()=>{if(b){v.add(S);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,j),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,j),v.remove(S)},0)}}},[b,w,j,S]);let C=(0,a.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=h(e);return[p(t,e),p(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,a.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:E,onKeyDown:C}))});function h(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n 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}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),a=n(64680);let o=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(o());return(0,a.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),a=n(28316),o=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?a.createPortal((0,i.createElement)(o.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),a=n(26215),o=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t,n;let[a,s]=(0,r.useState)(),u=(0,r.useRef)({}),c=(0,r.useRef)(e),d=(0,r.useRef)("none"),[f,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,r.useEffect)(()=>{let e=l(u.current);d.current="mounted"===f?e:"none"},[f]),(0,o.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,o.b)(()=>{if(a){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===a&&t&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===a&&(d.current=l(u.current))};return a.addEventListener("animationstart",t),a.addEventListener("animationcancel",e),a.addEventListener("animationend",e),()=>{a.removeEventListener("animationstart",t),a.removeEventListener("animationcancel",e),a.removeEventListener("animationend",e)}}h("ANIMATION_END")},[a,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(u.current=getComputedStyle(e)),s(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,a.e)(s.ref,u.ref);return"function"==typeof n||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),a=n(28316),o=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:a,...s}=e,l=a?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,a.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return o}});var r=n(7896),i=n(2784),a=n(26215);let o=(0,i.forwardRef)((e,t)=>{let{children:n,...a}=e,o=i.Children.toArray(n),l=o.find(u);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),n)});o.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==a||a(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,a.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(2784),i=n(86029);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[a]=n,o=(0,r.useRef)(a),s=(0,i.W)(t);return(0,r.useEffect)(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:a,u=(0,i.W)(n);return[l,(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[s,e,o,u])]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,j=void 0===w?10:w,k=e.orientation,E=void 0===k?d.default.bottom:k,S=e.rangePadding,C=void 0===S?0:S,_=e.scale,O=e.tickFormat,M=e.tickLength,T=void 0===M?8:M,A=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(_),D=E===d.default.left,L=E===d.default.top,Z=L||E===d.default.bottom,F=(0,l.default)(_),z=D||L?-1:1,V=_.range(),I=(0,f.default)(C),B=(0,c.default)({x:Number(V[0])+.5-I.start,y:0},Z),H=(0,c.default)({x:Number(V[V.length-1])+.5+I.end,y:0},Z),U=(null!=A?A:(0,o.getTicks)(_,j)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,o.coerceNumber)(F(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},Z),to:(0,c.default)({x:r,y:T*z},Z),formattedValue:R(t,n,U)}});return r.default.createElement(a.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:b,horizontal:Z,numTicks:j,orientation:E,rangePadding:C,scale:_,tickFormat:R,tickLength:T,tickPosition:F,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),a=n(71602),o=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:o.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:o.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:o.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:o.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(a=n.xMin)?a:-1/0,null!=(o=n.xMax)?o:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=a(n(30968)),i=a(n(98929));function a(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),a=0;a<=i;a+=n){var o=e.getPointAtLength(a).matrixTransform(t);r.push(o)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],a=(0,r.useRef)(null),o=(0,r.useCallback)(function(e,t){a.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){a.current&&(a.current(n),a.current=null)},[n]),[n,o]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(49833),i=n(44321);function a(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:a({},o);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:a({},o)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function a(e){return!!e&&"createSVGPoint"in e}function o(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return o},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return a},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=k?k:(0,u.getTicks)(r,void 0===x?10:x),_=(null!=j?j:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+_;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),_=(null!=k?k:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+_;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),a=n(2784),o=n(72779),s=n.n(o),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return a.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),o)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return a},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function a(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(a.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),a=l(n(65154)),o=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),a=s(n(55727)),o=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,a.useTransition)(n,u({},(0,o.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,o=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(a.animated.line,u({key:h,x1:r,x2:o,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),a=s(n(55727)),o=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.useRef)(null),y=(0,a.useRef)(0),b=(0,a.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[1],j=(0,a.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,a.useEffect)(function(){var e=new o.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:a,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),a.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},x,{ref:g.current,resize:j})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),a=n(70590),o=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,a.Z)(e);case"sqrt":return(0,o.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return x.Z},getTicks:function(){return C.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return a.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return _.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),a=n(8597),o=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,o.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},k=n(40668);function E(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),C=n(71220),_=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return C},Z:function(){return O}});var r=n(88751),i=n(87286),a=n(43780),o=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:a.Z,"hsl-long":a.q,cubehelix:o.Z,"cubehelix-long":o.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),b=n(94758),x=n(97631),w=n(2908),j=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},E={day:v.Z,hour:g.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},S=n(74672),C=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],_={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,j.Z)(e);if("string"==typeof n)e.nice(r?E[n]:k[n]);else{var i=n.interval,a=n.step,o=(r?E[i]:k[i]).every(a);null!=o&&e.nice(o)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],a=i=0||(i[n]=e[n]);return i}(e,s),y=(0,o.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:a()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=(0,o.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),_=(0,o.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:b,sortValues:x}),O=_(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:C,pie:_})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:a()("visx-pie-arc",t),d:C(e)||"",fill:null==E||"string"==typeof E?E:E(e)},S)),null==l?void 0:l(C.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),p=(0,o.aJ)({angle:n,radius:i,defined:s,curve:l});return d?r.createElement(r.Fragment,null,d({path:p})):r.createElement("path",g({ref:c,className:a()("visx-line-radial",t),d:p(void 0===u?[]:u)||"",fill:void 0===f?"transparent":f},h))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),g=(0,o.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===f?function(){return!0}:f,curve:p});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",x({ref:m,className:a()("visx-area",h),d:g(void 0===d?[]:d)||""},v))}var j=n(55746),k=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k),S=(0,o.kn)({keys:s,value:g,order:y,offset:b}),C=(0,o.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),_=S(l);return w?r.createElement(r.Fragment,null,w({stacks:_,path:C,stack:S})):r.createElement(c.Z,{top:n,left:i},_.map(function(e,n){return r.createElement("path",E({className:a()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:C(e)||"",fill:null==x?void 0:x(e.key,n)},j))}))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,C);return r.createElement(S,_({className:t,top:n,left:i,keys:o,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",_({className:a()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),T=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:a()("visx-bar-group",n),top:i,left:o},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=A(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(b)):r.createElement(c.Z,{className:a()("visx-bar-group-horizontal",n),top:i,left:o},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var F=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function V(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),K=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),j=(0,F.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var k=j(t),E=A(h),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),a=p(f(t)),o="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:i,width:E,x:o||0,y:a||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:a()("visx-bar-stack",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var G=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,G),j=(0,F.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var k=j(t),E=A(p),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),a=h(u(t)),o="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:E,width:i,x:a||0,y:o||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:a()("visx-bar-stack-horizontal",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Q({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:o,className:a()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var eo=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eo),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:o,className:a()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:o,className:a()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:o,className:a()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({ref:o,className:a()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ek=["className","children","data","innerRef","path","percent","x","y","source","target"];function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ek),p=s||eS({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:o,className:a()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var e_=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e_),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:a()("visx-link visx-link-horizontal-line",t),d:h(o)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=o||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:a()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=o||eZ({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:a()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=o||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eV({ref:n,className:a()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=o||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:a()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eX(e){var t=e.className,n=e.innerRef,i=e.data,o=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=o||eY({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:a()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eG=["sides","size","center","rotate","className","children","innerRef","points"];function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eG),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===o?0:o}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eQ({ref:u,className:a()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:a()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=o){for(var v=s.getPointAtLength(m),g=v[i];p=w[E+1];)E+=1;c[E].push(C)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),a=n.n(i),o=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),w=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===m?function(){return!0}:m,curve:g});return(null==f?w.y0(h.range()[0]):(0,o.Z)(w.y0,f),c&&!d&&(0,o.Z)(w.y1,c),d&&!c&&(0,o.Z)(w.y1,d),b)?r.createElement(r.Fragment,null,b({path:w})):r.createElement("path",u({ref:y,className:a()("visx-area-closed",v),d:w(void 0===p?[]:p)||""},x))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.createElement("rect",s({ref:n,className:a()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),z=(n=(t={x:E,y:S,width:C,height:_,radius:O,all:void 0!==M&&M,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==Z&&Z}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,b=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+b+" h"+(g-x)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:z})):r.createElement("path",s({ref:k,className:a()("visx-bar-rounded",j),d:z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:a()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),a=n.n(i),o=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),v=(0,o.jv)({x:i,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.createElement(r.Fragment,null,t({path:v})):r.createElement("path",l({ref:h,className:a()("visx-linepath",d),d:v(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,o=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=a&&(0,u.Z)(d.cornerRadius,a),null!=o&&(0,u.Z)(d.startAngle,o),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,a=t.x1,o=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),a&&(0,u.Z)(f.x1,a),o&&(0,u.Z)(f.y,o),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,s=(0,a.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),o&&s.curve(o),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,s=t.sort,l=t.sortValues,c=(0,o.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=a&&c.value(a),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,a=t.curve,o=(0,s.Z)();return n&&(0,u.Z)(o.angle,n),r&&(0,u.Z)(o.radius,r),i&&o.defined(i),a&&o.curve(a),o}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,a=(0,l.Z)();return t&&a.keys(t),n&&(0,u.Z)(a.value,n),r&&a.order((0,c.ZP)(r)),i&&a.offset((0,d.ZP)(i)),a}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),a=n(90541),o=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:a.Z,silhouette:o.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),a=n(12197),o=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:a.Z,none:o.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,v=e.curve,g=e.innerRef,y=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),b=(0,a.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:v});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:g,className:(0,i.default)("visx-area",m),d:b(void 0===h?[]:h)||""},y))};var r=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=o(n(2784)),i=o(n(72779)),a=["from","to","fill","className","innerRef"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),v=(0,a.line)({x:s,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.default.createElement(r.default.Fragment,null,t({path:v})):r.default.createElement("path",l({ref:h,className:(0,i.default)("visx-linepath",d),d:v(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))};var r=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,b=g.startDy,x=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",o({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),a=n.n(i),o=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,b=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),x=b.x,w=void 0===x?0:x,j=b.y,k=void 0===j?0:j,E=!u(w)||!u(k),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,o.Z)(e,y)||0}}),spaceWidth:(0,o.Z)("\xa0",y)||0}},[g,y]),C=S.wordsWithWidth,_=S.spaceWidth,O=(0,r.useMemo)(function(){return E?[]:f||c?C.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+_0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[E,w,k,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:T}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return a.Z}});var r=n(64170),i=n(75715),a=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),a="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(a);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",a),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,a={},o=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var l=a[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,o),l.set(e,s),u.push(e),1===o&&a&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),a||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),o++,function(){u.forEach(function(e){var t=r.get(e)-1,a=l.get(e)-1;r.set(e,t),l.set(e,a),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),a||e.removeAttribute(n)}),--o||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),a=n(92233),o=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var j=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),o(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(j);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),a=n(62215),o=n(92937),s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(10663));s.Axios=a,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(e){f.headers[e]={}}),a.forEach(["post","put","patch"],function(e){f.headers[e]=a.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?o[t]=(o[t]?o[t]:[]).concat([n]):o[t]=o[t]?o[t]+", "+n:n)}),o}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function a(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,o){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=o?o+"."+r:r;if(n&&!o&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,a(e))});return}}e(n,l)}}),n.pop()}else t.append(o,a(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var o=r[a],s=t[o];if(s){var l=e[o],u=void 0===l||s(l,o,e);if(!0!==u)throw new i("option "+o+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},93044:function(e,t,n){"use strict";var r,i,a=n(73644),o=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===o.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)o[a=r[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,a,o,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var a,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,a=e[0]+"";ru^n?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;oa[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tA?h.c=h.e=null:e.e=10;s/=10,a++);a>A?h.c=h.e=null:(h.e=a,h.c=[e]);return}f=String(e)}else{if(!o.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(a=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(a<0&&(a=s),a+=+f.slice(s+1),f=f.substring(0,s)):a<0&&(a=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&Z)return B(h=new F(e),C+h.e+1,_);if(f=String(e),u="number"==typeof e){if(0*e!=0)return k(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),a=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>a){a=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,a=0;continue}return k(h,String(e),u,t)}u=!1,(a=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):a=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((a=a-s-1)>A)h.c=h.e=null;else if(a=M)?g(l,o):y(l,o,"0");else if(a=(e=B(new F(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=a||a<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function V(e,t){for(var n,r=1,i=new F(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((a=t-i)<0)a+=14,o=t,h=(c=p[f=0])/d[i-o-1]%10|0;else if((f=s((a+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,a%=14,o=a-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);a%=14,h=(o=a-14+i)<0?0:c/d[i-o-1]%10|0}if(r=r||t<0||null!=p[f+1]||(o<0?c:c%d[i-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(a>0?o>0?c/d[i-o]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==a?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-a],p[f]=o>0?l(c/d[i-o]%d[o])*u:0),r)for(;;){if(0==f){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=u,u=1;o>=10;o/=10,u++);a!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(a=p.length;0===p[--a];p.pop());}e.e>A?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),C=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),_=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),T=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)T=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);Z="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:C,ROUNDING_MODE:_,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===a||-1===a)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return V(arguments,E.lt)},F.minimum=F.min=function(){return V(arguments,E.gt)},F.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,a,o,c=0,f=[],h=new F(S);if(null==e?e=C:m(e,0,1e9),a=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(o%1e14),c+=2);c=a/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(o%1e14),c+=7);c=a/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;o/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,n=new F(t[0]);en-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(n,r,i,a,o){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=C,b=_;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new F(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,o?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=a,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*o,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,a,o,s){var u,c,d,h,p,m,v,g,y,b,x,w,j,k,E,S,C,_=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new F(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*_:_/0:NaN);for(y=(g=new F(_)).c=[],_=a+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),_=_/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,_<0)y.push(1),h=!0;else{for(k=O.length,S=M.length,d=0,_+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,k=O.length),j=S,x=(b=O.slice(0,S)).length;x=s/2&&E++;do{if(p=0,(u=t(M,b,S,x))<0){if(w=b[0],S!=x&&(w=w*s+(b[1]||0)),(p=l(w/E))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,n(m,St(M,b,S,x);)p++,n(b,S=10;_/=10,d++);B(g,a+(g.e=d+14*c-1)+1,o,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,a=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,o){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=s?e:t}),o&&(s=o,l=l.replace(i,"$1").replace(a,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(o?" base "+o:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return p(this,new F(e,t))},E.decimalPlaces=E.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=_:m(t,0,8),B(new F(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return w(this,new F(e,t),C,_)},E.dividedToIntegerBy=E.idiv=function(e,t){return w(this,new F(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var n,r,i,a,o,c,d,f,h,p=this;if((e=new F(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new F(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new F(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return a=p.s<0&&v(e)?-0:0,p.e>-1&&(a=1/a),new F(d?1/a:a);R&&(a=s(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(S);;){if(f){if(!(h=h.times(p)).c)break;a?h.c.length>a&&(h.c.length=a):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):a?B(h,R,_,o):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=_:m(e,0,8),B(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===p(this,new F(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return p(this,new F(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},E.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>p(this,new F(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var n,r,i,a,o=this.s;if(t=(e=new F(e,t)).s,!o||!t)return new F(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==_?-0:0)}if(s=f(s),l=f(l),u=u.slice(),o=s-l){for((a=o<0)?(o=-o,i=u):(l=s,i=c),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(r=(a=(o=u.length)<(t=c.length))?o:t,o=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>o;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,a=i+(o=l);a>i;)s=p*(u=v[--o]%1e7)+(c=v[o]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[a]+n)/1e14|0)+(s/1e7|0)+p*c,m[a--]=u%1e14;m[a]=n}return n?++r:m.splice(0,1),I(e,m,r)},E.negated=function(){var e=new F(this);return e.s=-e.s||null,e},E.plus=function(e,t){var n,r=this.s;if(t=(e=new F(e,t)).s,!r||!t)return new F(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,a=e.e/14,o=this.c,s=e.c;if(!i||!a){if(!o||!s)return new F(r/0);if(!o[0]||!s[0])return s[0]?e:new F(o[0]?this:0*r)}if(i=f(i),a=f(a),o=o.slice(),r=i-a){for(r>0?(a=i,n=s):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=s.length)<0&&(n=s,s=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+s[t]+r)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return r&&(o=[r].concat(o),++a),I(e,o,a)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=_:m(t,0,8),B(new F(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,a=this.c,o=this.s,s=this.e,l=C+4,u=new F("0.5");if(1!==o||!a||!a[0])return new F(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+H(this)))||o==1/0?(((t=h(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),n=new F(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new F(o+""),n.c[0]){for((o=(s=n.e)+l)<3&&(o=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,o)===(t=h(n.c)).slice(0,o)){if(n.e0&&p>0){for(i=p%o||o,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,a,o,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(S),c=n=new F(S),r=l=new F(S),m=h(v),a=t.e=m.length-this.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||s.comparedTo(t)>0?a>0?t:c:s,o=A,A=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,a*=2,p=1>w(c,r,a,_).minus(this).abs().comparedTo(w(l,n,a,_).minus(this).abs())?[c,r]:[l,n],A=o,p},E.toNumber=function(){return+H(this)},E.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&Z?t=y(h((n=B(new F(n),C+i+1,_)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,null!=t&&F.set(t),F}()).default=a.BigNumber=a,void 0!==(r=(function(){return a}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function a(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,o,s){let l=d[o],u=d[o+1],f=d[s],h=d[s+1];i(c,e,t),a(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),a(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=o(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^o(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,a){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),a&&(a=r.normalizeInput(a));let o=p(n,t,i,a);return m(o,e),v(o)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,a){let o=g(e,t,n,i,a);return r.toHex(o)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,o){l[e]=l[e]+l[t]+i,l[r]=a(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],12),l[e]=l[e]+l[t]+o,l[r]=a(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],7)}function a(e,t){return e>>>t^e<<32-t}let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=o[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,a;u[n]=(r=e.b)[a=4*n]^r[a+1]<<8^r[a+2]<<16^r[a+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(o),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e)t=new TextEncoder().encode(e);else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{I:function(){return y},_:function(){return m},a:function(){return p}});var o=["width","height","viewBox"],s=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"},u=n(13980),c=n.n(u),d=n(2784);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var v=["className","children","tabIndex"],g=["tabindex"],y=d.forwardRef(function(e,t){var n=e.className,r=e.children,u=e.tabIndex,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,u=void 0===r?"0 0 ".concat(t," ").concat(n):r,c=a(e,o),d=c.tabindex,f=a(c,s),h=i(i(i({},l),f),{},{width:t,height:n,viewBox:u});return h["aria-label"]||h["aria-labelledby"]||h.title?(h.role="img",null!=d&&(h.focusable="true",h.tabindex=d)):h["aria-hidden"]=!0,h}(h(h({},m(e,v)),{},{tabindex:u})),f=c.tabindex,p=m(c,g);return n&&(p.className=n),null!=f&&(p.tabIndex=f),t&&(p.ref=t),d.createElement("svg",p,r)});y.displayName="Icon",y.propTypes={"aria-hidden":c().string,"aria-label":c().string,"aria-labelledby":c().string,children:c().node,className:c().string,height:c().oneOfType([c().number,c().string]),preserveAspectRatio:c().string,tabIndex:c().string,viewBox:c().string,width:c().oneOfType([c().number,c().string]),xmlns:c().string},y.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},315:function(e,t,n){"use strict";n.d(t,{BdP:function(){return g},P5r:function(){return b},RdX:function(){return x},U_S:function(){return w},e1T:function(){return y}});var r,i,a,o,s,l,u,c=n(36662),d=n(2784),f=["children"],h=["children"],p=["children"],m=["children"],v=["children"],g=d.forwardRef(function(e,t){var n=e.children,i=(0,c._)(e,f);return d.createElement(c.I,(0,c.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=d.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),y=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,h);return d.createElement(c.I,(0,c.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=d.createElement("path",{d:"M19,14a3,3,0,1,0-3-3A3,3,0,0,0,19,14Zm0-4a1,1,0,1,1-1,1A1,1,0,0,1,19,10Z"})),a||(a=d.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,22H6V20l5-5,5.59,5.59a2,2,0,0,0,2.82,0L21,19l5,5Zm0-4.83-3.59-3.59a2,2,0,0,0-2.82,0L18,19.17l-5.59-5.59a2,2,0,0,0-2.82,0L6,17.17V6H26Z"})),n)}),b=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,p);return d.createElement(c.I,(0,c.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=d.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),x=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,m);return d.createElement(c.I,(0,c.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=d.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),l||(l=d.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),w=d.forwardRef(function(e,t){var n=e.children,r=(0,c._)(e,v);return d.createElement(c.I,(0,c.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=d.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)})},55791:function(e,t,n){"use strict";n.d(t,{Wet:function(){return p},ZEk:function(){return g},Zbu:function(){return v},xkX:function(){return m}});var r,i,a,o,s,l=n(36662),u=n(2784),c=["children"],d=["children"],f=["children"],h=["children"],p=u.forwardRef(function(e,t){var n=e.children,i=(0,l._)(e,c);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=u.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),m=u.forwardRef(function(e,t){var n=e.children,r=(0,l._)(e,d);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=u.createElement("path",{d:"M27,8H6.83l3.58-3.59L9,3,3,9l6,6,1.41-1.41L6.83,10H27V26H7V19H5v7a2,2,0,0,0,2,2H27a2,2,0,0,0,2-2V10A2,2,0,0,0,27,8Z"})),n)}),v=u.forwardRef(function(e,t){var n=e.children,r=(0,l._)(e,f);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=u.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),o||(o=u.createElement("path",{d:"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),n)}),g=u.forwardRef(function(e,t){var n=e.children,r=(0,l._)(e,h);return u.createElement(l.I,(0,l.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=u.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)})},98358:function(e,t,n){"use strict";n.d(t,{F3j:function(){return B},Jsc:function(){return q},NlZ:function(){return Z},PcV:function(){return U},QN4:function(){return H},T80:function(){return W},Y3p:function(){return z},Y9T:function(){return $},Z$8:function(){return F},bQp:function(){return K},tEK:function(){return I},yar:function(){return V}});var r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k=n(36662),E=n(2784),S=["children"],C=["children"],_=["children"],O=["children"],M=["children"],T=["children"],A=["children"],P=["children"],N=["children"],R=["children"],D=["children"],L=["children"],Z=E.forwardRef(function(e,t){var n=e.children,i=(0,k._)(e,S);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=E.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),F=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,C);return E.createElement(k.I,(0,k.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),a||(a=E.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),z=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,_);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=E.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),s||(s=E.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),V=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,O);return E.createElement(k.I,(0,k.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=E.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),u||(u=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),I=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,M);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=E.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),d||(d=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),B=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,T);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=E.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),H=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,A);return E.createElement(k.I,(0,k.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=E.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),U=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,P);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=E.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),W=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,N);return E.createElement(k.I,(0,k.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),m||(m=E.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),v||(v=E.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),q=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,R);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),g||(g=E.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),y||(y=E.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),$=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,D);return E.createElement(k.I,(0,k.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),b||(b=E.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),x||(x=E.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),K=E.forwardRef(function(e,t){var n=e.children,r=(0,k._)(e,L);return E.createElement(k.I,(0,k.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),w||(w=E.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),j||(j=E.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)})},44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return C},ResizeObserverSize:function(){return c}});var r,i,a,o=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(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}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,a=e.offsetHeight;return!(i||a||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=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},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},j=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},k=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),E=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,k),k;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!x&&"border-box"===n.boxSizing,a=b.test(n.writingMode||""),o=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),E=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),C=r?0:w(n.borderLeftWidth),_=m+c,O=l+p,M=C+E,T=v+S,A=s?e.offsetHeight-T-e.clientHeight:0,P=o?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?_+M:0)-P,R=r?r.height:w(n.height)-(i?O+T:0)-A,D=N+_+P+M,L=R+O+A+T,Z=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),a),borderBoxSize:j(D,L,a),contentBoxSize:j(N,R,a),contentRect:new d(m,l,N,R)});return g.set(e,Z),Z},S=function(e,t,n){var r=E(e,n),a=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return a;default:return o}},C=function(e){var t=E(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},_=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new C(t.target),i=_(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);o.some(function(e){return e.activeTargets.length>0});)M(e=O());return o.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),a=function(){n.textContent=""+(t?t--:t++)}}A.push(e),a()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Z=function(e){return void 0===e&&(e=0),Date.now()+e},F=!1,z=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),!F){F=!0;var n=Z(e);N(function(){var r=!1;try{r=T()}finally{if(F=!1,e=n-Z(),!R)return;r?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,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new I(t,n&&n.box)),V(1),z.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=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.");W.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(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.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(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return a}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return a},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,a=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:a},t)}return i.displayName=e+"Provider",[i,function(i){let a=(0,r.useContext)(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let a=(0,r.createContext)(i),o=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][o])||a,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][o])||a,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return K},VY:function(){return $},aV:function(){return q},dk:function(){return Y},fC:function(){return H},h_:function(){return W},x8:function(){return X},xz:function(){return U}});var r=n(7896),i=n(2784),a=n(41816),o=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let b="Dialog",[x,w]=(0,s.b)(b),[j,k]=x(b),E=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=k("DialogTrigger",n),u=(0,o.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":V(l.open)},s,{ref:u,onClick:(0,a.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[C,_]=x(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=_(O,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,s=k(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:a||s.open},(0,i.createElement)(T,(0,r.Z)({},o,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[o.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":V(o.open)},a,{ref:t,style:{pointerEvents:"auto",...a.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=_(A,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,s=k(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:a||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},o,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},o,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,o.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),a=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current=!0);let o=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(o))&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=k(A,n),h=(0,i.useRef)(null),p=(0,o.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":V(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",Z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:o.titleId},a,{ref:t}))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:o.descriptionId},a,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,s=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},o,{ref:t,onClick:(0,a.M)(e.onClick,()=>s.onOpenChange(!1))}))});function V(e){return e?"open":"closed"}let[I,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:a,onChange:o});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=E,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=k(S,t);return(0,i.createElement)(C,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||o.open},(0,i.createElement)(f.h,{asChild:!0,container:a},e))))},q=M,$=P,K=Z,Y=F,X=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),a=n(2784),o=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,a.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...b}=e,x=(0,a.useContext)(d),[w,j]=(0,a.useState)(null),[,k]=(0,a.useState)({}),E=(0,l.e)(t,e=>j(e)),S=Array.from(x.layers),[C]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(C),O=w?S.indexOf(w):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,T=O>=_,A=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1),r=(0,a.useRef)(()=>{});return(0,a.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!T||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{O!==x.layers.size-1||(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,a.useEffect)(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,x]),(0,a.useEffect)(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),(0,a.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.createElement)(s.WV.div,(0,i.Z)({},b,{ref:E,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,a):i.dispatchEvent(a)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return a}});var r=n(2784);let i=0;function a(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:o()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){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}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),a=n(2784),o=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,a.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,x]=(0,a.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),k=(0,a.useRef)(null),E=(0,o.e)(t,e=>x(e)),S=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.useEffect)(()=>{if(r){function e(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?k.current=t:m(k.current,{select:!0})}function t(e){S.paused||!b||b.contains(e.relatedTarget)||m(k.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,b,S.paused]),(0,a.useEffect)(()=>{if(b){v.add(S);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,j),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,j),v.remove(S)},0)}}},[b,w,j,S]);let C=(0,a.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=h(e);return[p(t,e),p(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,a.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:E,onKeyDown:C}))});function h(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n 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}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),a=n(64680);let o=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(o());return(0,a.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),a=n(28316),o=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?a.createPortal((0,i.createElement)(o.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),a=n(26215),o=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t,n;let[a,s]=(0,r.useState)(),u=(0,r.useRef)({}),c=(0,r.useRef)(e),d=(0,r.useRef)("none"),[f,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,r.useEffect)(()=>{let e=l(u.current);d.current="mounted"===f?e:"none"},[f]),(0,o.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,o.b)(()=>{if(a){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===a&&t&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===a&&(d.current=l(u.current))};return a.addEventListener("animationstart",t),a.addEventListener("animationcancel",e),a.addEventListener("animationend",e),()=>{a.removeEventListener("animationstart",t),a.removeEventListener("animationcancel",e),a.removeEventListener("animationend",e)}}h("ANIMATION_END")},[a,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(u.current=getComputedStyle(e)),s(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,a.e)(s.ref,u.ref);return"function"==typeof n||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),a=n(28316),o=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:a,...s}=e,l=a?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,a.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return o}});var r=n(7896),i=n(2784),a=n(26215);let o=(0,i.forwardRef)((e,t)=>{let{children:n,...a}=e,o=i.Children.toArray(n),l=o.find(u);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),n)});o.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==a||a(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,a.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(2784),i=n(86029);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[a]=n,o=(0,r.useRef)(a),s=(0,i.W)(t);return(0,r.useEffect)(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:a,u=(0,i.W)(n);return[l,(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[s,e,o,u])]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,j=void 0===w?10:w,k=e.orientation,E=void 0===k?d.default.bottom:k,S=e.rangePadding,C=void 0===S?0:S,_=e.scale,O=e.tickFormat,M=e.tickLength,T=void 0===M?8:M,A=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(_),D=E===d.default.left,L=E===d.default.top,Z=L||E===d.default.bottom,F=(0,l.default)(_),z=D||L?-1:1,V=_.range(),I=(0,f.default)(C),B=(0,c.default)({x:Number(V[0])+.5-I.start,y:0},Z),H=(0,c.default)({x:Number(V[V.length-1])+.5+I.end,y:0},Z),U=(null!=A?A:(0,o.getTicks)(_,j)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,o.coerceNumber)(F(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},Z),to:(0,c.default)({x:r,y:T*z},Z),formattedValue:R(t,n,U)}});return r.default.createElement(a.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:b,horizontal:Z,numTicks:j,orientation:E,rangePadding:C,scale:_,tickFormat:R,tickLength:T,tickPosition:F,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),a=n(71602),o=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:o.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:o.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:o.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:o.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(a=n.xMin)?a:-1/0,null!=(o=n.xMax)?o:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=a(n(30968)),i=a(n(98929));function a(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),a=0;a<=i;a+=n){var o=e.getPointAtLength(a).matrixTransform(t);r.push(o)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],a=(0,r.useRef)(null),o=(0,r.useCallback)(function(e,t){a.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){a.current&&(a.current(n),a.current=null)},[n]),[n,o]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(49833),i=n(44321);function a(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:a({},o);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:a({},o)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function a(e){return!!e&&"createSVGPoint"in e}function o(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return o},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return a},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=k?k:(0,u.getTicks)(r,void 0===x?10:x),_=(null!=j?j:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+_;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),_=(null!=k?k:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+_;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),a=n(2784),o=n(72779),s=n.n(o),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return a.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),o)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return a},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function a(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(a.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),a=l(n(65154)),o=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),a=s(n(55727)),o=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,a.useTransition)(n,u({},(0,o.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,o=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(a.animated.line,u({key:h,x1:r,x2:o,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),a=s(n(55727)),o=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.useRef)(null),y=(0,a.useRef)(0),b=(0,a.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[1],j=(0,a.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,a.useEffect)(function(){var e=new o.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:a,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),a.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},x,{ref:g.current,resize:j})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),a=n(70590),o=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,a.Z)(e);case"sqrt":return(0,o.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return x.Z},getTicks:function(){return C.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return a.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return _.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),a=n(8597),o=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,o.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},k=n(40668);function E(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),C=n(71220),_=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return C},Z:function(){return O}});var r=n(88751),i=n(87286),a=n(43780),o=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:a.Z,"hsl-long":a.q,cubehelix:o.Z,"cubehelix-long":o.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),b=n(94758),x=n(97631),w=n(2908),j=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},E={day:v.Z,hour:g.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},S=n(74672),C=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],_={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,j.Z)(e);if("string"==typeof n)e.nice(r?E[n]:k[n]);else{var i=n.interval,a=n.step,o=(r?E[i]:k[i]).every(a);null!=o&&e.nice(o)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],a=i=0||(i[n]=e[n]);return i}(e,s),y=(0,o.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:a()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=(0,o.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),_=(0,o.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:b,sortValues:x}),O=_(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:C,pie:_})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:a()("visx-pie-arc",t),d:C(e)||"",fill:null==E||"string"==typeof E?E:E(e)},S)),null==l?void 0:l(C.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),p=(0,o.aJ)({angle:n,radius:i,defined:s,curve:l});return d?r.createElement(r.Fragment,null,d({path:p})):r.createElement("path",g({ref:c,className:a()("visx-line-radial",t),d:p(void 0===u?[]:u)||"",fill:void 0===f?"transparent":f},h))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),g=(0,o.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===f?function(){return!0}:f,curve:p});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",x({ref:m,className:a()("visx-area",h),d:g(void 0===d?[]:d)||""},v))}var j=n(55746),k=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k),S=(0,o.kn)({keys:s,value:g,order:y,offset:b}),C=(0,o.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),_=S(l);return w?r.createElement(r.Fragment,null,w({stacks:_,path:C,stack:S})):r.createElement(c.Z,{top:n,left:i},_.map(function(e,n){return r.createElement("path",E({className:a()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:C(e)||"",fill:null==x?void 0:x(e.key,n)},j))}))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,C);return r.createElement(S,_({className:t,top:n,left:i,keys:o,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",_({className:a()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),T=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:a()("visx-bar-group",n),top:i,left:o},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=A(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(b)):r.createElement(c.Z,{className:a()("visx-bar-group-horizontal",n),top:i,left:o},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var F=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function V(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),K=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),j=(0,F.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var k=j(t),E=A(h),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),a=p(f(t)),o="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:i,width:E,x:o||0,y:a||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:a()("visx-bar-stack",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var G=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,G),j=(0,F.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var k=j(t),E=A(p),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),a=h(u(t)),o="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:E,width:i,x:a||0,y:o||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:a()("visx-bar-stack-horizontal",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:o,className:a()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var eo=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eo),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:o,className:a()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:o,className:a()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:o,className:a()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({ref:o,className:a()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ek=["className","children","data","innerRef","path","percent","x","y","source","target"];function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ek),p=s||eS({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:o,className:a()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var e_=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e_),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:a()("visx-link visx-link-horizontal-line",t),d:h(o)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=o||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:a()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=o||eZ({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:a()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=o||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eV({ref:n,className:a()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=o||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:a()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eX(e){var t=e.className,n=e.innerRef,i=e.data,o=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=o||eY({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:a()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eG=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eG),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===o?0:o}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eJ({ref:u,className:a()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:a()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=o){for(var v=s.getPointAtLength(m),g=v[i];p=w[E+1];)E+=1;c[E].push(C)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),a=n.n(i),o=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),w=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===m?function(){return!0}:m,curve:g});return(null==f?w.y0(h.range()[0]):(0,o.Z)(w.y0,f),c&&!d&&(0,o.Z)(w.y1,c),d&&!c&&(0,o.Z)(w.y1,d),b)?r.createElement(r.Fragment,null,b({path:w})):r.createElement("path",u({ref:y,className:a()("visx-area-closed",v),d:w(void 0===p?[]:p)||""},x))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.createElement("rect",s({ref:n,className:a()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),z=(n=(t={x:E,y:S,width:C,height:_,radius:O,all:void 0!==M&&M,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==Z&&Z}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,b=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+b+" h"+(g-x)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:z})):r.createElement("path",s({ref:k,className:a()("visx-bar-rounded",j),d:z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:a()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),a=n.n(i),o=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),v=(0,o.jv)({x:i,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.createElement(r.Fragment,null,t({path:v})):r.createElement("path",l({ref:h,className:a()("visx-linepath",d),d:v(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,o=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=a&&(0,u.Z)(d.cornerRadius,a),null!=o&&(0,u.Z)(d.startAngle,o),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,a=t.x1,o=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),a&&(0,u.Z)(f.x1,a),o&&(0,u.Z)(f.y,o),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,s=(0,a.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),o&&s.curve(o),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,s=t.sort,l=t.sortValues,c=(0,o.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=a&&c.value(a),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,a=t.curve,o=(0,s.Z)();return n&&(0,u.Z)(o.angle,n),r&&(0,u.Z)(o.radius,r),i&&o.defined(i),a&&o.curve(a),o}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,a=(0,l.Z)();return t&&a.keys(t),n&&(0,u.Z)(a.value,n),r&&a.order((0,c.ZP)(r)),i&&a.offset((0,d.ZP)(i)),a}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),a=n(90541),o=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:a.Z,silhouette:o.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),a=n(12197),o=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:a.Z,none:o.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,v=e.curve,g=e.innerRef,y=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),b=(0,a.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:v});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:g,className:(0,i.default)("visx-area",m),d:b(void 0===h?[]:h)||""},y))};var r=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=o(n(2784)),i=o(n(72779)),a=["from","to","fill","className","innerRef"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),v=(0,a.line)({x:s,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.default.createElement(r.default.Fragment,null,t({path:v})):r.default.createElement("path",l({ref:h,className:(0,i.default)("visx-linepath",d),d:v(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))};var r=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,b=g.startDy,x=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",o({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),a=n.n(i),o=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,b=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),x=b.x,w=void 0===x?0:x,j=b.y,k=void 0===j?0:j,E=!u(w)||!u(k),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,o.Z)(e,y)||0}}),spaceWidth:(0,o.Z)("\xa0",y)||0}},[g,y]),C=S.wordsWithWidth,_=S.spaceWidth,O=(0,r.useMemo)(function(){return E?[]:f||c?C.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+_0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[E,w,k,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:T}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return a.Z}});var r=n(64170),i=n(75715),a=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),a="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(a);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",a),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,a={},o=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var l=a[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,o),l.set(e,s),u.push(e),1===o&&a&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),a||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),o++,function(){u.forEach(function(e){var t=r.get(e)-1,a=l.get(e)-1;r.set(e,t),l.set(e,a),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),a||e.removeAttribute(n)}),--o||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),a=n(92233),o=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var j=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),o(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(j);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),a=n(62215),o=n(92937),s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(10663));s.Axios=a,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(e){f.headers[e]={}}),a.forEach(["post","put","patch"],function(e){f.headers[e]=a.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?o[t]=(o[t]?o[t]:[]).concat([n]):o[t]=o[t]?o[t]+", "+n:n)}),o}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function a(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,o){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=o?o+"."+r:r;if(n&&!o&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,a(e))});return}}e(n,l)}}),n.pop()}else t.append(o,a(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var o=r[a],s=t[o];if(s){var l=e[o],u=void 0===l||s(l,o,e);if(!0!==u)throw new i("option "+o+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},93044:function(e,t,n){"use strict";var r,i,a=n(73644),o=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===o.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)o[a=r[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,a,o,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var a,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,a=e[0]+"";ru^n?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;oa[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tA?h.c=h.e=null:e.e=10;s/=10,a++);a>A?h.c=h.e=null:(h.e=a,h.c=[e]);return}f=String(e)}else{if(!o.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(a=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(a<0&&(a=s),a+=+f.slice(s+1),f=f.substring(0,s)):a<0&&(a=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&Z)return B(h=new F(e),C+h.e+1,_);if(f=String(e),u="number"==typeof e){if(0*e!=0)return k(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),a=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>a){a=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,a=0;continue}return k(h,String(e),u,t)}u=!1,(a=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):a=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((a=a-s-1)>A)h.c=h.e=null;else if(a=M)?g(l,o):y(l,o,"0");else if(a=(e=B(new F(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=a||a<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function V(e,t){for(var n,r=1,i=new F(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((a=t-i)<0)a+=14,o=t,h=(c=p[f=0])/d[i-o-1]%10|0;else if((f=s((a+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,a%=14,o=a-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);a%=14,h=(o=a-14+i)<0?0:c/d[i-o-1]%10|0}if(r=r||t<0||null!=p[f+1]||(o<0?c:c%d[i-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(a>0?o>0?c/d[i-o]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==a?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-a],p[f]=o>0?l(c/d[i-o]%d[o])*u:0),r)for(;;){if(0==f){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=u,u=1;o>=10;o/=10,u++);a!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(a=p.length;0===p[--a];p.pop());}e.e>A?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),C=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),_=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),T=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)T=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);Z="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:C,ROUNDING_MODE:_,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===a||-1===a)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return V(arguments,E.lt)},F.minimum=F.min=function(){return V(arguments,E.gt)},F.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,a,o,c=0,f=[],h=new F(S);if(null==e?e=C:m(e,0,1e9),a=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(o%1e14),c+=2);c=a/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(o%1e14),c+=7);c=a/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;o/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,n=new F(t[0]);en-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(n,r,i,a,o){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=C,b=_;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new F(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,o?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=a,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*o,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,a,o,s){var u,c,d,h,p,m,v,g,y,b,x,w,j,k,E,S,C,_=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new F(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*_:_/0:NaN);for(y=(g=new F(_)).c=[],_=a+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),_=_/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,_<0)y.push(1),h=!0;else{for(k=O.length,S=M.length,d=0,_+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,k=O.length),j=S,x=(b=O.slice(0,S)).length;x=s/2&&E++;do{if(p=0,(u=t(M,b,S,x))<0){if(w=b[0],S!=x&&(w=w*s+(b[1]||0)),(p=l(w/E))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,n(m,St(M,b,S,x);)p++,n(b,S=10;_/=10,d++);B(g,a+(g.e=d+14*c-1)+1,o,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,a=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,o){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=s?e:t}),o&&(s=o,l=l.replace(i,"$1").replace(a,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(o?" base "+o:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return p(this,new F(e,t))},E.decimalPlaces=E.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=_:m(t,0,8),B(new F(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return w(this,new F(e,t),C,_)},E.dividedToIntegerBy=E.idiv=function(e,t){return w(this,new F(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var n,r,i,a,o,c,d,f,h,p=this;if((e=new F(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new F(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new F(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return a=p.s<0&&v(e)?-0:0,p.e>-1&&(a=1/a),new F(d?1/a:a);R&&(a=s(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(S);;){if(f){if(!(h=h.times(p)).c)break;a?h.c.length>a&&(h.c.length=a):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):a?B(h,R,_,o):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=_:m(e,0,8),B(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===p(this,new F(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return p(this,new F(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},E.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>p(this,new F(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var n,r,i,a,o=this.s;if(t=(e=new F(e,t)).s,!o||!t)return new F(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==_?-0:0)}if(s=f(s),l=f(l),u=u.slice(),o=s-l){for((a=o<0)?(o=-o,i=u):(l=s,i=c),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(r=(a=(o=u.length)<(t=c.length))?o:t,o=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>o;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,a=i+(o=l);a>i;)s=p*(u=v[--o]%1e7)+(c=v[o]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[a]+n)/1e14|0)+(s/1e7|0)+p*c,m[a--]=u%1e14;m[a]=n}return n?++r:m.splice(0,1),I(e,m,r)},E.negated=function(){var e=new F(this);return e.s=-e.s||null,e},E.plus=function(e,t){var n,r=this.s;if(t=(e=new F(e,t)).s,!r||!t)return new F(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,a=e.e/14,o=this.c,s=e.c;if(!i||!a){if(!o||!s)return new F(r/0);if(!o[0]||!s[0])return s[0]?e:new F(o[0]?this:0*r)}if(i=f(i),a=f(a),o=o.slice(),r=i-a){for(r>0?(a=i,n=s):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=s.length)<0&&(n=s,s=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+s[t]+r)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return r&&(o=[r].concat(o),++a),I(e,o,a)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=_:m(t,0,8),B(new F(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,a=this.c,o=this.s,s=this.e,l=C+4,u=new F("0.5");if(1!==o||!a||!a[0])return new F(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+H(this)))||o==1/0?(((t=h(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),n=new F(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new F(o+""),n.c[0]){for((o=(s=n.e)+l)<3&&(o=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,o)===(t=h(n.c)).slice(0,o)){if(n.e0&&p>0){for(i=p%o||o,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,a,o,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(S),c=n=new F(S),r=l=new F(S),m=h(v),a=t.e=m.length-this.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||s.comparedTo(t)>0?a>0?t:c:s,o=A,A=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,a*=2,p=1>w(c,r,a,_).minus(this).abs().comparedTo(w(l,n,a,_).minus(this).abs())?[c,r]:[l,n],A=o,p},E.toNumber=function(){return+H(this)},E.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&Z?t=y(h((n=B(new F(n),C+i+1,_)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,null!=t&&F.set(t),F}()).default=a.BigNumber=a,void 0!==(r=(function(){return a}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function a(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,o,s){let l=d[o],u=d[o+1],f=d[s],h=d[s+1];i(c,e,t),a(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),a(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=o(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^o(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,a){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),a&&(a=r.normalizeInput(a));let o=p(n,t,i,a);return m(o,e),v(o)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,a){let o=g(e,t,n,i,a);return r.toHex(o)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,o){l[e]=l[e]+l[t]+i,l[r]=a(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],12),l[e]=l[e]+l[t]+o,l[r]=a(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],7)}function a(e,t){return e>>>t^e<<32-t}let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=o[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,a;u[n]=(r=e.b)[a=4*n]^r[a+1]<<8^r[a+2]<<16^r[a+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(o),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e)t=new TextEncoder().encode(e);else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let a=0;a @@ -7,14 +7,14 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,a,o,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&a.charAt(h-1)===o.charAt(l+1)&&a.charAt(h-1)!==o.charAt(l)&&.1*(c=e(r,i,a,o,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=a.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return E},Il:function(){return i},J5:function(){return o},SU:function(){return k},Ss:function(){return S},Ym:function(){return A},ZP:function(){return x},xV:function(){return a}});var r=n(40948);function i(){}var a=.7,o=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function k(e){return(e instanceof i||(e=x(e)),e)?new S((e=e.rgb()).r,e.g,e.b,e.opacity):new S}function E(e,t,n,r){return 1==arguments.length?k(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C(){return"#"+O(this.r)+O(this.g)+O(this.b)}function _(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(s=t===o?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?T(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(S,E,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:_,toString:_})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=4/29,s=6/29,l=6/29*3*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return b(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),a=v(e.g),o=v(e.b),s=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?t=n=s:(t=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+o}function p(e){return e>s?e*e*e:l*(e-o)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],a=n[1],o=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+(0,u.V)(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];a=(i=function(e){var t,n,i,a=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,j=e.type;"n"===j?(b=!0,j="g"):d[j]||(void 0===x&&(x=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?o:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],C=/[defgprs%]/.test(j);function _(e){var o,s,l,u=k,d=E;if("c"===j)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(v&&"("===i?")":""),C){for(o=-1,s=e.length;++o(l=e.charCodeAt(o))||l>57){d=(46===l?c+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}}b&&!f&&(e=a(e,1/0));var _=u.length+e.length+d.length,O=_>1)+u+e+d+O.slice(_);break;default:e=O+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),_.toString=function(){return e+""},_}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),a=p[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,o=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new a({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function a(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},88013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e){return Math.max(0,-(0,r.Z)(Math.abs(e)))}},21032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3)))-(0,r.Z)(Math.abs(e)))}},61652:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return t=Math.abs(t)-(e=Math.abs(e)),Math.max(0,(0,r.Z)(t)-(0,r.Z)(e))+1}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o,s=!0,l=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(l)throw o}}}}function a(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var o=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?a-=1:a0&&(a-=1)),t[a]=(t[a]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var o=l(r,t({},e[e.length-1]));return"M"===o[0].type&&o.forEach(function(e){e.type="L"}),n.concat(o)}return n.concat(function(e,n,r){var i,o=[];if("L"===n.type||"Q"===n.type||"C"===n.type)o=o.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),a=0;a0&&"Z"===a[a.length-1].type&&a.pop(),o.length>0&&"Z"===o[o.length-1].type&&o.pop(),a.length?o.length||o.push(a[0]):a.push(o[0]),0!==Math.abs(o.length-a.length)&&(o.length>a.length?a=u(a,o,r):o.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[i],o=e[i+1],s=i>0?e[i-1]:2*a-o,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?s:function(t,n){var i,a,o;return n-t?(i=t,a=n,i=Math.pow(i,o=e),a=Math.pow(a,o)-i,o=1/o,function(e){return Math.pow(i+e*a,o)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(o*r+-1.7884503806*t-3.5172982438*n)/(o+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*a.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(-.29227*r+-.90649*o)),255*(t+1.97294*r*n),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),a=(0,u.ZP)(t.s,r.s),o=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(20966),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),o=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(68847),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),o=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,a,o,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=a.skewX)!==(c=o.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,f),a=o=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=a.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&a){var h=r-o,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=a*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,o,s,l){e=+e,t=+t,a=+a,l=!!l;var u=a*Math.cos(o),c=a*Math.sin(o),d=e+u,f=t+c,h=1^l,p=l?o-s:s-o;if(a<0)throw Error("negative radius: "+a);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),a&&(p<0&&(p=p%r+r),p>i?this._+="A"+a+","+a+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+a+","+a+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+a+","+a+",0,"+ +(p>=n)+","+h+","+(this._x1=e+a*Math.cos(s))+","+(this._y1=t+a*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=o},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,a){null==r&&(r=0),null==a&&(a=e.length);let o=i(e,n,r,a-1);return o>r&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}var a=n(81048);let o=i(r.Z),s=o.right;o.left,i(a.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var a=n(1169);function o(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(o-a/2<0?-1:1),d=Math.max(r,Math.floor(n-o*u/a+c)),f=Math.min(i,Math.floor(n+(a-o)*u/a+c));e(t,n,d,f,s)}let a=t[n],l=r,u=i;for(o(t,r,n),s(t[i],a)>0&&o(t,r,i);ls(t[l],a);)++l;for(;s(t[u],a)>0;)--u}0===s(t[r],a)?o(t,r,u):o(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return o},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var r,i,a,o,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/o),r=Math.round(t/o);for(n*ot&&--r,a=Array(i=r-n+1);++lt&&--r,a=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}function l(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function I(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return b(e.getDate(),t,2)}function U(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function X(e,t){return b(e.getMinutes(),t,2)}function G(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function ea(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function eo(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function ev(e,t){return b(e.getUTCMinutes(),t,2)}function eg(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(o.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.hB)(e):o.hB.ceil(e)}function ew(e,t){return e=ex(e),b(o.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function ek(e,t){return b(o.l6.count((0,d.Z)(e)-1,e),t,2)}function eE(e,t){return b(e.getUTCFullYear()%100,t,2)}function eS(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function eC(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function e_(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,o.hB)(e):o.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eT(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),b=w(a),x=j(a),ee=w(c),ex=j(c),eP=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:ea,G:es,H:U,I:W,j:q,L:$,m:Y,M:X,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:G,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:eo,Z:el,"%":eM},eZ={a:function(e){return c[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:e_,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eA,S:eg,u:ey,U:eb,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:eC,Z:eO,"%":eM},eF={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eI(e,t,n,r)},d:N,e:N,f:z,g:M,G:O,H:D,I:D,j:R,L:F,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:A,Q:I,s:B,S:Z,u:E,U:S,V:C,w:k,W:_,x:function(e,t,r){return eI(e,n,t,r)},X:function(e,t,n){return eI(e,r,t,n)},y:M,Y:O,Z:T,"%":V};function ez(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=h(p(a.y,0,1))).getUTCDay())>4||0===i?o.l6.ceil(r):(0,o.l6)(r),r=s.Z.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=f(p(a.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?h(p(a.y,0,1)).getUTCDay():f(p(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,h(a)):f(a)}}function eI(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o=l)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=eF[(i=t.charAt(o++))in m?t.charAt(o++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=ez(n,eL),eL.X=ez(r,eL),eL.c=ez(t,eL),eZ.x=ez(n,eZ),eZ.X=ez(r,eZ),eZ.c=ez(t,eZ),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eV(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eZ);return t.toString=function(){return e},t},utcParse:function(e){var t=eV(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,a=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},x:function(){return o}});var r=n(22274),i=n(34130);function a(){var e,t,n=(0,i.Z)().unknown(void 0),o=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=o().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((h||(h=r(m,p.map(e),a.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=o.Z,y()},b.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,o.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,a.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,a.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return o.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,o.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,E.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,C.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),a=n(5497),o=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,a=0,o=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([a,o]=i,e=r(a=+a),t=r(o=+o),n=e===t?0:1/(t-e),u):[a,o]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(a),t=i(o),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function j(){var e=(0,u.Hh)(x());return e.copy=function(){return w(e,j()).exponent(e.exponent())},b.O.apply(e,arguments)}function k(){return j.apply(null,arguments).exponent(.5)}var E=n(98038),S=n(1169),C=n(33907),_=n(87475);function O(){var e,t,n,r,i,a,o,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(c*e0;){if((a=(0,r.G9)(u,c,n))===i)return o[s]=u,o[l]=c,t(o);if(a>0)u=Math.floor(u/a)*a,c=Math.ceil(c/a)*a;else if(a<0)u=Math.ceil(u*a)/a,c=Math.floor(c*a)/a;else break;i=a}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,o.l4)()).domain([1,10]);return t.copy=function(){return(0,o.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),a=n(10070),o=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,o=e(l,u),s=o.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),o}return o.base=function(e){return arguments.length?(p=+e,m()):p},o.domain=function(e){return arguments.length?(s(e),m()):s()},o.ticks=function(e){var i,a=s(),o=a[0],l=a[a.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],o]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,o]).range(u).unknown(t)},a.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),a=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,o.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,a.Q)(c)}}});var r=n(70552),i=n(22274),a=n(93963),o=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},a.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),a=n(22274);function o(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(o(1),s(t));return n.constant=function(n){return arguments.length?e(o(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],a=[0,1],o=1;function s(e){return null!=e&&e<=e?a[(0,r.ZP)(n,e,0,o)]:t}return s.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,a.length-1),s):n.slice()},s.range=function(e){return arguments.length?(a=Array.from(e),o=Math.min(n.length,a.length-1),s):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(a).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),a=n(21032),o=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,a.Z)(d,f))||(u.precision=c),(0,o.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,o.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),a=n(50690),o=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,a,o,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),k=u("%b %d"),E=u("%B"),S=u("%Y");function C(e){return(l(e)A*A+P*P&&(S=_,C=O),{cx:S,cy:C,x01:-d,y01:-f,x11:S*(i/j-1),y11:C*(i/j-1)}}function f(){var e=o,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,o,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-a.ou,c=p.apply(this,arguments)-a.ou,g=(0,a.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),la.Ho){if(g>a.BZ-a.Ho)v.moveTo(l*(0,a.mC)(u),l*(0,a.O$)(u)),v.arc(0,0,l,u,c,!y),s>a.Ho&&(v.moveTo(s*(0,a.mC)(c),s*(0,a.O$)(c)),v.arc(0,0,s,c,u,y));else{var b,x,w=u,j=c,k=u,E=c,S=g,C=g,_=m.apply(this,arguments)/2,O=_>a.Ho&&(f?+f.apply(this,arguments):(0,a._b)(s*s+l*l)),M=(0,a.VV)((0,a.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>a.Ho){var P=(0,a.ZR)(O/s*(0,a.O$)(_)),N=(0,a.ZR)(O/l*(0,a.O$)(_));(S-=2*P)>a.Ho?(P*=y?1:-1,k+=P,E-=P):(S=0,k=E=(u+c)/2),(C-=2*N)>a.Ho?(N*=y?1:-1,w+=N,j-=N):(C=0,w=j=(u+c)/2)}var R=l*(0,a.mC)(w),D=l*(0,a.O$)(w),L=s*(0,a.mC)(E),Z=s*(0,a.O$)(E);if(M>a.Ho){var F,z=l*(0,a.mC)(j),V=l*(0,a.O$)(j),I=s*(0,a.mC)(k),B=s*(0,a.O$)(k);if(ga.Ho?A>a.Ho?(b=d(I,B,R,D,l,A,y),x=d(z,V,L,Z,l,A,y),v.moveTo(b.cx+b.x01,b.cy+b.y01),Aa.Ho&&S>a.Ho?T>a.Ho?(b=d(L,Z,z,V,s,-T,y),x=d(R,D,I,B,s,-T,y),v.lineTo(b.cx+b.x01,b.cy+b.y01),T=o;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[a]=+e(h,a,i),y[a]=+n(h,a,i),f.point(t?+t(h,a,i):g[a],l?+l(h,a,i):y[a]))}if(p)return f=null,p+""||null}function p(){return(0,o.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function a(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function o(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new o(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,i(this,n=r(this,e,t)),n);break;default:a(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(o.prototype)).point=function(e,t){o.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},j:function(){return r}});var r=a(n(20651).Z);function i(e){this._curve=e}function a(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function a(e){return new r(e,0)}function o(e){return new r(e,1)}n.d(t,{RN:function(){return a},ZP:function(){return i},cD:function(){return o}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return k},curveBasisClosed:function(){return S},curveBasisOpen:function(){return _},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return V},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return Y},curveStep:function(){return X.ZP},curveStepAfter:function(){return X.cD},curveStepBefore:function(){return X.RN},line:function(){return a.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return o.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return G.Z},stackOffsetDiverging:function(){return J.Z},stackOffsetExpand:function(){return Q.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return ea.Z},stackOrderInsideOut:function(){return eo.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(a())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),b=n(60598);function x(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function j(e){this._context=e}function k(e){return new j(e)}function E(e){this._context=e}function S(e){return new E(e)}function C(e){this._context=e}function _(e){return new C(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},E.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var F=function e(t){function n(e){return t?new Z(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function z(e,t){this._context=e,this._alpha=t}z.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new z(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new I(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function K(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,a,o,s,l=0,u=e[t[0]].length;l0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,a,o=0,s=e[0].length;o1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a0){for(var n,i=0,a=e[t[0]],o=a.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,a,o=0,s=1;sa&&(a=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(a);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function a(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function a(e){return e}var o=n(15);function s(){var e=a,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(o.BZ),u=(0,r.Z)(0);function c(r){var i,a,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(o.BZ,Math.max(-o.BZ,l.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,v[a]={data:r[a],index:i,value:f,startAngle:g,endAngle:d,padAngle:b};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),a=n(90541),o=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=o.Z,n=a.Z,l=s;function u(r){var i,a,o=e.apply(this,arguments),s=r.length,u=o.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=a;var o=a.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return o},Y2:function(){return a},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=6e4,a=36e5,o=864e5,s=6048e5,l=2592e6,u=31536e6},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(22179),i=n(1514),a=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=a;var o=a.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return o.Z},timeMinutes:function(){return o.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return a.Z},timeSeconds:function(){return a.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return a.Z},utcSeconds:function(){return a.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),a=n(52546),o=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,a,o){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return o;do o.push(a=new Date(+e)),n(e,i),t(e);while(a=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},a&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(a(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(o?function(t){return o(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var a=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(22179),i=n(1514),a=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=a;var o=a.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=n(1514),a=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=a;var o=a.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return E},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=2),t>>1;0>n(e[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}})(([,,e])=>e).right(c,i);if(a===c.length)return e.every(o(t/s.qz,n/s.qz,r));if(0===a)return l.Z.every(Math.max(o(t,n,r),1));let[u,d]=c[i/c[a-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var a=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return b},Ld:function(){return v},OM:function(){return o},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function a(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var o=a(0),s=a(1),l=a(2),u=a(3),c=a(4),d=a(5),f=a(6),h=o.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,b=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var a=i.range},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},42765:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},62650:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(19785),i=n(66700),a=n(88811),o=n(89248);function s(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function l(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var o=s(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=s(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u=n(42765);function c(e,t){(0,r.Z)(1,arguments);var n=t||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,s=null==o?0:(0,u.Z)(o),l=null==n.weekStartsOn?s:(0,u.Z)(n.weekStartsOn);if(!(l>=0&&l<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.Z)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(a+1,0,f),h.setUTCHours(0,0,0,0);var p=c(h,t),m=new Date(0);m.setUTCFullYear(a,0,f),m.setUTCHours(0,0,0,0);var v=c(m,t);return n.getTime()>=p.getTime()?a+1:n.getTime()>=v.getTime()?a:a-1}function f(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return f("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):f(n+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+(t||"")+f(a,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):g(e,t)}function g(e,t){var n=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(n/60),2)+(t||"")+f(n%60,2)}var y={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var i=d(e,r),a=i>0?i:1-i;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f(l(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){var o=function(e,t){(0,r.Z)(1,arguments);var n=(0,i.Z)(e);return Math.round((c(n,t).getTime()-(function(e,t){(0,r.Z)(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=null==a?1:(0,u.Z)(a),s=null==n.firstWeekContainsDate?o:(0,u.Z)(n.firstWeekContainsDate),l=d(e,t),f=new Date(0);return f.setUTCFullYear(l,0,s),f.setUTCHours(0,0,0,0),c(f,t)})(n,t).getTime())/6048e5)+1}(e,a);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e);return Math.round((s(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=l(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),s(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):f(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):f(a,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?p.noon:0===i?p.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return v(i);case"XXXX":case"XX":return g(i);default:return g(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(i);case"xxxx":case"xx":return g(i);default:return g(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+g(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+g(i,":")}},t:function(e,t,n,r){return f(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return f((r._originalDate||e).getTime(),t.length)}};function b(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function x(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var w={p:x,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",x(a,t))}},j=n(1645),k=["D","DD"],E=["YY","YYYY"];function S(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O=/^'([^]*?)'?$/,M=/''/g,T=/[a-zA-Z]/;function A(e,t,n){(0,r.Z)(2,arguments);var s=String(t),l=n||{},c=l.locale||a.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,u.Z)(d),h=null==l.firstWeekContainsDate?f:(0,u.Z)(l.firstWeekContainsDate);if(!(h>=1&&h<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,m=null==p?0:(0,u.Z)(p),v=null==l.weekStartsOn?m:(0,u.Z)(l.weekStartsOn);if(!(v>=0&&v<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw RangeError("locale must contain localize property");if(!c.formatLong)throw RangeError("locale must contain formatLong property");var g=(0,i.Z)(e);if(!function(e){return(0,r.Z)(1,arguments),(!!function(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,i.Z)(e)))}(g))throw RangeError("Invalid time value");var b=(0,j.Z)(g),x=(0,o.Z)(g,b),A={firstWeekContainsDate:h,weekStartsOn:v,locale:c,_originalDate:g};return s.match(_).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,A):e}).join("").match(C).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(O)[1].replace(M,"'");var i=y[r];if(i)return l.useAdditionalWeekYearTokens||-1===E.indexOf(n)||S(n,t,e),l.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||S(n,t,e),i(x,n,c.localize,A);if(r.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t),o=n.getTime()-a.getTime();return o<0?-1:o>0?1:o}var o={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s=n(88811),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=a(e,t);if(isNaN(h))throw RangeError("Invalid time value");var p=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},d);p.addSuffix=!!d.addSuffix,p.comparison=h,h>0?(n=(0,r.Z)(t),u=(0,r.Z)(e)):(n=(0,r.Z)(e),u=(0,r.Z)(t));var m=function(e,t,n){(0,i.Z)(2,arguments);var a,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((a=null==n?void 0:n.roundingMethod)?o[a]:o.trunc)(s)}(u,n),v=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(v<2){if(d.includeSeconds){if(m<5)return f.formatDistance("lessThanXSeconds",5,p);if(m<10)return f.formatDistance("lessThanXSeconds",10,p);if(m<20)return f.formatDistance("lessThanXSeconds",20,p);if(m<40)return f.formatDistance("halfAMinute",null,p);else if(m<60)return f.formatDistance("lessThanXMinutes",1,p);else return f.formatDistance("xMinutes",1,p)}return 0===v?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",v,p)}if(v<45)return f.formatDistance("xMinutes",v,p);if(v<90)return f.formatDistance("aboutXHours",1,p);if(v<1440)return f.formatDistance("aboutXHours",Math.round(v/60),p);if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200)return f.formatDistance("xDays",Math.round(v/1440),p);if(v<86400)return c=Math.round(v/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,o=(0,r.Z)(e),s=(0,r.Z)(t),l=a(o,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(o,s));if(u<1)n=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-l*u);var c=a(o,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===a(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12)return f.formatDistance("xMonths",Math.round(v/43200),p);var g=c%12,y=Math.floor(c/12);return g<3?f.formatDistance("aboutXYears",y,p):g<9?f.formatDistance("overXYears",y,p):f.formatDistance("almostXYears",y+1,p)}},32998:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1645),i=n(66700),a=n(19785);function o(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}var s=n(62650),l=n(88811),u=n(89248);function c(e,t,n){(0,a.Z)(2,arguments);var c=(0,i.Z)(e),d=(0,i.Z)(t),f=n||{},h=f.locale,p=void 0===h?l.Z:h,m=f.weekStartsOn,v=void 0===m?0:m;if(!p.localize)throw RangeError("locale must contain localize property");if(!p.formatLong)throw RangeError("locale must contain formatLong property");if(!p.formatRelative)throw RangeError("locale must contain formatRelative property");var g=function(e,t){(0,a.Z)(2,arguments);var n=o(e),i=o(t);return Math.round((n.getTime()-(0,r.Z)(n)-(i.getTime()-(0,r.Z)(i)))/864e5)}(c,d);if(isNaN(g))throw RangeError("Invalid time value");var y=(0,u.Z)(c,(0,r.Z)(c)),b=(0,u.Z)(d,(0,r.Z)(d)),x=p.formatRelative(g<-6?"other":g<-1?"lastWeek":g<0?"yesterday":g<1?"today":g<2?"tomorrow":g<7?"nextWeek":"other",y,b,{locale:p,weekStartsOn:v});return(0,s.Z)(c,x,{locale:p,weekStartsOn:v})}},88811:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:o,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],a=e.match(r.parsePattern);if(!a)return null;var o=r.valueCallback?r.valueCallback(a[0]):a[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},89248:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(42765),i=n(66700),a=n(19785);function o(e,t){return(0,a.Z)(2,arguments),function(e,t){return(0,a.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}(e,-(0,r.Z)(t))}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(o,a),o=a=null))}null==t&&(t=100);var i,a,o,s,l,u=function(){o=this,a=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(o,a),o=a=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(o,a),o=a=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},7114:function(e,t,n){"use strict";n.d(t,{TA:function(){return F}});var r=n(2784),i=n(78435),a=n.n(i),o=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||o;var r,i,a=Array.isArray(t);return a!==Array.isArray(e)?l(t,n):a?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=c(e[n],t[n],r):i[n]=l(t[n],r)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var d=c,f=n(65255),h=n(99625),p=function(e){return(0,h.Z)(e,4)},m=n(95598),v=n(31162),g=n(97885),y=n(22758),b=n(71354),x=n(57969),w=n(25186),j=function(e){return(0,g.Z)(e)?(0,m.Z)(e,x.Z):(0,y.Z)(e)?[e]:(0,v.Z)((0,b.Z)((0,w.Z)(e)))},k=function(e,t){};function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function C(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var _=function(e){return Array.isArray(e)&&0===e.length},O=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},T=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return M(e)&&O(e.then)};function P(e,t,n,r){void 0===r&&(r=0);for(var i=j(t);e&&r=0?[]:{}}}return(0===a?e:i)[o[a]]===n?e:(void 0===n?delete i[o[a]]:i[o[a]]=n,0===a&&void 0===n&&delete r[o[a]],r)}var R=(0,r.createContext)(void 0);function D(e,t){switch(t.type){case"SET_VALUES":return E({},e,{values:t.payload});case"SET_TOUCHED":return E({},e,{touched:t.payload});case"SET_ERRORS":if(a()(e.errors,t.payload))return e;return E({},e,{errors:t.payload});case"SET_STATUS":return E({},e,{status:t.payload});case"SET_ISSUBMITTING":return E({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return E({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return E({},e,{values:N(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return E({},e,{touched:N(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return E({},e,{errors:N(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return E({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return E({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var a=0,o=Object.keys(t);a=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var a,o=a;P(t,o.path)||(t=N(t,o.path,o.message))}}return t}(n)):t(n)})})},[v.validationSchema]),V=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),B=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return O(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return V(t,P(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=N(e,t[r],n)),e},{})})},[V]),H=(0,r.useCallback)(function(e){return Promise.all([B(e),v.validationSchema?F(e):{},v.validate?R(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:z})})},[v.validate,v.validationSchema,B,R,F]),U=I(function(e){return void 0===e&&(e=C.values),_({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){l&&!0===w.current&&a()(g.current,v.initialValues)&&U(g.current)},[l,U]);var W=(0,r.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:y.current?y.current:v.initialErrors||{},r=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:v.initialStatus;g.current=t,y.current=n,b.current=r,x.current=i;var a=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var o=v.onReset(C.values,ec);A(o)?o.then(a):a()}else a()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,r.useEffect)(function(){!0===w.current&&!a()(g.current,v.initialValues)&&(h&&(g.current=v.initialValues,W()),l&&U(g.current))},[h,v.initialValues,W,l,U]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(y.current,v.initialErrors)&&(y.current=v.initialErrors||L,_({type:"SET_ERRORS",payload:v.initialErrors||L}))},[h,v.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(b.current,v.initialTouched)&&(b.current=v.initialTouched||Z,_({type:"SET_TOUCHED",payload:v.initialTouched||Z}))},[h,v.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(x.current,v.initialStatus)&&(x.current=v.initialStatus,_({type:"SET_STATUS",payload:v.initialStatus}))},[h,v.initialStatus,v.initialTouched]);var q=I(function(e){if(j.current[e]&&O(j.current[e].validate)){var t=P(C.values,e),n=j.current[e].validate(t);return A(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),F(C.values,e).then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),$=(0,r.useCallback)(function(e,t){var n=t.validate;j.current[e]={validate:n}},[]),K=(0,r.useCallback)(function(e){delete j.current[e]},[]),Y=I(function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?U(C.values):Promise.resolve()}),X=(0,r.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),G=I(function(e,t){var r=O(e)?e(C.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?U(r):Promise.resolve()}),Q=(0,r.useCallback)(function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),J=I(function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?U(N(C.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!T(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,l=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),f=a.multiple;r=t||s||l,i=/number|range/.test(o)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(o)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,i=(a=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}(P(C.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&J(r,i)},[J,C.values]),et=I(function(e){if(T(e))return function(t){return ee(t,e)};ee(e)}),en=I(function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?U(C.values):Promise.resolve()}),er=(0,r.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,en(t||r||i,!0)},[en]),ei=I(function(e){if(T(e))return function(t){return er(t,e)};er(e)}),ea=(0,r.useCallback)(function(e){O(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),eo=(0,r.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),es=(0,r.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),el=I(function(){return _({type:"SUBMIT_ATTEMPT"}),U().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=ed(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return w.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(_({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=I(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:q,setErrors:X,setFieldError:Q,setFieldTouched:en,setFieldValue:J,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:G,setFormikState:ea,submitForm:el},ed=I(function(){return p(C.values,ec)}),ef=I(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:P(C.values,e),error:P(C.errors,e),touched:!!P(C.touched,e),initialValue:P(g.current,e),initialTouched:!!P(b.current,e),initialError:P(y.current,e)}},[C.errors,C.touched,C.values]),ep=(0,r.useCallback)(function(e){return{setValue:function(t,n){return J(e,t,n)},setTouched:function(t,n){return en(e,t,n)},setError:function(t){return Q(e,t)}}},[J,en,Q]),em=(0,r.useCallback)(function(e){var t=M(e),n=t?e.name:e,r=P(C.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var a=e.type,o=e.value,s=e.as,l=e.multiple;"checkbox"===a?void 0===o?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(o)),i.value=o):"radio"===a?(i.checked=r===o,i.value=o):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,C.values]),ev=(0,r.useMemo)(function(){return!a()(g.current,C.values)},[g.current,C.values]),eg=(0,r.useMemo)(function(){return void 0!==u?ev?C.errors&&0===Object.keys(C.errors).length:!1!==u&&O(u)?u(v):u:C.errors&&0===Object.keys(C.errors).length},[u,ev,C.errors,v]);return E({},C,{initialValues:g.current,initialErrors:y.current,initialTouched:b.current,initialStatus:x.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:X,setFormikState:ea,setFieldTouched:en,setFieldValue:J,setFieldError:Q,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:G,submitForm:el,validateForm:U,validateField:q,isValid:eg,dirty:ev,unregisterField:K,registerField:$,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:o,validateOnChange:n,validateOnMount:l})}function z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var a=!1!==n.clone&&n.isMergeableObject(t);r[i]=a?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=d(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function I(e){var t=(0,r.useRef)(e);return V(function(){t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(E({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,a=i.name;(0,i.formik.setFormikState)(function(n){var i=N(n.values,a,e(P(n.values,a))),o=r?("function"==typeof r?r:e)(P(n.errors,a)):void 0,s=t?("function"==typeof t?t:e)(P(n.touched,a)):void 0;return _(o)&&(o=void 0),_(s)&&(s=void 0),E({},n,{values:i,errors:r?N(n.errors,a,o):n.errors,touched:t?N(n.touched,a,s):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(q(t),[(0,h.Z)(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return H(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return B(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return U(n,e,t)},function(t){return U(t,e,null)},function(t){return U(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return W(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(C(n)),n.pop=n.pop.bind(C(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(P(e.formik.values,e.name),P(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?q(n):[];return t||(t=r[e]),O(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,a=t.children,o=t.name,s=S(t.formik,["validate","validationSchema"]),l=E({},e,{form:s,name:o});return n?(0,r.createElement)(n,l):i?i(l):a?"function"==typeof a?a(l):0===r.Children.count(a)?null:r.Children.only(a):null},t})(r.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=c(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),v=0;v=0;)(u=e(r,i,a,o,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&a.charAt(h-1)===o.charAt(l+1)&&a.charAt(h-1)!==o.charAt(l)&&.1*(c=e(r,i,a,o,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=a.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return E},Il:function(){return i},J5:function(){return o},SU:function(){return k},Ss:function(){return S},Ym:function(){return A},ZP:function(){return x},xV:function(){return a}});var r=n(40948);function i(){}var a=.7,o=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function k(e){return(e instanceof i||(e=x(e)),e)?new S((e=e.rgb()).r,e.g,e.b,e.opacity):new S}function E(e,t,n,r){return 1==arguments.length?k(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C(){return"#"+O(this.r)+O(this.g)+O(this.b)}function _(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(s=t===o?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?T(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(S,E,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:_,toString:_})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=4/29,s=6/29,l=6/29*3*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return b(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),a=v(e.g),o=v(e.b),s=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?t=n=s:(t=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+o}function p(e){return e>s?e*e*e:l*(e-o)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],a=n[1],o=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+(0,u.V)(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];a=(i=function(e){var t,n,i,a=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,j=e.type;"n"===j?(b=!0,j="g"):d[j]||(void 0===x&&(x=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?o:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],C=/[defgprs%]/.test(j);function _(e){var o,s,l,u=k,d=E;if("c"===j)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(v&&"("===i?")":""),C){for(o=-1,s=e.length;++o(l=e.charCodeAt(o))||l>57){d=(46===l?c+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}}b&&!f&&(e=a(e,1/0));var _=u.length+e.length+d.length,O=_>1)+u+e+d+O.slice(_);break;default:e=O+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),_.toString=function(){return e+""},_}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),a=p[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,o=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new a({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function a(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},88013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e){return Math.max(0,-(0,r.Z)(Math.abs(e)))}},21032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3)))-(0,r.Z)(Math.abs(e)))}},61652:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return t=Math.abs(t)-(e=Math.abs(e)),Math.max(0,(0,r.Z)(t)-(0,r.Z)(e))+1}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o,s=!0,l=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(l)throw o}}}}function a(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var o=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?a-=1:a0&&(a-=1)),t[a]=(t[a]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var o=l(r,t({},e[e.length-1]));return"M"===o[0].type&&o.forEach(function(e){e.type="L"}),n.concat(o)}return n.concat(function(e,n,r){var i,o=[];if("L"===n.type||"Q"===n.type||"C"===n.type)o=o.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),a=0;a0&&"Z"===a[a.length-1].type&&a.pop(),o.length>0&&"Z"===o[o.length-1].type&&o.pop(),a.length?o.length||o.push(a[0]):a.push(o[0]),0!==Math.abs(o.length-a.length)&&(o.length>a.length?a=u(a,o,r):o.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[i],o=e[i+1],s=i>0?e[i-1]:2*a-o,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?s:function(t,n){var i,a,o;return n-t?(i=t,a=n,i=Math.pow(i,o=e),a=Math.pow(a,o)-i,o=1/o,function(e){return Math.pow(i+e*a,o)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(o*r+-1.7884503806*t-3.5172982438*n)/(o+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*a.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(-.29227*r+-.90649*o)),255*(t+1.97294*r*n),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),a=(0,u.ZP)(t.s,r.s),o=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(20966),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),o=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(68847),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),o=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,a,o,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=a.skewX)!==(c=o.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,f),a=o=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=a.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&a){var h=r-o,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=a*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,o,s,l){e=+e,t=+t,a=+a,l=!!l;var u=a*Math.cos(o),c=a*Math.sin(o),d=e+u,f=t+c,h=1^l,p=l?o-s:s-o;if(a<0)throw Error("negative radius: "+a);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),a&&(p<0&&(p=p%r+r),p>i?this._+="A"+a+","+a+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+a+","+a+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+a+","+a+",0,"+ +(p>=n)+","+h+","+(this._x1=e+a*Math.cos(s))+","+(this._y1=t+a*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=o},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,a){null==r&&(r=0),null==a&&(a=e.length);let o=i(e,n,r,a-1);return o>r&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}var a=n(81048);let o=i(r.Z),s=o.right;o.left,i(a.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var a=n(1169);function o(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(o-a/2<0?-1:1),d=Math.max(r,Math.floor(n-o*u/a+c)),f=Math.min(i,Math.floor(n+(a-o)*u/a+c));e(t,n,d,f,s)}let a=t[n],l=r,u=i;for(o(t,r,n),s(t[i],a)>0&&o(t,r,i);ls(t[l],a);)++l;for(;s(t[u],a)>0;)--u}0===s(t[r],a)?o(t,r,u):o(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return o},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var r,i,a,o,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/o),r=Math.round(t/o);for(n*ot&&--r,a=Array(i=r-n+1);++lt&&--r,a=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}function l(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function I(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return b(e.getDate(),t,2)}function U(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function X(e,t){return b(e.getMinutes(),t,2)}function G(e,t){return b(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function ea(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function eo(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function ev(e,t){return b(e.getUTCMinutes(),t,2)}function eg(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(o.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.hB)(e):o.hB.ceil(e)}function ew(e,t){return e=ex(e),b(o.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function ek(e,t){return b(o.l6.count((0,d.Z)(e)-1,e),t,2)}function eE(e,t){return b(e.getUTCFullYear()%100,t,2)}function eS(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function eC(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function e_(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,o.hB)(e):o.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eT(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),b=w(a),x=j(a),ee=w(c),ex=j(c),eP=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:ea,G:es,H:U,I:W,j:q,L:$,m:Y,M:X,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:G,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:eo,Z:el,"%":eM},eZ={a:function(e){return c[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:e_,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eA,S:eg,u:ey,U:eb,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:eC,Z:eO,"%":eM},eF={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eI(e,t,n,r)},d:N,e:N,f:z,g:M,G:O,H:D,I:D,j:R,L:F,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:A,Q:I,s:B,S:Z,u:E,U:S,V:C,w:k,W:_,x:function(e,t,r){return eI(e,n,t,r)},X:function(e,t,n){return eI(e,r,t,n)},y:M,Y:O,Z:T,"%":V};function ez(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=h(p(a.y,0,1))).getUTCDay())>4||0===i?o.l6.ceil(r):(0,o.l6)(r),r=s.Z.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=f(p(a.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?h(p(a.y,0,1)).getUTCDay():f(p(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,h(a)):f(a)}}function eI(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o=l)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=eF[(i=t.charAt(o++))in m?t.charAt(o++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=ez(n,eL),eL.X=ez(r,eL),eL.c=ez(t,eL),eZ.x=ez(n,eZ),eZ.X=ez(r,eZ),eZ.c=ez(t,eZ),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eV(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eZ);return t.toString=function(){return e},t},utcParse:function(e){var t=eV(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,a=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},x:function(){return o}});var r=n(22274),i=n(34130);function a(){var e,t,n=(0,i.Z)().unknown(void 0),o=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=o().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((h||(h=r(m,p.map(e),a.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=o.Z,y()},b.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,o.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,a.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,a.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return o.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,o.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,E.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,C.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),a=n(5497),o=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,a=0,o=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([a,o]=i,e=r(a=+a),t=r(o=+o),n=e===t?0:1/(t-e),u):[a,o]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(a),t=i(o),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function j(){var e=(0,u.Hh)(x());return e.copy=function(){return w(e,j()).exponent(e.exponent())},b.O.apply(e,arguments)}function k(){return j.apply(null,arguments).exponent(.5)}var E=n(98038),S=n(1169),C=n(33907),_=n(87475);function O(){var e,t,n,r,i,a,o,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(c*e0;){if((a=(0,r.G9)(u,c,n))===i)return o[s]=u,o[l]=c,t(o);if(a>0)u=Math.floor(u/a)*a,c=Math.ceil(c/a)*a;else if(a<0)u=Math.ceil(u*a)/a,c=Math.floor(c*a)/a;else break;i=a}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,o.l4)()).domain([1,10]);return t.copy=function(){return(0,o.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),a=n(10070),o=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,o=e(l,u),s=o.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),o}return o.base=function(e){return arguments.length?(p=+e,m()):p},o.domain=function(e){return arguments.length?(s(e),m()):s()},o.ticks=function(e){var i,a=s(),o=a[0],l=a[a.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],o]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,o]).range(u).unknown(t)},a.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),a=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,o.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,a.Q)(c)}}});var r=n(70552),i=n(22274),a=n(93963),o=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},a.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),a=n(22274);function o(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(o(1),s(t));return n.constant=function(n){return arguments.length?e(o(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],a=[0,1],o=1;function s(e){return null!=e&&e<=e?a[(0,r.ZP)(n,e,0,o)]:t}return s.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,a.length-1),s):n.slice()},s.range=function(e){return arguments.length?(a=Array.from(e),o=Math.min(n.length,a.length-1),s):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(a).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),a=n(21032),o=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,a.Z)(d,f))||(u.precision=c),(0,o.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,o.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),a=n(50690),o=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,a,o,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),k=u("%b %d"),E=u("%B"),S=u("%Y");function C(e){return(l(e)A*A+P*P&&(S=_,C=O),{cx:S,cy:C,x01:-d,y01:-f,x11:S*(i/j-1),y11:C*(i/j-1)}}function f(){var e=o,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,o,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-a.ou,c=p.apply(this,arguments)-a.ou,g=(0,a.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),la.Ho){if(g>a.BZ-a.Ho)v.moveTo(l*(0,a.mC)(u),l*(0,a.O$)(u)),v.arc(0,0,l,u,c,!y),s>a.Ho&&(v.moveTo(s*(0,a.mC)(c),s*(0,a.O$)(c)),v.arc(0,0,s,c,u,y));else{var b,x,w=u,j=c,k=u,E=c,S=g,C=g,_=m.apply(this,arguments)/2,O=_>a.Ho&&(f?+f.apply(this,arguments):(0,a._b)(s*s+l*l)),M=(0,a.VV)((0,a.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>a.Ho){var P=(0,a.ZR)(O/s*(0,a.O$)(_)),N=(0,a.ZR)(O/l*(0,a.O$)(_));(S-=2*P)>a.Ho?(P*=y?1:-1,k+=P,E-=P):(S=0,k=E=(u+c)/2),(C-=2*N)>a.Ho?(N*=y?1:-1,w+=N,j-=N):(C=0,w=j=(u+c)/2)}var R=l*(0,a.mC)(w),D=l*(0,a.O$)(w),L=s*(0,a.mC)(E),Z=s*(0,a.O$)(E);if(M>a.Ho){var F,z=l*(0,a.mC)(j),V=l*(0,a.O$)(j),I=s*(0,a.mC)(k),B=s*(0,a.O$)(k);if(ga.Ho?A>a.Ho?(b=d(I,B,R,D,l,A,y),x=d(z,V,L,Z,l,A,y),v.moveTo(b.cx+b.x01,b.cy+b.y01),Aa.Ho&&S>a.Ho?T>a.Ho?(b=d(L,Z,z,V,s,-T,y),x=d(R,D,I,B,s,-T,y),v.lineTo(b.cx+b.x01,b.cy+b.y01),T=o;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[a]=+e(h,a,i),y[a]=+n(h,a,i),f.point(t?+t(h,a,i):g[a],l?+l(h,a,i):y[a]))}if(p)return f=null,p+""||null}function p(){return(0,o.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function a(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function o(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new o(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,i(this,n=r(this,e,t)),n);break;default:a(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(o.prototype)).point=function(e,t){o.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},j:function(){return r}});var r=a(n(20651).Z);function i(e){this._curve=e}function a(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function a(e){return new r(e,0)}function o(e){return new r(e,1)}n.d(t,{RN:function(){return a},ZP:function(){return i},cD:function(){return o}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return k},curveBasisClosed:function(){return S},curveBasisOpen:function(){return _},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return V},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return Y},curveStep:function(){return X.ZP},curveStepAfter:function(){return X.cD},curveStepBefore:function(){return X.RN},line:function(){return a.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return o.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return G.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return ea.Z},stackOrderInsideOut:function(){return eo.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(a())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),b=n(60598);function x(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function j(e){this._context=e}function k(e){return new j(e)}function E(e){this._context=e}function S(e){return new E(e)}function C(e){this._context=e}function _(e){return new C(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},E.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var F=function e(t){function n(e){return t?new Z(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function z(e,t){this._context=e,this._alpha=t}z.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new z(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new I(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function K(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,a,o,s,l=0,u=e[t[0]].length;l0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,a,o=0,s=e[0].length;o1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a0){for(var n,i=0,a=e[t[0]],o=a.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,a,o=0,s=1;sa&&(a=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(a);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function a(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function a(e){return e}var o=n(15);function s(){var e=a,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(o.BZ),u=(0,r.Z)(0);function c(r){var i,a,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(o.BZ,Math.max(-o.BZ,l.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,v[a]={data:r[a],index:i,value:f,startAngle:g,endAngle:d,padAngle:b};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),a=n(90541),o=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=o.Z,n=a.Z,l=s;function u(r){var i,a,o=e.apply(this,arguments),s=r.length,u=o.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=a;var o=a.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return o},Y2:function(){return a},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=6e4,a=36e5,o=864e5,s=6048e5,l=2592e6,u=31536e6},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(22179),i=n(1514),a=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=a;var o=a.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return o.Z},timeMinutes:function(){return o.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return a.Z},timeSeconds:function(){return a.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return a.Z},utcSeconds:function(){return a.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),a=n(52546),o=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,a,o){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return o;do o.push(a=new Date(+e)),n(e,i),t(e);while(a=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},a&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(a(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(o?function(t){return o(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var a=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(22179),i=n(1514),a=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=a;var o=a.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=n(1514),a=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=a;var o=a.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return E},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=2),t>>1;0>n(e[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}})(([,,e])=>e).right(c,i);if(a===c.length)return e.every(o(t/s.qz,n/s.qz,r));if(0===a)return l.Z.every(Math.max(o(t,n,r),1));let[u,d]=c[i/c[a-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var a=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return b},Ld:function(){return v},OM:function(){return o},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function a(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var o=a(0),s=a(1),l=a(2),u=a(3),c=a(4),d=a(5),f=a(6),h=o.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,b=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var a=i.range},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},42765:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},62650:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(19785),i=n(66700),a=n(88811),o=n(89248);function s(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function l(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var o=s(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=s(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u=n(42765);function c(e,t){(0,r.Z)(1,arguments);var n=t||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,s=null==o?0:(0,u.Z)(o),l=null==n.weekStartsOn?s:(0,u.Z)(n.weekStartsOn);if(!(l>=0&&l<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.Z)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(a+1,0,f),h.setUTCHours(0,0,0,0);var p=c(h,t),m=new Date(0);m.setUTCFullYear(a,0,f),m.setUTCHours(0,0,0,0);var v=c(m,t);return n.getTime()>=p.getTime()?a+1:n.getTime()>=v.getTime()?a:a-1}function f(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return f("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):f(n+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+(t||"")+f(a,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):g(e,t)}function g(e,t){var n=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(n/60),2)+(t||"")+f(n%60,2)}var y={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var i=d(e,r),a=i>0?i:1-i;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f(l(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){var o=function(e,t){(0,r.Z)(1,arguments);var n=(0,i.Z)(e);return Math.round((c(n,t).getTime()-(function(e,t){(0,r.Z)(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=null==a?1:(0,u.Z)(a),s=null==n.firstWeekContainsDate?o:(0,u.Z)(n.firstWeekContainsDate),l=d(e,t),f=new Date(0);return f.setUTCFullYear(l,0,s),f.setUTCHours(0,0,0,0),c(f,t)})(n,t).getTime())/6048e5)+1}(e,a);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e);return Math.round((s(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=l(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),s(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):f(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):f(a,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?p.noon:0===i?p.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return v(i);case"XXXX":case"XX":return g(i);default:return g(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(i);case"xxxx":case"xx":return g(i);default:return g(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+g(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+g(i,":")}},t:function(e,t,n,r){return f(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return f((r._originalDate||e).getTime(),t.length)}};function b(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function x(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var w={p:x,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",x(a,t))}},j=n(1645),k=["D","DD"],E=["YY","YYYY"];function S(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O=/^'([^]*?)'?$/,M=/''/g,T=/[a-zA-Z]/;function A(e,t,n){(0,r.Z)(2,arguments);var s=String(t),l=n||{},c=l.locale||a.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,u.Z)(d),h=null==l.firstWeekContainsDate?f:(0,u.Z)(l.firstWeekContainsDate);if(!(h>=1&&h<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,m=null==p?0:(0,u.Z)(p),v=null==l.weekStartsOn?m:(0,u.Z)(l.weekStartsOn);if(!(v>=0&&v<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw RangeError("locale must contain localize property");if(!c.formatLong)throw RangeError("locale must contain formatLong property");var g=(0,i.Z)(e);if(!function(e){return(0,r.Z)(1,arguments),(!!function(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,i.Z)(e)))}(g))throw RangeError("Invalid time value");var b=(0,j.Z)(g),x=(0,o.Z)(g,b),A={firstWeekContainsDate:h,weekStartsOn:v,locale:c,_originalDate:g};return s.match(_).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,A):e}).join("").match(C).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(O)[1].replace(M,"'");var i=y[r];if(i)return l.useAdditionalWeekYearTokens||-1===E.indexOf(n)||S(n,t,e),l.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||S(n,t,e),i(x,n,c.localize,A);if(r.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t),o=n.getTime()-a.getTime();return o<0?-1:o>0?1:o}var o={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s=n(88811),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=a(e,t);if(isNaN(h))throw RangeError("Invalid time value");var p=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},d);p.addSuffix=!!d.addSuffix,p.comparison=h,h>0?(n=(0,r.Z)(t),u=(0,r.Z)(e)):(n=(0,r.Z)(e),u=(0,r.Z)(t));var m=function(e,t,n){(0,i.Z)(2,arguments);var a,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((a=null==n?void 0:n.roundingMethod)?o[a]:o.trunc)(s)}(u,n),v=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(v<2){if(d.includeSeconds){if(m<5)return f.formatDistance("lessThanXSeconds",5,p);if(m<10)return f.formatDistance("lessThanXSeconds",10,p);if(m<20)return f.formatDistance("lessThanXSeconds",20,p);if(m<40)return f.formatDistance("halfAMinute",null,p);else if(m<60)return f.formatDistance("lessThanXMinutes",1,p);else return f.formatDistance("xMinutes",1,p)}return 0===v?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",v,p)}if(v<45)return f.formatDistance("xMinutes",v,p);if(v<90)return f.formatDistance("aboutXHours",1,p);if(v<1440)return f.formatDistance("aboutXHours",Math.round(v/60),p);if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200)return f.formatDistance("xDays",Math.round(v/1440),p);if(v<86400)return c=Math.round(v/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,o=(0,r.Z)(e),s=(0,r.Z)(t),l=a(o,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(o,s));if(u<1)n=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-l*u);var c=a(o,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===a(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12)return f.formatDistance("xMonths",Math.round(v/43200),p);var g=c%12,y=Math.floor(c/12);return g<3?f.formatDistance("aboutXYears",y,p):g<9?f.formatDistance("overXYears",y,p):f.formatDistance("almostXYears",y+1,p)}},32998:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1645),i=n(66700),a=n(19785);function o(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}var s=n(62650),l=n(88811),u=n(89248);function c(e,t,n){(0,a.Z)(2,arguments);var c=(0,i.Z)(e),d=(0,i.Z)(t),f=n||{},h=f.locale,p=void 0===h?l.Z:h,m=f.weekStartsOn,v=void 0===m?0:m;if(!p.localize)throw RangeError("locale must contain localize property");if(!p.formatLong)throw RangeError("locale must contain formatLong property");if(!p.formatRelative)throw RangeError("locale must contain formatRelative property");var g=function(e,t){(0,a.Z)(2,arguments);var n=o(e),i=o(t);return Math.round((n.getTime()-(0,r.Z)(n)-(i.getTime()-(0,r.Z)(i)))/864e5)}(c,d);if(isNaN(g))throw RangeError("Invalid time value");var y=(0,u.Z)(c,(0,r.Z)(c)),b=(0,u.Z)(d,(0,r.Z)(d)),x=p.formatRelative(g<-6?"other":g<-1?"lastWeek":g<0?"yesterday":g<1?"today":g<2?"tomorrow":g<7?"nextWeek":"other",y,b,{locale:p,weekStartsOn:v});return(0,s.Z)(c,x,{locale:p,weekStartsOn:v})}},88811:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:o,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],a=e.match(r.parsePattern);if(!a)return null;var o=r.valueCallback?r.valueCallback(a[0]):a[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},89248:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(42765),i=n(66700),a=n(19785);function o(e,t){return(0,a.Z)(2,arguments),function(e,t){return(0,a.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}(e,-(0,r.Z)(t))}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(o,a),o=a=null))}null==t&&(t=100);var i,a,o,s,l,u=function(){o=this,a=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(o,a),o=a=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(o,a),o=a=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},7114:function(e,t,n){"use strict";n.d(t,{TA:function(){return F}});var r=n(2784),i=n(78435),a=n.n(i),o=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||o;var r,i,a=Array.isArray(t);return a!==Array.isArray(e)?l(t,n):a?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=c(e[n],t[n],r):i[n]=l(t[n],r)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var d=c,f=n(65255),h=n(99625),p=function(e){return(0,h.Z)(e,4)},m=n(95598),v=n(31162),g=n(97885),y=n(22758),b=n(71354),x=n(57969),w=n(25186),j=function(e){return(0,g.Z)(e)?(0,m.Z)(e,x.Z):(0,y.Z)(e)?[e]:(0,v.Z)((0,b.Z)((0,w.Z)(e)))},k=function(e,t){};function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function C(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var _=function(e){return Array.isArray(e)&&0===e.length},O=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},T=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return M(e)&&O(e.then)};function P(e,t,n,r){void 0===r&&(r=0);for(var i=j(t);e&&r=0?[]:{}}}return(0===a?e:i)[o[a]]===n?e:(void 0===n?delete i[o[a]]:i[o[a]]=n,0===a&&void 0===n&&delete r[o[a]],r)}var R=(0,r.createContext)(void 0);function D(e,t){switch(t.type){case"SET_VALUES":return E({},e,{values:t.payload});case"SET_TOUCHED":return E({},e,{touched:t.payload});case"SET_ERRORS":if(a()(e.errors,t.payload))return e;return E({},e,{errors:t.payload});case"SET_STATUS":return E({},e,{status:t.payload});case"SET_ISSUBMITTING":return E({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return E({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return E({},e,{values:N(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return E({},e,{touched:N(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return E({},e,{errors:N(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return E({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return E({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var a=0,o=Object.keys(t);a=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var a,o=a;P(t,o.path)||(t=N(t,o.path,o.message))}}return t}(n)):t(n)})})},[v.validationSchema]),V=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),B=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return O(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return V(t,P(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=N(e,t[r],n)),e},{})})},[V]),H=(0,r.useCallback)(function(e){return Promise.all([B(e),v.validationSchema?F(e):{},v.validate?R(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:z})})},[v.validate,v.validationSchema,B,R,F]),U=I(function(e){return void 0===e&&(e=C.values),_({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){l&&!0===w.current&&a()(g.current,v.initialValues)&&U(g.current)},[l,U]);var W=(0,r.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:y.current?y.current:v.initialErrors||{},r=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:v.initialStatus;g.current=t,y.current=n,b.current=r,x.current=i;var a=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var o=v.onReset(C.values,ec);A(o)?o.then(a):a()}else a()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,r.useEffect)(function(){!0===w.current&&!a()(g.current,v.initialValues)&&(h&&(g.current=v.initialValues,W()),l&&U(g.current))},[h,v.initialValues,W,l,U]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(y.current,v.initialErrors)&&(y.current=v.initialErrors||L,_({type:"SET_ERRORS",payload:v.initialErrors||L}))},[h,v.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(b.current,v.initialTouched)&&(b.current=v.initialTouched||Z,_({type:"SET_TOUCHED",payload:v.initialTouched||Z}))},[h,v.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(x.current,v.initialStatus)&&(x.current=v.initialStatus,_({type:"SET_STATUS",payload:v.initialStatus}))},[h,v.initialStatus,v.initialTouched]);var q=I(function(e){if(j.current[e]&&O(j.current[e].validate)){var t=P(C.values,e),n=j.current[e].validate(t);return A(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),F(C.values,e).then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),$=(0,r.useCallback)(function(e,t){var n=t.validate;j.current[e]={validate:n}},[]),K=(0,r.useCallback)(function(e){delete j.current[e]},[]),Y=I(function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?U(C.values):Promise.resolve()}),X=(0,r.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),G=I(function(e,t){var r=O(e)?e(C.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?U(r):Promise.resolve()}),J=(0,r.useCallback)(function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=I(function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?U(N(C.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!T(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,l=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),f=a.multiple;r=t||s||l,i=/number|range/.test(o)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(o)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,i=(a=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}(P(C.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&Q(r,i)},[Q,C.values]),et=I(function(e){if(T(e))return function(t){return ee(t,e)};ee(e)}),en=I(function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?U(C.values):Promise.resolve()}),er=(0,r.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,en(t||r||i,!0)},[en]),ei=I(function(e){if(T(e))return function(t){return er(t,e)};er(e)}),ea=(0,r.useCallback)(function(e){O(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),eo=(0,r.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),es=(0,r.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),el=I(function(){return _({type:"SUBMIT_ATTEMPT"}),U().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=ed(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return w.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(_({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=I(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:q,setErrors:X,setFieldError:J,setFieldTouched:en,setFieldValue:Q,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:G,setFormikState:ea,submitForm:el},ed=I(function(){return p(C.values,ec)}),ef=I(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:P(C.values,e),error:P(C.errors,e),touched:!!P(C.touched,e),initialValue:P(g.current,e),initialTouched:!!P(b.current,e),initialError:P(y.current,e)}},[C.errors,C.touched,C.values]),ep=(0,r.useCallback)(function(e){return{setValue:function(t,n){return Q(e,t,n)},setTouched:function(t,n){return en(e,t,n)},setError:function(t){return J(e,t)}}},[Q,en,J]),em=(0,r.useCallback)(function(e){var t=M(e),n=t?e.name:e,r=P(C.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var a=e.type,o=e.value,s=e.as,l=e.multiple;"checkbox"===a?void 0===o?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(o)),i.value=o):"radio"===a?(i.checked=r===o,i.value=o):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,C.values]),ev=(0,r.useMemo)(function(){return!a()(g.current,C.values)},[g.current,C.values]),eg=(0,r.useMemo)(function(){return void 0!==u?ev?C.errors&&0===Object.keys(C.errors).length:!1!==u&&O(u)?u(v):u:C.errors&&0===Object.keys(C.errors).length},[u,ev,C.errors,v]);return E({},C,{initialValues:g.current,initialErrors:y.current,initialTouched:b.current,initialStatus:x.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:X,setFormikState:ea,setFieldTouched:en,setFieldValue:Q,setFieldError:J,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:G,submitForm:el,validateForm:U,validateField:q,isValid:eg,dirty:ev,unregisterField:K,registerField:$,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:o,validateOnChange:n,validateOnMount:l})}function z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var a=!1!==n.clone&&n.isMergeableObject(t);r[i]=a?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=d(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function I(e){var t=(0,r.useRef)(e);return V(function(){t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(E({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,a=i.name;(0,i.formik.setFormikState)(function(n){var i=N(n.values,a,e(P(n.values,a))),o=r?("function"==typeof r?r:e)(P(n.errors,a)):void 0,s=t?("function"==typeof t?t:e)(P(n.touched,a)):void 0;return _(o)&&(o=void 0),_(s)&&(s=void 0),E({},n,{values:i,errors:r?N(n.errors,a,o):n.errors,touched:t?N(n.touched,a,s):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(q(t),[(0,h.Z)(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return H(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return B(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return U(n,e,t)},function(t){return U(t,e,null)},function(t){return U(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return W(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(C(n)),n.pop=n.pop.bind(C(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(P(e.formik.values,e.name),P(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?q(n):[];return t||(t=r[e]),O(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,a=t.children,o=t.name,s=S(t.formik,["validate","validationSchema"]),l=E({},e,{form:s,name:o});return n?(0,r.createElement)(n,l):i?i(l):a?"function"==typeof a?a(l):0===r.Children.count(a)?null:r.Children.only(a):null},t})(r.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=c(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?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,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),a=n(98138),o=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:r(e,t,n)}},24019:function(e,t,n){var r=n(37772)["__core-js_shared__"];e.exports=r},55463:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),a=n(8435),o=n(66188);e.exports=function(e){return function(t){var n=i(t=o(t))?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),a=n(11618),o=RegExp("['’]","g");e.exports=function(e){return function(t){return r(a(i(t).replace(o,"")),e,"")}}},61655:function(e,t,n){var r=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},83043:function(e,t,n){var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var r=n(45386),i=n(87064),a=n(59950);e.exports=function(e,t,n,o,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},18052:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=o},33812:function(e,t,n){var r=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="['’]",s="["+a+"]",l="["+r+"]",u="[^"+t+a+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),a=n(7642),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,a=i();if(b(a))return w(a);f=setTimeout(x,(e=a-h,n=a-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?o(a(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),i=n(15125),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),a=n(4146),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,t(e,i,a),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,i,t(e,i,a))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},65798:function(e,t,n){var r=n(20256),i=n(82952),a=n(21401),o=n(33812);e.exports=function(e){return a(e)?r(o(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,n){var r=n(51704),i=n(29259),a=n(4795),o=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(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},11618:function(e,t,n){var r=n(45981),i=n(83559),a=n(66188),o=n(75304);e.exports=function(e,t,n){return(e=a(e),void 0===(t=n?void 0:t))?i(e)?o(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,a=0;a"+t.value+""+i[a].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[a].type||9===i[a].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[a].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[a].type})):12===i[a].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[a].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return a[0].value>1e15?"Infinity":parseFloat(a[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],a="(prefers-color-scheme: dark)",o="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[j,k]=(0,r.useState)(()=>p(l)),E=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let a=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...E),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),C=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),_=(0,r.useCallback)(t=>{k(v(t)),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(_),_(e),()=>e.removeListener(_)},[_]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let O=(0,r.useMemo)(()=>({theme:x,setTheme:C,forcedTheme:e,resolvedTheme:"system"===x?j:x,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[x,C,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:E,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.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,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||a?`c.add(${o})`:"null":a&&(l+=`d[s](n,${o})`),l},v=e?`!function(){${h}${m(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',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)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||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(a)),e.matches?"dark":"light")},93542:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(42351)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(83391)}])},35599:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(97479),a=n(82851),o=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,o.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,o.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,o.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:a,...s}=e,l=(0,o.U8)(e=>e.search);return(0,r.jsx)(o.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==a.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:a.label}),...s})}n(2784)},91492:function(e,t,n){"use strict";n.d(t,{F:function(){return g},A:function(){return y}});var r=n(52322),i=n(97479),a=n(61020),o=n(57016),s=n(98334),l=n(5632),u=n(76838),c=n(56328),d=n(82229),f=n(94613),h=n(98131),p=n(30291),m=n(97112),v=n(2784);function g(e){let{id:t,trigger:n,hostAddress:o,hostKey:s,contentProps:l,buttonProps:u}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...l,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{id:t,hostAddress:o,hostKey:s})})}function y(e){var t,n;let{id:g,hostAddress:y,hostKey:b}=e,x=(0,l.useRouter)(),{setFilter:w,resetFilters:j}=(0,c.l)(),{setFilter:k,resetFilters:E}=(0,u.G)(),S=(0,o.uf)(),C=(0,o.s2)(),_=(0,f.l)(),O=(0,d.I)(),M=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,o.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following contract:"}),(0,r.jsxs)(i.nvN,{size:"14",font:"mono",children:[n.slice(0,20),"..."]})]}),onConfirm:async()=>{let e=await t.delete({params:{id:n}});e.error&&(0,i.OHV)({title:"Error deleting contract",body:e.error}),(0,i.OPV)({title:"Deleted contract"})}}),[e,t])}();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{j(),w({id:"addressContains",value:y,label:"Address contains ".concat(y)}),x.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{E(),k((0,h.e)(y)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>{E(),k((0,p.V)(b)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>_([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>_([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host address to blocklist"]}),(null===(n=C.data)||void 0===n?void 0:n.find(e=>e===b))?(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>O([],[b]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>O([b],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>(0,i.vQq)(b,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},14613:function(e,t,n){"use strict";n.d(t,{F:function(){return N}});var r=n(52322),i=n(97479),a=n(35599);let o={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.NrH)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL0)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.ivg)(1);return e.endTimet}},{id:"expiry",value:"expired",label:"expired",fn:e=>{let t=new Date().getTime();return e.endTime(0,r.jsx)(a.WD,{currentPage:t,commandPage:o,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let u={namespace:"contracts/filterFormationDate",label:"Contracts filter by formation date"},c=[{id:"formationDate",value:"day",label:"formed in the last day",fn:e=>{let t=new Date().getTime()-(0,i.NrH)(1);return e.startTime>=t}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.startTime>=t}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.startTime>=t}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.startTime>=t}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.startTime>=t}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.startTime>=t}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(a.WD,{currentPage:t,commandPage:u,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let f={namespace:"contracts/filterRenewDate",label:"Contracts filter by renew date"},h=[{id:"renewDate",value:"day",label:"renewed in the last day",fn:e=>{let t=new Date().getTime()-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=t}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(a.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(97112),v=n(98131);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),o=(0,v.e)("");return(0,r.jsx)(a.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:o.label})})}function b(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var x=n(30291);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,x.V)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),o("contractsFilterPublicKey")},children:i.label})})}function k(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}var E=n(11948);let S={namespace:"contracts/filterContractSet",label:"Contracts filter by contract set"};function C(e){let{select:t,currentPage:n}=e,i=(0,E.l)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:S,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:S,onSelect:()=>{t(),o("contractsFilterContractSet")},children:i.label})})}function _(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterContractSet")},children:S.label})}function O(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(C,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let M={namespace:"contracts",label:"Contracts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{currentPage:t,parentPage:n,commandPage:M,select:s}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:M,select:s}),(0,r.jsx)(_,{currentPage:t,parentPage:n,commandPage:M,select:s}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:M,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:M,onSelect:()=>{i(o)},children:o.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:M,onSelect:()=>{i(f)},children:f.label})]})}var A=n(76838),P=n(2784);function N(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,A.G)(),l=(0,P.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(O,{currentPage:t,select:l})]})}},98131:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(97479),a=n(76838),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},11948:function(e,t,n){"use strict";n.d(t,{X:function(){return u},l:function(){return l}});var r=n(52322),i=n(97479),a=n(76838),o=n(63955),s=n(2784);function l(e){return{id:"contractSetsInclude",value:e,label:"contract in set ".concat(e),fn:t=>{var n;return null===(n=t.contractSets)||void 0===n?void 0:n.includes(e)}}}function u(e){var t;let{trigger:n,open:u,onOpenChange:c}=e,{setFilter:d,contractSets:f}=(0,a.G)(),h={contractSet:null===(t=f.data)||void 0===t?void 0:t[0]},p=(0,o.cI)({mode:"all",defaultValues:h}),{handleOpenChange:m,closeAndReset:v}=(0,i.t0Y)({form:p,onOpenChange:c,defaultValues:h}),g=function(e){let{contractSets:t}=e;return{contractSet:{type:"select",title:"Contract set",options:t.map(e=>({label:e,value:e})),placeholder:"autopilot",validation:{required:"required"}}}}({contractSets:f.data||[]}),y=(0,s.useCallback)(e=>{d(l(e.contractSet)),v()},[d,v]),b=(0,i.WsO)(g);return(0,r.jsx)(i.VqE,{trigger:n,title:"Filter by contract set",open:u,onOpenChange:m,contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(y,b),children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.WyV,{form:p,fields:g,name:"contractSet"}),(0,r.jsx)(i.ZqQ,{form:p,size:"medium",children:"Filter"})]})})})}},30291:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(97479),a=n(76838),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},90721:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(97479),a=n(61020),o=n(97112);function s(e){let{name:t}=e,{openDialog:n}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{n("filesBucketPolicy",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Zbu,{})}),"Change policy"]}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete bucket"]})]})}},23094:function(e,t,n){"use strict";n.d(t,{z:function(){return f}});var r=n(52322),i=n(97479),a=n(18121),o=n(57016),s=n(82851),l=n(67693),u=n(70899);function c(e){var t,n,s,c;let{path:f,isUploading:h,type:p,health:m,size:v}=e,g="directory"===p,y=(0,o.wy)({disabled:h||g,params:(0,u.W0)(f),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:b,label:x}=(0,a.B)({health:m,size:v,isDirectory:g});if(y.isValidating)return(0,r.jsx)(d,{displayHealth:b,label:x,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=y.data)||void 0===t?void 0:t.object))return(0,r.jsx)(d,{displayHealth:b,label:x,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let w=(0,l.Z)((null===(n=y.data.object.slabs)||void 0===n?void 0:n.map(e=>{var t;return{...e.slab,key:"".concat(e.offset).concat(e.length).concat(e.slab.key),isPartialSlab:!!e.slab.shards,contractSetShards:(null===(t=e.slab.shards)||void 0===t?void 0:t.length)?function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n))+n;return i<=0?0:i>t?t:i}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health}):0}}))||[],"contractSetShards");return(0,r.jsx)(d,{className:w.length>15?"h-[300px]":"",displayHealth:b,label:x,minShards:null===(s=w.find(e=>e.minShards))||void 0===s?void 0:s.minShards,totalShards:null===(c=w.find(e=>e.shards))||void 0===c?void 0:c.shards.length,children:w.map(e=>(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",className:"flex items-center",font:"mono",children:["Slab ",e.key.replace("key:","").slice(0,4),":"]}),(0,r.jsx)(i.xvT,{size:"12",className:"flex items-center",children:e.isPartialSlab?"".concat(e.contractSetShards,"/").concat(e.shards.length):"partial slab"})]},e.key))})}function d(e){let{className:t,displayHealth:n,label:a,children:o,minShards:l,totalShards:u}=e;return(0,r.jsxs)("div",{className:(0,s.cx)("z-10 flex flex-col pb-1 -mx-1 overflow-hidden",t),children:[(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:a}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),l&&u?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[l," of ",u]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:o})})})]})}function f(e){let{name:t,isUploading:n,type:o,health:s,size:l}=e,u="directory"===o,{displayHealth:d,label:f,color:h,icon:p}=(0,a.B)({health:s,size:l,isDirectory:u}),m="".concat((100*d).toFixed(0),"%");return u?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:f}),(0,r.jsx)(i.xvT,{size:"12",children:m})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),children:(0,r.jsx)(c,{...e})})}},84301:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(52322),i=n(97479),a=n(61020),o=n(97112),s=n(2784),l=n(57016),u=n(21487),c=n(70899);function d(e){let{path:t,size:n}=e,d=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,l.xw)();return(0,s.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,u.vW)(o)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:{...(0,c.W0)(n),batch:!0}});e.error&&(0,i.OHV)({title:"Error deleting directory",body:e.error}),(0,i.OPV)({title:"Deleted directory"})}}),[e,t])}(),{openDialog:f}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.ROc,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{f("fileRename",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename directory"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{d(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete directory"]})]})}},87023:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(52322),i=n(97479),a=n(61020),o=n(97112),s=n(2784),l=n(57016),u=n(70899);function c(e){let{path:t}=e,n=(0,l.wy)({params:(0,u.W0)(t),config:{swr:{dedupingInterval:5e3}}});return(0,r.jsxs)(i.Xiv,{disabled:!n.data,onSelect:()=>{n.data&&(0,i.vQq)(JSON.stringify(n.data.object,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy metadata"]})}var d=n(41736);function f(e){let{path:t}=e,{downloadFiles:n,getFileUrl:f,navigateToModeSpecificFiltering:h}=(0,d.b)(),p=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,l.xw)();return(0,s.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following file:"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:(0,u.W0)(n)});e.error&&(0,i.OHV)({title:"Error deleting file",body:e.error}),(0,i.OPV)({title:"Deleted file"})}}),[e,t])}(),{openDialog:m}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.c_L,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{n([t])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>m("fileRename",t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>p(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Filter"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{h(t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter by file name"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(t,"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file path"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)((0,u.vt)(t),"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file name"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(f(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)({text:f(t,!0),title:"Copied authenticated file URL to clipboard",body:(0,r.jsxs)(r.Fragment,{children:["The authenticated URL contains the ",(0,r.jsx)(i.EKh,{children:"renterd"})," ","password, be careful when pasting or sharing the URL."]}),icon:(0,r.jsx)(a.KTM,{className:"text-amber-600"}),options:{duration:1e5}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(c,{path:t})]})}},42770:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(76838),i=n(91157);function a(){var e;let t=(0,i.w)(),{datasetCount:n,isLoading:a}=(0,r.G)();return{active:t.data&&!a&&n{e.stopPropagation()}},children:(0,r.jsx)(g,{address:t,publicKey:n})})}function g(e){var t,n;let{address:v,publicKey:g}=e,y=(0,l.useRouter)(),{setFilter:b,resetFilters:x}=(0,c.l)(),{setFilter:w,resetFilters:j}=(0,u.G)(),k=(0,o.uf)(),E=(0,o.s2)(),S=(0,f.l)(),C=(0,d.I)(),_=(0,o.f$)(),O=(0,o.wW)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{x(),b({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),y.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{x(),b((0,m.K)(g)),y.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{j(),w((0,h.e)(v)),y.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,p.V)(g)),y.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{_.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a._Eq,{})}),"Rescan host"]}),v&&(null===(t=k.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>S([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>S([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add address to blocklist"]}),(null===(n=E.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>O.post({params:{publicKey:g}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.xkX,{})}),"Reset lost sector count"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{(0,i.vQq)(v,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},37769:function(e,t,n){"use strict";n.d(t,{T:function(){return x},N:function(){return b}});var r=n(52322),i=n(2784),a=n(97479),o=n(21487),s=n(6391),l=n.n(s);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(l())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,o.Vz)(new(l())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)),{fixed:0}),"/TB"),i="".concat((0,o.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,o.vW)(t.settings.remainingstorage)," / ").concat((0,o.vW)(t.settings.totalstorage)," available");return"".concat((0,a.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(s)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),a=(0,i.useCallback)(()=>{r({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return d("resize",a),f(()=>{a()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let a=(0,i.useRef)(t);f(()=>{a.current=t},[t]),(0,i.useEffect)(()=>{var t;let i=null!==(t=null==n?void 0:n.current)&&void 0!==t?t:window;if(!(i&&i.addEventListener))return;let o=e=>a.current(e);return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[e,n,r])},f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,h=n(10363),p=n(25237);let m=n.n(p)()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(936)]).then(n.bind(n,6936)),{loadableGenerated:{webpack:()=>[6936]},ssr:!1}),v=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(m,{...e,forwardRef:t})});var g=n(10569),y=n(82494);let b={moveToLocation:(e,t)=>null};function x(e){let{activeHost:t,hosts:n,onMount:a,onHostClick:o,onHostHover:s}=e,d=(0,y.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),p=(0,i.useRef)(b),m=(0,i.useCallback)((e,t)=>{var n;e&&(null===(n=f.current)||void 0===n||n.pointOfView({lat:e[0]-8,lng:e[1],altitude:t||1.5},700))},[]);(0,i.useEffect)(()=>{p.current.moveToLocation=m},[m]),(0,h.Q5)(()=>{var e;if(!f.current)return!1;m((null==t?void 0:t.location)||[48.8323,2.4075],1.5);let n=null===(e=f.current)||void 0===e?void 0:e.scene().children.find(e=>"DirectionalLight"===e.type);return n&&(n.intensity=10),!0}),(0,i.useEffect)(()=>{a&&a(p.current)},[]);let[x,{height:w,width:j}]=c(),k=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:x,className:"w-full h-full",children:(0,r.jsx)(v,{ref:f,width:j,height:w,backgroundColor:"rgba(0,0,0,0)",globeImageUrl:"/_next/static/media/earth-dark-contrast.bf7081fc.png",bumpImageUrl:"/_next/static/media/earth-topology.e385a70e.png",arcsData:[],atmosphereColor:"rgba(0,0,0,0)",atmosphereAltitude:.16,animateIn:!1,arcLabel:e=>{var t;return u({host:e.dst,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},arcStartLat:e=>+e.src.location[0],arcStartLng:e=>+e.src.location[1],arcEndLat:e=>+e.dst.location[0],arcEndLng:e=>+e.dst.location[1],arcDashLength:.75,arcAltitude:0,arcDashGap:.1,arcDashInitialGap:()=>Math.random(),arcDashAnimateTime:5e3,arcColor:e=>t&&(e.dst.publicKey===t.publicKey||e.src.publicKey===t.publicKey)?["rgba(187, 229, 201, 0.25)","rgba(187, 229, 201, 0.25)"]:["rgba(187, 229, 201, 0.10)","rgba(187, 229, 201, 0.10)"],arcsTransitionDuration:0,pointsData:k,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>{var t;return u({host:e,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},pointAltitude:e=>(t&&e.publicKey===(null==t?void 0:t.publicKey)||e.activeContractsCount.gt(0),.1),pointsTransitionDuration:0,pointColor:e=>{let{colorHex:n}=(0,g.Kg)(e);return t&&e.publicKey!==(null==t?void 0:t.publicKey)?function(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(.2,")")}(n,0):n},pointRadius:e=>(e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==o||o(e.publicKey,e.location))},pointsMerge:!1})})}},42213:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(35599),a=n(97112),o=n(10532);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,a.Rh)(),u=(0,o.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:o,commandPage:l}=e,{openDialog:u}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let v={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},g=[{id:"usabilityMode",value:"usable",label:"usable"},{id:"usabilityMode",value:"unusable",label:"unusable"}];function y(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:v,children:g.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var b=n(46081),x=n(23771);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,a.Rh)(),s=(0,x.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),o("hostsFilterPublicKey")},children:s.label})})}function k(e){let{select:t,currentPage:n,parentPage:o,commandPage:s}=e,{openDialog:l}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===i.status&&(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let S={namespace:"hosts",label:"Hosts"};function C(e){let{currentPage:t,parentPage:n,pushPage:a,select:o}=e,{autopilot:s}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(v)},children:v.label}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(c)},children:c.label})]})}var _=n(56328),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,_.l)(),l=(0,O.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,pushPage:i,select:l})]})}},10532:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(97479),a=n(56328),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},23771:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(97479),a=n(56328),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},26731:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(97479),a=n(2784),o=n(34864);function s(e){let{loaded:t,size:n,status:s}=e,l=(0,a.useMemo)(()=>{var e;return void 0!==(e={loaded:t,size:n}).loaded?e.loaded/e.size:1},[t,n]);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.kod,{variant:"accent",value:t,max:n,className:1===l?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,o.Z)(s)}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*l).toFixed(0),"%"]})]})]})}},98334:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return a}});var r=n(57016);let i={home:"/",buckets:{index:"/buckets",files:"/buckets/[bucket]/files/[path]",uploads:"/buckets/[bucket]/uploads"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},keys:{index:"/keys"},alerts:{index:"/alerts"},node:{index:"/node"},login:"/login"},a=r.HI},9338:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(97479).XBW)(15)},88385:function(e,t,n){"use strict";n.d(t,{b:function(){return D},Z:function(){return R}});var r=n(52322),i=n(97479),a=n(5632),o=n(2784);let s=["actions","overview","data","time"],l=[];var u=n(57016),c=n(17448),d=n(41736),f=n(97112),h=n(70899),p=n(6391),m=n.n(p),v=n(61020),g=n(91492);function y(e){let{id:t,trigger:n,contentProps:a,buttonProps:o}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...o,children:(0,r.jsx)(v.EMN,{})}),contentProps:{align:"start",...a,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(b,{id:t})})}function b(e){var t,n;let{id:i}=e,a=(0,u.cq)({params:{id:i}});return(0,r.jsx)(g.A,{id:i,hostAddress:null===(t=a.data)||void 0===t?void 0:t.hostIP,hostKey:null===(n=a.data)||void 0===n?void 0:n.hostKey})}function x(e){let{id:t,contentProps:n,buttonProps:a,trigger:o}=e,s=(0,u.cJ)();return(0,r.jsxs)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{icon:"hover",variant:"ghost",...a,children:(0,r.jsx)(v.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Account ",t.slice(0,20),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>s.post({params:{id:t}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(v.xkX,{})}),"Reset account drift"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(t,"account ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(v.olJ,{})}),"Account ID"]})]})}let w={origin:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"origin"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},contractID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(y,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account ID",contextMenu:(0,r.jsx)(x,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,u.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(c.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){var t;let{value:n}=e,{setActiveDirectory:a}=(0,d.b)(),{closeDialog:o}=(0,f.Rh)(),s=(0,u.og)({params:{key:n},config:{swr:{revalidateOnFocus:!1}}});return(0,r.jsxs)("div",{className:"flex flex-col gap-2 max-h-[100px]",children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"slab key"}),(0,r.jsx)(i.XxW,{size:"12",value:n,label:"slab key"})]}),!!(null===(t=s.data)||void 0===t?void 0:t.length)&&(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:s.data.map(e=>(0,r.jsx)(i.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{a(()=>(0,h.gD)(e.name)),o()},children:e.name},e.name))})})]})}},added:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"added"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},removed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"removed"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},migrationsInterrupted:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"migrations interrupted"}),(0,r.jsx)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:t?"yes":"no"})]})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(t)})]})}},balance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(t)})]})}},address:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(i.XxW,{size:"12",value:t,type:"address"})]})}},account:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account",contextMenu:(0,r.jsx)(x,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},lostSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"lost sectors"}),(0,r.jsx)(i.m2c,{size:"12",variant:"value",value:new(m())(t),format:e=>e.toString()})]})}}};function j(e){let{hostKey:t,contentProps:n,buttonProps:a,trigger:o}=e;return(0,r.jsx)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(v.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(k,{hostKey:t})})}function k(e){var t;let{hostKey:n}=e,i=(0,u.$)({params:{hostKey:n}});return(0,r.jsx)(c.i,{address:null===(t=i.data)||void 0===t?void 0:t.netAddress,publicKey:n})}var E=n(21487),S=n(32998),C=n(82851),_=n(28356);function O(e){let{setAdditions:t,setRemovals:n}=e,a=(0,o.useMemo)(()=>(0,_.Z)([...Object.keys(t),...Object.keys(n)]).map(e=>{var r,i,a,o;let s=(null===(r=t[e])||void 0===r?void 0:r.additions)||[],l=(null===(i=n[e])||void 0===i?void 0:i.removals)||[];return{contractId:e,hostKey:(null===(a=t[e])||void 0===a?void 0:a.hostKey)||(null===(o=n[e])||void 0===o?void 0:o.hostKey),events:[...s.map(e=>({type:"addition",size:e.size,time:e.time})),...l.map(e=>({type:"removal",size:e.size,time:e.time,reasons:e.reasons}))].sort((e,t)=>new Date(e.time).getTime()e.events[0].sizea.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[a]),l=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"removal"===t[0].type}),[a]),u=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"addition"===t[0].type}),[a]),c=(0,o.useMemo)(()=>l.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[l]),d=(0,o.useMemo)(()=>c/s*100,[c,s]);return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center pr-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract set changes"}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)(i.ua7,{content:"".concat((0,E.vW)(c)," of ").concat((0,E.vW)(s)," contract size removed"),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:["churn: ",d.toFixed(2),"%"]}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:["(",(0,E.vW)(c)," / ",(0,E.vW)(s),")"]})]})}),(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.ua7,{content:"".concat(u.length," contracts added"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"green",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(v.aXP,{}),u.length]})}),(0,r.jsx)(i.ua7,{content:"".concat(l.length," contracts removed"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"red",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(v.eOF,{}),l.length]})})]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-3 mb-2",children:a.map((e,t)=>{let{contractId:n,hostKey:i,events:a}=e;return(0,r.jsx)(M,{contractId:n,hostKey:i,events:a,i:t},n+i)})})]})}function M(e){let{contractId:t,hostKey:n,events:a,i:o}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-[3px]",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center px-[3px]",children:[(0,r.jsxs)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:[o+1,"."]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract"}),(0,r.jsx)(i.XxW,{size:"12",value:t,contextMenu:(0,r.jsx)(y,{id:t,buttonProps:{size:"none"},contentProps:{align:"end"}})})]}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host"}),(0,r.jsx)(i.XxW,{size:"12",value:n,label:"host key",contextMenu:(0,r.jsx)(j,{hostKey:n,buttonProps:{size:"none"},contentProps:{align:"end"}})})]})]}),a.map((e,t)=>{let{type:n,reasons:a,size:o,time:s}=e;return(0,r.jsx)(i.ua7,{content:"addition"===n?"added":"removed: ".concat(a),align:"start",side:"bottom",children:(0,r.jsxs)("div",{className:(0,C.cx)("flex gap-2 justify-between mr-2 pr-1",0===t?"addition"===n?"bg-green-400/20":"bg-red-400/20":"opacity-50"),children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center overflow-hidden",children:[(0,r.jsx)(i.xvT,{size:"12",color:"addition"===n?"green":"red",children:"addition"===n?(0,r.jsx)(v.aXP,{}):(0,r.jsx)(v.eOF,{})}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:a})]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"time"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,S.Z)(new Date(s),new Date)})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"size"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,E.vW)(o)})]})]})},n+a+s)})]})}var T=n(98358);let A=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pr-4 [&+*]:!pl-0",rowCellClassName:"align-top pt-[19px]",render:e=>{let{data:{dismiss:t}}=e;return(0,r.jsx)(i.eQh,{children:(0,r.jsx)(i.zxk,{tip:"Dismiss alert",onClick:t,children:(0,r.jsx)(T.NlZ,{})})})}},{id:"overview",label:"overview",category:"general",contentClassName:"min-w-[200px] max-w-[500px]",rowCellClassName:"align-top pt-[5px]",render:e=>{let{data:{message:t,severity:n,data:a}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 py-4",children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.Cts,{variant:"error"===n||"critical"===n?"red":"warning"===n?"amber":"gray",size:"small",children:n}),(0,r.jsx)(i.xvT,{weight:"medium",noWrap:!0,children:t})]}),a.hint&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.hint}),a.error&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.error})]})}},{id:"data",label:"data",contentClassName:"w-[500px]",rowCellClassName:"align-top",category:"general",render:function(e){let{data:{data:t}}=e,n=(0,o.useMemo)(()=>Object.keys(w).map(e=>{let n=t[e];return null!=n&&("object"!=typeof n||Object.keys(n).length)?{key:e,value:n}:null}).filter(Boolean),[t]),a=(0,o.useMemo)(()=>t.setAdditions,[t]),s=(0,o.useMemo)(()=>t.setRemovals,[t]);return(0,r.jsx)("div",{className:"py-4 w-full",children:(0,r.jsxs)(i.s_4,{color:"subtle",className:"flex flex-col gap-1 w-full py-1",children:[(a||s)&&(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(O,{setAdditions:a,setRemovals:s})}),n.length>=1&&(0,r.jsx)(i.Z0O,{color:"verySubtle",className:"w-full"})]},"setChanges"),n.map((e,t)=>{var a;let{key:s,value:l}=e,u=null==w?void 0:null===(a=w[s])||void 0===a?void 0:a.render;return u?(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(u,{value:l},s)}),n.length>1&&t{let{data:{timestamp:t}}=e;return(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:(0,S.Z)(new Date(t),new Date)})}}];var P=n(9338);let N=(0,o.createContext)({}),R=()=>(0,o.useContext)(N);function D(e){let{children:t}=e,n=function(){var e;let t=(0,a.useRouter)(),n=Number(t.query.limit||50),r=Number(t.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p}=(0,i.Uu5)(),m=(0,o.useCallback)(e=>{e?d({id:"severity",value:e,label:e}):f("severity")},[d,f]),v=null===(e=c.find(e=>"severity"===e.id))||void 0===e?void 0:e.value,g=(0,o.useMemo)(()=>{let e={limit:n,offset:r};return v&&(e.severity=v),e},[n,r,v]),y=(0,u.Z7)({params:g,config:{swr:{refreshInterval:P.h}}}),b=(0,u.Uy)(),x=(0,o.useCallback)(async e=>{let t=await b.post({payload:[e]});t.error?(0,i.OHV)({title:"Error dismissing alert",body:t.error}):(0,i.OPV)({title:"Alert has been dismissed."})},[b]),w=(0,o.useCallback)(async e=>{let t=await b.post({payload:e});t.error?(0,i.OHV)({title:"Error dismissing alerts",body:t.error}):(0,i.OPV)({title:"Selected alerts have been dismissed"})},[b]),j=(0,o.useMemo)(()=>{var e,t;return y.data?(null===(t=y.data)||void 0===t?void 0:null===(e=t.alerts)||void 0===e?void 0:e.map(e=>({id:e.id,severity:e.severity,message:e.message,timestamp:e.timestamp,data:e.data,dismiss:()=>x(e.id)})))||[]:null},[y.data,x]),{configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:_,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/alerts",{columns:A,columnsDefaultVisible:s,sortOptions:l,defaultSortField:""}),Z=(0,o.useMemo)(()=>A.filter(e=>e.fixed||E.includes(e.id)),[E]),F=(0,i.c2j)(j,y.isValidating,y.error,c),z=(0,o.useMemo)(()=>({}),[]),V=(0,o.useMemo)(()=>{var e,t;return{...null===(e=y.data)||void 0===e?void 0:e.totals,all:Object.entries((null===(t=y.data)||void 0===t?void 0:t.totals)||{}).reduce((e,t)=>{let[n,r]=t;return e+r},0)}},[y.data]);return{dataState:F,limit:n,offset:r,isLoading:y.isLoading,error:y.error,pageCount:(null==j?void 0:j.length)||0,totals:V,columns:Z,datasetPage:j,cellContext:z,configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:_,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:N,sortField:R,filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p,sortDirection:D,resetDefaultColumnVisibility:L,dismissOne:x,dismissMany:w,severityFilter:v,setSeverityFilter:m}}();return(0,r.jsx)(N.Provider,{value:n,children:t})}},46081:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),a=n(97479),o=n(57016);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n={autopilot:function(){let e=(0,o.YX)({config:{swr:{dedupingInterval:(0,a.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,a.XBW)(60):(0,a.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else{if(e.isValidating)return;e.error?n("off"):e.data&&n("object"==typeof e.data?"on":"off")}},[e]),{status:t,state:e}}()};return(0,r.jsx)(s.Provider,{value:n,children:t})}},49889:function(e,t,n){"use strict";n.d(t,{iV:function(){return L},ZR:function(){return D}});var r=n(52322),i=n(2784),a=n(97479),o=n(21487),s=n(6391),l=n.n(s);let u={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,prune:!1,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0},c={defaultContractSet:""},d={uploadPackingEnabled:!0},f={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},h={...u,...c,...d,...f,minShards:void 0,totalShards:void 0};function p(e){return{storageTB:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,allowanceMonth:void 0,..."Mainnet"===e?{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(l())(336),minRecentScanFailures:new(l())(10),prune:!0}:{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(12),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(l())(336),minRecentScanFailures:new(l())(10),prune:!0}}}let m={...c,defaultContractSet:"autopilot"},v={...d},g={...f},y=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function b(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||m.defaultContractSet;return{...t,default:n}}function x(e){let{hasBeenConfigured:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:s,redundancy:d,averages:f}=e;return{...function(e){if(!e)return u;let t=e.contracts.set,n=(0,o.ll)(j(new(l())(e.contracts.allowance),e.contracts.period),6),r=new(l())(e.contracts.amount),i=new(l())((0,o.x5)(e.contracts.period)),s=new(l())((0,o.x5)(e.contracts.renewWindow)),c=new(l())((0,a.y70)(j((0,o.JW)(e.contracts.download),e.contracts.period),2));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:s,downloadTBMonth:c,uploadTBMonth:new(l())((0,a.y70)(j((0,o.JW)(e.contracts.upload),e.contracts.period),2)),storageTB:(0,o.JW)(new(l())(e.contracts.storage)),prune:e.contracts.prune,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(l())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(l())(e.hosts.minRecentScanFailures)}}(n),...r?{defaultContractSet:r.default}:c,uploadPackingEnabled:i.enabled,...function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e,i=function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e;return r||!n?t:{...t,maxStoragePrice:n.settings.storage_price,maxDownloadPrice:new(l())(n.settings.download_price).times((0,o.xf)(1)).toString(),maxUploadPrice:new(l())(n.settings.upload_price).times((0,o.xf)(1)).toString()}}({gouging:t,averages:n,hasBeenConfigured:r});return{maxStoragePriceTBMonth:(0,o.ll)(new(l())(i.maxStoragePrice).times((0,o.S5)(1)).times((0,o.xf)(1)),6),maxUploadPriceTB:(0,o.ll)(new(l())(i.maxUploadPrice),6),maxDownloadPriceTB:(0,o.ll)(i.maxDownloadPrice,6),maxContractPrice:(0,o.ll)(i.maxContractPrice,6),maxRpcPriceMillion:(0,o.ll)(new(l())(i.maxRPCPrice).times(1e6),6),hostBlockHeightLeeway:new(l())(i.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(l())((0,a.AEA)(i.minPriceTableValidity)),minAccountExpiryDays:new(l())((0,a.okB)(i.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,o.ll)(i.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(l())(i.migrationSurchargeMultiplier)}}({gouging:s,averages:f,hasBeenConfigured:t}),minShards:new(l())(d.minShards),totalShards:new(l())(d.totalShards)}}function w(e,t){let n=(0,o.mv)(t.toNumber());return e.times(n).div((0,o.S5)(1))}function j(e,t){return e.div(t).times((0,o.S5)(1))}var k=n(57016),E=n(92762),S=n(91332);function C(){let[e,t]=(0,E.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,S.a)({config:{swr:{errorRetryCount:0}}}),o=(0,k.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await o.put({params:{key:"contractset"},payload:b({defaultContractSet:t},n.data)}),n.mutate(),(0,a.OPV)({title:"Default contract set updated",body:(0,r.jsxs)(r.Fragment,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(a.EKh,{children:t}),"."]})}))}catch(e){(0,a.OHV)({title:"Error updating default contract set",body:e.message}),console.log(e)}},[n.data,o,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}var _=n(10363),O=n(91157),M=n(82494),T=n(46081),A=n(63955),P=n(315);function N(e){let{isAutopilotEnabled:t,advancedDefaults:n,showAdvanced:i,maxStoragePriceTBMonth:s,maxUploadPriceTB:u,minShards:c,totalShards:d,redundancyMultiplier:f,storageAverage:h,uploadAverage:p,downloadAverage:m,contractAverage:v}=e;return{storageTB:{type:"number",category:"storage",title:"Expected storage",description:(0,r.jsx)(r.Fragment,{children:"The amount of storage you would like to rent in TB."}),units:"TB",hidden:!t,validation:t?{required:"required"}:{}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount of Siacoin you would like to spend per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!t||!i,validation:t&&i?{required:"required"}:{}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==n?void 0:n.periodWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.periodWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},renewWindowWeeks:{type:"number",category:"storage",title:"Renew window",description:(0,r.jsx)(r.Fragment,{children:"The number of weeks prior to contract expiration that Sia will attempt to renew your contracts."}),units:"weeks",decimalsLimit:6,suggestion:null==n?void 0:n.renewWindowWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.renewWindowWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},amountHosts:{type:"number",category:"storage",title:"Hosts",description:(0,r.jsx)(r.Fragment,{children:"The number of hosts to create contracts with."}),units:"hosts",decimalsLimit:0,suggestion:null==n?void 0:n.amountHosts,suggestionTip:"Typically ".concat(null==n?void 0:n.amountHosts," hosts."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},autopilotContractSet:{type:"text",category:"storage",title:"Contract set",description:(0,r.jsx)(r.Fragment,{children:"The contract set that autopilot should use. This should typically be the same as the default contract set."}),placeholder:null==n?void 0:n.autopilotContractSet,suggestion:null==n?void 0:n.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(a.EKh,{children:null==n?void 0:n.autopilotContractSet}),"."]}),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},prune:{type:"boolean",category:"storage",title:"Prune sector roots",description:(0,r.jsx)(r.Fragment,{children:"When enabled, autopilot will try to prune deleted sector roots from contracts one contract at a time, for a max duration of 10 minutes per contract. For old hosts this process takes quite a while, while for new hosts it is fast. For new hosts pruning effectively deletes data from the contract, allowing the renter to stop paying for storage they are not using."}),suggestion:null==n?void 0:n.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(a.EKh,{children:null==n?void 0:n.prune}),"."]}),hidden:!t||!i,validation:{}},allowRedundantIPs:{type:"boolean",category:"hosts",title:"Redundant IPs",description:(0,r.jsx)(r.Fragment,{children:"Whether or not to allow forming contracts with multiple hosts in the same IP subnet. The subnets used are /16 for IPv4, and /64 for IPv6."}),suggestion:null==n?void 0:n.allowRedundantIPs,suggestionTip:"Defaults to ".concat((null==n?void 0:n.allowRedundantIPs)?"on":"off","."),hidden:!t||!i,validation:{}},maxDowntimeHours:{type:"number",category:"hosts",title:"Max downtime",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of host downtime that autopilot will tolerate in hours."}),units:"hours",suggestion:null==n?void 0:n.maxDowntimeHours,suggestionTip:"Defaults to ".concat(null==n?void 0:n.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,a.y70)(new(l())((0,a.XAn)(null==n?void 0:n.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},minRecentScanFailures:{type:"number",category:"hosts",title:"Min recent scan failures",description:(0,r.jsx)(r.Fragment,{children:"The minimum number of recent scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:null==n?void 0:n.minRecentScanFailures,suggestionTip:"Defaults to ".concat(null==n?void 0:n.minRecentScanFailures.toNumber(),"."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:null==n?void 0:n.defaultContractSet,suggestion:null==n?void 0:n.defaultContractSet,suggestionTip:(0,r.jsx)(r.Fragment,{children:"Autopilot users will typically want to keep this the same as the autopilot contract set."}),description:(0,r.jsx)(r.Fragment,{children:"The default contract set is where data is uploaded to by default."}),hidden:!i,validation:i?{required:"required"}:{}},uploadPackingEnabled:{category:"uploadpacking",type:"boolean",title:"Upload packing",description:(0,r.jsx)(r.Fragment,{children:"Data on the Sia network is stored in 4MiB sectors. With the default 10 of 30 redundancy scheme, uploaded files are split into 40MiB chunks and encoded into 120MiB slabs. This means that storage is wasted on padding and files smaller than 40MiB still use 120MiB of space. The redundancy scheme can be configured, but unless all files are exactly 4MiB * the redundancy's minimum shards, there will always be wasted storage. Upload packing avoids this waste by buffering files and packing them together before they are uploaded to the network. This trades some performance for storage efficiency. It is also important to note that because buffered files are temporarily stored on disk they must be considered when backing up your renterd data."}),hidden:!i,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge to store 1 TB worth of data per month."}),units:"SC/TB/month",average:h,averageTip:"Averages provided by Sia Central.",after:function(){return s&&c&&d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(a.ua7,{align:"start",side:"bottom",content:(0,r.jsxs)(r.Fragment,{children:["Price per TB/month when factoring in the configured"," ",c," of ",d," redundancy."]}),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,r.jsx)(a.xvT,{className:"flex relative",children:(0,r.jsx)(P.RdX,{})}),(0,r.jsxs)(a.xvT,{size:"12",ellipsis:!0,children:[(0,o.Vz)((0,o.qN)(s).times(f),{fixed:0,dynamicUnits:!1}),"/TB/month with redundancy"]})]})})]}):null},decimalsLimitSc:6,validation:{required:"required"}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge for uploading 1 TB worth of data."}),units:"SC/TB",average:p,averageTip:"Averages provided by Sia Central.",after:function(){return u&&c&&d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(a.ua7,{align:"start",side:"bottom",content:(0,r.jsxs)(r.Fragment,{children:["Price per TB when factoring in the configured ",c," of"," ",d," redundancy."]}),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,r.jsx)(a.xvT,{className:"flex relative",children:(0,r.jsx)(P.RdX,{})}),(0,r.jsxs)(a.xvT,{size:"12",ellipsis:!0,children:[(0,o.Vz)((0,o.qN)(u).times(f),{fixed:0,dynamicUnits:!1}),"/TB with redundancy"]})]})})]}):null},decimalsLimitSc:6,validation:{required:"required"}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB."}),units:"SC/TB",average:m,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),average:v,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!i,validation:i?{required:"required"}:{}},maxRpcPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:!i,validation:i?{required:"required"}:{}},hostBlockHeightLeeway:{category:"gouging",type:"number",title:"Block height leeway",description:(0,r.jsx)(r.Fragment,{children:"The amount of blocks of leeway given to the host block height in the host's price table."}),units:"blocks",decimalsLimit:0,suggestion:null==n?void 0:n.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte(3)||"must be at least 3 blocks"}}:{}},minPriceTableValidityMinutes:{category:"gouging",type:"number",title:"Min price table validity",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `Validity` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte((0,a.GXN)(10))||"must be at least 10 seconds"}}:{}},minAccountExpiryDays:{category:"gouging",type:"number",title:"Min account expiry",units:"days",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `AccountExpiry` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte((0,a.XAn)(1))||"must be at least 1 hour"}}:{}},minMaxEphemeralAccountBalance:{category:"gouging",type:"siacoin",title:"Min max ephemeral account balance",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `MaxEphemeralAccountBalance` in the host's price settings."}),decimalsLimitSc:6,hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte(1)||"must be at least 1 SC"}}:{}},migrationSurchargeMultiplier:{category:"gouging",type:"number",title:"Migration surcharge multiplier",units:"* download price",placeholder:"10",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"Factor that gets applied on the max download price when trying to download migration-critical sectors from a host that is price gouging. For example, when migrating a low-health file, if the download is failing but would potentially succeed with looser gouging settings, we apply the migration surcharge multiplier to overpay on every sector download if it means saving the file/migration."}),suggestion:new(l())(10),suggestionTip:"The default multiplier is 10x the download price.",hidden:!i,validation:i?{required:"required"}:{}},minShards:{type:"number",category:"redundancy",title:"Min shards",description:(0,r.jsx)(r.Fragment,{children:"The min amount of shards needed to reconstruct a slab."}),suggestion:null==n?void 0:n.minShards,suggestionTip:"Typically ".concat(null==n?void 0:n.minShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gt(0)||"must be greater than 0"}}:{},trigger:["totalShards"]},totalShards:{type:"number",category:"redundancy",title:"Total shards",description:(0,r.jsx)(r.Fragment,{children:"The total amount of shards for each slab."}),suggestion:null==n?void 0:n.totalShards,suggestionTip:"Typically ".concat(null==n?void 0:n.totalShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{gteMinShards:(e,t)=>new(l())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(l())(e).lt(256)||"must be less than 256"}}:{}}}}let R=(0,i.createContext)({}),D=()=>(0,i.useContext)(R);function L(e){let{children:t}=e,n=function(){let{autopilotState:e,autopilot:t,contractSet:n,gouging:r,redundancy:s,uploadPacking:u,averages:c,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,appSettings:j,isAutopilotEnabled:P}=function(){var e,t;let n=(0,T.q)(),r="on"===n.autopilot.status,i=(0,k.e$)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),o=(0,S.a)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),s=(e={config:{swr:{refreshInterval:(0,a.sWj)(1)}}},(0,k.yu)({...e,params:{key:"gouging"}})),l=(0,O.w)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),u=(t={config:{swr:{refreshInterval:(0,a.sWj)(1)}}},(0,k.yu)({...t,params:{key:"uploadpacking"}})),c=(0,M.BF)({config:{swr:{revalidateOnFocus:!1}}}),{shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,syncDefaultContractSet:h}=C(),p=(0,_.Hv)();return{autopilotState:n.autopilot.state,autopilot:i,contractSet:o,gouging:s,redundancy:l,uploadPacking:u,averages:c,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,syncDefaultContractSet:h,appSettings:p,isAutopilotEnabled:r}}(),{form:R,maxStoragePriceTBMonth:D,maxDownloadPriceTB:L,maxUploadPriceTB:Z,storageTB:F,downloadTBMonth:z,uploadTBMonth:V,redundancyMultiplier:I,fields:B,showAdvanced:H,setShowAdvanced:U}=function(){let e=(0,A.cI)({mode:"all",defaultValues:h}),t=e.watch("maxStoragePriceTBMonth"),n=e.watch("maxDownloadPriceTB"),r=e.watch("maxUploadPriceTB"),a=e.watch("storageTB"),s=e.watch("downloadTBMonth"),u=e.watch("uploadTBMonth"),c=e.watch("minShards"),d=e.watch("totalShards"),f=(0,i.useMemo)(()=>{let e;return e=new(l())(1),c&&d&&!c.isZero()&&!d.isZero()&&d.gte(c)&&(e=d.div(c)),e},[c,d]),{averages:y,storageAverage:b,uploadAverage:x,downloadAverage:w,contractAverage:j}=function(){let e=(0,M.BF)({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.storage_price).times((0,o.S5)(1)).times((0,o.xf)(1)).toFixed(0)):void 0,[e.data]),n=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.upload_price).times((0,o.xf)(1)).toFixed(0)):void 0,[e.data]),r=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.download_price).times((0,o.xf)(1)).toFixed(0)):void 0,[e.data]),a=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.contract_price).toFixed(0)):void 0,[e.data]);return{averages:e,storageAverage:t,uploadAverage:n,downloadAverage:r,contractAverage:a}}(),S="on"===(0,T.q)().autopilot.status,[C,_]=(0,E.Z)("v0/config/showAdvanced",{defaultValue:!1}),O=(0,k.d_)();return{form:e,fields:(0,i.useMemo)(()=>{var e;let n=O.data?{...p(e=O.data.network),...m,...v,...g,..."Mainnet"===e?{minShards:new(l())(10),totalShards:new(l())(30)}:{minShards:new(l())(2),totalShards:new(l())(6)}}:void 0;return y.data?N({advancedDefaults:n,isAutopilotEnabled:S,showAdvanced:C,maxStoragePriceTBMonth:t,maxUploadPriceTB:r,redundancyMultiplier:f,storageAverage:b,uploadAverage:x,downloadAverage:w,contractAverage:j,minShards:c,totalShards:d}):N({advancedDefaults:n,isAutopilotEnabled:S,showAdvanced:C,maxStoragePriceTBMonth:t,maxUploadPriceTB:r,redundancyMultiplier:f,minShards:c,totalShards:d})},[O.data,S,C,y.data,b,x,w,j,f,t,r,c,d]),maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:a,downloadTBMonth:s,uploadTBMonth:u,minShards:c,totalShards:d,redundancyMultiplier:f,showAdvanced:C,setShowAdvanced:_}}(),W=(0,i.useMemo)(()=>({autopilotState:{data:e.data,error:e.error},autopilot:{data:t.data,error:t.error},contractSet:{data:n.data,error:n.error},uploadPacking:{data:u.data,error:u.error},gouging:{data:r.data,error:r.error},redundancy:{data:s.data,error:s.error},averages:{data:c.data,error:c.error},appSettings:{settings:{siaCentral:j.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,n.data,n.error,u.data,u.error,r.data,r.error,s.data,s.error,c.data,c.error,j.settings.siaCentral]),q=(0,i.useMemo)(()=>{var e;return!function(e){let{autopilotState:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:a,redundancy:o,averages:s,appSettings:l}=e;return!!(t.data&&o.data&&i.data&&a.data&&(n.data||n.error)&&(r.data||r.error)&&(!l.settings.siaCentral||s.data))}(W)?null:x({hasBeenConfigured:null===(e=W.autopilotState.data)||void 0===e?void 0:e.configured,autopilot:W.autopilot.data,contractSet:W.contractSet.data,uploadPacking:W.uploadPacking.data,gouging:W.gouging.data,averages:W.averages.data,redundancy:W.redundancy.data})},[W]),$=(0,i.useMemo)(()=>(function(e){let{uploadPacking:t,gouging:n,redundancy:r}=e;return!!(r.error||t.error||n.error)})(W),[W]),K=(0,i.useCallback)(async()=>{let i=await e.mutate(),o=P?await t.mutate():void 0,l=await n.mutate(),d=await r.mutate(),f=await s.mutate(),h=await u.mutate();if(!r||!s)return(0,a.OHV)({title:"Error fetching settings"}),null;R.reset(x({hasBeenConfigured:i.configured,autopilot:o,contractSet:l,uploadPacking:h,gouging:d,averages:c.data,redundancy:f}))},[R,e,P,t,n,r,u,s,c.data]);(0,a.u$d)({form:R,remoteValues:q}),(0,a.Z4p)({form:R,remoteValues:q});let{changeCount:Y}=(0,a.mYE)({form:R}),{canEstimate:X,estimatedSpendingPerMonth:G,estimatedSpendingPerTB:Q}=function(e){let{isAutopilotEnabled:t,redundancyMultiplier:n,maxStoragePriceTBMonth:r,storageTB:a,maxDownloadPriceTB:o,downloadTBMonth:s,maxUploadPriceTB:u,uploadTBMonth:c}=e,d=(0,i.useMemo)(()=>!!t&&(null==r?void 0:r.gt(0))&&(null==a?void 0:a.gt(0))&&(null==o?void 0:o.gt(0))&&(null==u?void 0:u.gt(0)),[t,r,a,o,u]),f=(0,i.useMemo)(()=>{if(!d)return new(l())(0);let e=(null==a?void 0:a.gt(0))?a:new(l())(0),t=(null==s?void 0:s.gt(0))?s:new(l())(0),i=(null==c?void 0:c.gt(0))?c:new(l())(0),f=(null==r?void 0:r.gt(0))?r:new(l())(0),h=(null==u?void 0:u.gt(0))?u:new(l())(0),p=(null==o?void 0:o.gt(0))?o:new(l())(0),m=f.times(n).times(e),v=p.times(t),g=h.times(n).times(i);return m.plus(v).plus(g)},[d,n,r,a,o,s,u,c]),h=(0,i.useMemo)(()=>d?f.div(a):new(l())(0),[d,f,a]);return{canEstimate:d,estimatedSpendingPerMonth:f,estimatedSpendingPerTB:h}}({isAutopilotEnabled:P,redundancyMultiplier:I,maxStoragePriceTBMonth:D,storageTB:F,maxDownloadPriceTB:L,downloadTBMonth:z,maxUploadPriceTB:Z,uploadTBMonth:V}),J=function(e){let{resources:t,estimatedSpendingPerMonth:n,isAutopilotEnabled:r,showAdvanced:s,revalidateAndResetForm:l}=e,u=(0,k.Bl)(),c=(0,k.oe)(),d=(0,k.KJ)(),f=(0,k.d_)(),{syncDefaultContractSet:h}=C(),m=(0,_.Tu)();return(0,i.useCallback)(async e=>{if(t.gouging.data&&t.redundancy.data&&f.data)try{let i={};r&&!s&&(i.allowanceMonth=n);let v={...e,...i},g=r&&!t.autopilot.data,x=r?await c.put({payload:function(e,t,n){let r={...p(e),...y(t)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,o.qN)(w(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,o.mv)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mv)(r.renewWindowWeeks.toNumber())),download:Number(w((0,o.xf)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number(w((0,o.xf)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,o.xf)(r.storageTB).toNumber(),prune:r.prune},hosts:{...null==n?void 0:n.hosts,maxDowntimeHours:r.maxDowntimeHours.toNumber(),minRecentScanFailures:r.minRecentScanFailures.toNumber(),allowRedundantIPs:r.allowRedundantIPs,scoreOverrides:(null==n?void 0:n.hosts.scoreOverrides)||null}}}(f.data.network,v,t.autopilot.data)}):void 0,[j,E,S,C]=await Promise.all([d.put({params:{key:"contractset"},payload:b(v,t.contractSet.data)}),d.put({params:{key:"uploadpacking"},payload:{...t.uploadPacking.data,enabled:v.uploadPackingEnabled}}),d.put({params:{key:"gouging"},payload:{...t.gouging.data,maxRPCPrice:(0,o.qN)(v.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,o.qN)(v.maxStoragePriceTBMonth.div((0,o.S5)(1)).div((0,o.xf)(1))).toString(),maxUploadPrice:(0,o.qN)(v.maxUploadPriceTB).toString(),maxDownloadPrice:(0,o.qN)(v.maxDownloadPriceTB).toString(),maxContractPrice:(0,o.qN)(v.maxContractPrice).toString(),hostBlockHeightLeeway:Math.round(v.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,a.ort)(v.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,a.k9c)(v.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,o.qN)(v.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:v.migrationSurchargeMultiplier.toNumber()}}),d.put({params:{key:"redundancy"},payload:{...t.redundancy.data,minShards:v.minShards.toNumber(),totalShards:v.totalShards.toNumber()}})]);if(null==x?void 0:x.error)throw Error(x.error);if(j.error)throw Error(j.error);if(E.error)throw Error(E.error);if(S.error)throw Error(S.error);if(C.error)throw Error(C.error);r&&(h(v.autopilotContractSet),u.post({payload:{forceScan:!0}})),(0,a.OPV)({title:"Configuration has been saved"}),g&&(async()=>{await (0,_.gw)(5e3),m(e=>e.startsWith(k.pz)),await (0,_.gw)(5e3),m(e=>e.startsWith(k.pz))})(),await l()}catch(e){(0,a.OHV)({title:"Error updating configuration",body:e.message}),console.log(e)}},[f.data,n,s,r,c,l,h,m,d,t,u])}({resources:W,estimatedSpendingPerMonth:G,showAdvanced:H,isAutopilotEnabled:P,revalidateAndResetForm:K}),ee=(0,a.WsO)(B),et=(0,i.useMemo)(()=>R.handleSubmit(J,ee),[R,J,ee]),en=(0,i.useRef)(),er=(0,i.useCallback)(async e=>{(0,a.S5N)(en.current,e)},[]);return{onSubmit:et,revalidateAndResetForm:K,form:R,fields:B,changeCount:Y,canEstimate:X,estimatedSpendingPerMonth:G,estimatedSpendingPerTB:Q,redundancyMultiplier:I,storageTB:F,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,showAdvanced:H,setShowAdvanced:U,remoteError:$,configRef:en,takeScreenshot:er}}();return(0,r.jsx)(R.Provider,{value:n,children:t})}},76838:function(e,t,n){"use strict";n.d(t,{x:function(){return S},G:function(){return E}});var r=n(52322),i=n(97479),a=n(5632),o=n(57016),s=n(2784),l=n(6391),u=n.n(l),c=n(75262),d=n(61020),f=n(21487),h=n(91492),p=n(82851);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,hostIp:n,hostKey:i}}=e;return(0,r.jsx)(h.F,{id:t,hostAddress:n,hostKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:a},context:{siascanUrl:o}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t),type:"contract",label:"contract ID",siascanUrl:o}),n&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(d.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:o,label:"contract ID"})]})})]})}},{id:"contractSets",label:"contract sets",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{contractSets:t},context:{defaultSet:n}}=e;return t?(0,r.jsx)("div",{className:"flex flex-col items-center overflow-hidden h-full",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex min-h-full gap-1 flex-wrap py-2 items-center",children:t.map(e=>{let t=n===e;return(0,r.jsx)(i.ua7,{content:"Contract is part of set ".concat(e,".")+(t?" ".concat(e," is the default contract set."):""),children:(0,r.jsxs)(i.Cts,{interactive:!1,size:"small",className:(0,p.cx)("flex gap-px items-center",t?"pl-px":""),children:[t?(0,r.jsx)(d.Y3p,{className:"scale-75"}):null,e]})},e)})})})}):null}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostIp",siascanUrl:n})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostPublicKey",siascanUrl:n})}},{id:"state",label:"state",category:"general",render:e=>{let{data:{state:t}}=e;return(0,r.jsx)(i.ua7,{content:(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"pending"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has been added."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"active"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"complete"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"failed"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof was not submitted before the end of proof window."})]})]}),children:(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"complete"===t?"green":void 0,children:t})})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:a,proofWindowHeightEnd:o,revisionHeight:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:a,proofWindowHeightEnd:o,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"endTime",label:"end date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{endTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"size",label:"size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{size:t}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,f.vW)(e)})}},{id:"totalCost",label:"total cost",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{totalCost:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingUploads",label:"uploads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingUploads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingDownloads",label:"downloads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDownloads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingFundAccount",label:"fund account spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingFundAccount:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}}];var v=n(82494),g=n(38855),y=n(45178);function b(e){let t=(0,i.sWj)(5);return Math.round(e/t)*t}function x(e){let{start:t,disabled:n,contractId:a}=e,l=b(t),c=(0,i.NrH)(1),d=(0,s.useMemo)(()=>Math.max(Math.round((b(new Date().getTime())-l)/c),1),[l,c]),h=(0,s.useMemo)(()=>{let e={start:new Date(l||0).toISOString(),interval:c,n:d};return a&&(e.contractID=a),e},[l,c,d,a]),p=(0,o.Yy)({disabled:n,params:h});return{contractMetrics:(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=p.data)||void 0===e?void 0:e.map(e=>({uploadSpending:Number(e.uploadSpending),listSpending:Number(e.listSpending),deleteSpending:Number(e.deleteSpending),fundAccountSpending:Number(e.fundAccountSpending),remainingCollateral:Number(e.remainingCollateral),remainingFunds:Number(e.remainingFunds),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,i.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],enabledTip:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],categories:["funding","spending"],data:{remainingFunds:{label:"remaining funds",category:"funding",color:i.O9T.emerald[600]},remainingCollateral:{label:"remaining collateral",category:"funding",pattern:!0,color:i.O9T.emerald[600]},fundAccountSpending:{label:"fund account",category:"spending",color:i.O9T.red[600]},uploadSpending:{label:"upload",category:"spending",color:i.O9T.red[600]},listSpending:{label:"list",category:"spending",color:i.O9T.red[600]},deleteSpending:{label:"delete",category:"spending",color:i.O9T.red[600]}},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(i.ho9,{variant:"value",value:new(u())(t)})},formatTimestamp:c===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,f.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:p.isValidating&&!p.data}},[p.data,p.isValidating,c])}}var w=n(91332),j=n(9338);let k=(0,s.createContext)({}),E=()=>(0,s.useContext)(k);function S(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)("list"),[n,r]=(0,s.useState)("spending"),l=(0,a.useRouter)(),d=Number(l.query.limit||50),h=Number(l.query.offset||0),p=(0,o.GP)({config:{swr:{refreshInterval:j.h}}}),k=(0,v.JL)(),E=(0,s.useMemo)(()=>{var e;return(null===(e=k.data)||void 0===e?void 0:e.hosts)||[]},[k.data]),S=(0,g.n)(),C=S.isSynced?S.nodeBlockHeight:S.estimatedBlockHeight,[_,O]=(0,s.useState)(),M=(0,s.useCallback)(e=>{if(_===e){O(void 0);return}O(e),t("detail"),r("spending")},[_,O,t]),T=(0,s.useMemo)(()=>{var e;return p.data?(null===(e=p.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,f.jr)(C,e.startHeight),i=e.windowStart,a=(0,f.jr)(C,i);return{id:e.id,onClick:()=>M(e.id),contractId:e.id,state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,contractSets:e.contractSets,location:null===(t=E.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:a,contractHeightStart:e.startHeight,contractHeightEnd:i,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:n,renewedFrom:e.renewedFrom,totalCost:new(u())(e.totalCost),spendingUploads:new(u())(e.spending.uploads),spendingDownloads:new(u())(e.spending.downloads),spendingFundAccount:new(u())(e.spending.fundAccount),size:new(u())(e.size)}}))||[]:null},[p.data,E,C,M]),A=(0,s.useMemo)(()=>null==T?void 0:T.find(e=>e.id===_),[T,_]),{filters:P,setFilter:N,removeFilter:R,removeLastFilter:D,resetFilters:L}=(0,i.Wdu)(),{configurableColumns:Z,enabledColumns:F,sortableColumns:z,toggleColumnVisibility:V,setColumnsVisible:I,setColumnsHidden:B,toggleSort:H,setSortDirection:U,setSortField:W,sortField:q,sortDirection:$,resetDefaultColumnVisibility:K}=(0,i.oy6)("renterd/v0/contracts",{columns:m,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),Y=(0,i._4u)({dataset:T,filters:P,sortField:q,sortDirection:$}),X=(0,s.useMemo)(()=>Y?Y.slice(h,h+d):null,[Y,h,d]),{range:G}=(0,s.useMemo)(()=>(0,i.EJC)(C,X||[]),[C,X]),Q=(0,s.useMemo)(()=>m.filter(e=>e.fixed||F.includes(e.id)),[F]),J=(0,i.c2j)(Y,p.isValidating,p.error,P),ee=(0,y.B)(),et=(0,w.a)(),en=(0,s.useMemo)(()=>{var e;return{currentHeight:S.estimatedBlockHeight,defaultSet:null===(e=et.data)||void 0===e?void 0:e.default,contractsTimeRange:G,siascanUrl:ee}},[S.estimatedBlockHeight,G,ee,et.data]),{contractMetrics:er}=x({start:new Date().getTime()-(0,i.NrH)(30)}),{contractMetrics:ei}=x({contractId:_,start:(null==A?void 0:A.startTime)||0,disabled:!A}),{contractSetMetrics:ea}=function(){var e;let t=b(new Date().getTime()-(0,i.NrH)(30)),n=(0,i.NrH)(1),r=(0,s.useMemo)(()=>Math.round((b(new Date().getTime())-t)/n),[t,n]),a=(0,o.e$)(),l=(0,o.Bi)({disabled:!a.data,params:{name:null===(e=a.data)||void 0===e?void 0:e.contracts.set,start:new Date(t).toISOString(),interval:n,n:r}});return{contractSetMetrics:(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=l.data)||void 0===e?void 0:e.map(e=>({contracts:Number(e.contracts),timestamp:new Date(e.timestamp).getTime()})),"none"),r=(0,i.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["contracts"],enabledTip:["contracts"],data:{contracts:{label:"contracts",color:i.O9T.emerald[600]}},formatTimestamp:n===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:l.isValidating&&!l.data}},[l.data,l.isValidating,n])}}(),eo=(0,o.Wu)();return{dataState:J,limit:d,offset:h,isLoading:p.isLoading,error:p.error,pageCount:(null==X?void 0:X.length)||0,datasetCount:(null==T?void 0:T.length)||0,datasetFilteredCount:(null==Y?void 0:Y.length)||0,columns:Q,dataset:T,cellContext:en,datasetPage:X,configurableColumns:Z,enabledColumns:F,sortableColumns:z,toggleColumnVisibility:V,setColumnsVisible:I,setColumnsHidden:B,toggleSort:H,setSortDirection:U,setSortField:W,sortField:q,filters:P,setFilter:N,removeFilter:R,removeLastFilter:D,resetFilters:L,sortDirection:$,resetDefaultColumnVisibility:K,viewMode:e,setViewMode:t,graphMode:n,setGraphMode:r,selectedContract:A,selectContract:M,allContractsSpendingMetrics:er,selectedContractSpendingMetrics:ei,contractSetCountMetrics:ea,contractSets:eo}}();return(0,r.jsx)(k.Provider,{value:n,children:t})}},75262:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["contractId","contractSets","hostIp","hostKey","state","timeline","size","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",a=[{id:"contractId",label:"contract ID",category:"general"},{id:"hostIp",label:"host address",category:"general"},{id:"hostKey",label:"host public key",category:"general"},{id:"state",label:"state",category:"general"},{id:"timeline",label:"timeline",category:"time"},{id:"startTime",label:"start date",category:"time"},{id:"endTime",label:"end date",category:"time"},{id:"size",label:"size",category:"general"},{id:"totalCost",label:"total cost",category:"financial"},{id:"spendingUploads",label:"uploads spending",category:"financial"},{id:"spendingDownloads",label:"downloads spending",category:"financial"},{id:"spendingFundAccount",label:"fund account spending",category:"financial"}]},97112:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eB},xQ:function(){return eH},Rh:function(){return eI}});var r=n(52322),i=n(2784),a=n(97479),o=n(10363),s=n(98334),l=n(82851),u=n(99182),c=n(5632),d=n(35599),f=n(57016);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:o}=e,{openDialog:l,closeDialog:u}=eI(),p=(0,c.useRouter)(),m=(0,f.X2)();return(0,r.jsxs)(d.fu,{currentPage:n,commandPage:h,children:[(0,r.jsx)(d.Ul,{currentPage:n,parentPage:i,commandPage:h,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,a.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let v={namespace:"settings",label:"Settings"};function g(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:a}=eI(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,o.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:v,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:v,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{u({siaCentral:!l.siaCentral}),a()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),a()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("system"),a()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),a()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),a()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),f.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{h(n),a()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function b(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:a,closeDialog:o}=eI(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{a("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View transaction pool"})]})}var x=n(49889),w=n(46081);let j={namespace:"configuration",label:"Configuration"};function k(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{showAdvanced:o}=(0,x.ZR)(),{closeDialog:l}=eI(),{autopilot:u}=(0,w.q)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:j,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:j,onSelect:()=>{i(j)},children:j.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.pricing),l()},children:"Configure pricing"}),o&&(0,r.jsxs)(r.Fragment,{children:["on"===u.status&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var E=n(14613);let S={namespace:"contracts",label:"Contracts"};function C(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u}=eI();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(S)},children:S.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:S,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:S,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(E.F,{parentPage:S,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}let _={namespace:"alerts",label:"Alerts"};function O(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o}=eI();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(_)},children:_.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:_,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:_,onSelect:()=>{a.push(s._.alerts.index),o()},children:"View alerts"})})]})}var M=n(76838),T=n(42213);let A={namespace:"hosts",label:"Hosts"};function P(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eI();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(A)},children:A.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:A,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:A,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:A,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(T.L,{parentPage:A,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}var N=n(70899),R=n(61020);function D(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(R.e1T,{}),(0,r.jsx)(R.JCW,{}),(0,r.jsx)(R.c_L,{})]}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}var L=n(41736);let Z={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:D};function F(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:o,afterSelect:s}=e,{activeBucketName:l,navigateToModeSpecificFiltering:u}=(0,L.b)(),c=(null==i?void 0:i.namespace)===Z.namespace,h=l||"default",p=(0,f.Iy)({disabled:!c,params:{bucket:h,key:t,offset:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&p.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:Z,children:p.data.map(e=>{let{name:t}=e,l=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=z(e),a=z(t),o=i.toLowerCase().indexOf(a.toLowerCase()),s=o+a.length-1,l=0,u=0;return i.split("/").map(e=>{if(l>=r)return u+=e.length,z(e);let t=u,n=u+e.length+1;return to?(u+=e.length,z(e)):!e.includes(a)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,z(e))}).reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=z(e),r=z(t),i=n.toLowerCase().indexOf(r.toLowerCase()),a=i+r.length;return{endIndex:e.length-i,startIndex:e.length-a}}(l,n);return(0,r.jsx)(d.WD,{commandPage:Z,currentPage:i,onSelect:()=>{o(),u(h+t),s()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,N.IQ)(t)?(0,r.jsx)(R.ROc,{size:16}):(0,r.jsx)(R.c_L,{})}),(0,r.jsxs)(a.xvT,{className:"flex items-center",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(a.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function z(e){return e.split("").reverse().join("")}let V={namespace:"files",label:"Files"};function I(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:a,pushPage:o,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eI();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:a,commandPage:a,onSelect:()=>{o(V)},children:V.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:V,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{f.pathname.startsWith(s._.buckets.index)||f.push(s._.buckets.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{o(Z),u()},children:"Search files"})]}),(0,r.jsx)(F,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var B=n(56328),H=n(94225);function U(e){let{search:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(R.owP,{})}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}let W={namespace:"keys",label:"S3 authentication keys"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o,openDialog:l}=eI();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(W)},children:W.label}),(0,r.jsxs)(d.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(s._.keys.index),o()},children:"View keys"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(s._.keys.index),l("keysCreate")},children:"Create new S3 authentication keypair"})]})]})}function $(e){let{panel:t}=e,{resetFilters:n}=(0,M.G)(),{resetFilters:o}=(0,B.l)(),{closeDialog:d}=eI(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=(0,H.Nr)(h,500),[y,x]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,E=(0,i.useCallback)(e=>{x(t=>[...t,e])},[x]),S=(0,i.useCallback)(()=>{d()},[d]),_=(0,i.useCallback)(()=>{m("")},[m]),T=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,a.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),x(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(a.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(a.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(T,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:E}),(0,r.jsx)(I,{debouncedSearch:v,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{_()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(C,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),_()}}),(0,r.jsx)(P,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),o()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),_()}}),(0,r.jsx)(q,{currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{f.pathname.startsWith(s._.keys.index)||f.push(s._.keys.index),_()}}),(0,r.jsx)(O,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.alerts.index)||f.push(s._.alerts.index),_()}}),(0,r.jsx)(k,{currentPage:w,pushPage:E}),(0,r.jsx)(b,{currentPage:w,pushPage:E})]})]})}function K(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlockedAndAuthedRoute:u}=(0,o.Hv)(),{isConnected:c}=(0,a.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)($,{})})})}var Y=n(7114),X=n(24511);let G={name:""},Q=X.Ry().shape({name:X.Z_().required("Required")});function J(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:o}=(0,L.b)(),s=(0,f.ZM)(),l=(0,Y.TA)({initialValues:G,validationSchema:Q,onSubmit:async(e,t)=>{let n=await s.put({params:(0,N.W0)(o+e.name+"/"),payload:null});n.error?(0,a.OHV)({title:"Error creating directory",body:n.error}):((0,a.OPV)({title:"Directory created"}),t.resetForm(),i(!1))}});return(0,r.jsx)(a.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(a.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var ee=n(82229);let et={publicKey:""},en=X.Ry().shape({publicKey:X.Z_().required("Required")});function er(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,ee.I)(),o=(0,Y.TA)({initialValues:et,validationSchema:en,onSubmit:async(e,t)=>{await n([e.publicKey],[])?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{o.setStatus(void 0)},[o.values]);let s=o.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!o.values.publicKey||e.includes(o.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:o.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Public key",name:"publicKey",formik:o,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"publicKey",formik:o,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.IKw,{formik:o,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(a.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(a.xvT,{children:(0,r.jsx)(R.qdM,{})}),(0,r.jsxs)(a.nvN,{size:"12",children:[(0,r.jsx)(a.xvT,{weight:"semibold",children:"Caution:"})," Please note that because the allowlist is inclusive, as soon as there are more than zero entries, contracting will be limited to only the hosts explicitly on the allowlist - all other existing contracts will immediately abort."]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:l.length?(0,r.jsx)(a.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(a.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.xvT,{color:"subtle",children:["No existing entries match ",o.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ei=n(94613);let ea={address:""},eo=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],es=X.Ry().shape({address:X.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,a.Ztc)().test(e||""))});function el(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ei.l)(),n=(0,Y.TA)({initialValues:ea,validationSchema:es,onSubmit:async(e,n)=>{await t([e.address],[])?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let o=n.values.address,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,M.G)(),u=(0,i.useMemo)(()=>eo.filter(t=>{var n;return!(null===(n=e.data)||void 0===n?void 0:n.find(e=>e===t))}).map(e=>({address:e,contractCount:null==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.IKw,{formik:n,size:"small",variant:"red",withStatusError:!1,children:"Block address"})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:(0,r.jsx)(a.xrM,{children:(0,r.jsxs)("div",{className:"p-2",children:[!!u.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex gap-1 flex-wrap",children:[(0,r.jsx)(a.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:o}=e;return(0,r.jsxs)(a.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!o&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(a.ua7,{content:"".concat(o," active contracts"),children:(0,r.jsxs)(a.xvT,{color:"red",children:["(",o,")"]})})]}),t!==u.length-1&&(0,r.jsx)(a.xvT,{children:","})]},i)})]}),(0,r.jsx)(a.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(a.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):o?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.xvT,{color:"subtle",children:["No existing entries match ",n.values.address,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function eu(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(a.VqE,{trigger:t,title:"Manage host blocklist and allowlist",open:n,onOpenChange:e=>{i(e)},contentVariants:{className:"w-[500px]"},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"12",children:"The allowlist and blocklist limit the set of hosts that renterd will consider when forming contracts. The blocklist excludes hosts with matching addresses whereas the allowlist restricts consideration to hosts with a matching public key. Each list's filtering is enabled and applied when it contains more than zero entries."}),(0,r.jsxs)(a.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(a.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(a.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(a.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(a.nUL,{value:"blocklist",children:(0,r.jsx)(el,{})}),(0,r.jsx)(a.nUL,{value:"allowlist",children:(0,r.jsx)(er,{})})]})]})})}var ec=n(10532),ed=n(98131),ef=n(30291),eh=n(11948),ep=n(99605);function em(e){let{panel:t}=e,{closeDialog:n}=eI(),o=(0,ep.xj)(),c=(0,ep.jD)(),[d,f]=(0,i.useState)(""),[h]=(0,H.Nr)(d,500),p=(0,i.useCallback)(()=>{n()},[n]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,a.z$)()),children:[(0,r.jsx)(a.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:d,onValueChange:f,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:Z.prompt}),(0,r.jsx)(a.Z0O,{className:"my-2"}),(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(D,{search:d,debouncedSearch:h})}),(0,r.jsx)(F,{debouncedSearch:h,search:d,currentPage:Z,beforeSelect:()=>{p()},afterSelect:()=>{c.startsWith(s._.buckets.index)||o.push(s._.buckets.index)}})]})})]})}function ev(e){let{open:t,onOpenChange:n,trigger:i}=e;return(0,r.jsx)(a.VqE,{open:t,trigger:i,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(em,{})})}var eg=n(6391),ey=n.n(eg);function eb(){let{dialog:e,openDialog:t,closeDialog:n}=eI(),o=(0,f.X2)(),s=(0,f.gU)(),l=(0,f.cg)(),u=(0,f.ys)(),c=(0,f.aO)(),d=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await s.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await l.post({payload:{transaction:r.data.transaction,toSign:r.data.toSign,coveredFields:{wholeTransaction:!0}}});if(i.error)return c.post({payload:r.data.transaction}),{error:i.error};let a=await u.post({payload:[i.data]});return a.error?(c.post({payload:i.data}),{error:a.error}):{}},[s,l,u,c]);return(0,r.jsx)(a.weF,{balance:o.data?new(ey())(o.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var ex=n(40730);function ew(){let{id:e,dialog:t,openDialog:n,closeDialog:o}=eI(),{dataset:s}=(0,ex.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.hash===e),[s,e]);return(0,r.jsx)(a.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):o()})}var ej=n(23771),ek=n(63955);let eE={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s,closeDialog:l}=eI(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eE}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,a.OHV)({title:"Error deleting bucket",body:t.error}):((0,a.OPV)({title:"Bucket permanently deleted"}),c.reset(),l())},[c,u,l]),h=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{notDefault:()=>"default"!==s||"cannot delete default bucket",equals:e=>e===s||"bucket name does not match"}}}}),[s]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eE),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"Before you delete a bucket you must ensure that it is empty. Re-enter the bucket name to confirm the removal."}),(0,r.jsx)("div",{children:(0,r.jsx)(a.EKh,{color:"gray",children:s})}),(0,r.jsx)(a.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let eC={visibility:"public"};function e_(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s,closeDialog:l}=eI(),u=(0,f.D5)({disabled:!n,params:{name:s},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ek.cI)({mode:"all",defaultValues:eC});(0,i.useEffect)(()=>{var e,t;d.reset({visibility:(null===(t=u.data)||void 0===t?void 0:null===(e=t.policy)||void 0===e?void 0:e.publicReadAccess)?"public":"private"})},[d,u.data]);let h=(0,i.useCallback)(async e=>{let t=await c.put({params:{name:s},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,a.OHV)({title:"Error updating bucket policy",body:t.error}):((0,a.OPV)({title:"Bucket policy has been updated"}),d.reset(),l())},[d,s,c,l]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:s,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[s]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(eC),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:d.handleSubmit(h,m),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"Update the bucket's policy to set read access to either private or public. Files in public read access buckets can be accessed without authentication via the S3 API."}),(0,r.jsx)(a.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(a.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let eO={name:""};function eM(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eI(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eO}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,a.OHV)({title:"Error creating bucket",body:t.error}):((0,a.OPV)({title:"Bucket created"}),u.reset(),s())},[u,l,s]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,a.WsO)(d);return(0,r.jsx)(a.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eO),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(c,h),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(a.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:u,children:"Create bucket"})]})})}var eT=n(5184),eA=n(75618),eP=n(43385);function eN(e){let{id:t,trigger:n,open:o,onOpenChange:s}=e,{closeDialog:l}=eI(),{refresh:u}=(0,eA.J)(),{refresh:c}=(0,eP.o)(),d=(0,N.vt)(t||""),h={name:d=d.endsWith("/")?d.slice(0,-1):d},p=(0,f.GD)(),m=(0,ek.cI)({mode:"all",defaultValues:h});(0,i.useEffect)(()=>{m.reset({name:d})},[m,d]);let v=(0,i.useCallback)(async e=>{let{bucket:n,to:r,from:i,mode:o}=(0,eT.E)(t,e.name),s=await p.post({payload:{bucket:n,to:r,from:i,mode:o,force:!1}});s.error?(0,a.OHV)({title:(0,N.IQ)(t)?"Error renaming directory":"Error renaming file",body:s.error}):(u(),c(),m.reset(),l(),(0,a.OPV)({title:(0,N.IQ)(t)?"Directory renamed":"File renamed"}))},[m,t,u,c,p,l]),g=(0,i.useMemo)(()=>(function(e){let{currentName:t}=e;return{name:{type:"text",title:"Name",placeholder:t,validation:{required:"required",validate:{noSlash:e=>!e.includes("/")||"Name cannot contain slashes"}}}}})({currentName:d}),[d]),y=(0,a.WsO)(g);return(0,r.jsx)(a.VqE,{title:"Rename file",trigger:n,open:o,onOpenChange:e=>{e||m.reset(h),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(v,y),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.yEL,{name:"name",form:m,fields:g,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:m,children:"Save"})]})})}var eR=n(77248),eD=n(55791);function eL(){return{name:eF(),secret:ez()}}function eZ(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eI(),l=(0,eR.m)(),u=(0,f.KJ)(),c=(0,ek.cI)({mode:"all",defaultValues:eL()}),d=(0,i.useCallback)(async e=>{var t;let n={...null===(t=l.data)||void 0===t?void 0:t.v4Keypairs,[e.name]:e.secret},r=await u.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,a.OHV)({title:"Error creating key",body:r.error}):((0,a.OPV)({title:"New key created"}),c.reset(eL()),s())},[c,s,u,l.data]),h=(0,i.useMemo)(()=>{var e;return function(e){let{existingKeys:t,regenerateAccessKey:n,regenerateSecretKey:i}=e;return{name:{type:"text",title:"Access key ID",placeholder:"my secure key",actions:(0,r.jsx)(a.zxk,{onClick:n,tip:"Regenerate access key ID",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(eD.Wet,{})}),validation:{required:"required",validate:{minLength:e=>(null==e?void 0:e.length)>=16||"must be at least 16 characters",maxLength:e=>(null==e?void 0:e.length)<=128||"must be at most 128 characters",unique:e=>!t.includes(e)||"Name must be unique"}}},secret:{type:"text",title:"Secret access key",placeholder:"",actions:(0,r.jsx)(a.zxk,{onClick:i,tip:"Regenerate secret access key",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(eD.Wet,{})}),validation:{required:"required",validate:{exactLength:e=>(null==e?void 0:e.length)===40||"must be exactly 40 characters"}}}}}({regenerateAccessKey:()=>{c.setValue("name",eF())},regenerateSecretKey:()=>{c.setValue("secret",ez())},existingKeys:Object.keys((null===(e=l.data)||void 0===e?void 0:e.v4Keypairs)||{})})},[l.data,c]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Create S3 key",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eL()),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(a.ZqQ,{form:c,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{children:"Create a new S3 authentication key."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.yEL,{name:"name",form:c,fields:h}),(0,r.jsx)(a.yEL,{name:"secret",form:c,fields:h})]})]})})}function eF(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(let n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function ez(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="";for(let n=0;n<40;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}let eV=(0,i.createContext)({}),eI=()=>(0,i.useContext)(eV);function eB(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),a=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[o,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:a,confirm:o,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eV.Provider,{value:n,children:t})}function eH(){var e;let{id:t,dialog:n,openDialog:i,onOpenChange:o,closeDialog:s,confirm:l,openConfirmDialog:u}=eI(),c=(0,f.Wl)(),d=(0,f.X2)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{open:"cmdk"===n,onOpenChange:o,setOpen:()=>i("cmdk")}),(0,r.jsx)(a.DLL,{open:"settings"===n,onOpenChange:o,showGpuSetting:!0}),(0,r.jsx)(eb,{}),(0,r.jsx)(a.YNn,{address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,open:"addressDetails"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ew,{}),(0,r.jsx)(a.D_D,{open:"connectPeer"===n,connect:e=>c.post({payload:e}),onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eM,{open:"filesCreateBucket"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eS,{open:"filesDeleteBucket"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(e_,{open:"filesBucketPolicy"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(J,{open:"filesCreateDirectory"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ev,{open:"filesSearch"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eN,{id:t,open:"fileRename"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eu,{open:"hostsManageAllowBlock"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ec.g,{open:"hostsFilterAddress"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ej.a,{open:"hostsFilterPublicKey"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ed.p,{open:"contractsFilterAddress"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eh.X,{open:"contractsFilterContractSet"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ef.C,{open:"contractsFilterPublicKey"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eZ,{open:"keysCreate"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(a.QHy,{open:"confirm"===n,params:l,onOpenChange:e=>e?u(l):s()})]})}},72199:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(52322),i=n(97479),a=n(61020),o=n(21487),s=n(87023),l=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736);let p=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:u,size:c}}=e,{setActiveDirectory:d}=(0,h.b)();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),d(e=>e.slice(0,-1))},children:(0,r.jsx)(a.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(l.I,{path:u,size:c}):(0,r.jsx)(s.e,{path:u})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectoryAndFileNamePrefix:a,setActiveDirectory:o}=(0,h.b)();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),a([t],"")},children:t}):"directory"===n?".."===t?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.slice(0,-1))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.concat(t.slice(0,-1)))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",children:t})}},{id:"readAccess",label:"public read access",contentClassName:"justify-center",render:function(e){var t,n;let{data:o}=e;if(".."===o.name)return null;let s=null===(n=o.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:s?"The bucket policy allows public read access.":"The bucket policy only allows private read access.",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(i.xvT,{color:s?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:s?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:s,loaded:l,size:u}=t;if("bucket"===n)return null;if(s){let e=(l/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(l),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},75618:function(e,t,n){"use strict";n.d(t,{V:function(){return v},J:function(){return m}});var r=n(52322),i=n(97479),a=n(2784),o=n(57016),s=n(37371),l=n(70899),u=n(5632),c=n(41736),d=n(9338),f=n(5184),h=n(72199);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,n=function(){let{activeDirectory:e,activeBucketName:t,activeDirectoryPath:n,setActiveDirectory:r,filters:p,enabledColumns:m}=(0,c.b)(),{limit:v,offset:g,response:y,refresh:b,dataset:x}=function(){var e;let{activeBucketName:t,activeDirectoryPath:n,fileNamePrefixFilter:r,sortDirection:i,sortField:f}=(0,c.b)(),h=(0,u.useRouter)(),p=Number(h.query.limit||50),m=Number(h.query.offset||0),v=(0,a.useMemo)(()=>{let e={...(0,l.W0)(n),sortBy:f,sortDir:i,offset:m,limit:p};return r&&(e.prefix=r.startsWith("/")?r.slice(1):r),e},[n,r,f,i,m,p]),g=(0,o.Jv)({disabled:!t,params:v,config:{swr:{refreshInterval:d.h}}}),y=(0,a.useMemo)(()=>{var e;return{isValidating:g.isValidating,data:null===(e=g.data)||void 0===e?void 0:e.entries}},[g.isValidating,null===(e=g.data)||void 0===e?void 0:e.entries]);return{limit:p,offset:m,response:g,dataset:(0,s.p)({id:"filesDirectory",objects:y}).data,refresh:g.mutate}}(),{onDragEnd:w,onDragOver:j,onDragCancel:k,onDragMove:E,onDragStart:S,draggingObject:C}=function(e){let{dataset:t,activeDirectory:n,setActiveDirectory:r,refresh:s}=e,[u,c]=(0,a.useState)(null),[,d]=(0,a.useState)(),h=(0,o.GD)(),p=(0,a.useCallback)(async e=>{let{bucket:t,from:r,to:a,mode:o}=(0,f.e)(e,n);if(r===a)return;let l=await h.post({payload:{force:!1,bucket:t,from:r,to:a,mode:o}});s(),l.error&&(0,i.OHV)({title:"Error moving files",body:l.error})},[s,h,n]),m=(0,a.useCallback)(e=>{if(!e){d(e=>(e&&clearTimeout(e),null));return}let t=setTimeout(()=>{r(()=>e)},500);d(e=>(e&&clearTimeout(e),t))},[d,r]),v=(0,a.useCallback)(e=>{if(e.collisions.length){var t;let r=null===(t=e.collisions)||void 0===t?void 0:t[0].id;".."===r?m(n.slice(0,-1)):m((0,l.gD)(r))}else m(void 0)},[m,n]),g=(0,a.useCallback)(e=>{c(t.find(t=>t.id===e.active.id)||null)},[t,c]),y=(0,a.useCallback)(e=>{v(e)},[v]),b=(0,a.useCallback)(e=>{v(e)},[v]);return{onDragEnd:(0,a.useCallback)(async e=>{m(void 0),c(void 0),p(e)},[c,m,p]),onDragOver:y,onDragCancel:(0,a.useCallback)(async e=>{m(void 0),c(void 0)},[c,m]),onDragMove:b,onDragStart:g,draggingObject:u}}({dataset:x,activeDirectory:e,setActiveDirectory:r,refresh:b}),_=(0,a.useMemo)(()=>x?e.length>0&&x.length>0?[{id:"..",name:"..",path:"..",type:"directory",onClick:()=>{r(e=>e.slice(0,-1))}},...x]:x:null,[x]),O=(0,a.useMemo)(()=>_?_.map(e=>C&&C.id!==e.id&&"directory"===e.type?{...e,isDroppable:!0}:{...e,isDraggable:"bucket"!==e.type&&!e.isUploading}):null,[_,C]);return{activeBucket:t,activeDirectory:e,setActiveDirectory:r,activeDirectoryPath:n,dataState:(0,i.c2j)(x,y.isValidating,y.error,p),columns:(0,a.useMemo)(()=>h.z.filter(e=>e.fixed||m.includes(e.id)),[m]),refresh:b,limit:v,offset:g,datasetPage:O,pageCount:(null==x?void 0:x.length)||0,onDragStart:S,onDragEnd:w,onDragMove:E,onDragCancel:k,onDragOver:j,draggingObject:C}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},33351:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(52322),i=n(97479),a=n(61020),o=n(21487),s=n(87023),l=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736),p=n(70899);let m=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:u,size:c}}=e;return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(l.I,{path:u,size:c}):(0,r.jsx)(s.e,{path:u})}},{id:"name",label:"name",category:"general",render:function(e){let{data:{path:t,name:n,type:a}}=e,{setFileNamePrefixFilter:o}=(0,h.b)(),s=(0,p.kj)(t).slice(1);return"bucket"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",children:n}):"directory"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(s))},children:s}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(s))},children:s})}},{id:"readAccess",label:"public read access",contentClassName:"justify-center",render:function(e){var t,n;let{data:o}=e;if(".."===o.name)return null;let s=null===(n=o.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:s?"The bucket policy allows public read access.":"The bucket policy only allows private read access.",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(i.xvT,{color:s?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:s?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:s,loaded:l,size:u}=t;if("bucket"===n)return null;if(s){let e=(l/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(l),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},43385:function(e,t,n){"use strict";n.d(t,{p:function(){return p},o:function(){return h}});var r=n(52322),i=n(97479),a=n(2784),o=n(57016),s=n(37371),l=n(5632),u=n(41736),c=n(9338),d=n(33351);let f=(0,a.createContext)({}),h=()=>(0,a.useContext)(f);function p(e){let{children:t}=e,n=function(){var e,t;let{sortDirection:n,sortField:r,filters:f,enabledColumns:h}=(0,u.b)(),{limit:p,response:m,refresh:v,dataset:g}=function(e){let{sortDirection:t,sortField:n}=e,{activeBucketName:r,fileNamePrefixFilter:i}=(0,u.b)(),d=(0,l.useRouter)(),f=Number(d.query.limit||50),h=d.query.marker,p=(0,a.useMemo)(()=>{let e={bucket:r,sortBy:n,sortDir:t,marker:h,limit:f};return i&&(e.prefix=i.startsWith("/")?i:"/"+i),e},[r,i,n,t,h,f]),m=(0,o.SD)({disabled:!r,payload:p,config:{swr:{refreshInterval:c.h}}}),v=(0,a.useMemo)(()=>{var e;return{isValidating:m.isValidating,data:null===(e=m.data)||void 0===e?void 0:e.objects}},[m.isValidating,m.data]);return{limit:f,marker:h,response:m,dataset:(0,s.p)({id:"filesFlat",objects:v}).data,refresh:m.mutate}}({sortField:r,sortDirection:n}),y=null===(e=m.data)||void 0===e?void 0:e.nextMarker,b=null===(t=m.data)||void 0===t?void 0:t.hasMore,x=(0,a.useMemo)(()=>g,[g]);return{dataState:(0,i.c2j)(g,m.isValidating,m.error,f),refresh:v,limit:p,datasetPage:x,columns:(0,a.useMemo)(()=>d.z.filter(e=>e.fixed||h.includes(e.id)),[h]),nextMarker:y,isMore:b,pageCount:(null==g?void 0:g.length)||0,sortField:r,filters:f,sortDirection:n}}();return(0,r.jsx)(f.Provider,{value:n,children:t})}},37371:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(67693),i=n(69046),a=n(79381),o=n(76838),s=n(70899),l=n(41736),u=n(2784);function c(e){let{id:t,objects:n}=e,{activeBucket:c,activeBucketName:d,fileNamePrefixFilter:f,uploadsList:h,sortDirection:p,sortField:m,activeDirectoryPath:v,buckets:g,setActiveDirectory:y}=(0,l.b)(),{dataset:b}=(0,o.G)(),x=(0,a.ZP)(n.isValidating||g.isValidating?null:[t,d,v],()=>{var e,t;let a={};c?(n.data||h.length)&&(null===(t=n.data)||void 0===t||t.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,s.v_)(d,t),o=(0,s.vt)(t);a[i]={id:i,path:i,bucket:c,size:n,health:r,name:o,onClick:(0,s.IQ)(t)?()=>{y(e=>e.concat(o.slice(0,-1)))}:void 0,type:(0,s.IQ)(t)?"directory":"file"}}),h.filter(e=>{let{path:t,name:n}=e;return t===(0,s.v_)(v,n)}).filter(e=>{let{path:t}=e;return t.startsWith((0,s.v_)(d,f))}).forEach(e=>{a[e.path]=e})):null===(e=g.data)||void 0===e||e.forEach(e=>{let t=e.name,n=(0,s.YF)(t,"");a[t]={id:n,path:n,bucket:e,size:0,health:0,name:t,onClick:()=>{y(e=>e.concat(t))},type:"bucket"}});let o=(0,r.Z)((0,i.Z)(a).map(e=>e[1]),m);return"desc"===p&&o.reverse(),o},{keepPreviousData:!0});return(0,u.useEffect)(()=>{x.mutate()},[n.data,h,b,g.data]),x}},41736:function(e,t,n){"use strict";n.d(t,{e:function(){return es},b:function(){return eo}});var r=n(52322),i=n(97479),a=n(99605),o=n(2784),s=n(72199),l=n(3077),u=n(70899),c=n(57016),d=n(88744);function f(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t){var n=f(e,t,"get");return n.get?n.get.call(e):n.value}function p(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){p(e,t),t.set(e,n)}function v(e,t,n){var r=f(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}function g(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}function y(e,t){p(e,t),t.add(e)}var b=n(10363),x=new WeakMap,w=new WeakMap,j=new WeakMap,k=new WeakMap,E=new WeakMap,S=new WeakMap,C=new WeakMap,_=new WeakMap,O=new WeakMap,M=new WeakMap,T=new WeakMap,A=new WeakMap,P=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,Z=new WeakMap,F=new WeakMap,z=new WeakSet,V=new WeakSet,I=new WeakSet,B=new WeakSet,H=new WeakSet,U=new WeakSet;class W{async create(){var e;let t={bucket:h(this,x),generateKey:!0,path:h(this,w)};return v(this,R,null===(e=(await h(this,S).busUploadCreate.post({payload:t})).data)||void 0===e?void 0:e.uploadID),v(this,P,Array.from({length:Math.ceil(h(this,j).size/h(this,k))},(e,t)=>t+1)),h(this,R)}async start(){let e=new Promise(e=>{v(this,M,e)});g(this,z,q).call(this),await e}async abort(){var e;v(this,D,!0),Object.keys(h(this,A)).map(Number).forEach(e=>{h(this,A)[e].abort()});try{await h(this,S).busUploadAbort.post({payload:{bucket:h(this,x),path:h(this,w),uploadID:h(this,R)}})}catch(e){(0,i.OHV)({title:"Error aborting upload",body:e.message})}null===(e=h(this,M))||void 0===e||e.call(this)}setOnProgress(e){v(this,C,e)}setOnError(e){v(this,_,e)}setOnComplete(e){v(this,O,e)}constructor(e){y(this,z),y(this,V),y(this,I),y(this,B),y(this,H),y(this,U),m(this,x,{writable:!0,value:void 0}),m(this,w,{writable:!0,value:void 0}),m(this,j,{writable:!0,value:void 0}),m(this,k,{writable:!0,value:void 0}),m(this,E,{writable:!0,value:void 0}),m(this,S,{writable:!0,value:void 0}),m(this,C,{writable:!0,value:void 0}),m(this,_,{writable:!0,value:void 0}),m(this,O,{writable:!0,value:void 0}),m(this,M,{writable:!0,value:void 0}),m(this,T,{writable:!0,value:void 0}),m(this,A,{writable:!0,value:void 0}),m(this,P,{writable:!0,value:void 0}),m(this,N,{writable:!0,value:void 0}),m(this,R,{writable:!0,value:void 0}),m(this,D,{writable:!0,value:void 0}),m(this,L,{writable:!0,value:void 0}),m(this,Z,{writable:!0,value:void 0}),m(this,F,{writable:!0,value:void 0}),v(this,L,500),v(this,Z,6e4),v(this,F,h(this,L)),v(this,x,e.bucket),v(this,w,e.path),v(this,k,e.partSize||5242880),v(this,E,Math.min(e.maxConcurrentParts||5,15)),v(this,j,e.file),v(this,S,e.api),v(this,C,e.onProgress||(()=>null)),v(this,_,e.onError||(()=>null)),v(this,O,e.onComplete||(()=>null)),v(this,T,{}),v(this,A,{}),v(this,P,[]),v(this,N,[]),v(this,R,null),v(this,D,!1)}}async function q(){if(h(this,D))return;let e=Object.keys(h(this,A)).length;if(e>=h(this,E))return;if(!h(this,P).length){e||g(this,B,Y).call(this);return}let t=h(this,P).pop(),n=(t-1)*h(this,k),r=h(this,j).slice(n,n+h(this,k));try{await g(this,U,G).call(this,t,r,n,()=>{g(this,z,q).call(this)}),g(this,V,$).call(this)}catch(e){if(e instanceof Q)return;if(e instanceof J){await this.abort(),h(this,_).call(this,e);return}h(this,P).push(t),await g(this,I,K).call(this)}g(this,z,q).call(this)}function $(){v(this,F,h(this,L))}async function K(){let e=(0,b.gw)(h(this,F));v(this,F,Math.min(2*h(this,F),h(this,Z))),await e}async function Y(){try{let e={bucket:h(this,x),path:h(this,w),uploadID:h(this,R),parts:h(this,N).sort((e,t)=>e.partNumber-t.partNumber)};await h(this,S).busUploadComplete.post({payload:e}),h(this,O).call(this)}catch(e){h(this,_).call(this,e)}h(this,M).call(this)}function X(e,t){h(this,T)[e]=t.loaded;let n=Math.min(Object.keys(h(this,T)).map(Number).reduce((e,t)=>e+=h(this,T)[t],0),h(this,j).size),r=h(this,j).size;h(this,C).call(this,{sent:n,total:r,percentage:Math.round(n/r*100)})}async function G(e,t,n,r){let i=new AbortController;h(this,A)[e]=i,r();try{let r=await h(this,S).workerUploadPart.put({params:{key:h(this,w).slice(1),bucket:h(this,x),uploadid:h(this,R),offset:n,partnumber:e},payload:t,config:{axios:{onUploadProgress:t=>g(this,H,X).call(this,e,t),signal:i.signal}}});if(r.error){if("canceled"===r.error)throw new Q;throw Error(r.error)}let a=r.headers.etag;if(!a)throw new J;let o={partNumber:e,eTag:a.replace(/"/g,"")};h(this,N).push(o)}finally{h(this,A)[e]=null,delete h(this,A)[e]}}class Q extends Error{constructor(){super("canceled"),this.name="CanceledError"}}class J extends Error{constructor(){super("No ETag in response, add ETag to Access-Control-Expose-Headers list"),this.name="NoETagError"}}var ee=n(21487),et=n(91157);let en=e=>(0,ee.B$)(4).times(e);var er=n(98334),ei=n(92762);let ea=(0,o.createContext)({}),eo=()=>(0,o.useContext)(ea);function es(e){let{children:t}=e,n=function(){var e;let{configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:v,setSortField:g,sortField:y,sortDirection:x,resetDefaultColumnVisibility:w}=(0,i.oy6)("renterd/v0/objects",{columns:s.z,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),j=(0,a.xj)(),k=(0,a.UO)(),E=null==k?void 0:k.bucket,{filters:S,setFilter:C,removeFilter:_,removeLastFilter:O,resetFilters:M}=(0,i.Uu5)(),T=(0,o.useMemo)(()=>{var e;return(null===(e=S.find(e=>"fileNamePrefix"===e.id))||void 0===e?void 0:e.value)||""},[S]),A=(0,o.useMemo)(()=>E?[E,...((null==k?void 0:k.path)||[]).map(decodeURIComponent)]:[],[E,null==k?void 0:k.path]),P=(0,c.B$)(),N=null===(e=P.data)||void 0===e?void 0:e.find(e=>e.name===E),R=(0,o.useMemo)(()=>(0,u.rd)(A)+"/",[A]),[D,L]=(0,ei.Z)("renterd/v0/explorerMode",{defaultValue:"directory"}),Z=(0,o.useCallback)(e=>{let t=e(A);if(0===t.length){j.push(er._.buckets.index);return}let n=er._.buckets.files.replace("[bucket]",t[0]).replace("[path]",t.slice(1).map(encodeURIComponent).join("/"));j.push(n)},[j,A]),{uploadFiles:F,uploadsMap:z,uploadsList:V}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,b.Tu)(),a=(0,c.Pt)(),s=(0,c._3)(),l=(0,c.eM)(),f=(0,c.LS)(),[h,p]=(0,o.useState)({}),m=(0,et.w)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),v=(0,o.useCallback)(e=>{let{id:t}=e;p(e=>({...e,[t]:{...e[t],uploadStatus:"uploading",loaded:0}}))},[p]),g=(0,o.useCallback)(e=>{p(t=>t[e.id]?{...t,[e.id]:{...t[e.id],loaded:e.loaded,uploadStatus:e.loaded===e.size?"processing":"uploading",size:e.size}}:t)},[p]),y=(0,o.useCallback)(e=>{p(t=>(delete t[e],{...t}))},[p]),x=(0,o.useCallback)(async e=>{var t;let{path:n,bucket:r,uploadFile:a}=e,o=new W({file:a,path:(0,u.kj)(n),bucket:r.name,api:S.current,partSize:en((null===(t=m.data)||void 0===t?void 0:t.minShards)||1).toNumber(),maxConcurrentParts:5}),s=await o.create();return o.setOnError(e=>{(0,i.OHV)({title:"Error uploading file",body:e.message}),S.current.removeUpload(s)}),o.setOnProgress((0,d.Z)(e=>{S.current.updateUploadProgress({id:s,loaded:e.sent,size:e.total})},1e3)),o.setOnComplete(async()=>{await S.current.mutate(e=>e.startsWith("/bus/objects")),S.current.removeUpload(s),setTimeout(()=>{S.current.checkAndStartUploads()},100)}),{uploadId:s,multipartUpload:o}},[m.data]),w=(0,o.useCallback)(async e=>{let{path:t,bucket:n,name:r,uploadFile:i}=e,{uploadId:a,multipartUpload:o}=await x({path:t,bucket:n,uploadFile:i});p(e=>({...e,[a]:{id:a,path:t,bucket:n,name:r,size:i.size,loaded:0,isUploading:!0,upload:o,uploadStatus:"queued",uploadFile:i,createdAt:new Date().toISOString(),uploadAbort:async()=>{await o.abort(),S.current.removeUpload(a)},type:"file"}}))},[p,x]),j=(0,o.useCallback)(async e=>{let{id:t,upload:n}=e;v({id:t}),n.start()},[v]),k=(0,o.useCallback)(()=>{let e=Object.values(h),t=e.filter(e=>"uploading"===e.uploadStatus).length;return e.filter(e=>"queued"===e.uploadStatus).slice(0,5-t).forEach(e=>{j({id:e.id,upload:e.upload})}),h},[h,j]),E=(0,o.useCallback)(e=>{e.forEach(e=>{var r,a,o;let s=e.path||e.name,l=(0,u.v_)(t,s),c=e.name,d=(0,u.ru)(l),f=null===(r=n.data)||void 0===r?void 0:r.find(e=>e.name===d);h[l]&&((0,i.OHV)({title:"Already uploading file, aborting previous upload.",body:l}),null===(a=(o=h[l]).uploadAbort)||void 0===a||a.call(o)),w({path:l,name:c,bucket:f,uploadFile:e})}),setTimeout(()=>{S.current.checkAndStartUploads()},1e3)},[t,w,n.data,h]),S=(0,o.useRef)({checkAndStartUploads:k,workerUploadPart:a,busUploadComplete:s,busUploadCreate:l,busUploadAbort:f,removeUpload:y,updateUploadProgress:g,updateStatusToUploading:v,mutate:r});(0,o.useEffect)(()=>{S.current={checkAndStartUploads:k,busUploadAbort:f,busUploadComplete:s,busUploadCreate:l,workerUploadPart:a,mutate:r,removeUpload:y,updateUploadProgress:g,updateStatusToUploading:v}},[k,f,s,l,a,r,y,g,v]),(0,o.useEffect)(()=>{let e=setInterval(()=>{S.current.checkAndStartUploads()},3e3);return()=>{clearInterval(e)}},[]);let C=(0,o.useMemo)(()=>Object.entries(h).map(e=>e[1]),[h]);return!function(e){let{uploadsMap:t}=e;(0,o.useEffect)(()=>{let e=Object.values(t).filter(e=>"uploading"===e.uploadStatus),n=t=>{if(e.length>0){let n="Warning, closing the tab will abort all ".concat(e.length," active uploads.");return t.returnValue=n,n}};return e.length>0&&window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t])}({uploadsMap:h}),{uploadFiles:E,uploadsMap:h,uploadsList:C}}({activeDirectoryPath:R}),{downloadFiles:I,downloadsList:B,getFileUrl:H,downloadCancel:U}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,o.useState)({}),a=(0,o.useCallback)(e=>{r(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"}}))},[r]),s=(0,o.useCallback)(e=>{r(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[r]),l=(0,o.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),f=(0,o.useCallback)(e=>{e.controller.abort()},[]),h=async r=>{r.forEach(async r=>{var o;let c=!1,f=(0,u.ru)(r),h=null===(o=e.data)||void 0===o?void 0:o.find(e=>e.name===f),p=(0,u.vt)(r);if(n[r]){(0,i.OHV)({title:"Already downloading file",body:r});return}let m=new AbortController,v=(0,d.Z)(e=>{c||s({path:r,loaded:e.loaded,size:e.total})},2e3);a({path:r,name:p,bucket:h,loaded:0,size:1,controller:m});let g=await t.get(p,{params:(0,u.W0)(r),config:{axios:{onDownloadProgress:v,signal:m.signal}}});c=!0,g.error&&("canceled"===g.error?(0,i.RFt)({title:"File download canceled"}):(0,i.OHV)({title:"Error downloading file",body:g.error})),l(r)})},p=(0,o.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:m}=(0,b.Hv)();return{downloadFiles:h,downloadsList:p,getFileUrl:(0,o.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,u.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),a=m.api||location.origin,o=a.startsWith("https")?"https":"http",s=a.replace("https://","").replace("http://","");return t?"".concat(o,"://:").concat(m.password,"@").concat(s,"/api").concat(i):"".concat(o,"://").concat(s,"/api").concat(i)},[m]),downloadCancel:f}}(),q=0===A.length,$=1===A.length,K=A.length>0,Y=(0,o.useCallback)(e=>{C({id:"fileNamePrefix",label:"",value:e})},[C]),X=(0,o.useCallback)(()=>{_("fileNamePrefix")},[_]),G=(0,o.useCallback)((e,t)=>{t?Y(t):X(),Z(()=>e)},[Z,Y,X]),Q=(0,o.useCallback)(e=>{G((0,u.gD)(e),(0,u.vt)(e))},[G]),J=(0,o.useCallback)(e=>{"directory"===D?Q(e):Y((0,u.kj)(e).slice(1))},[D,Q,Y]),ee=er._.buckets.uploads.replace("[bucket]",E),ea=(0,o.useCallback)(()=>{N&&j.push(ee)},[N,ee,j]),eo=(0,a.jD)(),es=E&&eo.startsWith(ee),el=(0,o.useCallback)(async()=>{(es||"directory"!==D)&&(G([E],void 0),L("directory"))},[es,D,E,L,G]),eu=(0,o.useCallback)(async()=>{(es||"flat"!==D)&&(G([E],(0,u.kj)(R).slice(1)),L("flat"))},[es,D,E,R,L,G]);return{isViewingBuckets:q,isViewingABucket:K,isViewingRootOfABucket:$,isViewingUploads:es,buckets:P,activeBucket:N,activeBucketName:E,activeDirectory:A,navigateToUploads:ea,setActiveDirectory:Z,setActiveDirectoryAndFileNamePrefix:G,activeDirectoryPath:R,navigateToModeSpecificFiltering:J,uploadFiles:F,uploadsMap:z,uploadsList:V,downloadFiles:I,downloadsList:B,downloadCancel:U,configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:v,setSortField:g,sortField:y,filters:S,fileNamePrefixFilter:T,setFileNamePrefixFilter:Y,setFilter:C,removeFilter:_,removeLastFilter:O,resetFilters:M,sortDirection:x,resetDefaultColumnVisibility:w,getFileUrl:H,activeExplorerMode:D,setExplorerModeDirectory:el,setExplorerModeFlat:eu}}();return(0,r.jsx)(ea.Provider,{value:n,children:t})}},3077:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",a=[{id:"name",label:"name",category:"general"},{id:"health",label:"health",category:"general"},{id:"size",label:"size",category:"general"}]},56328:function(e,t,n){"use strict";n.d(t,{x:function(){return L},l:function(){return D}});var r,i,a=n(52322),o=n(97479),s=n(57016),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(61020),f=n(21487),h=n(29193),p=n(62650),m=n(32998),v=n(17448),g=n(10363),y=n(6391),b=n.n(y);let x=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,a.jsx)(v.G,{address:t.netAddress,publicKey:t.publicKey})}},{id:"allow",label:"allowed",category:"general",contentClassName:"justify-center",render:function(e){var t;let{data:n}=e,r=!!(null===(t=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}).data)||void 0===t?void 0:t.length);return(0,a.jsx)(o.ua7,{side:"right",content:(r?"Allowlist ".concat(n.isOnAllowlist?"allows this host.":"does not allow this host."):"Allowlist is inactive.")+" Blocklist ".concat(n.isOnBlocklist?"blocks this host.":"does not block this host."),children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.DI$,{})})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,a.jsx)(o.xvT,{size:"10",color:r?n.isOnAllowlist?"green":"red":"verySubtle",noWrap:!0,children:"Allowlist"})]})]})})}},{id:"ap_usable",label:"usable",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.usable?"green":"red",children:t.usable?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}),(0,a.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.I98,{})})}),(0,a.jsx)("div",{className:"flex flex-col",children:Object.entries(t.gougingBreakdown).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:n},t)})})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,g.D)();if(n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey}))return(0,a.jsx)(o.xgg,{});let r=(0,h.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),i="",l=null,u="subtle";return t.lastScan||(i="host has not been scanned",l=(0,a.jsx)(d.I98,{}),u="subtle"),t.lastScan&&!t.lastScanSuccess&&(i="host scan failed ".concat(r),l=(0,a.jsx)(d.SmH,{}),u="red"),t.lastScan&&t.lastScanSuccess&&(i="host scan succeeded ".concat(r),l=(0,a.jsx)(d.DI$,{}),u="green"),(0,a.jsx)(o.ua7,{side:"right",content:i,children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:u,children:l})}),t.lastScan&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"12",noWrap:!0,children:r}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,p.Z)(new Date(t.lastScan),"Pp")})]})]})})}},{id:"hasContract",label:"active contract",category:"general",contentClassName:"w-[50px]",render:e=>{let{data:t}=e,n=t.activeContractsCount.gt(0);return(0,a.jsx)(o.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n?"green":"subtle",children:n?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,a.jsx)(o.XxW,{value:t.netAddress,size:"12",type:"hostIp",siascanUrl:n.siascanUrl})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t,context:n}=e;return(0,a.jsx)(o.XxW,{value:t.publicKey,size:"12",type:"hostPublicKey",siascanUrl:n.siascanUrl})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return t.lastAnnouncement?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)(o.xvT,{size:"12",noWrap:!0,children:[(0,h.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,m.Z)(new Date(t.lastAnnouncement),new Date)})]}):null}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"downtime",label:"downtime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"totalInteractions",label:"total interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,f.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:w("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",i="acceptingcontracts",function(e){let{data:t}=e;return t[r]?(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:w("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,a.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,a.jsx)(d.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,a.jsx)(d.B4q,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"price table (RHPv3): ".concat(e.label)}:{label:e.label,tip:e.label}}));function w(e,t){return(0,l.memo)(function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.ho9,{displayBoth:!0,size:"12",value:new(b())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function j(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,a.jsx)(o.m2c,{size:"12",value:new(b())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function k(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.XxW,{value:r[e][t],size:"12"}):null}}function E(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var S=n(76838);function C(e,t){return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.lastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===e.interactions.lastScan?null:e.interactions.lastScan,knownSince:"0001-01-01T00:00:00Z"===e.knownSince?null:e.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===e.lastAnnouncement?null:e.lastAnnouncement,uptime:new(b())(e.interactions.uptime||0),downtime:new(b())(e.interactions.downtime||0),successfulInteractions:new(b())(e.interactions.successfulInteractions||0),totalInteractions:new(b())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new(b())(e.interactions.failedInteractions||0),totalScans:new(b())(e.interactions.totalScans||0),activeContractsCount:new(b())((null==t?void 0:t.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==t?void 0:t.filter(t=>t.hostKey===e.publicKey))||[],priceTable:e.priceTable,settings:e.settings}}function _(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,a=!!(null==n?void 0:n.find(e=>e===t.publicKey)),o=!!(null==r?void 0:r.find(e=>{if(e===t.netAddress)return!0;try{let n=new URL("https://"+t.netAddress).hostname;return e===n}catch(e){return!1}}));return{isOnAllowlist:a,isOnBlocklist:o,isBlocked:o||!(!i||a)}}function O(e){return{score:new(b())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new(b())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new(b())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new(b())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new(b())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new(b())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new(b())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new(b())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var M=n(46081),T=n(37769),A=n(82494),P=n(45178),N=n(9338);let R=(0,l.createContext)({}),D=()=>(0,l.useContext)(R);function L(e){let{children:t}=e,n=function(){var e,t,n,r,i,a,d;let f=(0,c.useRouter)(),[h,p]=(0,l.useState)("list"),m=Number(f.query.limit||50),v=Number(f.query.offset||0),{filters:y,setFilter:b,removeFilter:w,removeLastFilter:j,resetFilters:k}=(0,o.Uu5)(),{dataset:E}=(0,S.G)(),{autopilot:R}=(0,M.q)(),D=(0,l.useMemo)(()=>{let e=[];y.find(e=>"hasActiveContracts"===e.id)&&E&&(e=E.map(e=>e.hostKey));let t=y.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[y,E]),L=(0,s.S0)({disabled:y.find(e=>"hasActiveContracts"===e.id)&&!E||"on"!==R.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=y.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=y.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=y.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:D},config:{swr:{errorRetryInterval:2e4,refreshInterval:N.h}}}),Z=(0,s.FV)({disabled:"off"!==R.status,payload:{limit:m,offset:v,filterMode:(null===(r=y.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=y.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:y.find(e=>"hasActiveContracts"===e.id)&&E?E.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:N.h}}}),F=(0,s.s2)(),z=(0,s.uf)(),V=!!(null===(a=F.data)||void 0===a?void 0:a.length),{settings:I}=(0,g.Hv)(),B=(0,A.JL)({disabled:!I.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{I.siaCentral||p("list")},[I.siaCentral]);let H=(0,l.useMemo)(()=>{var e;return(null===(e=B.data)||void 0===e?void 0:e.hosts)||[]},[B.data]),U=(0,l.useRef)(T.N),W=(0,l.useCallback)(e=>{U.current=e},[U]),[q,$]=(0,l.useState)(),K=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),Y=(0,l.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t&&U.current.moveToLocation(t),K(e)},[$,U,q,K]),X=(0,l.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t?U.current.moveToLocation(t):(0,o.OHV)({title:"Geographic location is unknown for host",body:(0,o.$Gg)(e,20)}),K(e)},[$,U,q,K]),G=(0,l.useCallback)((e,t)=>null,[]),Q=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:a,blocklist:o,isAllowlistActive:s,geoHosts:u,onHostSelect:c}=e;return(0,l.useMemo)(()=>{var e,l;return"off"===t?(null===(e=n.data)||void 0===e?void 0:e.map(e=>{let t=u.find(t=>t.public_key===e.publicKey);return{onClick:()=>c(e.publicKey,null==t?void 0:t.location),...C(e,i),..._({host:e,allowlist:a.data,blocklist:o.data,isAllowlistActive:s}),...O(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(l=r.data)||void 0===l?void 0:l.map(e=>{let t=u.find(t=>t.public_key===e.host.publicKey);return{onClick:()=>c(e.host.publicKey,null==t?void 0:t.location),...C(e.host,i),..._({host:e.host,allowlist:a.data,blocklist:o.data,isAllowlistActive:s}),...O(e.checks),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null},[c,t,n.data,r.data,i,a.data,o.data,s,u])}({autopilotStatus:R.status,autopilotResponse:L,regularResponse:Z,allContracts:E,allowlist:F,blocklist:z,isAllowlistActive:V,geoHosts:H,onHostSelect:X}),J=(0,l.useMemo)(()=>"off"===R.status?["autopilot"]:[],[R.status]),{configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:es,sortField:el,sortDirection:eu,resetDefaultColumnVisibility:ec}=(0,o.oy6)("renterd/v0/hosts",{columns:x,columnsDefaultVisible:u,disabledCategories:J}),ed=(0,l.useMemo)(()=>x.filter(e=>et.includes(e.id)),[et]),ef="on"===R.status?L.isValidating:Z.isValidating,eh="on"===R.status?L.error:Z.error,ep=(0,o.c2j)(Q,ef,eh,y),em=(0,P.B)(),ev=null===(d=R.state.data)||void 0===d?void 0:d.configured,eg=(0,l.useMemo)(()=>({isAutopilotConfigured:ev,siascanUrl:em}),[ev,em]),ey=(0,l.useMemo)(()=>null==Q?void 0:Q.filter(e=>e.location),[Q]);return{setCmd:W,viewMode:h,activeHost:(0,l.useMemo)(()=>null==Q?void 0:Q.find(e=>e.publicKey===q),[Q,q]),onHostMapHover:G,onHostMapClick:Y,setViewMode:p,hostsWithLocation:ey,error:eh,dataState:ep,offset:v,limit:m,pageCount:(null==Q?void 0:Q.length)||0,columns:ed,dataset:Q,tableContext:eg,configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:es,sortField:el,sortDirection:eu,resetDefaultColumnVisibility:ec,filters:y,setFilter:b,removeFilter:w,removeLastFilter:j,resetFilters:k}}();return(0,a.jsx)(R.Provider,{value:n,children:t})}},10569:function(e,t,n){"use strict";n.d(t,{Kg:function(){return a},jY:function(){return i}});var r=n(97479);let i={activeAndUsable:{colorHex:r.O9T.green[600],colorName:"green"},activeAndUnusable:{colorHex:r.O9T.amber[600],colorName:"amber"},potentialHost:{colorHex:r.O9T.blue[600],colorName:"blue"}};function a(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},71367:function(e,t,n){"use strict";n.d(t,{f:function(){return y},E:function(){return g}});var r=n(52322),i=n(97479),a=n(5632),o=n(2784),s=n(33962),l=n(61020),u=n(57016),c=n(77248),d=n(13762),f=n(97112);function h(e){let{s3Key:t,contentProps:n,buttonProps:a}=e,{openConfirmDialog:s}=(0,f.Rh)(),h=(0,c.m)(),p=(0,u.KJ)(),m=(0,o.useCallback)(async()=>{var e;let n=(0,d.Z)(null===(e=h.data)||void 0===e?void 0:e.v4Keypairs,t),r=await p.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,i.OHV)({title:"Error deleting key",body:r.error}):(0,i.OPV)({title:"Key ".concat(t," removed")})},[h.data,t,p]);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(l.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Key ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{s({title:"Delete key ".concat((0,i.$Gg)(t,15)),action:"Remove",variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following key?"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",children:(0,i.$Gg)(t,80)})]}),onConfirm:async()=>{m()}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete key"]})]})}let p=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(h,{s3Key:t})}},{id:"key",label:"key",category:"general",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:80})}},{id:"secret",label:"secret",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{secret:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:10,font:"mono"})}}];var m=n(9338);let v=(0,o.createContext)({}),g=()=>(0,o.useContext)(v);function y(e){let{children:t}=e,n=function(){let e=(0,a.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,c.m)({config:{swr:{refreshInterval:m.h}}}),l=(0,o.useMemo)(()=>{var e;return r.data?Object.entries((null===(e=r.data)||void 0===e?void 0:e.v4Keypairs)||{}).map(e=>{let[t,n]=e;return{id:t,key:t,secret:n}})||[]:null},[r.data]),{filters:u,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:v}=(0,i.Wdu)(),{configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,sortDirection:_,resetDefaultColumnVisibility:O}=(0,i.oy6)("renterd/v0/keys",{columns:p,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),M=(0,i._4u)({dataset:l,filters:u,sortField:C,sortDirection:_}),T=(0,o.useMemo)(()=>M?M.slice(n,n+t):null,[M,n,t]),A=(0,o.useMemo)(()=>p.filter(e=>e.fixed||y.includes(e.id)),[y]),P=(0,i.c2j)(M,r.isValidating,r.error,u),N=(0,o.useMemo)(()=>({}),[]);return{dataState:P,limit:t,offset:n,isLoading:r.isLoading,error:r.error,pageCount:(null==T?void 0:T.length)||0,datasetCount:(null==l?void 0:l.length)||0,datasetFilteredCount:(null==M?void 0:M.length)||0,columns:A,dataset:l,cellContext:N,datasetPage:T,configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,filters:u,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:v,sortDirection:_,resetDefaultColumnVisibility:O}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},33962:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["key","secret"],i="key",a=[{id:"key",label:"key",category:"general"},{id:"secret",label:"secret",category:"general"}]},40730:function(e,t,n){"use strict";n.d(t,{n:function(){return m},v:function(){return v}});var r=n(52322),i=n(97479),a=n(57016),o=n(2784),s=n(97112),l=n(6391),u=n.n(l),c=n(5632),d=n(45178),f=n(9338);let h=[],p=(0,o.createContext)({}),m=()=>(0,o.useContext)(p);function v(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:f.h}}}),l=(0,a.a0)({config:{swr:{refreshInterval:f.h}}}),{openDialog:p}=(0,s.Rh)(),m=(0,d.B)(),v=(0,o.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0,siascanUrl:m})),...(r.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:(0,i.I13)(e.id),timestamp:new Date(e.timestamp).getTime(),onClick:()=>p("transactionDetails",(0,i.I13)(e.id)),raw:e.raw,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:m})).sort((e,t)=>e.timestampnew Date(new Date().getTime()-30*b).toISOString(),[30,b]),w=(0,a.X1)({params:{start:x,interval:b,n:30}}),j=(0,o.useMemo)(()=>(w.data||[]).map(e=>({sc:new(u())(e.spendable).plus(e.unconfirmed).toNumber(),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[w.data]);return{dataset:v,error:g,dataState:y,offset:n,limit:t,pageCount:(null==v?void 0:v.length)||0,balances:j,metrics:w}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},88778:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(52322),i=n(97479),a=n(70899),o=n(26731),s=n(21487),l=n(32998),u=n(61020);function c(e){let{abort:t}=e;return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(u.bQp,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:t,children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u._fo,{})}),"Cancel upload"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{uploadAbort:t}}=e;return(0,r.jsx)(c,{abort:t})}},{id:"path",label:"path",contentClassName:"max-w-[600px]",category:"general",render:function(e){let{data:{path:t,id:n}}=e,o=(0,a.kj)(t).slice(1);return(0,r.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",size:"14",children:o}),(0,r.jsx)(i.XxW,{value:n,label:"upload ID",size:"10"})]})}},{id:"status",label:"status",category:"general",contentClassName:"w-[200px]",render:function(e){let{data:{loaded:t,size:n,uploadStatus:a,remote:s}}=e;return s?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"Uploading from a different session"}):(0,r.jsx)(o.s,{loaded:t,size:n,status:a})}},{id:"size",label:"size",category:"general",render:function(e){let{data:{remote:t,size:n}}=e;return t?null:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,s.vW)(n)})}},{id:"createdAt",label:"started at",category:"general",render:function(e){let{data:{createdAt:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,l.Z)(new Date(t).getTime(),new Date)})}}]},73076:function(e,t,n){"use strict";n.d(t,{V:function(){return m},x:function(){return p}});var r=n(52322),i=n(97479),a=n(99605),o=n(57016),s=n(2784);let l=["path","status","size","createdAt"],u=[];var c=n(88778),d=n(70899),f=n(41736);let h=(0,s.createContext)({}),p=()=>(0,s.useContext)(h);function m(e){let{children:t}=e,n=function(){var e,t;let{uploadsMap:n,activeBucket:r}=(0,f.b)(),h=(0,a.lr)(),p=Number(h.get("limit")||50),m=h.get("marker"),{filters:v,setFilter:g,removeFilter:y,removeLastFilter:b,resetFilters:x}=(0,i.Uu5)(),w=(0,o.LS)(),j=(0,o.bg)({disabled:!r,payload:{bucket:null==r?void 0:r.name,uploadIDMarker:m,limit:p}}),k=(0,s.useCallback)(async()=>{var e,t;return Promise.all(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(async e=>{let t=n[e.uploadID];if(t){var i;null===(i=t.uploadAbort)||void 0===i||i.call(t)}else await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}))},[j.data,w,r,n]),E=(0,s.useMemo)(()=>{var e,t;return(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(e=>{let t=e.uploadID,i=(0,d.vt)(e.path),a=(0,d.v_)(null==r?void 0:r.name,e.path);return n[t]||{id:t,path:a,bucket:r,name:i,size:1,loaded:1,isUploading:!0,uploadStatus:"uploading",createdAt:e.createdAt,remote:!0,type:"file",uploadAbort:async()=>{await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}}}))||[]},[n,r,j.data,w]),{configurableColumns:S,enabledColumns:C,sortableColumns:_,toggleColumnVisibility:O,setColumnsVisible:M,setColumnsHidden:T,toggleSort:A,setSortDirection:P,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/uploads",{columns:c.z,columnsDefaultVisible:l,sortOptions:u,defaultSortField:"path"}),Z=(0,s.useMemo)(()=>c.z.filter(e=>e.fixed||C.includes(e.id)),[C]);return{abortAll:k,dataState:(0,i.c2j)(E,j.isValidating,j.error,v),limit:p,nextMarker:null===(e=j.data)||void 0===e?void 0:e.nextUploadIDMarker,hasMore:null===(t=j.data)||void 0===t?void 0:t.hasMore,isLoading:j.isLoading,error:j.error,pageCount:(null==E?void 0:E.length)||0,columns:Z,datasetPage:E,configurableColumns:S,enabledColumns:C,sortableColumns:_,toggleColumnVisibility:O,setColumnsVisible:M,setColumnsHidden:T,toggleSort:A,setSortDirection:P,setSortField:N,sortField:R,filters:v,setFilter:g,removeFilter:y,removeLastFilter:b,resetFilters:x,sortDirection:D,resetDefaultColumnVisibility:L}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},82229:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(97479),i=n(57016),a=n(2784);function o(){let e=(0,i.ni)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating allowlist",body:i.error}),!1):(t.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist.")}),n.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist.")}),!0)})(),[e])}},94613:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(97479),i=n(57016),a=n(2784);function o(){let e=(0,i.Os)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating blocklist",body:i.error}),!1):(t.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist.")}),n.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist.")}),!0)})(),[e])}},91332:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(57016);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},18121:function(e,t,n){"use strict";n.d(t,{B:function(){return o},V:function(){return a}});var r=n(52322),i=n(61020);let a={excellent:1,good:.5,poor:0};function o(e){let{health:t,size:n,isDirectory:o}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},91157:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(57016);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},77248:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(57016);function i(e){return(0,r.yu)({...e,params:{key:"s3authentication"}})}},45178:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(97479),i=n(57016);function a(){var e;return(null===(e=(0,i.d_)().data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},38855:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(97479),i=n(10363),a=n(57016);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:s}=(0,i.Hv)(),l=(0,a.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,a.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,a.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:null===(t=l.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(o=d.data)||void 0===o?void 0:o.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},70899:function(e,t,n){"use strict";n.d(t,{W0:function(){return m},YF:function(){return f},ez:function(){return w},ru:function(){return h},gD:function(){return b},vt:function(){return v},kj:function(){return p},rj:function(){return y},IQ:function(){return g},v_:function(){return d},rd:function(){return x}});var r=n(79200),i=n(81441),a=n(81721),o=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},s=n(36202),l=n(25186),u=/^\s+/,c=function(e,t,n){if((e=(0,l.Z)(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,s.Z)(e),c=o(a,(0,s.Z)(t));return(0,i.Z)(a,c).join("")};function d(e,t){let n=e.endsWith("/")?e.slice(0,-1):e,r=t.startsWith("/")?t.slice(1):t;return"".concat(n,"/").concat(r)}function f(e,t){let n=d(e=c(e,"/"),t);return n.endsWith("/")?n:n+"/"}function h(e){return e.split("/")[0]}function p(e){let t=(e=c(e,"/")).split("/").slice(1).join("/");return"/".concat(t)}function m(e){return{bucket:h(e),key:p(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function v(e){let t=(e=c(e,"/")).split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function g(e){return e.endsWith("/")}function y(e){return(g(e=c(e,"/"))?e.slice(0,-1):e).split("/").slice(0,-1).join("/").concat("/")}function b(e){return g(e=c(e,"/"))?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function x(e){return e.join("/")}function w(e){return g(e=c(e,"/"))?e:e.concat("/")}},5184:function(e,t,n){"use strict";n.d(t,{E:function(){return a},e:function(){return i}});var r=n(70899);function i(e,t){let n=String(e.active.id),i=(0,r.rd)(t);e.collisions.length&&(i=".."===e.collisions[0].id?(0,r.rd)(t.slice(0,-1)):String(e.collisions[0].id));let a=(0,r.vt)(n);return{bucket:(0,r.ru)(n),from:(0,r.kj)(n),to:(0,r.kj)((0,r.v_)(i,a)),mode:a.endsWith("/")?"multi":"single"}}function a(e,t){let n=(0,r.v_)((0,r.rj)(e),t),i=(0,r.IQ)(e);return i&&(n=(0,r.ez)(n)),{bucket:(0,r.ru)(e),from:(0,r.kj)(e),to:(0,r.kj)(n),mode:i?"multi":"single"}}},83391:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var r=n(52322);n(50521);var i=n(97479),a=n(2784),o=n(97112),s=n(76838),l=n(56328),u=n(46081),c=n(49889),d=n(61020),f=n(38855),h=n(98334),p=n(42770),m=n(57016),v=n(6391),g=n.n(v),y=n(21487),b=n(10363),x=n(92762);function w(){var e,t;let{isUnlockedAndAuthedRoute:n}=(0,b.Hv)(),a=(0,u.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,m.X2)(),c=(0,m.e$)({config:{swr:{errorRetryInterval:1e4}}}),[v,w]=(0,x.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),k=(0,f.n)(),E=(0,p.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(g())(l.data?l.data.confirmed+l.data.unconfirmed:0),C=new(g())((null===(e=c.data)||void 0===e?void 0:e.contracts.allowance)||0),_=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=k.isSynced,M=S.gt(0),T=!E.active,A=[_,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:v?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>w(!1),children:(0,r.jsx)(d.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify how much data you plan to store and your target price.",action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:h._.config.index,children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 2: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.hzZ,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>s("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,y.Vz)(C)," siacoin to cover the required allowance.").concat(k.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!k.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(k.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[k.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.contracts.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 4: Wait for storage contracts to form"}),description:"Once all other steps are complete, contracts will automatically form. No user action required.",action:T?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[E.count,"/",E.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>w(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",N,"/",P," steps complete"]})})})}function j(e){let{title:t,action:n,description:a}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a})})]})})}var k=n(41736),E=n(26731);function S(e){let{loaded:t,size:n,path:a,abortTip:o,abort:s,status:l}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:a}),(0,r.jsx)(i.zxk,{tip:o,variant:"ghost",size:"none",onClick:()=>null==s?void 0:s(),children:(0,r.jsx)(d.PcV,{})})]}),(0,r.jsx)(E.s,{loaded:t,size:n,status:l})]})}var C=n(73076);function _(){let{isUnlockedAndAuthedRoute:e}=(0,b.Hv)(),{downloadsList:t,downloadCancel:n,isViewingUploads:o,navigateToUploads:s}=(0,k.b)(),{pageCount:l}=(0,C.x)(),[u,c]=(0,a.useState)(!0),f=!!l,h=t.length,p=!!h;if(!e||!f&&!p)return null;let m=(0,r.jsxs)("div",{className:"flex gap-2",children:[f&&!o?(0,r.jsxs)(i.zxk,{tip:"Uploads list",onClick:s,className:"flex gap-3",children:[(0,r.jsx)(d.R$6,{className:"opacity-50 scale-75 relative top-px"}),"Active uploads"]}):null,p?(0,r.jsxs)(i.zxk,{tip:"Downloads list",onClick:()=>c(e=>!e),className:"flex gap-3",children:[(0,r.jsx)(d.vzB,{className:"opacity-50 scale-75"}),"Active downloads"]}):null]});return p&&u?(0,r.jsxs)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex flex-col items-center justify-center gap-2",children:[(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsx)(i.xrM,{children:p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active downloads (",h,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(d.mli,{})})]}),t.map(e=>(0,r.jsx)(S,{path:e.path,loaded:e.loaded,size:e.size,status:e.loaded===e.size?"processing":"downloading",abort:()=>n(e),abortTip:"Cancel download"},e.id))]}):null})}),m]}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2",children:m})}var O=n(40730),M=n(71367),T=n(43385),A=n(75618),P=n(88385);function N(e){let{children:t}=e;return(0,r.jsx)(u.w,{children:(0,r.jsx)(c.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(O.v,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsx)(k.e,{children:(0,r.jsx)(C.V,{children:(0,r.jsx)(A.V,{children:(0,r.jsx)(T.p,{children:(0,r.jsx)(M.f,{children:(0,r.jsxs)(P.b,{children:[(0,r.jsx)(w,{}),(0,r.jsx)(_,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})})})})})})})}var R=n(46058),D=n.n(R),L=n(28863),Z=n.n(L);let F=(0,n(82851).cx)(D().variable,Z().variable);function z(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:F,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,r.jsx)(N,{children:(0,r.jsx)(t,{...n})})})}},97479:function(e,t,n){"use strict";let r,i,a,o;n.d(t,{tU3:function(){return OP},zXq:function(){return OH},juT:function(){return Oi},Cts:function(){return lq},Z58:function(){return Mf},WVB:function(){return c6},zxk:function(){return lM},b0u:function(){return k0},EKh:function(){return lY},vRO:function(){return MX},QHy:function(){return MF},TaT:function(){return Mw},eQh:function(){return lG},HfT:function(){return MI},wEc:function(){return Mp},ncR:function(){return Ce},VqE:function(){return uO},h_2:function(){return dt},Xiv:function(){return dn},Juw:function(){return dr},KpP:function(){return di},fhJ:function(){return p9},XOF:function(){return S9},S$c:function(){return Cd},WyV:function(){return MG},yEL:function(){return OV},cB7:function(){return Co},ZqQ:function(){return Ca},IKw:function(){return Cf},KZS:function(){return Cs},zsw:function(){return pm},__J:function(){return dv},rUS:function(){return db},Qjf:function(){return dx},xgg:function(){return kQ},TRl:function(){return dj},kFS:function(){return c8},FzK:function(){return MD},Clw:function(){return c5},PD$:function(){return M3},Wxm:function(){return hf},uDJ:function(){return _6},_5:function(){return _7},wFK:function(){return _8},s_4:function(){return nE},nvN:function(){return nj},u5Q:function(){return Mh},j4H:function(){return hl},hmz:function(){return hu},J2e:function(){return dU},kod:function(){return d3},xrM:function(){return uS},PhF:function(){return hd},Z0O:function(){return c0},DLL:function(){return Mr},KJW:function(){return Os},rsf:function(){return hO},D_D:function(){return O4},iA_:function(){return _5},mQc:function(){return fP},nUL:function(){return fD},drW:function(){return fN},SPt:function(){return fR},t6k:function(){return MB},xvT:function(){return nw},nvn:function(){return fZ},ua7:function(){return l_},mPE:function(){return O3},XxW:function(){return SI},PF9:function(){return SH},m2c:function(){return SY},YKL:function(){return SW},ho9:function(){return SK},QUh:function(){return Ma},weF:function(){return OJ},YNn:function(){return O8},DmW:function(){return O7},O9T:function(){return v9},fVJ:function(){return Mu},vQq:function(){return SO},E5z:function(){return ST},HLH:function(){return Tc},NrH:function(){return kz},k9c:function(){return kW},Y_Z:function(){return Mo},EJC:function(){return Tl},kOJ:function(){return Ml},leQ:function(){return SR},Ztc:function(){return O0},XAn:function(){return kq},Vkc:function(){return c2},sWj:function(){return kF},ort:function(){return k$},xLV:function(){return kI},okB:function(){return kU},AEA:function(){return kH},S5N:function(){return T5},z$:function(){return nk},XBW:function(){return kY},GXN:function(){return kK},I13:function(){return SP},cEb:function(){return fL},y70:function(){return ht},OHV:function(){return SS},OPV:function(){return SE},RFt:function(){return Sk},$Gg:function(){return SA},_4u:function(){return Ti},Wdu:function(){return Tr},Y97:function(){return OA},c2j:function(){return ON},t0Y:function(){return M1},mYE:function(){return MJ},u$d:function(){return M0},Z4p:function(){return MQ},WsO:function(){return Oz},Uu5:function(){return Ta},fb0:function(){return Ts},oy6:function(){return Tt},nNd:function(){return O9},BL0:function(){return kV},ivg:function(){return kB}});var s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k,E,S,C,_,O,M,T,A,P,N,R,D,L,Z,F,z,V,I,B,H,U,W,q,$,K,Y,X,G,Q,J,ee,et,en,er,ei,ea=n(52322),eo=n(2784),es=n.t(eo,2),el=n(7896),eu=n(34540),ec=n(26215),ed=n(99575);function ef(e){let t=e+"CollectionProvider",[n,r]=(0,eu.b)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",s=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(o,n),s=(0,ec.e)(t,i.collectionRef);return eo.createElement(ed.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:s,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),s=(0,ec.e)(t,o),c=a(l,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(ed.g7,{[u]:"",ref:s},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var eh=n(41816),ep=n(73597),em=n(72130),ev=n(64680),eg=n(28245),ey=n(26074);let eb="Collapsible",[ex,ew]=(0,eu.b)(eb),[ej,ek]=ex(eb),eE=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[l=!1,u]=(0,ep.T)({prop:r,defaultProp:i,onChange:o});return(0,eo.createElement)(ej,{scope:n,disabled:a,contentId:(0,ey.M)(),open:l,onOpenToggle:(0,eo.useCallback)(()=>u(e=>!e),[u])},(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":eC(l),"data-disabled":a?"":void 0},s,{ref:t})))},"CollapsibleContent"),eS=((e,t)=>{let{forceMount:n,...r}=e,i=ek(eE,e.__scopeCollapsible);return(0,eo.createElement)(eg.z,{present:n||i.open},({present:e})=>(0,eo.createElement)(eS,(0,el.Z)({},r,{ref:t,present:e})))},(0,eo.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=ek(eE,n),[s,l]=(0,eo.useState)(r),u=(0,eo.useRef)(null),c=(0,ec.e)(t,u),d=(0,eo.useRef)(0),f=d.current,h=(0,eo.useRef)(0),p=h.current,m=o.open||s,v=(0,eo.useRef)(m),g=(0,eo.useRef)();return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,ev.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[o.open,r]),(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":eC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m},a,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function eC(e){return e?"open":"closed"}let e_="Accordion",eO=["Home","End","ArrowDown","ArrowUp"],[eM,eT,eA]=ef(e_),[eP,eN]=(0,eu.b)(e_,[eA,ew]);ew(),eo.forwardRef((e,t)=>{let{type:n,...r}=e;return eo.createElement(eM.Provider,{scope:e.__scopeAccordion},"multiple"===n?eo.createElement(ez,(0,el.Z)({},r,{ref:t})):eo.createElement(eF,(0,el.Z)({},r,{ref:t})))}).propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[eR,eD]=eP(e_),[eL,eZ]=eP(e_,{collapsible:!1}),eF=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,l]=(0,ep.T)({prop:n,defaultProp:r,onChange:i});return eo.createElement(eR,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:eo.useCallback(()=>a&&l(""),[a,l])},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:a},eo.createElement(eB,(0,el.Z)({},o,{ref:t}))))}),ez=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],s]=(0,ep.T)({prop:n,defaultProp:r,onChange:i}),l=eo.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=eo.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return eo.createElement(eR,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:!0},eo.createElement(eB,(0,el.Z)({},a,{ref:t}))))}),[eV,eI]=eP(e_),eB=eo.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,a=eo.useRef(null),o=(0,ec.e)(a,t),s=eT(n),l=(0,eh.M)(e.onKeyDown,e=>{var t;if(!eO.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),a=r.length;if(-1===i)return;e.preventDefault();let o=i;switch(e.key){case"Home":o=0;break;case"End":o=a-1;break;case"ArrowDown":o=i+1;break;case"ArrowUp":(o=i-1)<0&&(o=a-1)}null===(t=r[o%a].ref.current)||void 0===t||t.focus()});return eo.createElement(eV,{scope:n,disabled:r},eo.createElement(eM.Slot,{scope:n},eo.createElement(em.WV.div,(0,el.Z)({},i,{ref:o,onKeyDown:r?void 0:l}))))}),[eH,eU]=eP("AccordionItem");var eW=n(82851),eq=n(83317);function e$(e){return e.split("-")[0]}function eK(e){return e.split("-")[1]}function eY(e){return["top","bottom"].includes(e$(e))?"x":"y"}function eX(e){return"y"===e?"height":"width"}function eG(e,t,n){let r,{reference:i,floating:a}=e,o=i.x+i.width/2-a.width/2,s=i.y+i.height/2-a.height/2,l=eY(t),u=eX(l),c=i[u]/2-a[u]/2,d="x"===l;switch(e$(t)){case"top":r={x:o,y:i.y-a.height};break;case"bottom":r={x:o,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-a.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eK(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eQ=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=await (null==o.isRTL?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eG(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:a,placement:o,rects:s,platform:l}=t;if(null==n)return{};let u=eJ(r),c={x:i,y:a},d=eY(o),f=eK(o),h=eX(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],j=x-p[h]-u[v],k=x/2-p[h]/2+(g/2-y/2),E=e4(w,e2(k,j)),S=("start"===f?u[m]:u[v])>0&&k!==E&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?ke5[e])}let e8={start:"end",end:"start"};function e7(e){return e.replace(/start|end/g,e=>e8[e])}let e9=["top","right","bottom","left"];e9.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let te=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a;let{placement:o,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=e$(o),b=p||(y!==u&&v?function(e){let t=e6(e);return[e7(e),t,e7(t)]}(u):[e6(u)]),x=[u,...b],w=await e1(t,g),j=[],k=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&j.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eK(e),i=eY(e),a=eX(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=e6(o)),{main:o,cross:e6(o)}}(o,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:o,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(a=k.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tn(e){return e9.some(t=>e[t]>=0)}let tr=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=tt(await e1(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tn(t)}}}case"escaped":{let t=tt(await e1(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tn(t)}}}default:return{}}}}},ti=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=e$(n),s=eK(n),l="x"===eY(n),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function ta(e){return"x"===e?"y":"x"}let to=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await e1(t,l),d=eY(e$(i)),f=ta(d),h=u[d],p=u[f];if(a){let e="y"===d?"bottom":"right";h=e4(h+c["y"===d?"top":"left"],e2(h,h-c[e]))}if(o){let e="y"===f?"bottom":"right";p=e4(p+c["y"===f?"top":"left"],e2(p,p-c[e]))}let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ts=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eY(i),f=ta(d),h=c[d],p=c[f],m="function"==typeof s?s({...a,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+v.mainAxis,n=a.reference[d]+a.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(e$(i)),n=a.reference[f]-a.floating[e]+(t&&null!=(g=null==(y=o.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:null!=(b=null==(x=o.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function tl(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tu(e){if(null==e)return window;if(!tl(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tc(e){return tu(e).getComputedStyle(e)}function td(e){return tl(e)?"":e?(e.nodeName||"").toLowerCase():""}function tf(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function th(e){return e instanceof tu(e).HTMLElement}function tp(e){return e instanceof tu(e).Element}function tm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tu(e).ShadowRoot||e instanceof ShadowRoot)}function tv(e){let{overflow:t,overflowX:n,overflowY:r}=tc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tg(e){let t=/firefox/i.test(tf()),n=tc(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ty(){return!/^((?!chrome|android).)*safari/i.test(tf())}let tb=Math.min,tx=Math.max,tw=Math.round;function tj(e,t,n){var r,i,a,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&th(e)&&(l=e.offsetWidth>0&&tw(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&tw(s.height)/e.offsetHeight||1);let c=tp(e)?tu(e):window,d=!ty()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tk(e){return((e instanceof tu(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tE(e){return tp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tS(e){return tj(tk(e)).left+tE(e).scrollLeft}function tC(e){return"html"===td(e)?e:e.assignedSlot||e.parentNode||(tm(e)?e.host:null)||tk(e)}function t_(e){return th(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tO(e){let t=tu(e),n=t_(e);for(;n&&["table","td","th"].includes(td(n))&&"static"===getComputedStyle(n).position;)n=t_(n);return n&&("html"===td(n)||"body"===td(n)&&"static"===getComputedStyle(n).position&&!tg(n))?t:n||function(e){let t=tC(e);for(tm(t)&&(t=t.host);th(t)&&!["html","body"].includes(td(t));){if(tg(t))return t;t=t.parentNode}return null}(e)||t}function tM(e){if(th(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tj(e);return{width:t.width,height:t.height}}function tT(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tC(t);return["html","body","#document"].includes(td(n))?t.ownerDocument.body:th(n)&&tv(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tu(r),o=i?[a].concat(a.visualViewport||[],tv(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(tT(o))}function tA(e,t,n){return"viewport"===t?e0(function(e,t){let n=tu(e),r=tk(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=ty();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n)):tp(t)?function(e,t){let n=tj(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):e0(function(e){var t;let n=tk(e),r=tE(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=tx(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tx(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tS(e),l=-r.scrollTop;return"rtl"===tc(i||n).direction&&(s+=tx(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(tk(e)))}let tP={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e){let t=tT(e),n=["absolute","fixed"].includes(tc(e).position)&&th(e)?tO(e):e;return tp(n)?t.filter(e=>tp(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tm(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==td(e)):[]}(t):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=tA(t,n,i);return e.top=tx(r.top,e.top),e.right=tb(r.right,e.right),e.bottom=tb(r.bottom,e.bottom),e.left=tx(r.left,e.left),e},tA(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=th(n),a=tk(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==td(n)||tv(a))&&(o=tE(n)),th(n))){let e=tj(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}},isElement:tp,getDimensions:tM,getOffsetParent:tO,getDocumentElement:tk,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=th(t),i=tk(t),a=tj(e,r&&function(e){let t=tj(e);return tw(t.width)!==e.offsetWidth||tw(t.height)!==e.offsetHeight}(t),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==td(t)||tv(i))&&(o=tE(t)),th(t)){let e=tj(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tS(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}(t,tO(n),r),floating:{...tM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tc(e).direction};function tN(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i&&!s,u=a&&!s,c=l||u?[...tp(e)?tT(e):[],...tT(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(o){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),tp(e)&&!s&&f.observe(e),f.observe(t)}let h=s?tj(e):null;return s&&function t(){let r=tj(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let tR=(e,t,n)=>eQ(e,t,{platform:tP,...n});var tD=n(28316),tL="undefined"!=typeof document?eo.useLayoutEffect:eo.useEffect;function tZ(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,a=eo.useRef(null),o=eo.useRef(null),s=function(e){let t=eo.useRef(e);return tL(()=>{t.current=e}),t}(i),l=eo.useRef(null),[u,c]=eo.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=eo.useState(t);!function e(t,n){let r,i,a;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=eo.useCallback(()=>{a.current&&o.current&&tR(a.current,o.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tD.flushSync(()=>{c(e)})})},[d,n,r]);tL(()=>{p.current&&h()},[h]);let p=eo.useRef(!1);tL(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=eo.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),a.current&&o.current){if(s.current){let e=s.current(a.current,o.current,h);l.current=e}else h()}},[h,s]),v=eo.useCallback(e=>{a.current=e,m()},[m]),g=eo.useCallback(e=>{o.current=e,m()},[m]),y=eo.useMemo(()=>({reference:a,floating:o}),[]);return eo.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tF=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return e3({element:t.current,padding:n}).fn(e)}else if(t)return e3({element:t,padding:n}).fn(e);return{}}}},tz=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(em.WV.svg,(0,el.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tV(e){let[t,n]=(0,eo.useState)(void 0);return(0,ev.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let tI="Popper",[tB,tH]=(0,eu.b)(tI),[tU,tW]=tB(tI),tq=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=tW("PopperAnchor",n),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(em.WV.div,(0,el.Z)({},i,{ref:s}))}),t$="PopperContent",[tK,tY]=tB(t$),[tX,tG]=tB(t$,{hasParent:!1,positionUpdateFns:new Set}),tQ=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,j=tW(t$,c),[k,E]=(0,eo.useState)(null),S=(0,ec.e)(t,e=>E(e)),[C,_]=(0,eo.useState)(null),O=tV(C),M=null!==(n=null==O?void 0:O.width)&&void 0!==n?n:0,T=null!==(r=null==O?void 0:O.height)&&void 0!==r?r:0,A="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],N=P.length>0,R={padding:A,boundary:P.filter(t2),altBoundary:N},{reference:D,floating:L,strategy:Z,x:F,y:z,placement:V,middlewareData:I,update:B}=tZ({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tN,middleware:[ti({mainAxis:f+T,alignmentAxis:p}),x?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?ts():void 0,...R}):void 0,C?tF({element:C,padding:m}):void 0,x?te({...R}):void 0,t4({arrowWidth:M,arrowHeight:T}),b?tr({strategy:"referenceHidden"}):void 0].filter(t1)});(0,ev.b)(()=>{D(j.anchor)},[D,j.anchor]);let H=null!==F&&null!==z,[U,W]=t3(V),q=null===(i=I.arrow)||void 0===i?void 0:i.x,$=null===(a=I.arrow)||void 0===a?void 0:a.y,K=(null===(o=I.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Y,X]=(0,eo.useState)();(0,ev.b)(()=>{k&&X(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:G,positionUpdateFns:Q}=tG(t$,c),J=!G;(0,eo.useLayoutEffect)(()=>{if(!J)return Q.add(B),()=>{Q.delete(B)}},[J,Q,B]),(0,eo.useLayoutEffect)(()=>{J&&H&&Array.from(Q).reverse().forEach(e=>requestAnimationFrame(e))},[J,H,Q]);let ee={"data-side":U,"data-align":W,...w,ref:S,style:{...w.style,animation:H?void 0:"none",opacity:null!==(s=I.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:H?`translate3d(${Math.round(F)}px, ${Math.round(z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(l=I.transformOrigin)||void 0===l?void 0:l.x,null===(u=I.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,eo.createElement)(tK,{scope:c,placedSide:U,onArrowChange:_,arrowX:q,arrowY:$,shouldHideArrow:K},J?(0,eo.createElement)(tX,{scope:c,hasParent:!0,positionUpdateFns:Q},(0,eo.createElement)(em.WV.div,ee)):(0,eo.createElement)(em.WV.div,ee)))}),tJ={top:"bottom",right:"left",bottom:"top",left:"right"},t0=(0,eo.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tY("PopperArrow",n),a=tJ[i.placedSide];return(0,eo.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,eo.createElement)(tz,(0,el.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function t1(e){return void 0!==e}function t2(e){return null!==e}let t4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=t3(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function t3(e){let[t,n="center"]=e.split("-");return[t,n]}let t5=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(tU,{scope:t,anchor:r,onAnchorChange:i},n)};var t6=n(6500);let t8=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(em.WV.span,(0,el.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}}))),[t7,t9]=(0,eu.b)("Tooltip",[tH]),ne=tH(),nt="tooltip.open",[nn,nr]=t7("TooltipProvider"),ni="Tooltip",[na,no]=t7(ni),ns="TooltipTrigger",nl=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=no(ns,n),a=nr(ns,n),o=ne(n),s=(0,eo.useRef)(null),l=(0,ec.e)(t,s,i.onTriggerChange),u=(0,eo.useRef)(!1),c=(0,eo.useRef)(!1),d=(0,eo.useCallback)(()=>u.current=!1,[]);return(0,eo.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,eo.createElement)(tq,(0,el.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,el.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,eh.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,eh.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,eh.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,eh.M)(e.onBlur,i.onClose),onClick:(0,eh.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nu="TooltipPortal",[nc,nd]=t7(nu,{forceMount:void 0}),nf="TooltipContent",nh=(0,eo.forwardRef)((e,t)=>{let n=nd(nf,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=no(nf,e.__scopeTooltip);return(0,eo.createElement)(eg.z,{present:r||o.open},o.disableHoverableContent?(0,eo.createElement)(ng,(0,el.Z)({side:i},a,{ref:t})):(0,eo.createElement)(np,(0,el.Z)({side:i},a,{ref:t})))}),np=(0,eo.forwardRef)((e,t)=>{let n=no(nf,e.__scopeTooltip),r=nr(nf,e.__scopeTooltip),i=(0,eo.useRef)(null),a=(0,ec.e)(t,i),[o,s]=(0,eo.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,eo.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,eo.useCallback)((e,t)=>{let n=e.currentTarget,r=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),i="right"===r||"bottom"===r?-5:5;s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}(["right"===r||"left"===r?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),d(!0)},[d]);return(0,eo.useEffect)(()=>()=>f(),[f]),(0,eo.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,eo.useEffect)(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}(n,o);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,o,u,f]),(0,eo.createElement)(ng,(0,el.Z)({},e,{ref:a}))}),[nm,nv]=t7(ni,{isInside:!1}),ng=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=no(nf,n),u=ne(n),{onClose:c}=l;return(0,eo.useEffect)(()=>(document.addEventListener(nt,c),()=>document.removeEventListener(nt,c)),[c]),(0,eo.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,eo.createElement)(tQ,(0,el.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,eo.createElement)(ed.A4,null,r),(0,eo.createElement)(nm,{scope:n,isInside:!0},(0,eo.createElement)(t8,{id:l.contentId,role:"tooltip"},i||r))))}),ny=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=nr(ni,e.__scopeTooltip),u=ne(t),[c,d]=(0,eo.useState)(null),f=(0,ey.M)(),h=(0,eo.useRef)(0),p=null!=o?o:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,eo.useRef)(!1),[g=!1,y]=(0,ep.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(nt))):l.onClose(),null==a||a(e)}}),b=(0,eo.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,eo.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,eo.createElement)(t5,u,(0,eo.createElement)(na,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,eo.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,eo.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},nb=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=no(nu,t);return(0,eo.createElement)(nc,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},nx=(0,eW.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),nw=eo.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:a,weight:o,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,ea.jsx)(n,{ref:t,className:(0,eW.cx)(r,nx({font:i,color:a,weight:o,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),nj=eo.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,ea.jsx)(nw,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eW.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nk=(0,eW.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),nE=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:nk({className:n,color:r}),...i})});var nS=n(93542);let nC=(void 0===nS||nS.env,"production"),n_=1/60*1e3,nO="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nM="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nO()),n_),nT=!0,nA=!1,nP=!1,nN={delta:0,timestamp:0},nR=["read","update","preRender","render","postRender"],nD=nR.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let l=s&&i,u=l?t:n;return a&&o.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnA=!0),e),{}),nL=nR.reduce((e,t)=>{let n=nD[t];return e[t]=(e,t=!1,r=!1)=>(nA||nI(),n.schedule(e,t,r)),e},{}),nZ=nR.reduce((e,t)=>(e[t]=nD[t].cancel,e),{}),nF=nR.reduce((e,t)=>(e[t]=()=>nD[t].process(nN),e),{}),nz=e=>nD[e].process(nN),nV=e=>{nA=!1,nN.delta=nT?n_:Math.max(Math.min(e-nN.timestamp,40),1),nN.timestamp=e,nP=!0,nR.forEach(nz),nP=!1,nA&&(nT=!1,nM(nV))},nI=()=>{nA=!0,nT=!0,nP||nM(nV)},nB=()=>nN,nH="undefined"!=typeof document,nU=nH?eo.useLayoutEffect:eo.useEffect;function nW(){let e=(0,eo.useRef)(!1);return nU(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nq=(0,eo.createContext)(null);function n$(e){let t=(0,eo.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nK extends eo.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nY({children:e,isPresent:t}){let n=(0,eo.useId)(),r=(0,eo.useRef)(null),i=(0,eo.useRef)({width:0,height:0,top:0,left:0});return(0,eo.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:s}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function j(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return j(e)||w(e)===c},t.isConcurrentMode=j,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===o||e===h||e===p||"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===x||e.$$typeof===g)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?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,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),a=n(98138),o=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:r(e,t,n)}},24019:function(e,t,n){var r=n(37772)["__core-js_shared__"];e.exports=r},55463:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),a=n(8435),o=n(66188);e.exports=function(e){return function(t){var n=i(t=o(t))?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),a=n(11618),o=RegExp("['’]","g");e.exports=function(e){return function(t){return r(a(i(t).replace(o,"")),e,"")}}},61655:function(e,t,n){var r=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},83043:function(e,t,n){var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var r=n(45386),i=n(87064),a=n(59950);e.exports=function(e,t,n,o,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},18052:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=o},33812:function(e,t,n){var r=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="['’]",s="["+a+"]",l="["+r+"]",u="[^"+t+a+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),a=n(7642),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,a=i();if(b(a))return w(a);f=setTimeout(x,(e=a-h,n=a-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?o(a(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),i=n(15125),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),a=n(4146),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,t(e,i,a),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,i,t(e,i,a))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},65798:function(e,t,n){var r=n(20256),i=n(82952),a=n(21401),o=n(33812);e.exports=function(e){return a(e)?r(o(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,n){var r=n(51704),i=n(29259),a=n(4795),o=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(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},11618:function(e,t,n){var r=n(45981),i=n(83559),a=n(66188),o=n(75304);e.exports=function(e,t,n){return(e=a(e),void 0===(t=n?void 0:t))?i(e)?o(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,a=0;a"+t.value+""+i[a].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[a].type||9===i[a].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[a].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[a].type})):12===i[a].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[a].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return a[0].value>1e15?"Infinity":parseFloat(a[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],a="(prefers-color-scheme: dark)",o="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[j,k]=(0,r.useState)(()=>p(l)),E=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let a=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...E),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),C=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),_=(0,r.useCallback)(t=>{k(v(t)),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(_),_(e),()=>e.removeListener(_)},[_]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let O=(0,r.useMemo)(()=>({theme:x,setTheme:C,forcedTheme:e,resolvedTheme:"system"===x?j:x,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[x,C,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:E,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.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,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||a?`c.add(${o})`:"null":a&&(l+=`d[s](n,${o})`),l},v=e?`!function(){${h}${m(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',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)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||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(a)),e.matches?"dark":"light")},93542:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(42351)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(83391)}])},35599:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(97479),a=n(82851),o=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,o.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,o.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,o.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:a,...s}=e,l=(0,o.U8)(e=>e.search);return(0,r.jsx)(o.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==a.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:a.label}),...s})}n(2784)},91492:function(e,t,n){"use strict";n.d(t,{F:function(){return g},A:function(){return y}});var r=n(52322),i=n(97479),a=n(61020),o=n(55329),s=n(98334),l=n(5632),u=n(76838),c=n(56328),d=n(82229),f=n(94613),h=n(98131),p=n(30291),m=n(97112),v=n(2784);function g(e){let{id:t,trigger:n,hostAddress:o,hostKey:s,contentProps:l,buttonProps:u}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...l,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{id:t,hostAddress:o,hostKey:s})})}function y(e){var t,n;let{id:g,hostAddress:y,hostKey:b}=e,x=(0,l.useRouter)(),{setFilter:w,resetFilters:j}=(0,c.l)(),{setFilter:k,resetFilters:E}=(0,u.G)(),S=(0,o.uf)(),C=(0,o.s2)(),_=(0,f.l)(),O=(0,d.I)(),M=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,o.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following contract:"}),(0,r.jsxs)(i.nvN,{size:"14",font:"mono",children:[n.slice(0,20),"..."]})]}),onConfirm:async()=>{let e=await t.delete({params:{id:n}});e.error&&(0,i.OHV)({title:"Error deleting contract",body:e.error}),(0,i.OPV)({title:"Deleted contract"})}}),[e,t])}();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{j(),w({id:"addressContains",value:y,label:"Address contains ".concat(y)}),x.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{E(),k((0,h.e)(y)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>{E(),k((0,p.V)(b)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>_([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>_([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host address to blocklist"]}),(null===(n=C.data)||void 0===n?void 0:n.find(e=>e===b))?(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>O([],[b]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>O([b],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>(0,i.vQq)(b,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},14613:function(e,t,n){"use strict";n.d(t,{F:function(){return N}});var r=n(52322),i=n(97479),a=n(35599);let o={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.NrH)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL0)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.ivg)(1);return e.endTimet}},{id:"expiry",value:"expired",label:"expired",fn:e=>{let t=new Date().getTime();return e.endTime(0,r.jsx)(a.WD,{currentPage:t,commandPage:o,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let u={namespace:"contracts/filterFormationDate",label:"Contracts filter by formation date"},c=[{id:"formationDate",value:"day",label:"formed in the last day",fn:e=>{let t=new Date().getTime()-(0,i.NrH)(1);return e.startTime>=t}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.startTime>=t}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.startTime>=t}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.startTime>=t}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.startTime>=t}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.startTime>=t}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(a.WD,{currentPage:t,commandPage:u,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let f={namespace:"contracts/filterRenewDate",label:"Contracts filter by renew date"},h=[{id:"renewDate",value:"day",label:"renewed in the last day",fn:e=>{let t=new Date().getTime()-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=t}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(a.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(97112),v=n(98131);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),o=(0,v.e)("");return(0,r.jsx)(a.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:o.label})})}function b(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var x=n(30291);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,x.V)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),o("contractsFilterPublicKey")},children:i.label})})}function k(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}var E=n(11948);let S={namespace:"contracts/filterContractSet",label:"Contracts filter by contract set"};function C(e){let{select:t,currentPage:n}=e,i=(0,E.l)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:S,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:S,onSelect:()=>{t(),o("contractsFilterContractSet")},children:i.label})})}function _(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterContractSet")},children:S.label})}function O(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(C,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let M={namespace:"contracts",label:"Contracts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{currentPage:t,parentPage:n,commandPage:M,select:s}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:M,select:s}),(0,r.jsx)(_,{currentPage:t,parentPage:n,commandPage:M,select:s}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:M,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:M,onSelect:()=>{i(o)},children:o.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:M,onSelect:()=>{i(f)},children:f.label})]})}var A=n(76838),P=n(2784);function N(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,A.G)(),l=(0,P.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(O,{currentPage:t,select:l})]})}},98131:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(97479),a=n(76838),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},11948:function(e,t,n){"use strict";n.d(t,{X:function(){return u},l:function(){return l}});var r=n(52322),i=n(97479),a=n(76838),o=n(63955),s=n(2784);function l(e){return{id:"contractSetsInclude",value:e,label:"contract in set ".concat(e),fn:t=>{var n;return null===(n=t.contractSets)||void 0===n?void 0:n.includes(e)}}}function u(e){var t;let{trigger:n,open:u,onOpenChange:c}=e,{setFilter:d,contractSets:f}=(0,a.G)(),h={contractSet:null===(t=f.data)||void 0===t?void 0:t[0]},p=(0,o.cI)({mode:"all",defaultValues:h}),{handleOpenChange:m,closeAndReset:v}=(0,i.t0Y)({form:p,onOpenChange:c,defaultValues:h}),g=function(e){let{contractSets:t}=e;return{contractSet:{type:"select",title:"Contract set",options:t.map(e=>({label:e,value:e})),placeholder:"autopilot",validation:{required:"required"}}}}({contractSets:f.data||[]}),y=(0,s.useCallback)(e=>{d(l(e.contractSet)),v()},[d,v]),b=(0,i.WsO)(g);return(0,r.jsx)(i.VqE,{trigger:n,title:"Filter by contract set",open:u,onOpenChange:m,contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(y,b),children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.WyV,{form:p,fields:g,name:"contractSet"}),(0,r.jsx)(i.ZqQ,{form:p,size:"medium",children:"Filter"})]})})})}},30291:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(97479),a=n(76838),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},90721:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(97479),a=n(61020),o=n(97112);function s(e){let{name:t}=e,{openDialog:n}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{n("filesBucketPolicy",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Zbu,{})}),"Change policy"]}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete bucket"]})]})}},23094:function(e,t,n){"use strict";n.d(t,{z:function(){return f}});var r=n(52322),i=n(97479),a=n(18121),o=n(55329),s=n(82851),l=n(67693),u=n(70899);function c(e){var t,n,s,c;let{path:f,isUploading:h,type:p,health:m,size:v}=e,g="directory"===p,y=(0,o.wy)({disabled:h||g,params:(0,u.W0)(f),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:b,label:x}=(0,a.B)({health:m,size:v,isDirectory:g});if(y.isValidating)return(0,r.jsx)(d,{displayHealth:b,label:x,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=y.data)||void 0===t?void 0:t.object))return(0,r.jsx)(d,{displayHealth:b,label:x,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let w=(0,l.Z)((null===(n=y.data.object.slabs)||void 0===n?void 0:n.map(e=>{var t;return{...e.slab,key:"".concat(e.offset).concat(e.length).concat(e.slab.key),isPartialSlab:!!e.slab.shards,contractSetShards:(null===(t=e.slab.shards)||void 0===t?void 0:t.length)?function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n))+n;return i<=0?0:i>t?t:i}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health}):0}}))||[],"contractSetShards");return(0,r.jsx)(d,{className:w.length>15?"h-[300px]":"",displayHealth:b,label:x,minShards:null===(s=w.find(e=>e.minShards))||void 0===s?void 0:s.minShards,totalShards:null===(c=w.find(e=>e.shards))||void 0===c?void 0:c.shards.length,children:w.map(e=>(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",className:"flex items-center",font:"mono",children:["Slab ",e.key.replace("key:","").slice(0,4),":"]}),(0,r.jsx)(i.xvT,{size:"12",className:"flex items-center",children:e.isPartialSlab?"".concat(e.contractSetShards,"/").concat(e.shards.length):"partial slab"})]},e.key))})}function d(e){let{className:t,displayHealth:n,label:a,children:o,minShards:l,totalShards:u}=e;return(0,r.jsxs)("div",{className:(0,s.cx)("z-10 flex flex-col pb-1 -mx-1 overflow-hidden",t),children:[(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:a}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),l&&u?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[l," of ",u]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:o})})})]})}function f(e){let{name:t,isUploading:n,type:o,health:s,size:l}=e,u="directory"===o,{displayHealth:d,label:f,color:h,icon:p}=(0,a.B)({health:s,size:l,isDirectory:u}),m="".concat((100*d).toFixed(0),"%");return u?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:f}),(0,r.jsx)(i.xvT,{size:"12",children:m})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),children:(0,r.jsx)(c,{...e})})}},84301:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(52322),i=n(97479),a=n(61020),o=n(97112),s=n(2784),l=n(55329),u=n(21487),c=n(70899);function d(e){let{path:t,size:n}=e,d=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,l.xw)();return(0,s.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,u.vW)(o)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:{...(0,c.W0)(n),batch:!0}});e.error&&(0,i.OHV)({title:"Error deleting directory",body:e.error}),(0,i.OPV)({title:"Deleted directory"})}}),[e,t])}(),{openDialog:f}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.ROc,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{f("fileRename",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename directory"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{d(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete directory"]})]})}},87023:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(52322),i=n(97479),a=n(61020),o=n(97112),s=n(2784),l=n(55329),u=n(70899);function c(e){let{path:t}=e,n=(0,l.wy)({params:(0,u.W0)(t),config:{swr:{dedupingInterval:5e3}}});return(0,r.jsxs)(i.Xiv,{disabled:!n.data,onSelect:()=>{n.data&&(0,i.vQq)(JSON.stringify(n.data.object,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy metadata"]})}var d=n(41736);function f(e){let{path:t}=e,{downloadFiles:n,getFileUrl:f,navigateToModeSpecificFiltering:h}=(0,d.b)(),p=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,l.xw)();return(0,s.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following file:"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:(0,u.W0)(n)});e.error&&(0,i.OHV)({title:"Error deleting file",body:e.error}),(0,i.OPV)({title:"Deleted file"})}}),[e,t])}(),{openDialog:m}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.c_L,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{n([t])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>m("fileRename",t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>p(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Filter"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{h(t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter by file name"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(t,"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file path"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)((0,u.vt)(t),"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file name"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(f(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)({text:f(t,!0),title:"Copied authenticated file URL to clipboard",body:(0,r.jsxs)(r.Fragment,{children:["The authenticated URL contains the ",(0,r.jsx)(i.EKh,{children:"renterd"})," ","password, be careful when pasting or sharing the URL."]}),icon:(0,r.jsx)(a.KTM,{className:"text-amber-600"}),options:{duration:1e5}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(c,{path:t})]})}},42770:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(55329),i=n(76838);function a(){var e;let t=(0,r.fz)(),{datasetCount:n,isLoading:a}=(0,i.G)();return{active:t.data&&!a&&n{e.stopPropagation()}},children:(0,r.jsx)(g,{address:t,publicKey:n})})}function g(e){var t,n;let{address:v,publicKey:g}=e,y=(0,l.useRouter)(),{setFilter:b,resetFilters:x}=(0,c.l)(),{setFilter:w,resetFilters:j}=(0,u.G)(),k=(0,o.uf)(),E=(0,o.s2)(),S=(0,f.l)(),C=(0,d.I)(),_=(0,o.f$)(),O=(0,o.wW)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{x(),b({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),y.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{x(),b((0,m.K)(g)),y.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{j(),w((0,h.e)(v)),y.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,p.V)(g)),y.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{_.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a._Eq,{})}),"Rescan host"]}),v&&(null===(t=k.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>S([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>S([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add address to blocklist"]}),(null===(n=E.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>O.post({params:{publicKey:g}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.xkX,{})}),"Reset lost sector count"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{(0,i.vQq)(v,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},37769:function(e,t,n){"use strict";n.d(t,{T:function(){return x},N:function(){return b}});var r=n(52322),i=n(2784),a=n(97479),o=n(21487),s=n(6391),l=n.n(s);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(l())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,o.Vz)(new(l())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)),{fixed:0}),"/TB"),i="".concat((0,o.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,o.vW)(t.settings.remainingstorage)," / ").concat((0,o.vW)(t.settings.totalstorage)," available");return"".concat((0,a.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(s)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),a=(0,i.useCallback)(()=>{r({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return d("resize",a),f(()=>{a()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let a=(0,i.useRef)(t);f(()=>{a.current=t},[t]),(0,i.useEffect)(()=>{var t;let i=null!==(t=null==n?void 0:n.current)&&void 0!==t?t:window;if(!(i&&i.addEventListener))return;let o=e=>a.current(e);return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[e,n,r])},f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,h=n(67108),p=n(25237);let m=n.n(p)()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(936)]).then(n.bind(n,6936)),{loadableGenerated:{webpack:()=>[6936]},ssr:!1}),v=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(m,{...e,forwardRef:t})});var g=n(10569),y=n(85375);let b={moveToLocation:(e,t)=>null};function x(e){let{activeHost:t,hosts:n,onMount:a,onHostClick:o,onHostHover:s}=e,d=(0,y.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),p=(0,i.useRef)(b),m=(0,i.useCallback)((e,t)=>{var n;e&&(null===(n=f.current)||void 0===n||n.pointOfView({lat:e[0]-8,lng:e[1],altitude:t||1.5},700))},[]);(0,i.useEffect)(()=>{p.current.moveToLocation=m},[m]),(0,h.Q5)(()=>{var e;if(!f.current)return!1;m((null==t?void 0:t.location)||[48.8323,2.4075],1.5);let n=null===(e=f.current)||void 0===e?void 0:e.scene().children.find(e=>"DirectionalLight"===e.type);return n&&(n.intensity=10),!0}),(0,i.useEffect)(()=>{a&&a(p.current)},[]);let[x,{height:w,width:j}]=c(),k=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:x,className:"w-full h-full",children:(0,r.jsx)(v,{ref:f,width:j,height:w,backgroundColor:"rgba(0,0,0,0)",globeImageUrl:"/_next/static/media/earth-dark-contrast.bf7081fc.png",bumpImageUrl:"/_next/static/media/earth-topology.e385a70e.png",arcsData:[],atmosphereColor:"rgba(0,0,0,0)",atmosphereAltitude:.16,animateIn:!1,arcLabel:e=>{var t;return u({host:e.dst,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},arcStartLat:e=>+e.src.location[0],arcStartLng:e=>+e.src.location[1],arcEndLat:e=>+e.dst.location[0],arcEndLng:e=>+e.dst.location[1],arcDashLength:.75,arcAltitude:0,arcDashGap:.1,arcDashInitialGap:()=>Math.random(),arcDashAnimateTime:5e3,arcColor:e=>t&&(e.dst.publicKey===t.publicKey||e.src.publicKey===t.publicKey)?["rgba(187, 229, 201, 0.25)","rgba(187, 229, 201, 0.25)"]:["rgba(187, 229, 201, 0.10)","rgba(187, 229, 201, 0.10)"],arcsTransitionDuration:0,pointsData:k,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>{var t;return u({host:e,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},pointAltitude:e=>(t&&e.publicKey===(null==t?void 0:t.publicKey)||e.activeContractsCount.gt(0),.1),pointsTransitionDuration:0,pointColor:e=>{let{colorHex:n}=(0,g.Kg)(e);return t&&e.publicKey!==(null==t?void 0:t.publicKey)?function(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(.2,")")}(n,0):n},pointRadius:e=>(e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==o||o(e.publicKey,e.location))},pointsMerge:!1})})}},42213:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(35599),a=n(97112),o=n(10532);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,a.Rh)(),u=(0,o.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:o,commandPage:l}=e,{openDialog:u}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let v={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},g=[{id:"usabilityMode",value:"usable",label:"usable"},{id:"usabilityMode",value:"unusable",label:"unusable"}];function y(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:v,children:g.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var b=n(46081),x=n(23771);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,a.Rh)(),s=(0,x.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),o("hostsFilterPublicKey")},children:s.label})})}function k(e){let{select:t,currentPage:n,parentPage:o,commandPage:s}=e,{openDialog:l}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===i.status&&(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let S={namespace:"hosts",label:"Hosts"};function C(e){let{currentPage:t,parentPage:n,pushPage:a,select:o}=e,{autopilot:s}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(v)},children:v.label}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(c)},children:c.label})]})}var _=n(56328),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,_.l)(),l=(0,O.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,pushPage:i,select:l})]})}},10532:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(97479),a=n(56328),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},23771:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(97479),a=n(56328),o=n(7114),s=n(24511),l=n(97112);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},26731:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(97479),a=n(2784),o=n(34864);function s(e){let{loaded:t,size:n,status:s}=e,l=(0,a.useMemo)(()=>{var e;return void 0!==(e={loaded:t,size:n}).loaded?e.loaded/e.size:1},[t,n]);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.kod,{variant:"accent",value:t,max:n,className:1===l?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,o.Z)(s)}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*l).toFixed(0),"%"]})]})]})}},98334:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return a}});var r=n(79895);let i={home:"/",buckets:{index:"/buckets",files:"/buckets/[bucket]/files/[path]",uploads:"/buckets/[bucket]/uploads"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},keys:{index:"/keys"},alerts:{index:"/alerts"},node:{index:"/node"},login:"/login"},a=r.PS},9338:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(97479).XBW)(15)},88385:function(e,t,n){"use strict";n.d(t,{b:function(){return D},Z:function(){return R}});var r=n(52322),i=n(97479),a=n(5632),o=n(2784);let s=["actions","overview","data","time"],l=[];var u=n(55329),c=n(17448),d=n(41736),f=n(97112),h=n(70899),p=n(6391),m=n.n(p),v=n(61020),g=n(91492);function y(e){let{id:t,trigger:n,contentProps:a,buttonProps:o}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...o,children:(0,r.jsx)(v.EMN,{})}),contentProps:{align:"start",...a,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(b,{id:t})})}function b(e){var t,n;let{id:i}=e,a=(0,u.cq)({params:{id:i}});return(0,r.jsx)(g.A,{id:i,hostAddress:null===(t=a.data)||void 0===t?void 0:t.hostIP,hostKey:null===(n=a.data)||void 0===n?void 0:n.hostKey})}function x(e){let{id:t,contentProps:n,buttonProps:a,trigger:o}=e,s=(0,u.cJ)();return(0,r.jsxs)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{icon:"hover",variant:"ghost",...a,children:(0,r.jsx)(v.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Account ",t.slice(0,20),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>s.post({params:{id:t}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(v.xkX,{})}),"Reset account drift"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(t,"account ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(v.olJ,{})}),"Account ID"]})]})}let w={origin:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"origin"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},contractID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(y,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account ID",contextMenu:(0,r.jsx)(x,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,u.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(c.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){var t;let{value:n}=e,{setActiveDirectory:a}=(0,d.b)(),{closeDialog:o}=(0,f.Rh)(),s=(0,u.og)({params:{key:n},config:{swr:{revalidateOnFocus:!1}}});return(0,r.jsxs)("div",{className:"flex flex-col gap-2 max-h-[100px]",children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"slab key"}),(0,r.jsx)(i.XxW,{size:"12",value:n,label:"slab key"})]}),!!(null===(t=s.data)||void 0===t?void 0:t.length)&&(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:s.data.map(e=>(0,r.jsx)(i.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{a(()=>(0,h.gD)(e.name)),o()},children:e.name},e.name))})})]})}},added:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"added"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},removed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"removed"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},migrationsInterrupted:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"migrations interrupted"}),(0,r.jsx)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:t?"yes":"no"})]})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(t)})]})}},balance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(t)})]})}},address:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(i.XxW,{size:"12",value:t,type:"address"})]})}},account:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account",contextMenu:(0,r.jsx)(x,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},lostSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"lost sectors"}),(0,r.jsx)(i.m2c,{size:"12",variant:"value",value:new(m())(t),format:e=>e.toString()})]})}}};function j(e){let{hostKey:t,contentProps:n,buttonProps:a,trigger:o}=e;return(0,r.jsx)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(v.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(k,{hostKey:t})})}function k(e){var t;let{hostKey:n}=e,i=(0,u.$)({params:{hostKey:n}});return(0,r.jsx)(c.i,{address:null===(t=i.data)||void 0===t?void 0:t.netAddress,publicKey:n})}var E=n(21487),S=n(32998),C=n(82851),_=n(28356);function O(e){let{setAdditions:t,setRemovals:n}=e,a=(0,o.useMemo)(()=>(0,_.Z)([...Object.keys(t),...Object.keys(n)]).map(e=>{var r,i,a,o;let s=(null===(r=t[e])||void 0===r?void 0:r.additions)||[],l=(null===(i=n[e])||void 0===i?void 0:i.removals)||[];return{contractId:e,hostKey:(null===(a=t[e])||void 0===a?void 0:a.hostKey)||(null===(o=n[e])||void 0===o?void 0:o.hostKey),events:[...s.map(e=>({type:"addition",size:e.size,time:e.time})),...l.map(e=>({type:"removal",size:e.size,time:e.time,reasons:e.reasons}))].sort((e,t)=>new Date(e.time).getTime()e.events[0].sizea.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[a]),l=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"removal"===t[0].type}),[a]),u=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"addition"===t[0].type}),[a]),c=(0,o.useMemo)(()=>l.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[l]),d=(0,o.useMemo)(()=>c/s*100,[c,s]);return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center pr-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract set changes"}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)(i.ua7,{content:"".concat((0,E.vW)(c)," of ").concat((0,E.vW)(s)," contract size removed"),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:["churn: ",d.toFixed(2),"%"]}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:["(",(0,E.vW)(c)," / ",(0,E.vW)(s),")"]})]})}),(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.ua7,{content:"".concat(u.length," contracts added"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"green",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(v.aXP,{}),u.length]})}),(0,r.jsx)(i.ua7,{content:"".concat(l.length," contracts removed"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"red",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(v.eOF,{}),l.length]})})]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-3 mb-2",children:a.map((e,t)=>{let{contractId:n,hostKey:i,events:a}=e;return(0,r.jsx)(M,{contractId:n,hostKey:i,events:a,i:t},n+i)})})]})}function M(e){let{contractId:t,hostKey:n,events:a,i:o}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-[3px]",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center px-[3px]",children:[(0,r.jsxs)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:[o+1,"."]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract"}),(0,r.jsx)(i.XxW,{size:"12",value:t,contextMenu:(0,r.jsx)(y,{id:t,buttonProps:{size:"none"},contentProps:{align:"end"}})})]}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host"}),(0,r.jsx)(i.XxW,{size:"12",value:n,label:"host key",contextMenu:(0,r.jsx)(j,{hostKey:n,buttonProps:{size:"none"},contentProps:{align:"end"}})})]})]}),a.map((e,t)=>{let{type:n,reasons:a,size:o,time:s}=e;return(0,r.jsx)(i.ua7,{content:"addition"===n?"added":"removed: ".concat(a),align:"start",side:"bottom",children:(0,r.jsxs)("div",{className:(0,C.cx)("flex gap-2 justify-between mr-2 pr-1",0===t?"addition"===n?"bg-green-400/20":"bg-red-400/20":"opacity-50"),children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center overflow-hidden",children:[(0,r.jsx)(i.xvT,{size:"12",color:"addition"===n?"green":"red",children:"addition"===n?(0,r.jsx)(v.aXP,{}):(0,r.jsx)(v.eOF,{})}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:a})]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"time"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,S.Z)(new Date(s),new Date)})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"size"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,E.vW)(o)})]})]})},n+a+s)})]})}var T=n(98358);let A=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pr-4 [&+*]:!pl-0",rowCellClassName:"align-top pt-[19px]",render:e=>{let{data:{dismiss:t}}=e;return(0,r.jsx)(i.eQh,{children:(0,r.jsx)(i.zxk,{tip:"Dismiss alert",onClick:t,children:(0,r.jsx)(T.NlZ,{})})})}},{id:"overview",label:"overview",category:"general",contentClassName:"min-w-[200px] max-w-[500px]",rowCellClassName:"align-top pt-[5px]",render:e=>{let{data:{message:t,severity:n,data:a}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 py-4",children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.Cts,{variant:"error"===n||"critical"===n?"red":"warning"===n?"amber":"gray",size:"small",children:n}),(0,r.jsx)(i.xvT,{weight:"medium",noWrap:!0,children:t})]}),a.hint&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.hint}),a.error&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.error})]})}},{id:"data",label:"data",contentClassName:"w-[500px]",rowCellClassName:"align-top",category:"general",render:function(e){let{data:{data:t}}=e,n=(0,o.useMemo)(()=>Object.keys(w).map(e=>{let n=t[e];return null!=n&&("object"!=typeof n||Object.keys(n).length)?{key:e,value:n}:null}).filter(Boolean),[t]),a=(0,o.useMemo)(()=>t.setAdditions,[t]),s=(0,o.useMemo)(()=>t.setRemovals,[t]);return(0,r.jsx)("div",{className:"py-4 w-full",children:(0,r.jsxs)(i.s_4,{color:"subtle",className:"flex flex-col gap-1 w-full py-1",children:[(a||s)&&(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(O,{setAdditions:a,setRemovals:s})}),n.length>=1&&(0,r.jsx)(i.Z0O,{color:"verySubtle",className:"w-full"})]},"setChanges"),n.map((e,t)=>{var a;let{key:s,value:l}=e,u=null==w?void 0:null===(a=w[s])||void 0===a?void 0:a.render;return u?(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(u,{value:l},s)}),n.length>1&&t{let{data:{timestamp:t}}=e;return(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:(0,S.Z)(new Date(t),new Date)})}}];var P=n(9338);let N=(0,o.createContext)({}),R=()=>(0,o.useContext)(N);function D(e){let{children:t}=e,n=function(){var e;let t=(0,a.useRouter)(),n=Number(t.query.limit||50),r=Number(t.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p}=(0,i.Uu5)(),m=(0,o.useCallback)(e=>{e?d({id:"severity",value:e,label:e}):f("severity")},[d,f]),v=null===(e=c.find(e=>"severity"===e.id))||void 0===e?void 0:e.value,g=(0,o.useMemo)(()=>{let e={limit:n,offset:r};return v&&(e.severity=v),e},[n,r,v]),y=(0,u.Z7)({params:g,config:{swr:{refreshInterval:P.h}}}),b=(0,u.Uy)(),x=(0,o.useCallback)(async e=>{let t=await b.post({payload:[e]});t.error?(0,i.OHV)({title:"Error dismissing alert",body:t.error}):(0,i.OPV)({title:"Alert has been dismissed."})},[b]),w=(0,o.useCallback)(async e=>{let t=await b.post({payload:e});t.error?(0,i.OHV)({title:"Error dismissing alerts",body:t.error}):(0,i.OPV)({title:"Selected alerts have been dismissed"})},[b]),j=(0,o.useMemo)(()=>{var e,t;return y.data?(null===(t=y.data)||void 0===t?void 0:null===(e=t.alerts)||void 0===e?void 0:e.map(e=>({id:e.id,severity:e.severity,message:e.message,timestamp:e.timestamp,data:e.data,dismiss:()=>x(e.id)})))||[]:null},[y.data,x]),{configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:_,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/alerts",{columns:A,columnsDefaultVisible:s,sortOptions:l,defaultSortField:""}),Z=(0,o.useMemo)(()=>A.filter(e=>e.fixed||E.includes(e.id)),[E]),F=(0,i.c2j)(j,y.isValidating,y.error,c),z=(0,o.useMemo)(()=>({}),[]),V=(0,o.useMemo)(()=>{var e,t;return{...null===(e=y.data)||void 0===e?void 0:e.totals,all:Object.entries((null===(t=y.data)||void 0===t?void 0:t.totals)||{}).reduce((e,t)=>{let[n,r]=t;return e+r},0)}},[y.data]);return{dataState:F,limit:n,offset:r,isLoading:y.isLoading,error:y.error,pageCount:(null==j?void 0:j.length)||0,totals:V,columns:Z,datasetPage:j,cellContext:z,configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:_,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:N,sortField:R,filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p,sortDirection:D,resetDefaultColumnVisibility:L,dismissOne:x,dismissMany:w,severityFilter:v,setSeverityFilter:m}}();return(0,r.jsx)(N.Provider,{value:n,children:t})}},46081:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),a=n(97479),o=n(55329);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n={autopilot:function(){let e=(0,o.YX)({config:{swr:{dedupingInterval:(0,a.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,a.XBW)(60):(0,a.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else{if(e.isValidating)return;e.error?n("off"):e.data&&n("object"==typeof e.data?"on":"off")}},[e]),{status:t,state:e}}()};return(0,r.jsx)(s.Provider,{value:n,children:t})}},68338:function(e,t,n){"use strict";n.d(t,{iV:function(){return D},ZR:function(){return R}});var r=n(52322),i=n(2784),a=n(97479),o=n(21487),s=n(6391),l=n.n(s);let u={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,prune:!1,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0,minProtocolVersion:""},c={defaultContractSet:""},d={uploadPackingEnabled:!0},f={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},h={...u,...c,...d,...f,minShards:void 0,totalShards:void 0};function p(e){return{storageTB:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,allowanceMonth:void 0,..."Mainnet"===e?{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(l())(336),minRecentScanFailures:new(l())(10),minProtocolVersion:"1.6.0",prune:!0}:{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(12),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(l())(336),minRecentScanFailures:new(l())(10),minProtocolVersion:"1.6.0",prune:!0}}}let m={...c,defaultContractSet:"autopilot"},v={...d},g={...f},y=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function b(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||m.defaultContractSet;return{...t,default:n}}function x(e){let{hasBeenConfigured:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:s,redundancy:d,averages:f}=e;return{...function(e){if(!e)return u;let t=e.contracts.set,n=(0,o.ll)(j(new(l())(e.contracts.allowance),e.contracts.period),6),r=new(l())(e.contracts.amount),i=new(l())((0,o.x5)(e.contracts.period)),s=new(l())((0,o.x5)(e.contracts.renewWindow)),c=new(l())((0,a.y70)(j((0,o.JW)(e.contracts.download),e.contracts.period),2));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:s,downloadTBMonth:c,uploadTBMonth:new(l())((0,a.y70)(j((0,o.JW)(e.contracts.upload),e.contracts.period),2)),storageTB:(0,o.JW)(new(l())(e.contracts.storage)),prune:e.contracts.prune,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(l())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(l())(e.hosts.minRecentScanFailures),minProtocolVersion:e.hosts.minProtocolVersion||""}}(n),...r?{defaultContractSet:r.default}:c,uploadPackingEnabled:i.enabled,...function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e,i=function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e;return r||!n?t:{...t,maxStoragePrice:n.settings.storage_price,maxDownloadPrice:new(l())(n.settings.download_price).times((0,o.xf)(1)).toString(),maxUploadPrice:new(l())(n.settings.upload_price).times((0,o.xf)(1)).toString()}}({gouging:t,averages:n,hasBeenConfigured:r});return{maxStoragePriceTBMonth:(0,o.ll)(new(l())(i.maxStoragePrice).times((0,o.S5)(1)).times((0,o.xf)(1)),6),maxUploadPriceTB:(0,o.ll)(new(l())(i.maxUploadPrice),6),maxDownloadPriceTB:(0,o.ll)(i.maxDownloadPrice,6),maxContractPrice:(0,o.ll)(i.maxContractPrice,6),maxRpcPriceMillion:(0,o.ll)(new(l())(i.maxRPCPrice).times(1e6),6),hostBlockHeightLeeway:new(l())(i.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(l())((0,a.AEA)(i.minPriceTableValidity)),minAccountExpiryDays:new(l())((0,a.okB)(i.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,o.ll)(i.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(l())(i.migrationSurchargeMultiplier)}}({gouging:s,averages:f,hasBeenConfigured:t}),minShards:new(l())(d.minShards),totalShards:new(l())(d.totalShards)}}function w(e,t){let n=(0,o.mv)(t.toNumber());return e.times(n).div((0,o.S5)(1))}function j(e,t){return e.div(t).times((0,o.S5)(1))}var k=n(55329),E=n(92762);function S(){let[e,t]=(0,E.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,k.M6)({config:{swr:{errorRetryCount:0}}}),o=(0,k.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await o.put({params:{key:"contractset"},payload:b({defaultContractSet:t},n.data)}),n.mutate(),(0,a.OPV)({title:"Default contract set updated",body:(0,r.jsxs)(r.Fragment,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(a.EKh,{children:t}),"."]})}))}catch(e){(0,a.OHV)({title:"Error updating default contract set",body:e.message}),console.log(e)}},[n.data,o,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}var C=n(67108),_=n(85375),O=n(46081),M=n(56922),T=n(63955),A=n(315);function P(e){let{isAutopilotEnabled:t,advancedDefaults:n,showAdvanced:i,maxStoragePriceTBMonth:s,maxUploadPriceTB:u,minShards:c,totalShards:d,redundancyMultiplier:f,storageAverage:h,uploadAverage:p,downloadAverage:m,contractAverage:v}=e;return{storageTB:{type:"number",category:"storage",title:"Expected storage",description:(0,r.jsx)(r.Fragment,{children:"The amount of storage you would like to rent in TB."}),units:"TB",hidden:!t,validation:t?{required:"required"}:{}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount of Siacoin you would like to spend per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!t||!i,validation:t&&i?{required:"required"}:{}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==n?void 0:n.periodWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.periodWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},renewWindowWeeks:{type:"number",category:"storage",title:"Renew window",description:(0,r.jsx)(r.Fragment,{children:"The number of weeks prior to contract expiration that Sia will attempt to renew your contracts."}),units:"weeks",decimalsLimit:6,suggestion:null==n?void 0:n.renewWindowWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.renewWindowWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},amountHosts:{type:"number",category:"storage",title:"Hosts",description:(0,r.jsx)(r.Fragment,{children:"The number of hosts to create contracts with."}),units:"hosts",decimalsLimit:0,suggestion:null==n?void 0:n.amountHosts,suggestionTip:"Typically ".concat(null==n?void 0:n.amountHosts," hosts."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},autopilotContractSet:{type:"text",category:"storage",title:"Contract set",description:(0,r.jsx)(r.Fragment,{children:"The contract set that autopilot should use. This should typically be the same as the default contract set."}),placeholder:null==n?void 0:n.autopilotContractSet,suggestion:null==n?void 0:n.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(a.EKh,{children:null==n?void 0:n.autopilotContractSet}),"."]}),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},prune:{type:"boolean",category:"storage",title:"Prune sector roots",description:(0,r.jsx)(r.Fragment,{children:"When enabled, autopilot will try to prune deleted sector roots from contracts one contract at a time, for a max duration of 10 minutes per contract. For old hosts this process takes quite a while, while for new hosts it is fast. For new hosts pruning effectively deletes data from the contract, allowing the renter to stop paying for storage they are not using."}),suggestion:null==n?void 0:n.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(a.EKh,{children:null==n?void 0:n.prune}),"."]}),hidden:!t||!i,validation:{}},allowRedundantIPs:{type:"boolean",category:"hosts",title:"Redundant IPs",description:(0,r.jsx)(r.Fragment,{children:"Whether or not to allow forming contracts with multiple hosts in the same IP subnet. The subnets used are /16 for IPv4, and /64 for IPv6."}),suggestion:null==n?void 0:n.allowRedundantIPs,suggestionTip:"Defaults to ".concat((null==n?void 0:n.allowRedundantIPs)?"on":"off","."),hidden:!t||!i,validation:{}},maxDowntimeHours:{type:"number",category:"hosts",title:"Max downtime",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of host downtime that autopilot will tolerate in hours."}),units:"hours",suggestion:null==n?void 0:n.maxDowntimeHours,suggestionTip:"Defaults to ".concat(null==n?void 0:n.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,a.y70)(new(l())((0,a.XAn)(null==n?void 0:n.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},minRecentScanFailures:{type:"number",category:"hosts",title:"Min recent scan failures",description:(0,r.jsx)(r.Fragment,{children:"The minimum number of recent scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:null==n?void 0:n.minRecentScanFailures,suggestionTip:"Defaults to ".concat(null==n?void 0:n.minRecentScanFailures.toNumber(),"."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},minProtocolVersion:{type:"text",category:"hosts",title:"Min protocol version",description:(0,r.jsx)(r.Fragment,{children:"The minimum protocol version that autopilot will consider when forming contracts with hosts."}),suggestion:null==n?void 0:n.minProtocolVersion,suggestionTip:"Defaults to ".concat(null==n?void 0:n.minProtocolVersion,"."),hidden:!t||!i,validation:t&&i?{required:"required",validate:{version:e=>/^\d+\.\d+\.\d+$/.test(e)||"must be a valid version number"}}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:null==n?void 0:n.defaultContractSet,suggestion:null==n?void 0:n.defaultContractSet,suggestionTip:(0,r.jsx)(r.Fragment,{children:"Autopilot users will typically want to keep this the same as the autopilot contract set."}),description:(0,r.jsx)(r.Fragment,{children:"The default contract set is where data is uploaded to by default."}),hidden:!i,validation:i?{required:"required"}:{}},uploadPackingEnabled:{category:"uploadpacking",type:"boolean",title:"Upload packing",description:(0,r.jsx)(r.Fragment,{children:"Data on the Sia network is stored in 4MiB sectors. With the default 10 of 30 redundancy scheme, uploaded files are split into 40MiB chunks and encoded into 120MiB slabs. This means that storage is wasted on padding and files smaller than 40MiB still use 120MiB of space. The redundancy scheme can be configured, but unless all files are exactly 4MiB * the redundancy's minimum shards, there will always be wasted storage. Upload packing avoids this waste by buffering files and packing them together before they are uploaded to the network. This trades some performance for storage efficiency. It is also important to note that because buffered files are temporarily stored on disk they must be considered when backing up your renterd data."}),hidden:!i,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge to store 1 TB worth of data per month."}),units:"SC/TB/month",average:h,averageTip:"Averages provided by Sia Central.",after:function(){return s&&c&&d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(a.ua7,{align:"start",side:"bottom",content:(0,r.jsxs)(r.Fragment,{children:["Price per TB/month when factoring in the configured"," ",c," of ",d," redundancy."]}),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,r.jsx)(a.xvT,{className:"flex relative",children:(0,r.jsx)(A.RdX,{})}),(0,r.jsxs)(a.xvT,{size:"12",ellipsis:!0,children:[(0,o.Vz)((0,o.qN)(s).times(f),{fixed:0,dynamicUnits:!1}),"/TB/month with redundancy"]})]})})]}):null},decimalsLimitSc:6,validation:{required:"required"}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge for uploading 1 TB worth of data."}),units:"SC/TB",average:p,averageTip:"Averages provided by Sia Central.",after:function(){return u&&c&&d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(a.ua7,{align:"start",side:"bottom",content:(0,r.jsxs)(r.Fragment,{children:["Price per TB when factoring in the configured ",c," of"," ",d," redundancy."]}),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,r.jsx)(a.xvT,{className:"flex relative",children:(0,r.jsx)(A.RdX,{})}),(0,r.jsxs)(a.xvT,{size:"12",ellipsis:!0,children:[(0,o.Vz)((0,o.qN)(u).times(f),{fixed:0,dynamicUnits:!1}),"/TB with redundancy"]})]})})]}):null},decimalsLimitSc:6,validation:{required:"required"}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB."}),units:"SC/TB",average:m,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),average:v,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!i,validation:i?{required:"required"}:{}},maxRpcPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:!i,validation:i?{required:"required"}:{}},hostBlockHeightLeeway:{category:"gouging",type:"number",title:"Block height leeway",description:(0,r.jsx)(r.Fragment,{children:"The amount of blocks of leeway given to the host block height in the host's price table."}),units:"blocks",decimalsLimit:0,suggestion:null==n?void 0:n.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte(3)||"must be at least 3 blocks"}}:{}},minPriceTableValidityMinutes:{category:"gouging",type:"number",title:"Min price table validity",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `Validity` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte((0,a.GXN)(10))||"must be at least 10 seconds"}}:{}},minAccountExpiryDays:{category:"gouging",type:"number",title:"Min account expiry",units:"days",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `AccountExpiry` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte((0,a.XAn)(1))||"must be at least 1 hour"}}:{}},minMaxEphemeralAccountBalance:{category:"gouging",type:"siacoin",title:"Min max ephemeral account balance",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `MaxEphemeralAccountBalance` in the host's price settings."}),decimalsLimitSc:6,hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte(1)||"must be at least 1 SC"}}:{}},migrationSurchargeMultiplier:{category:"gouging",type:"number",title:"Migration surcharge multiplier",units:"* download price",placeholder:"10",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"Factor that gets applied on the max download price when trying to download migration-critical sectors from a host that is price gouging. For example, when migrating a low-health file, if the download is failing but would potentially succeed with looser gouging settings, we apply the migration surcharge multiplier to overpay on every sector download if it means saving the file/migration."}),suggestion:new(l())(10),suggestionTip:"The default multiplier is 10x the download price.",hidden:!i,validation:i?{required:"required"}:{}},minShards:{type:"number",category:"redundancy",title:"Min shards",description:(0,r.jsx)(r.Fragment,{children:"The min amount of shards needed to reconstruct a slab."}),suggestion:null==n?void 0:n.minShards,suggestionTip:"Typically ".concat(null==n?void 0:n.minShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gt(0)||"must be greater than 0"}}:{},trigger:["totalShards"]},totalShards:{type:"number",category:"redundancy",title:"Total shards",description:(0,r.jsx)(r.Fragment,{children:"The total amount of shards for each slab."}),suggestion:null==n?void 0:n.totalShards,suggestionTip:"Typically ".concat(null==n?void 0:n.totalShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{gteMinShards:(e,t)=>new(l())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(l())(e).lt(256)||"must be less than 256"}}:{}}}}let N=(0,i.createContext)({}),R=()=>(0,i.useContext)(N);function D(e){let{children:t}=e,n=function(){let{autopilotState:e,autopilot:t,contractSet:n,gouging:r,redundancy:s,uploadPacking:u,averages:c,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,appSettings:j,isAutopilotEnabled:A}=function(){let e=(0,O.q)(),t="on"===e.autopilot.status,n=(0,k.e$)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),r=(0,k.M6)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),i=(0,k.Kh)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),o=(0,k.fz)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),s=(0,k.au)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),l=(0,_.BF)({config:{swr:{revalidateOnFocus:!1}}}),{shouldSyncDefaultContractSet:u,setShouldSyncDefaultContractSet:c,syncDefaultContractSet:d}=S(),f=(0,C.Hv)();return{autopilotState:e.autopilot.state,autopilot:n,contractSet:r,gouging:i,redundancy:o,uploadPacking:s,averages:l,shouldSyncDefaultContractSet:u,setShouldSyncDefaultContractSet:c,syncDefaultContractSet:d,appSettings:f,isAutopilotEnabled:t}}(),{form:N,maxStoragePriceTBMonth:R,maxDownloadPriceTB:D,maxUploadPriceTB:L,storageTB:Z,downloadTBMonth:F,uploadTBMonth:z,redundancyMultiplier:V,fields:I,showAdvanced:B,setShowAdvanced:H}=function(){let e=(0,T.cI)({mode:"all",defaultValues:h}),t=e.watch("maxStoragePriceTBMonth"),n=e.watch("maxDownloadPriceTB"),r=e.watch("maxUploadPriceTB"),a=e.watch("storageTB"),s=e.watch("downloadTBMonth"),u=e.watch("uploadTBMonth"),c=e.watch("minShards"),d=e.watch("totalShards"),f=(0,i.useMemo)(()=>{let e;return e=new(l())(1),c&&d&&!c.isZero()&&!d.isZero()&&d.gte(c)&&(e=d.div(c)),e},[c,d]),{averages:y,storageAverage:b,uploadAverage:x,downloadAverage:w,contractAverage:j}=function(){let e=(0,_.BF)({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.storage_price).times((0,o.S5)(1)).times((0,o.xf)(1)).toFixed(0)):void 0,[e.data]),n=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.upload_price).times((0,o.xf)(1)).toFixed(0)):void 0,[e.data]),r=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.download_price).times((0,o.xf)(1)).toFixed(0)):void 0,[e.data]),a=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.contract_price).toFixed(0)):void 0,[e.data]);return{averages:e,storageAverage:t,uploadAverage:n,downloadAverage:r,contractAverage:a}}(),S="on"===(0,O.q)().autopilot.status,[C,M]=(0,E.Z)("v0/config/showAdvanced",{defaultValue:!1}),A=(0,k.d_)();return{form:e,fields:(0,i.useMemo)(()=>{var e;let n=A.data?{...p(e=A.data.network),...m,...v,...g,..."Mainnet"===e?{minShards:new(l())(10),totalShards:new(l())(30)}:{minShards:new(l())(2),totalShards:new(l())(6)}}:void 0;return y.data?P({advancedDefaults:n,isAutopilotEnabled:S,showAdvanced:C,maxStoragePriceTBMonth:t,maxUploadPriceTB:r,redundancyMultiplier:f,storageAverage:b,uploadAverage:x,downloadAverage:w,contractAverage:j,minShards:c,totalShards:d}):P({advancedDefaults:n,isAutopilotEnabled:S,showAdvanced:C,maxStoragePriceTBMonth:t,maxUploadPriceTB:r,redundancyMultiplier:f,minShards:c,totalShards:d})},[A.data,S,C,y.data,b,x,w,j,f,t,r,c,d]),maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:a,downloadTBMonth:s,uploadTBMonth:u,minShards:c,totalShards:d,redundancyMultiplier:f,showAdvanced:C,setShowAdvanced:M}}(),U=(0,i.useMemo)(()=>({autopilotState:{data:e.data,error:e.error},autopilot:{data:t.data,error:t.error},contractSet:{data:n.data,error:n.error},uploadPacking:{data:u.data,error:u.error},gouging:{data:r.data,error:r.error},redundancy:{data:s.data,error:s.error},averages:{data:c.data,error:c.error},appSettings:{settings:{siaCentral:j.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,n.data,n.error,u.data,u.error,r.data,r.error,s.data,s.error,c.data,c.error,j.settings.siaCentral]),W=(0,i.useMemo)(()=>{var e;return!function(e){let{autopilotState:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:a,redundancy:o,averages:s,appSettings:l}=e;return!!(t.data&&o.data&&i.data&&a.data&&(n.data||n.error)&&(r.data||r.error)&&(!l.settings.siaCentral||s.data))}(U)?null:x({hasBeenConfigured:null===(e=U.autopilotState.data)||void 0===e?void 0:e.configured,autopilot:U.autopilot.data,contractSet:U.contractSet.data,uploadPacking:U.uploadPacking.data,gouging:U.gouging.data,averages:U.averages.data,redundancy:U.redundancy.data})},[U]),q=(0,i.useMemo)(()=>(function(e){let{uploadPacking:t,gouging:n,redundancy:r}=e;return!!(r.error||t.error||n.error)})(U),[U]),$=(0,i.useCallback)(async()=>{let i=await e.mutate(),o=A?await t.mutate():void 0,l=await n.mutate(),d=await r.mutate(),f=await s.mutate(),h=await u.mutate();if(!r||!s)return(0,a.OHV)({title:"Error fetching settings"}),null;N.reset(x({hasBeenConfigured:i.configured,autopilot:o,contractSet:l,uploadPacking:h,gouging:d,averages:c.data,redundancy:f}))},[N,e,A,t,n,r,u,s,c.data]);(0,a.u$d)({form:N,remoteValues:W}),(0,a.Z4p)({form:N,remoteValues:W});let{changeCount:K}=(0,a.mYE)({form:N}),{canEstimate:Y,estimatedSpendingPerMonth:X,estimatedSpendingPerTB:G}=function(e){let{isAutopilotEnabled:t,redundancyMultiplier:n,maxStoragePriceTBMonth:r,storageTB:a,maxDownloadPriceTB:o,downloadTBMonth:s,maxUploadPriceTB:u,uploadTBMonth:c}=e,d=(0,i.useMemo)(()=>!!t&&(null==r?void 0:r.gt(0))&&(null==a?void 0:a.gt(0))&&(null==o?void 0:o.gt(0))&&(null==u?void 0:u.gt(0)),[t,r,a,o,u]),f=(0,i.useMemo)(()=>{if(!d)return new(l())(0);let e=(null==a?void 0:a.gt(0))?a:new(l())(0),t=(null==s?void 0:s.gt(0))?s:new(l())(0),i=(null==c?void 0:c.gt(0))?c:new(l())(0),f=(null==r?void 0:r.gt(0))?r:new(l())(0),h=(null==u?void 0:u.gt(0))?u:new(l())(0),p=(null==o?void 0:o.gt(0))?o:new(l())(0),m=f.times(n).times(e),v=p.times(t),g=h.times(n).times(i);return m.plus(v).plus(g)},[d,n,r,a,o,s,u,c]),h=(0,i.useMemo)(()=>d?f.div(a):new(l())(0),[d,f,a]);return{canEstimate:d,estimatedSpendingPerMonth:f,estimatedSpendingPerTB:h}}({isAutopilotEnabled:A,redundancyMultiplier:V,maxStoragePriceTBMonth:R,storageTB:Z,maxDownloadPriceTB:D,downloadTBMonth:F,maxUploadPriceTB:L,uploadTBMonth:z}),J=function(e){let{resources:t,estimatedSpendingPerMonth:n,isAutopilotEnabled:r,showAdvanced:s,revalidateAndResetForm:l}=e,u=(0,k.Bl)(),c=(0,k.oe)(),d=(0,k.KJ)(),f=(0,k.d_)(),{syncDefaultContractSet:h}=S(),m=(0,C.Tu)();return(0,i.useCallback)(async e=>{if(t.gouging.data&&t.redundancy.data&&f.data)try{let i={};r&&!s&&(i.allowanceMonth=n);let v={...e,...i},g=r&&!t.autopilot.data,x=r?await c.put({payload:function(e,t,n){let r={...p(e),...y(t)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,o.qN)(w(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,o.mv)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mv)(r.renewWindowWeeks.toNumber())),download:Number(w((0,o.xf)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number(w((0,o.xf)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,o.xf)(r.storageTB).toNumber(),prune:r.prune},hosts:{...null==n?void 0:n.hosts,maxDowntimeHours:r.maxDowntimeHours.toNumber(),minRecentScanFailures:r.minRecentScanFailures.toNumber(),allowRedundantIPs:r.allowRedundantIPs,scoreOverrides:(null==n?void 0:n.hosts.scoreOverrides)||null,minProtocolVersion:r.minProtocolVersion}}}(f.data.network,v,t.autopilot.data)}):void 0,[j,k,E,S]=await Promise.all([d.put({params:{key:"contractset"},payload:b(v,t.contractSet.data)}),d.put({params:{key:"uploadpacking"},payload:{...t.uploadPacking.data,enabled:v.uploadPackingEnabled}}),d.put({params:{key:"gouging"},payload:{...t.gouging.data,maxRPCPrice:(0,o.qN)(v.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,o.qN)(v.maxStoragePriceTBMonth.div((0,o.S5)(1)).div((0,o.xf)(1))).toString(),maxUploadPrice:(0,o.qN)(v.maxUploadPriceTB).toString(),maxDownloadPrice:(0,o.qN)(v.maxDownloadPriceTB).toString(),maxContractPrice:(0,o.qN)(v.maxContractPrice).toString(),hostBlockHeightLeeway:Math.round(v.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,a.ort)(v.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,a.k9c)(v.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,o.qN)(v.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:v.migrationSurchargeMultiplier.toNumber()}}),d.put({params:{key:"redundancy"},payload:{...t.redundancy.data,minShards:v.minShards.toNumber(),totalShards:v.totalShards.toNumber()}})]);if(null==x?void 0:x.error)throw Error(x.error);if(j.error)throw Error(j.error);if(k.error)throw Error(k.error);if(E.error)throw Error(E.error);if(S.error)throw Error(S.error);r&&(h(v.autopilotContractSet),u.post({payload:{forceScan:!0}})),(0,a.OPV)({title:"Configuration has been saved"}),g&&(async()=>{await (0,C.gw)(5e3),m(e=>e.startsWith(M.fu)),await (0,C.gw)(5e3),m(e=>e.startsWith(M.fu))})(),await l()}catch(e){(0,a.OHV)({title:"Error updating configuration",body:e.message}),console.log(e)}},[f.data,n,s,r,c,l,h,m,d,t,u])}({resources:U,estimatedSpendingPerMonth:X,showAdvanced:B,isAutopilotEnabled:A,revalidateAndResetForm:$}),Q=(0,a.WsO)(I),ee=(0,i.useMemo)(()=>N.handleSubmit(J,Q),[N,J,Q]),et=(0,i.useRef)(),en=(0,i.useCallback)(async e=>{(0,a.S5N)(et.current,e)},[]);return{onSubmit:ee,revalidateAndResetForm:$,form:N,fields:I,changeCount:K,canEstimate:Y,estimatedSpendingPerMonth:X,estimatedSpendingPerTB:G,redundancyMultiplier:V,storageTB:Z,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,showAdvanced:B,setShowAdvanced:H,remoteError:q,configRef:et,takeScreenshot:en}}();return(0,r.jsx)(N.Provider,{value:n,children:t})}},76838:function(e,t,n){"use strict";n.d(t,{x:function(){return E},G:function(){return k}});var r=n(52322),i=n(97479),a=n(5632),o=n(55329),s=n(2784),l=n(6391),u=n.n(l),c=n(75262),d=n(61020),f=n(21487),h=n(91492),p=n(82851);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,hostIp:n,hostKey:i}}=e;return(0,r.jsx)(h.F,{id:t,hostAddress:n,hostKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:a},context:{siascanUrl:o}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t),type:"contract",label:"contract ID",siascanUrl:o}),n&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(d.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:o,label:"contract ID"})]})})]})}},{id:"contractSets",label:"contract sets",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{contractSets:t},context:{defaultSet:n}}=e;return t?(0,r.jsx)("div",{className:"flex flex-col items-center overflow-hidden h-full",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex min-h-full gap-1 flex-wrap py-2 items-center",children:t.map(e=>{let t=n===e;return(0,r.jsx)(i.ua7,{content:"Contract is part of set ".concat(e,".")+(t?" ".concat(e," is the default contract set."):""),children:(0,r.jsxs)(i.Cts,{interactive:!1,size:"small",className:(0,p.cx)("flex gap-px items-center",t?"pl-px":""),children:[t?(0,r.jsx)(d.Y3p,{className:"scale-75"}):null,e]})},e)})})})}):null}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostIp",siascanUrl:n})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostPublicKey",siascanUrl:n})}},{id:"state",label:"state",category:"general",render:e=>{let{data:{state:t}}=e;return(0,r.jsx)(i.ua7,{content:(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"pending"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has been added."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"active"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"complete"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"failed"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof was not submitted before the end of proof window."})]})]}),children:(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"complete"===t?"green":void 0,children:t})})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:a,proofWindowHeightEnd:o,revisionHeight:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:a,proofWindowHeightEnd:o,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"endTime",label:"end date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{endTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"size",label:"size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{size:t}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,f.vW)(e)})}},{id:"totalCost",label:"total cost",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{totalCost:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingUploads",label:"uploads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingUploads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingDownloads",label:"downloads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDownloads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingFundAccount",label:"fund account spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingFundAccount:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}}];var v=n(85375),g=n(38855),y=n(45178);function b(e){let t=(0,i.sWj)(5);return Math.round(e/t)*t}function x(e){let{start:t,disabled:n,contractId:a}=e,l=b(t),c=(0,i.NrH)(1),d=(0,s.useMemo)(()=>Math.max(Math.round((b(new Date().getTime())-l)/c),1),[l,c]),h=(0,s.useMemo)(()=>{let e={start:new Date(l||0).toISOString(),interval:c,n:d};return a&&(e.contractID=a),e},[l,c,d,a]),p=(0,o.Yy)({disabled:n,params:h});return{contractMetrics:(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=p.data)||void 0===e?void 0:e.map(e=>({uploadSpending:Number(e.uploadSpending),listSpending:Number(e.listSpending),deleteSpending:Number(e.deleteSpending),fundAccountSpending:Number(e.fundAccountSpending),remainingCollateral:Number(e.remainingCollateral),remainingFunds:Number(e.remainingFunds),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,i.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],enabledTip:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],categories:["funding","spending"],data:{remainingFunds:{label:"remaining funds",category:"funding",color:i.O9T.emerald[600]},remainingCollateral:{label:"remaining collateral",category:"funding",pattern:!0,color:i.O9T.emerald[600]},fundAccountSpending:{label:"fund account",category:"spending",color:i.O9T.red[600]},uploadSpending:{label:"upload",category:"spending",color:i.O9T.red[600]},listSpending:{label:"list",category:"spending",color:i.O9T.red[600]},deleteSpending:{label:"delete",category:"spending",color:i.O9T.red[600]}},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(i.ho9,{variant:"value",value:new(u())(t)})},formatTimestamp:c===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,f.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:p.isValidating&&!p.data}},[p.data,p.isValidating,c])}}var w=n(9338);let j=(0,s.createContext)({}),k=()=>(0,s.useContext)(j);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)("list"),[n,r]=(0,s.useState)("spending"),l=(0,a.useRouter)(),d=Number(l.query.limit||50),h=Number(l.query.offset||0),p=(0,o.GP)({config:{swr:{refreshInterval:w.h}}}),j=(0,v.JL)(),k=(0,s.useMemo)(()=>{var e;return(null===(e=j.data)||void 0===e?void 0:e.hosts)||[]},[j.data]),E=(0,g.n)(),S=E.isSynced?E.nodeBlockHeight:E.estimatedBlockHeight,[C,_]=(0,s.useState)(),O=(0,s.useCallback)(e=>{if(C===e){_(void 0);return}_(e),t("detail"),r("spending")},[C,_,t]),M=(0,s.useMemo)(()=>{var e;return p.data?(null===(e=p.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,f.jr)(S,e.startHeight),i=e.windowStart,a=(0,f.jr)(S,i);return{id:e.id,onClick:()=>O(e.id),contractId:e.id,state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,contractSets:e.contractSets,location:null===(t=k.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:a,contractHeightStart:e.startHeight,contractHeightEnd:i,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:n,renewedFrom:e.renewedFrom,totalCost:new(u())(e.totalCost),spendingUploads:new(u())(e.spending.uploads),spendingDownloads:new(u())(e.spending.downloads),spendingFundAccount:new(u())(e.spending.fundAccount),size:new(u())(e.size)}}))||[]:null},[p.data,k,S,O]),T=(0,s.useMemo)(()=>null==M?void 0:M.find(e=>e.id===C),[M,C]),{filters:A,setFilter:P,removeFilter:N,removeLastFilter:R,resetFilters:D}=(0,i.Wdu)(),{configurableColumns:L,enabledColumns:Z,sortableColumns:F,toggleColumnVisibility:z,setColumnsVisible:V,setColumnsHidden:I,toggleSort:B,setSortDirection:H,setSortField:U,sortField:W,sortDirection:q,resetDefaultColumnVisibility:$}=(0,i.oy6)("renterd/v0/contracts",{columns:m,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),K=(0,i._4u)({dataset:M,filters:A,sortField:W,sortDirection:q}),Y=(0,s.useMemo)(()=>K?K.slice(h,h+d):null,[K,h,d]),{range:X}=(0,s.useMemo)(()=>(0,i.EJC)(S,Y||[]),[S,Y]),G=(0,s.useMemo)(()=>m.filter(e=>e.fixed||Z.includes(e.id)),[Z]),J=(0,i.c2j)(K,p.isValidating,p.error,A),Q=(0,y.B)(),ee=(0,o.M6)(),et=(0,s.useMemo)(()=>{var e;return{currentHeight:E.estimatedBlockHeight,defaultSet:null===(e=ee.data)||void 0===e?void 0:e.default,contractsTimeRange:X,siascanUrl:Q}},[E.estimatedBlockHeight,X,Q,ee.data]),{contractMetrics:en}=x({start:new Date().getTime()-(0,i.NrH)(30)}),{contractMetrics:er}=x({contractId:C,start:(null==T?void 0:T.startTime)||0,disabled:!T}),{contractSetMetrics:ei}=function(){var e;let t=b(new Date().getTime()-(0,i.NrH)(30)),n=(0,i.NrH)(1),r=(0,s.useMemo)(()=>Math.round((b(new Date().getTime())-t)/n),[t,n]),a=(0,o.e$)(),l=(0,o.Bi)({disabled:!a.data,params:{name:null===(e=a.data)||void 0===e?void 0:e.contracts.set,start:new Date(t).toISOString(),interval:n,n:r}});return{contractSetMetrics:(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=l.data)||void 0===e?void 0:e.map(e=>({contracts:Number(e.contracts),timestamp:new Date(e.timestamp).getTime()})),"none"),r=(0,i.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["contracts"],enabledTip:["contracts"],data:{contracts:{label:"contracts",color:i.O9T.emerald[600]}},formatTimestamp:n===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:l.isValidating&&!l.data}},[l.data,l.isValidating,n])}}(),ea=(0,o.Wu)();return{dataState:J,limit:d,offset:h,isLoading:p.isLoading,error:p.error,pageCount:(null==Y?void 0:Y.length)||0,datasetCount:(null==M?void 0:M.length)||0,datasetFilteredCount:(null==K?void 0:K.length)||0,columns:G,dataset:M,cellContext:et,datasetPage:Y,configurableColumns:L,enabledColumns:Z,sortableColumns:F,toggleColumnVisibility:z,setColumnsVisible:V,setColumnsHidden:I,toggleSort:B,setSortDirection:H,setSortField:U,sortField:W,filters:A,setFilter:P,removeFilter:N,removeLastFilter:R,resetFilters:D,sortDirection:q,resetDefaultColumnVisibility:$,viewMode:e,setViewMode:t,graphMode:n,setGraphMode:r,selectedContract:T,selectContract:O,allContractsSpendingMetrics:en,selectedContractSpendingMetrics:er,contractSetCountMetrics:ei,contractSets:ea}}();return(0,r.jsx)(j.Provider,{value:n,children:t})}},75262:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["contractId","contractSets","hostIp","hostKey","state","timeline","size","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",a=[{id:"contractId",label:"contract ID",category:"general"},{id:"hostIp",label:"host address",category:"general"},{id:"hostKey",label:"host public key",category:"general"},{id:"state",label:"state",category:"general"},{id:"timeline",label:"timeline",category:"time"},{id:"startTime",label:"start date",category:"time"},{id:"endTime",label:"end date",category:"time"},{id:"size",label:"size",category:"general"},{id:"totalCost",label:"total cost",category:"financial"},{id:"spendingUploads",label:"uploads spending",category:"financial"},{id:"spendingDownloads",label:"downloads spending",category:"financial"},{id:"spendingFundAccount",label:"fund account spending",category:"financial"}]},97112:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eI},xQ:function(){return eB},Rh:function(){return eV}});var r=n(52322),i=n(2784),a=n(97479),o=n(67108),s=n(98334),l=n(82851),u=n(99182),c=n(5632),d=n(35599),f=n(55329);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:o}=e,{openDialog:l,closeDialog:u}=eV(),p=(0,c.useRouter)(),m=(0,f.X2)();return(0,r.jsxs)(d.fu,{currentPage:n,commandPage:h,children:[(0,r.jsx)(d.Ul,{currentPage:n,parentPage:i,commandPage:h,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,a.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let v={namespace:"settings",label:"Settings"};function g(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:a}=eV(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,o.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:v,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:v,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{u({siaCentral:!l.siaCentral}),a()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),a()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("system"),a()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),a()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),a()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),f.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{h(n),a()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function b(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:a,closeDialog:o}=eV(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{a("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View transaction pool"})]})}var x=n(68338),w=n(46081);let j={namespace:"configuration",label:"Configuration"};function k(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{showAdvanced:o}=(0,x.ZR)(),{closeDialog:l}=eV(),{autopilot:u}=(0,w.q)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:j,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:j,onSelect:()=>{i(j)},children:j.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.pricing),l()},children:"Configure pricing"}),o&&(0,r.jsxs)(r.Fragment,{children:["on"===u.status&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var E=n(14613);let S={namespace:"contracts",label:"Contracts"};function C(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(S)},children:S.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:S,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:S,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(E.F,{parentPage:S,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}let _={namespace:"alerts",label:"Alerts"};function O(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(_)},children:_.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:_,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:_,onSelect:()=>{a.push(s._.alerts.index),o()},children:"View alerts"})})]})}var M=n(76838),T=n(42213);let A={namespace:"hosts",label:"Hosts"};function P(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(A)},children:A.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:A,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:A,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:A,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(T.L,{parentPage:A,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}var N=n(70899),R=n(61020);function D(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(R.e1T,{}),(0,r.jsx)(R.JCW,{}),(0,r.jsx)(R.c_L,{})]}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}var L=n(41736);let Z={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:D};function F(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:o,afterSelect:s}=e,{activeBucketName:l,navigateToModeSpecificFiltering:u}=(0,L.b)(),c=(null==i?void 0:i.namespace)===Z.namespace,h=l||"default",p=(0,f.Iy)({disabled:!c,params:{bucket:h,key:t,offset:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&p.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:Z,children:p.data.map(e=>{let{name:t}=e,l=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=z(e),a=z(t),o=i.toLowerCase().indexOf(a.toLowerCase()),s=o+a.length-1,l=0,u=0;return i.split("/").map(e=>{if(l>=r)return u+=e.length,z(e);let t=u,n=u+e.length+1;return to?(u+=e.length,z(e)):!e.includes(a)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,z(e))}).reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=z(e),r=z(t),i=n.toLowerCase().indexOf(r.toLowerCase()),a=i+r.length;return{endIndex:e.length-i,startIndex:e.length-a}}(l,n);return(0,r.jsx)(d.WD,{commandPage:Z,currentPage:i,onSelect:()=>{o(),u(h+t),s()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,N.IQ)(t)?(0,r.jsx)(R.ROc,{size:16}):(0,r.jsx)(R.c_L,{})}),(0,r.jsxs)(a.xvT,{className:"flex items-center",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(a.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function z(e){return e.split("").reverse().join("")}let V={namespace:"files",label:"Files"};function I(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:a,pushPage:o,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:a,commandPage:a,onSelect:()=>{o(V)},children:V.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:V,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{f.pathname.startsWith(s._.buckets.index)||f.push(s._.buckets.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{o(Z),u()},children:"Search files"})]}),(0,r.jsx)(F,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var B=n(56328),H=n(94225);function U(e){let{search:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(R.owP,{})}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}let W={namespace:"keys",label:"S3 authentication keys"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o,openDialog:l}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(W)},children:W.label}),(0,r.jsxs)(d.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(s._.keys.index),o()},children:"View keys"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(s._.keys.index),l("keysCreate")},children:"Create new S3 authentication keypair"})]})]})}function $(e){let{panel:t}=e,{resetFilters:n}=(0,M.G)(),{resetFilters:o}=(0,B.l)(),{closeDialog:d}=eV(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=(0,H.Nr)(h,500),[y,x]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,E=(0,i.useCallback)(e=>{x(t=>[...t,e])},[x]),S=(0,i.useCallback)(()=>{d()},[d]),_=(0,i.useCallback)(()=>{m("")},[m]),T=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,a.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),x(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(a.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(a.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(T,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:E}),(0,r.jsx)(I,{debouncedSearch:v,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{_()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(C,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),_()}}),(0,r.jsx)(P,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),o()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),_()}}),(0,r.jsx)(q,{currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{f.pathname.startsWith(s._.keys.index)||f.push(s._.keys.index),_()}}),(0,r.jsx)(O,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.alerts.index)||f.push(s._.alerts.index),_()}}),(0,r.jsx)(k,{currentPage:w,pushPage:E}),(0,r.jsx)(b,{currentPage:w,pushPage:E})]})]})}function K(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlockedAndAuthedRoute:u}=(0,o.Hv)(),{isConnected:c}=(0,a.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)($,{})})})}var Y=n(7114),X=n(24511);let G={name:""},J=X.Ry().shape({name:X.Z_().required("Required")});function Q(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:o}=(0,L.b)(),s=(0,f.ZM)(),l=(0,Y.TA)({initialValues:G,validationSchema:J,onSubmit:async(e,t)=>{let n=await s.put({params:(0,N.W0)(o+e.name+"/"),payload:null});n.error?(0,a.OHV)({title:"Error creating directory",body:n.error}):((0,a.OPV)({title:"Directory created"}),t.resetForm(),i(!1))}});return(0,r.jsx)(a.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(a.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var ee=n(82229);let et={publicKey:""},en=X.Ry().shape({publicKey:X.Z_().required("Required")});function er(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,ee.I)(),o=(0,Y.TA)({initialValues:et,validationSchema:en,onSubmit:async(e,t)=>{await n([e.publicKey],[])?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{o.setStatus(void 0)},[o.values]);let s=o.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!o.values.publicKey||e.includes(o.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:o.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Public key",name:"publicKey",formik:o,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"publicKey",formik:o,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.IKw,{formik:o,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(a.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(a.xvT,{children:(0,r.jsx)(R.qdM,{})}),(0,r.jsxs)(a.nvN,{size:"12",children:[(0,r.jsx)(a.xvT,{weight:"semibold",children:"Caution:"})," Please note that because the allowlist is inclusive, as soon as there are more than zero entries, contracting will be limited to only the hosts explicitly on the allowlist - all other existing contracts will immediately abort."]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:l.length?(0,r.jsx)(a.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(a.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.xvT,{color:"subtle",children:["No existing entries match ",o.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ei=n(94613);let ea={address:""},eo=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],es=X.Ry().shape({address:X.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,a.Ztc)().test(e||""))});function el(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ei.l)(),n=(0,Y.TA)({initialValues:ea,validationSchema:es,onSubmit:async(e,n)=>{await t([e.address],[])?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let o=n.values.address,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,M.G)(),u=(0,i.useMemo)(()=>eo.filter(t=>{var n;return!(null===(n=e.data)||void 0===n?void 0:n.find(e=>e===t))}).map(e=>({address:e,contractCount:null==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.IKw,{formik:n,size:"small",variant:"red",withStatusError:!1,children:"Block address"})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:(0,r.jsx)(a.xrM,{children:(0,r.jsxs)("div",{className:"p-2",children:[!!u.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex gap-1 flex-wrap",children:[(0,r.jsx)(a.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:o}=e;return(0,r.jsxs)(a.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!o&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(a.ua7,{content:"".concat(o," active contracts"),children:(0,r.jsxs)(a.xvT,{color:"red",children:["(",o,")"]})})]}),t!==u.length-1&&(0,r.jsx)(a.xvT,{children:","})]},i)})]}),(0,r.jsx)(a.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(a.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):o?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.xvT,{color:"subtle",children:["No existing entries match ",n.values.address,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function eu(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(a.VqE,{trigger:t,title:"Manage host blocklist and allowlist",open:n,onOpenChange:e=>{i(e)},contentVariants:{className:"w-[500px]"},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"12",children:"The allowlist and blocklist limit the set of hosts that renterd will consider when forming contracts. The blocklist excludes hosts with matching addresses whereas the allowlist restricts consideration to hosts with a matching public key. Each list's filtering is enabled and applied when it contains more than zero entries."}),(0,r.jsxs)(a.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(a.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(a.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(a.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(a.nUL,{value:"blocklist",children:(0,r.jsx)(el,{})}),(0,r.jsx)(a.nUL,{value:"allowlist",children:(0,r.jsx)(er,{})})]})]})})}var ec=n(10532),ed=n(98131),ef=n(30291),eh=n(11948),ep=n(99605);function em(e){let{panel:t}=e,{closeDialog:n}=eV(),o=(0,ep.xj)(),c=(0,ep.jD)(),[d,f]=(0,i.useState)(""),[h]=(0,H.Nr)(d,500),p=(0,i.useCallback)(()=>{n()},[n]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,a.z$)()),children:[(0,r.jsx)(a.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:d,onValueChange:f,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:Z.prompt}),(0,r.jsx)(a.Z0O,{className:"my-2"}),(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(D,{search:d,debouncedSearch:h})}),(0,r.jsx)(F,{debouncedSearch:h,search:d,currentPage:Z,beforeSelect:()=>{p()},afterSelect:()=>{c.startsWith(s._.buckets.index)||o.push(s._.buckets.index)}})]})})]})}function ev(e){let{open:t,onOpenChange:n,trigger:i}=e;return(0,r.jsx)(a.VqE,{open:t,trigger:i,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(em,{})})}var eg=n(6391),ey=n.n(eg);function eb(){let{dialog:e,openDialog:t,closeDialog:n}=eV(),o=(0,f.X2)(),s=(0,f.gU)(),l=(0,f.cg)(),u=(0,f.ys)(),c=(0,f.aO)(),d=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await s.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await l.post({payload:{transaction:r.data.transaction,toSign:r.data.toSign,coveredFields:{wholeTransaction:!0}}});if(i.error)return c.post({payload:r.data.transaction}),{error:i.error};let a=await u.post({payload:[i.data]});return a.error?(c.post({payload:i.data}),{error:a.error}):{}},[s,l,u,c]);return(0,r.jsx)(a.weF,{balance:o.data?new(ey())(o.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var ex=n(40730);function ew(){let{id:e,dialog:t,openDialog:n,closeDialog:o}=eV(),{dataset:s}=(0,ex.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.hash===e),[s,e]);return(0,r.jsx)(a.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):o()})}var ej=n(23771),ek=n(63955);let eE={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s,closeDialog:l}=eV(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eE}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,a.OHV)({title:"Error deleting bucket",body:t.error}):((0,a.OPV)({title:"Bucket permanently deleted"}),c.reset(),l())},[c,u,l]),h=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{notDefault:()=>"default"!==s||"cannot delete default bucket",equals:e=>e===s||"bucket name does not match"}}}}),[s]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eE),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"Before you delete a bucket you must ensure that it is empty. Re-enter the bucket name to confirm the removal."}),(0,r.jsx)("div",{children:(0,r.jsx)(a.EKh,{color:"gray",children:s})}),(0,r.jsx)(a.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let eC={visibility:"public"};function e_(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s,closeDialog:l}=eV(),u=(0,f.D5)({disabled:!n,params:{name:s},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ek.cI)({mode:"all",defaultValues:eC});(0,i.useEffect)(()=>{var e,t;d.reset({visibility:(null===(t=u.data)||void 0===t?void 0:null===(e=t.policy)||void 0===e?void 0:e.publicReadAccess)?"public":"private"})},[d,u.data]);let h=(0,i.useCallback)(async e=>{let t=await c.put({params:{name:s},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,a.OHV)({title:"Error updating bucket policy",body:t.error}):((0,a.OPV)({title:"Bucket policy has been updated"}),d.reset(),l())},[d,s,c,l]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:s,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[s]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(eC),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:d.handleSubmit(h,m),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"Update the bucket's policy to set read access to either private or public. Files in public read access buckets can be accessed without authentication via the S3 API."}),(0,r.jsx)(a.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(a.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let eO={name:""};function eM(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eV(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eO}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,a.OHV)({title:"Error creating bucket",body:t.error}):((0,a.OPV)({title:"Bucket created"}),u.reset(),s())},[u,l,s]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,a.WsO)(d);return(0,r.jsx)(a.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eO),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(c,h),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(a.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:u,children:"Create bucket"})]})})}var eT=n(5184),eA=n(75618),eP=n(43385);function eN(e){let{id:t,trigger:n,open:o,onOpenChange:s}=e,{closeDialog:l}=eV(),{refresh:u}=(0,eA.J)(),{refresh:c}=(0,eP.o)(),d=(0,N.vt)(t||""),h={name:d=d.endsWith("/")?d.slice(0,-1):d},p=(0,f.GD)(),m=(0,ek.cI)({mode:"all",defaultValues:h});(0,i.useEffect)(()=>{m.reset({name:d})},[m,d]);let v=(0,i.useCallback)(async e=>{let{bucket:n,to:r,from:i,mode:o}=(0,eT.E)(t,e.name),s=await p.post({payload:{bucket:n,to:r,from:i,mode:o,force:!1}});s.error?(0,a.OHV)({title:(0,N.IQ)(t)?"Error renaming directory":"Error renaming file",body:s.error}):(u(),c(),m.reset(),l(),(0,a.OPV)({title:(0,N.IQ)(t)?"Directory renamed":"File renamed"}))},[m,t,u,c,p,l]),g=(0,i.useMemo)(()=>(function(e){let{currentName:t}=e;return{name:{type:"text",title:"Name",placeholder:t,validation:{required:"required",validate:{noSlash:e=>!e.includes("/")||"Name cannot contain slashes"}}}}})({currentName:d}),[d]),y=(0,a.WsO)(g);return(0,r.jsx)(a.VqE,{title:"Rename file",trigger:n,open:o,onOpenChange:e=>{e||m.reset(h),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(v,y),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.yEL,{name:"name",form:m,fields:g,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:m,children:"Save"})]})})}var eR=n(55791);function eD(){return{name:eZ(),secret:eF()}}function eL(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eV(),l=(0,f.FD)(),u=(0,f.KJ)(),c=(0,ek.cI)({mode:"all",defaultValues:eD()}),d=(0,i.useCallback)(async e=>{var t;let n={...null===(t=l.data)||void 0===t?void 0:t.v4Keypairs,[e.name]:e.secret},r=await u.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,a.OHV)({title:"Error creating key",body:r.error}):((0,a.OPV)({title:"New key created"}),c.reset(eD()),s())},[c,s,u,l.data]),h=(0,i.useMemo)(()=>{var e;return function(e){let{existingKeys:t,regenerateAccessKey:n,regenerateSecretKey:i}=e;return{name:{type:"text",title:"Access key ID",placeholder:"my secure key",actions:(0,r.jsx)(a.zxk,{onClick:n,tip:"Regenerate access key ID",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(eR.Wet,{})}),validation:{required:"required",validate:{minLength:e=>(null==e?void 0:e.length)>=16||"must be at least 16 characters",maxLength:e=>(null==e?void 0:e.length)<=128||"must be at most 128 characters",unique:e=>!t.includes(e)||"Name must be unique"}}},secret:{type:"text",title:"Secret access key",placeholder:"",actions:(0,r.jsx)(a.zxk,{onClick:i,tip:"Regenerate secret access key",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(eR.Wet,{})}),validation:{required:"required",validate:{exactLength:e=>(null==e?void 0:e.length)===40||"must be exactly 40 characters"}}}}}({regenerateAccessKey:()=>{c.setValue("name",eZ())},regenerateSecretKey:()=>{c.setValue("secret",eF())},existingKeys:Object.keys((null===(e=l.data)||void 0===e?void 0:e.v4Keypairs)||{})})},[l.data,c]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Create S3 key",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eD()),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(a.ZqQ,{form:c,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{children:"Create a new S3 authentication key."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.yEL,{name:"name",form:c,fields:h}),(0,r.jsx)(a.yEL,{name:"secret",form:c,fields:h})]})]})})}function eZ(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(let n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function eF(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="";for(let n=0;n<40;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}let ez=(0,i.createContext)({}),eV=()=>(0,i.useContext)(ez);function eI(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),a=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[o,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:a,confirm:o,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(ez.Provider,{value:n,children:t})}function eB(){var e;let{id:t,dialog:n,openDialog:i,onOpenChange:o,closeDialog:s,confirm:l,openConfirmDialog:u}=eV(),c=(0,f.Wl)(),d=(0,f.X2)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{open:"cmdk"===n,onOpenChange:o,setOpen:()=>i("cmdk")}),(0,r.jsx)(a.DLL,{open:"settings"===n,onOpenChange:o,showGpuSetting:!0}),(0,r.jsx)(eb,{}),(0,r.jsx)(a.YNn,{address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,open:"addressDetails"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ew,{}),(0,r.jsx)(a.D_D,{open:"connectPeer"===n,connect:e=>c.post({payload:e}),onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eM,{open:"filesCreateBucket"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eS,{open:"filesDeleteBucket"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(e_,{open:"filesBucketPolicy"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(Q,{open:"filesCreateDirectory"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ev,{open:"filesSearch"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eN,{id:t,open:"fileRename"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eu,{open:"hostsManageAllowBlock"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ec.g,{open:"hostsFilterAddress"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ej.a,{open:"hostsFilterPublicKey"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ed.p,{open:"contractsFilterAddress"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eh.X,{open:"contractsFilterContractSet"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(ef.C,{open:"contractsFilterPublicKey"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(eL,{open:"keysCreate"===n,onOpenChange:e=>e?i(n):s()}),(0,r.jsx)(a.QHy,{open:"confirm"===n,params:l,onOpenChange:e=>e?u(l):s()})]})}},72199:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(52322),i=n(97479),a=n(61020),o=n(21487),s=n(87023),l=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736);let p=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:u,size:c}}=e,{setActiveDirectory:d}=(0,h.b)();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),d(e=>e.slice(0,-1))},children:(0,r.jsx)(a.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(l.I,{path:u,size:c}):(0,r.jsx)(s.e,{path:u})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectoryAndFileNamePrefix:a,setActiveDirectory:o}=(0,h.b)();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),a([t],"")},children:t}):"directory"===n?".."===t?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.slice(0,-1))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.concat(t.slice(0,-1)))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",children:t})}},{id:"readAccess",label:"public read access",contentClassName:"justify-center",render:function(e){var t,n;let{data:o}=e;if(".."===o.name)return null;let s=null===(n=o.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:s?"The bucket policy allows public read access.":"The bucket policy only allows private read access.",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(i.xvT,{color:s?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:s?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:s,loaded:l,size:u}=t;if("bucket"===n)return null;if(s){let e=(l/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(l),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},75618:function(e,t,n){"use strict";n.d(t,{V:function(){return v},J:function(){return m}});var r=n(52322),i=n(97479),a=n(2784),o=n(55329),s=n(37371),l=n(70899),u=n(5632),c=n(41736),d=n(9338),f=n(5184),h=n(72199);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,n=function(){let{activeDirectory:e,activeBucketName:t,activeDirectoryPath:n,setActiveDirectory:r,filters:p,enabledColumns:m}=(0,c.b)(),{limit:v,offset:g,response:y,refresh:b,dataset:x}=function(){var e;let{activeBucketName:t,activeDirectoryPath:n,fileNamePrefixFilter:r,sortDirection:i,sortField:f}=(0,c.b)(),h=(0,u.useRouter)(),p=Number(h.query.limit||50),m=Number(h.query.offset||0),v=(0,a.useMemo)(()=>{let e={...(0,l.W0)(n),sortBy:f,sortDir:i,offset:m,limit:p};return r&&(e.prefix=r.startsWith("/")?r.slice(1):r),e},[n,r,f,i,m,p]),g=(0,o.Jv)({disabled:!t,params:v,config:{swr:{refreshInterval:d.h}}}),y=(0,a.useMemo)(()=>{var e;return{isValidating:g.isValidating,data:null===(e=g.data)||void 0===e?void 0:e.entries}},[g.isValidating,null===(e=g.data)||void 0===e?void 0:e.entries]);return{limit:p,offset:m,response:g,dataset:(0,s.p)({id:"filesDirectory",objects:y}).data,refresh:g.mutate}}(),{onDragEnd:w,onDragOver:j,onDragCancel:k,onDragMove:E,onDragStart:S,draggingObject:C}=function(e){let{dataset:t,activeDirectory:n,setActiveDirectory:r,refresh:s}=e,[u,c]=(0,a.useState)(null),[,d]=(0,a.useState)(),h=(0,o.GD)(),p=(0,a.useCallback)(async e=>{let{bucket:t,from:r,to:a,mode:o}=(0,f.e)(e,n);if(r===a)return;let l=await h.post({payload:{force:!1,bucket:t,from:r,to:a,mode:o}});s(),l.error&&(0,i.OHV)({title:"Error moving files",body:l.error})},[s,h,n]),m=(0,a.useCallback)(e=>{if(!e){d(e=>(e&&clearTimeout(e),null));return}let t=setTimeout(()=>{r(()=>e)},500);d(e=>(e&&clearTimeout(e),t))},[d,r]),v=(0,a.useCallback)(e=>{if(e.collisions.length){var t;let r=null===(t=e.collisions)||void 0===t?void 0:t[0].id;".."===r?m(n.slice(0,-1)):m((0,l.gD)(r))}else m(void 0)},[m,n]),g=(0,a.useCallback)(e=>{c(t.find(t=>t.id===e.active.id)||null)},[t,c]),y=(0,a.useCallback)(e=>{v(e)},[v]),b=(0,a.useCallback)(e=>{v(e)},[v]);return{onDragEnd:(0,a.useCallback)(async e=>{m(void 0),c(void 0),p(e)},[c,m,p]),onDragOver:y,onDragCancel:(0,a.useCallback)(async e=>{m(void 0),c(void 0)},[c,m]),onDragMove:b,onDragStart:g,draggingObject:u}}({dataset:x,activeDirectory:e,setActiveDirectory:r,refresh:b}),_=(0,a.useMemo)(()=>x?e.length>0&&x.length>0?[{id:"..",name:"..",path:"..",type:"directory",onClick:()=>{r(e=>e.slice(0,-1))}},...x]:x:null,[x]),O=(0,a.useMemo)(()=>_?_.map(e=>C&&C.id!==e.id&&"directory"===e.type?{...e,isDroppable:!0}:{...e,isDraggable:"bucket"!==e.type&&!e.isUploading}):null,[_,C]);return{activeBucket:t,activeDirectory:e,setActiveDirectory:r,activeDirectoryPath:n,dataState:(0,i.c2j)(x,y.isValidating,y.error,p),columns:(0,a.useMemo)(()=>h.z.filter(e=>e.fixed||m.includes(e.id)),[m]),refresh:b,limit:v,offset:g,datasetPage:O,pageCount:(null==x?void 0:x.length)||0,onDragStart:S,onDragEnd:w,onDragMove:E,onDragCancel:k,onDragOver:j,draggingObject:C}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},33351:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(52322),i=n(97479),a=n(61020),o=n(21487),s=n(87023),l=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736),p=n(70899);let m=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:u,size:c}}=e;return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(l.I,{path:u,size:c}):(0,r.jsx)(s.e,{path:u})}},{id:"name",label:"name",category:"general",render:function(e){let{data:{path:t,name:n,type:a}}=e,{setFileNamePrefixFilter:o}=(0,h.b)(),s=(0,p.kj)(t).slice(1);return"bucket"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",children:n}):"directory"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(s))},children:s}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(s))},children:s})}},{id:"readAccess",label:"public read access",contentClassName:"justify-center",render:function(e){var t,n;let{data:o}=e;if(".."===o.name)return null;let s=null===(n=o.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:s?"The bucket policy allows public read access.":"The bucket policy only allows private read access.",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(i.xvT,{color:s?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:s?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:s,loaded:l,size:u}=t;if("bucket"===n)return null;if(s){let e=(l/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(l),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},43385:function(e,t,n){"use strict";n.d(t,{p:function(){return p},o:function(){return h}});var r=n(52322),i=n(97479),a=n(2784),o=n(55329),s=n(37371),l=n(5632),u=n(41736),c=n(9338),d=n(33351);let f=(0,a.createContext)({}),h=()=>(0,a.useContext)(f);function p(e){let{children:t}=e,n=function(){var e,t;let{sortDirection:n,sortField:r,filters:f,enabledColumns:h}=(0,u.b)(),{limit:p,response:m,refresh:v,dataset:g}=function(e){let{sortDirection:t,sortField:n}=e,{activeBucketName:r,fileNamePrefixFilter:i}=(0,u.b)(),d=(0,l.useRouter)(),f=Number(d.query.limit||50),h=d.query.marker,p=(0,a.useMemo)(()=>{let e={bucket:r,sortBy:n,sortDir:t,marker:h,limit:f};return i&&(e.prefix=i.startsWith("/")?i:"/"+i),e},[r,i,n,t,h,f]),m=(0,o.SD)({disabled:!r,payload:p,config:{swr:{refreshInterval:c.h}}}),v=(0,a.useMemo)(()=>{var e;return{isValidating:m.isValidating,data:null===(e=m.data)||void 0===e?void 0:e.objects}},[m.isValidating,m.data]);return{limit:f,marker:h,response:m,dataset:(0,s.p)({id:"filesFlat",objects:v}).data,refresh:m.mutate}}({sortField:r,sortDirection:n}),y=null===(e=m.data)||void 0===e?void 0:e.nextMarker,b=null===(t=m.data)||void 0===t?void 0:t.hasMore,x=(0,a.useMemo)(()=>g,[g]);return{dataState:(0,i.c2j)(g,m.isValidating,m.error,f),refresh:v,limit:p,datasetPage:x,columns:(0,a.useMemo)(()=>d.z.filter(e=>e.fixed||h.includes(e.id)),[h]),nextMarker:y,isMore:b,pageCount:(null==g?void 0:g.length)||0,sortField:r,filters:f,sortDirection:n}}();return(0,r.jsx)(f.Provider,{value:n,children:t})}},37371:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(67693),i=n(69046),a=n(79381),o=n(76838),s=n(70899),l=n(41736),u=n(2784);function c(e){let{id:t,objects:n}=e,{activeBucket:c,activeBucketName:d,fileNamePrefixFilter:f,uploadsList:h,sortDirection:p,sortField:m,activeDirectoryPath:v,buckets:g,setActiveDirectory:y}=(0,l.b)(),{dataset:b}=(0,o.G)(),x=(0,a.ZP)(n.isValidating||g.isValidating?null:[t,d,v],()=>{var e,t;let a={};c?(n.data||h.length)&&(null===(t=n.data)||void 0===t||t.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,s.v_)(d,t),o=(0,s.vt)(t);a[i]={id:i,path:i,bucket:c,size:n,health:r,name:o,onClick:(0,s.IQ)(t)?()=>{y(e=>e.concat(o.slice(0,-1)))}:void 0,type:(0,s.IQ)(t)?"directory":"file"}}),h.filter(e=>{let{path:t,name:n}=e;return t===(0,s.v_)(v,n)}).filter(e=>{let{path:t}=e;return t.startsWith((0,s.v_)(d,f))}).forEach(e=>{a[e.path]=e})):null===(e=g.data)||void 0===e||e.forEach(e=>{let t=e.name,n=(0,s.YF)(t,"");a[t]={id:n,path:n,bucket:e,size:0,health:0,name:t,onClick:()=>{y(e=>e.concat(t))},type:"bucket"}});let o=(0,r.Z)((0,i.Z)(a).map(e=>e[1]),m);return"desc"===p&&o.reverse(),o},{keepPreviousData:!0});return(0,u.useEffect)(()=>{x.mutate()},[n.data,h,b,g.data]),x}},41736:function(e,t,n){"use strict";n.d(t,{e:function(){return eo},b:function(){return ea}});var r=n(52322),i=n(97479),a=n(99605),o=n(2784),s=n(72199),l=n(3077),u=n(70899),c=n(55329),d=n(88744);function f(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t){var n=f(e,t,"get");return n.get?n.get.call(e):n.value}function p(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){p(e,t),t.set(e,n)}function v(e,t,n){var r=f(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}function g(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}function y(e,t){p(e,t),t.add(e)}var b=n(67108),x=new WeakMap,w=new WeakMap,j=new WeakMap,k=new WeakMap,E=new WeakMap,S=new WeakMap,C=new WeakMap,_=new WeakMap,O=new WeakMap,M=new WeakMap,T=new WeakMap,A=new WeakMap,P=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,Z=new WeakMap,F=new WeakMap,z=new WeakSet,V=new WeakSet,I=new WeakSet,B=new WeakSet,H=new WeakSet,U=new WeakSet;class W{async create(){var e;let t={bucket:h(this,x),generateKey:!0,path:h(this,w)};return v(this,R,null===(e=(await h(this,S).busUploadCreate.post({payload:t})).data)||void 0===e?void 0:e.uploadID),v(this,P,Array.from({length:Math.ceil(h(this,j).size/h(this,k))},(e,t)=>t+1)),h(this,R)}async start(){let e=new Promise(e=>{v(this,M,e)});g(this,z,q).call(this),await e}async abort(){var e;v(this,D,!0),Object.keys(h(this,A)).map(Number).forEach(e=>{h(this,A)[e].abort()});try{await h(this,S).busUploadAbort.post({payload:{bucket:h(this,x),path:h(this,w),uploadID:h(this,R)}})}catch(e){(0,i.OHV)({title:"Error aborting upload",body:e.message})}null===(e=h(this,M))||void 0===e||e.call(this)}setOnProgress(e){v(this,C,e)}setOnError(e){v(this,_,e)}setOnComplete(e){v(this,O,e)}constructor(e){y(this,z),y(this,V),y(this,I),y(this,B),y(this,H),y(this,U),m(this,x,{writable:!0,value:void 0}),m(this,w,{writable:!0,value:void 0}),m(this,j,{writable:!0,value:void 0}),m(this,k,{writable:!0,value:void 0}),m(this,E,{writable:!0,value:void 0}),m(this,S,{writable:!0,value:void 0}),m(this,C,{writable:!0,value:void 0}),m(this,_,{writable:!0,value:void 0}),m(this,O,{writable:!0,value:void 0}),m(this,M,{writable:!0,value:void 0}),m(this,T,{writable:!0,value:void 0}),m(this,A,{writable:!0,value:void 0}),m(this,P,{writable:!0,value:void 0}),m(this,N,{writable:!0,value:void 0}),m(this,R,{writable:!0,value:void 0}),m(this,D,{writable:!0,value:void 0}),m(this,L,{writable:!0,value:void 0}),m(this,Z,{writable:!0,value:void 0}),m(this,F,{writable:!0,value:void 0}),v(this,L,500),v(this,Z,6e4),v(this,F,h(this,L)),v(this,x,e.bucket),v(this,w,e.path),v(this,k,e.partSize||5242880),v(this,E,Math.min(e.maxConcurrentParts||5,15)),v(this,j,e.file),v(this,S,e.api),v(this,C,e.onProgress||(()=>null)),v(this,_,e.onError||(()=>null)),v(this,O,e.onComplete||(()=>null)),v(this,T,{}),v(this,A,{}),v(this,P,[]),v(this,N,[]),v(this,R,null),v(this,D,!1)}}async function q(){if(h(this,D))return;let e=Object.keys(h(this,A)).length;if(e>=h(this,E))return;if(!h(this,P).length){e||g(this,B,Y).call(this);return}let t=h(this,P).pop(),n=(t-1)*h(this,k),r=h(this,j).slice(n,n+h(this,k));try{await g(this,U,G).call(this,t,r,n,()=>{g(this,z,q).call(this)}),g(this,V,$).call(this)}catch(e){if(e instanceof J)return;if(e instanceof Q){await this.abort(),h(this,_).call(this,e);return}h(this,P).push(t),await g(this,I,K).call(this)}g(this,z,q).call(this)}function $(){v(this,F,h(this,L))}async function K(){let e=(0,b.gw)(h(this,F));v(this,F,Math.min(2*h(this,F),h(this,Z))),await e}async function Y(){try{let e={bucket:h(this,x),path:h(this,w),uploadID:h(this,R),parts:h(this,N).sort((e,t)=>e.partNumber-t.partNumber)};await h(this,S).busUploadComplete.post({payload:e}),h(this,O).call(this)}catch(e){h(this,_).call(this,e)}h(this,M).call(this)}function X(e,t){h(this,T)[e]=t.loaded;let n=Math.min(Object.keys(h(this,T)).map(Number).reduce((e,t)=>e+=h(this,T)[t],0),h(this,j).size),r=h(this,j).size;h(this,C).call(this,{sent:n,total:r,percentage:Math.round(n/r*100)})}async function G(e,t,n,r){let i=new AbortController;h(this,A)[e]=i,r();try{let r=await h(this,S).workerUploadPart.put({params:{key:h(this,w).slice(1),bucket:h(this,x),uploadid:h(this,R),offset:n,partnumber:e},payload:t,config:{axios:{onUploadProgress:t=>g(this,H,X).call(this,e,t),signal:i.signal}}});if(r.error){if("canceled"===r.error)throw new J;throw Error(r.error)}let a=r.headers.etag;if(!a)throw new Q;let o={partNumber:e,eTag:a.replace(/"/g,"")};h(this,N).push(o)}finally{h(this,A)[e]=null,delete h(this,A)[e]}}class J extends Error{constructor(){super("canceled"),this.name="CanceledError"}}class Q extends Error{constructor(){super("No ETag in response, add ETag to Access-Control-Expose-Headers list"),this.name="NoETagError"}}var ee=n(21487);let et=e=>(0,ee.B$)(4).times(e);var en=n(98334),er=n(92762);let ei=(0,o.createContext)({}),ea=()=>(0,o.useContext)(ei);function eo(e){let{children:t}=e,n=function(){var e;let{configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:v,setSortField:g,sortField:y,sortDirection:x,resetDefaultColumnVisibility:w}=(0,i.oy6)("renterd/v0/objects",{columns:s.z,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),j=(0,a.xj)(),k=(0,a.UO)(),E=null==k?void 0:k.bucket,{filters:S,setFilter:C,removeFilter:_,removeLastFilter:O,resetFilters:M}=(0,i.Uu5)(),T=(0,o.useMemo)(()=>{var e;return(null===(e=S.find(e=>"fileNamePrefix"===e.id))||void 0===e?void 0:e.value)||""},[S]),A=(0,o.useMemo)(()=>E?[E,...((null==k?void 0:k.path)||[]).map(decodeURIComponent)]:[],[E,null==k?void 0:k.path]),P=(0,c.B$)(),N=null===(e=P.data)||void 0===e?void 0:e.find(e=>e.name===E),R=(0,o.useMemo)(()=>(0,u.rd)(A)+"/",[A]),[D,L]=(0,er.Z)("renterd/v0/explorerMode",{defaultValue:"directory"}),Z=(0,o.useCallback)(e=>{let t=e(A);if(0===t.length){j.push(en._.buckets.index);return}let n=en._.buckets.files.replace("[bucket]",t[0]).replace("[path]",t.slice(1).map(encodeURIComponent).join("/"));j.push(n)},[j,A]),{uploadFiles:F,uploadsMap:z,uploadsList:V}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,b.Tu)(),a=(0,c.Pt)(),s=(0,c._3)(),l=(0,c.eM)(),f=(0,c.LS)(),[h,p]=(0,o.useState)({}),m=(0,c.fz)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),v=(0,o.useCallback)(e=>{let{id:t}=e;p(e=>({...e,[t]:{...e[t],uploadStatus:"uploading",loaded:0}}))},[p]),g=(0,o.useCallback)(e=>{p(t=>t[e.id]?{...t,[e.id]:{...t[e.id],loaded:e.loaded,uploadStatus:e.loaded===e.size?"processing":"uploading",size:e.size}}:t)},[p]),y=(0,o.useCallback)(e=>{p(t=>(delete t[e],{...t}))},[p]),x=(0,o.useCallback)(async e=>{var t;let{path:n,bucket:r,uploadFile:a}=e,o=new W({file:a,path:(0,u.kj)(n),bucket:r.name,api:S.current,partSize:et((null===(t=m.data)||void 0===t?void 0:t.minShards)||1).toNumber(),maxConcurrentParts:5}),s=await o.create();return o.setOnError(e=>{(0,i.OHV)({title:"Error uploading file",body:e.message}),S.current.removeUpload(s)}),o.setOnProgress((0,d.Z)(e=>{S.current.updateUploadProgress({id:s,loaded:e.sent,size:e.total})},1e3)),o.setOnComplete(async()=>{await S.current.mutate(e=>e.startsWith("/bus/objects")),S.current.removeUpload(s),setTimeout(()=>{S.current.checkAndStartUploads()},100)}),{uploadId:s,multipartUpload:o}},[m.data]),w=(0,o.useCallback)(async e=>{let{path:t,bucket:n,name:r,uploadFile:i}=e,{uploadId:a,multipartUpload:o}=await x({path:t,bucket:n,uploadFile:i});p(e=>({...e,[a]:{id:a,path:t,bucket:n,name:r,size:i.size,loaded:0,isUploading:!0,upload:o,uploadStatus:"queued",uploadFile:i,createdAt:new Date().toISOString(),uploadAbort:async()=>{await o.abort(),S.current.removeUpload(a)},type:"file"}}))},[p,x]),j=(0,o.useCallback)(async e=>{let{id:t,upload:n}=e;v({id:t}),n.start()},[v]),k=(0,o.useCallback)(()=>{let e=Object.values(h),t=e.filter(e=>"uploading"===e.uploadStatus).length;return e.filter(e=>"queued"===e.uploadStatus).slice(0,5-t).forEach(e=>{j({id:e.id,upload:e.upload})}),h},[h,j]),E=(0,o.useCallback)(e=>{e.forEach(e=>{var r,a,o;let s=e.path||e.name,l=(0,u.v_)(t,s),c=e.name,d=(0,u.ru)(l),f=null===(r=n.data)||void 0===r?void 0:r.find(e=>e.name===d);h[l]&&((0,i.OHV)({title:"Already uploading file, aborting previous upload.",body:l}),null===(a=(o=h[l]).uploadAbort)||void 0===a||a.call(o)),w({path:l,name:c,bucket:f,uploadFile:e})}),setTimeout(()=>{S.current.checkAndStartUploads()},1e3)},[t,w,n.data,h]),S=(0,o.useRef)({checkAndStartUploads:k,workerUploadPart:a,busUploadComplete:s,busUploadCreate:l,busUploadAbort:f,removeUpload:y,updateUploadProgress:g,updateStatusToUploading:v,mutate:r});(0,o.useEffect)(()=>{S.current={checkAndStartUploads:k,busUploadAbort:f,busUploadComplete:s,busUploadCreate:l,workerUploadPart:a,mutate:r,removeUpload:y,updateUploadProgress:g,updateStatusToUploading:v}},[k,f,s,l,a,r,y,g,v]),(0,o.useEffect)(()=>{let e=setInterval(()=>{S.current.checkAndStartUploads()},3e3);return()=>{clearInterval(e)}},[]);let C=(0,o.useMemo)(()=>Object.entries(h).map(e=>e[1]),[h]);return!function(e){let{uploadsMap:t}=e;(0,o.useEffect)(()=>{let e=Object.values(t).filter(e=>"uploading"===e.uploadStatus),n=t=>{if(e.length>0){let n="Warning, closing the tab will abort all ".concat(e.length," active uploads.");return t.returnValue=n,n}};return e.length>0&&window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t])}({uploadsMap:h}),{uploadFiles:E,uploadsMap:h,uploadsList:C}}({activeDirectoryPath:R}),{downloadFiles:I,downloadsList:B,getFileUrl:H,downloadCancel:U}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,o.useState)({}),a=(0,o.useCallback)(e=>{r(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"}}))},[r]),s=(0,o.useCallback)(e=>{r(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[r]),l=(0,o.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),f=(0,o.useCallback)(e=>{e.controller.abort()},[]),h=async r=>{r.forEach(async r=>{var o;let c=!1,f=(0,u.ru)(r),h=null===(o=e.data)||void 0===o?void 0:o.find(e=>e.name===f),p=(0,u.vt)(r);if(n[r]){(0,i.OHV)({title:"Already downloading file",body:r});return}let m=new AbortController,v=(0,d.Z)(e=>{c||s({path:r,loaded:e.loaded,size:e.total})},2e3);a({path:r,name:p,bucket:h,loaded:0,size:1,controller:m});let g=await t.get(p,{params:(0,u.W0)(r),config:{axios:{onDownloadProgress:v,signal:m.signal}}});c=!0,g.error&&("canceled"===g.error?(0,i.RFt)({title:"File download canceled"}):(0,i.OHV)({title:"Error downloading file",body:g.error})),l(r)})},p=(0,o.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:m}=(0,b.Hv)();return{downloadFiles:h,downloadsList:p,getFileUrl:(0,o.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,u.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),a=m.api||location.origin,o=a.startsWith("https")?"https":"http",s=a.replace("https://","").replace("http://","");return t?"".concat(o,"://:").concat(m.password,"@").concat(s,"/api").concat(i):"".concat(o,"://").concat(s,"/api").concat(i)},[m]),downloadCancel:f}}(),q=0===A.length,$=1===A.length,K=A.length>0,Y=(0,o.useCallback)(e=>{C({id:"fileNamePrefix",label:"",value:e})},[C]),X=(0,o.useCallback)(()=>{_("fileNamePrefix")},[_]),G=(0,o.useCallback)((e,t)=>{t?Y(t):X(),Z(()=>e)},[Z,Y,X]),J=(0,o.useCallback)(e=>{G((0,u.gD)(e),(0,u.vt)(e))},[G]),Q=(0,o.useCallback)(e=>{"directory"===D?J(e):Y((0,u.kj)(e).slice(1))},[D,J,Y]),ee=en._.buckets.uploads.replace("[bucket]",E),ei=(0,o.useCallback)(()=>{N&&j.push(ee)},[N,ee,j]),ea=(0,a.jD)(),eo=E&&ea.startsWith(ee),es=(0,o.useCallback)(async()=>{(eo||"directory"!==D)&&(G([E],void 0),L("directory"))},[eo,D,E,L,G]),el=(0,o.useCallback)(async()=>{(eo||"flat"!==D)&&(G([E],(0,u.kj)(R).slice(1)),L("flat"))},[eo,D,E,R,L,G]);return{isViewingBuckets:q,isViewingABucket:K,isViewingRootOfABucket:$,isViewingUploads:eo,buckets:P,activeBucket:N,activeBucketName:E,activeDirectory:A,navigateToUploads:ei,setActiveDirectory:Z,setActiveDirectoryAndFileNamePrefix:G,activeDirectoryPath:R,navigateToModeSpecificFiltering:Q,uploadFiles:F,uploadsMap:z,uploadsList:V,downloadFiles:I,downloadsList:B,downloadCancel:U,configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:v,setSortField:g,sortField:y,filters:S,fileNamePrefixFilter:T,setFileNamePrefixFilter:Y,setFilter:C,removeFilter:_,removeLastFilter:O,resetFilters:M,sortDirection:x,resetDefaultColumnVisibility:w,getFileUrl:H,activeExplorerMode:D,setExplorerModeDirectory:es,setExplorerModeFlat:el}}();return(0,r.jsx)(ei.Provider,{value:n,children:t})}},3077:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",a=[{id:"name",label:"name",category:"general"},{id:"health",label:"health",category:"general"},{id:"size",label:"size",category:"general"}]},56328:function(e,t,n){"use strict";n.d(t,{x:function(){return Z},l:function(){return L}});var r,i,a=n(52322),o=n(97479),s=n(55329),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(61020),f=n(21487),h=n(29193),p=n(62650),m=n(32998),v=n(17448),g=n(67108),y=n(8117),b=n(6391),x=n.n(b);let w=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,a.jsx)(v.G,{address:t.netAddress,publicKey:t.publicKey})}},{id:"allow",label:"allowed",category:"general",contentClassName:"justify-center",render:function(e){var t;let{data:n}=e,r=!!(null===(t=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}).data)||void 0===t?void 0:t.length);return(0,a.jsx)(o.ua7,{side:"right",content:(r?"Allowlist ".concat(n.isOnAllowlist?"allows this host.":"does not allow this host."):"Allowlist is inactive.")+" Blocklist ".concat(n.isOnBlocklist?"blocks this host.":"does not block this host."),children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.DI$,{})})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,a.jsx)(o.xvT,{size:"10",color:r?n.isOnAllowlist?"green":"red":"verySubtle",noWrap:!0,children:"Allowlist"})]})]})})}},{id:"ap_usable",label:"usable",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.usable?"green":"red",children:t.usable?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}),(0,a.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.I98,{})})}),(0,a.jsx)("div",{className:"flex flex-col",children:Object.entries(t.gougingBreakdown).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:n},t)})})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,g.D)();if(n.find(e=>{var n;return e.path.startsWith(y.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey}))return(0,a.jsx)(o.xgg,{});let r=(0,h.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),i="",s=null,l="subtle";return t.lastScan||(i="host has not been scanned",s=(0,a.jsx)(d.I98,{}),l="subtle"),t.lastScan&&!t.lastScanSuccess&&(i="host scan failed ".concat(r),s=(0,a.jsx)(d.SmH,{}),l="red"),t.lastScan&&t.lastScanSuccess&&(i="host scan succeeded ".concat(r),s=(0,a.jsx)(d.DI$,{}),l="green"),(0,a.jsx)(o.ua7,{side:"right",content:i,children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:l,children:s})}),t.lastScan&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"12",noWrap:!0,children:r}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,p.Z)(new Date(t.lastScan),"Pp")})]})]})})}},{id:"hasContract",label:"active contract",category:"general",contentClassName:"w-[50px]",render:e=>{let{data:t}=e,n=t.activeContractsCount.gt(0);return(0,a.jsx)(o.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n?"green":"subtle",children:n?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,a.jsx)(o.XxW,{value:t.netAddress,size:"12",type:"hostIp",siascanUrl:n.siascanUrl})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t,context:n}=e;return(0,a.jsx)(o.XxW,{value:t.publicKey,size:"12",type:"hostPublicKey",siascanUrl:n.siascanUrl})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return t.lastAnnouncement?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)(o.xvT,{size:"12",noWrap:!0,children:[(0,h.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,m.Z)(new Date(t.lastAnnouncement),new Date)})]}):null}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"downtime",label:"downtime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"totalInteractions",label:"total interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,f.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",i="acceptingcontracts",function(e){let{data:t}=e;return t[r]?(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,a.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,a.jsx)(d.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,a.jsx)(d.B4q,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"price table (RHPv3): ".concat(e.label)}:{label:e.label,tip:e.label}}));function j(e,t){return(0,l.memo)(function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.ho9,{displayBoth:!0,size:"12",value:new(x())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function k(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,a.jsx)(o.m2c,{size:"12",value:new(x())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function E(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.XxW,{value:r[e][t],size:"12"}):null}}function S(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var C=n(76838);function _(e,t){return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.lastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===e.interactions.lastScan?null:e.interactions.lastScan,knownSince:"0001-01-01T00:00:00Z"===e.knownSince?null:e.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===e.lastAnnouncement?null:e.lastAnnouncement,uptime:new(x())(e.interactions.uptime||0),downtime:new(x())(e.interactions.downtime||0),successfulInteractions:new(x())(e.interactions.successfulInteractions||0),totalInteractions:new(x())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new(x())(e.interactions.failedInteractions||0),totalScans:new(x())(e.interactions.totalScans||0),activeContractsCount:new(x())((null==t?void 0:t.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==t?void 0:t.filter(t=>t.hostKey===e.publicKey))||[],priceTable:e.priceTable,settings:e.settings}}function O(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,a=!!(null==n?void 0:n.find(e=>e===t.publicKey)),o=!!(null==r?void 0:r.find(e=>{if(e===t.netAddress)return!0;try{let n=new URL("https://"+t.netAddress).hostname;return e===n}catch(e){return!1}}));return{isOnAllowlist:a,isOnBlocklist:o,isBlocked:o||!(!i||a)}}function M(e){return{score:new(x())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new(x())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new(x())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new(x())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new(x())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new(x())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new(x())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new(x())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var T=n(46081),A=n(37769),P=n(85375),N=n(45178),R=n(9338);let D=(0,l.createContext)({}),L=()=>(0,l.useContext)(D);function Z(e){let{children:t}=e,n=function(){var e,t,n,r,i,a,d;let f=(0,c.useRouter)(),[h,p]=(0,l.useState)("list"),m=Number(f.query.limit||50),v=Number(f.query.offset||0),{filters:y,setFilter:b,removeFilter:x,removeLastFilter:j,resetFilters:k}=(0,o.Uu5)(),{dataset:E}=(0,C.G)(),{autopilot:S}=(0,T.q)(),D=(0,l.useMemo)(()=>{let e=[];y.find(e=>"hasActiveContracts"===e.id)&&E&&(e=E.map(e=>e.hostKey));let t=y.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[y,E]),L=(0,s.S0)({disabled:y.find(e=>"hasActiveContracts"===e.id)&&!E||"on"!==S.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=y.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=y.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=y.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:D},config:{swr:{errorRetryInterval:2e4,refreshInterval:R.h}}}),Z=(0,s.FV)({disabled:"off"!==S.status,payload:{limit:m,offset:v,filterMode:(null===(r=y.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=y.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:y.find(e=>"hasActiveContracts"===e.id)&&E?E.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:R.h}}}),F=(0,s.s2)(),z=(0,s.uf)(),V=!!(null===(a=F.data)||void 0===a?void 0:a.length),{settings:I}=(0,g.Hv)(),B=(0,P.JL)({disabled:!I.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{I.siaCentral||p("list")},[I.siaCentral]);let H=(0,l.useMemo)(()=>{var e;return(null===(e=B.data)||void 0===e?void 0:e.hosts)||[]},[B.data]),U=(0,l.useRef)(A.N),W=(0,l.useCallback)(e=>{U.current=e},[U]),[q,$]=(0,l.useState)(),K=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),Y=(0,l.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t&&U.current.moveToLocation(t),K(e)},[$,U,q,K]),X=(0,l.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t?U.current.moveToLocation(t):(0,o.OHV)({title:"Geographic location is unknown for host",body:(0,o.$Gg)(e,20)}),K(e)},[$,U,q,K]),G=(0,l.useCallback)((e,t)=>null,[]),J=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:a,blocklist:o,isAllowlistActive:s,geoHosts:u,onHostSelect:c}=e;return(0,l.useMemo)(()=>{var e,l;return"off"===t?(null===(e=n.data)||void 0===e?void 0:e.map(e=>{let t=u.find(t=>t.public_key===e.publicKey);return{onClick:()=>c(e.publicKey,null==t?void 0:t.location),..._(e,i),...O({host:e,allowlist:a.data,blocklist:o.data,isAllowlistActive:s}),...M(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(l=r.data)||void 0===l?void 0:l.map(e=>{let t=u.find(t=>t.public_key===e.host.publicKey);return{onClick:()=>c(e.host.publicKey,null==t?void 0:t.location),..._(e.host,i),...O({host:e.host,allowlist:a.data,blocklist:o.data,isAllowlistActive:s}),...M(e.checks),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null},[c,t,n.data,r.data,i,a.data,o.data,s,u])}({autopilotStatus:S.status,autopilotResponse:L,regularResponse:Z,allContracts:E,allowlist:F,blocklist:z,isAllowlistActive:V,geoHosts:H,onHostSelect:X}),Q=(0,l.useMemo)(()=>"off"===S.status?["autopilot"]:[],[S.status]),{configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:es,sortField:el,sortDirection:eu,resetDefaultColumnVisibility:ec}=(0,o.oy6)("renterd/v0/hosts",{columns:w,columnsDefaultVisible:u,disabledCategories:Q}),ed=(0,l.useMemo)(()=>w.filter(e=>et.includes(e.id)),[et]),ef="on"===S.status?L.isValidating:Z.isValidating,eh="on"===S.status?L.error:Z.error,ep=(0,o.c2j)(J,ef,eh,y),em=(0,N.B)(),ev=null===(d=S.state.data)||void 0===d?void 0:d.configured,eg=(0,l.useMemo)(()=>({isAutopilotConfigured:ev,siascanUrl:em}),[ev,em]),ey=(0,l.useMemo)(()=>null==J?void 0:J.filter(e=>e.location),[J]);return{setCmd:W,viewMode:h,activeHost:(0,l.useMemo)(()=>null==J?void 0:J.find(e=>e.publicKey===q),[J,q]),onHostMapHover:G,onHostMapClick:Y,setViewMode:p,hostsWithLocation:ey,error:eh,dataState:ep,offset:v,limit:m,pageCount:(null==J?void 0:J.length)||0,columns:ed,dataset:J,tableContext:eg,configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:es,sortField:el,sortDirection:eu,resetDefaultColumnVisibility:ec,filters:y,setFilter:b,removeFilter:x,removeLastFilter:j,resetFilters:k}}();return(0,a.jsx)(D.Provider,{value:n,children:t})}},10569:function(e,t,n){"use strict";n.d(t,{Kg:function(){return a},jY:function(){return i}});var r=n(97479);let i={activeAndUsable:{colorHex:r.O9T.green[600],colorName:"green"},activeAndUnusable:{colorHex:r.O9T.amber[600],colorName:"amber"},potentialHost:{colorHex:r.O9T.blue[600],colorName:"blue"}};function a(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},71367:function(e,t,n){"use strict";n.d(t,{f:function(){return g},E:function(){return v}});var r=n(52322),i=n(97479),a=n(5632),o=n(2784),s=n(33962),l=n(61020),u=n(55329),c=n(13762),d=n(97112);function f(e){let{s3Key:t,contentProps:n,buttonProps:a}=e,{openConfirmDialog:s}=(0,d.Rh)(),f=(0,u.FD)(),h=(0,u.KJ)(),p=(0,o.useCallback)(async()=>{var e;let n=(0,c.Z)(null===(e=f.data)||void 0===e?void 0:e.v4Keypairs,t),r=await h.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,i.OHV)({title:"Error deleting key",body:r.error}):(0,i.OPV)({title:"Key ".concat(t," removed")})},[f.data,t,h]);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(l.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Key ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{s({title:"Delete key ".concat((0,i.$Gg)(t,15)),action:"Remove",variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following key?"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",children:(0,i.$Gg)(t,80)})]}),onConfirm:async()=>{p()}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete key"]})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(f,{s3Key:t})}},{id:"key",label:"key",category:"general",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:80})}},{id:"secret",label:"secret",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{secret:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:10,font:"mono"})}}];var p=n(9338);let m=(0,o.createContext)({}),v=()=>(0,o.useContext)(m);function g(e){let{children:t}=e,n=function(){let e=(0,a.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,u.FD)({config:{swr:{refreshInterval:p.h}}}),l=(0,o.useMemo)(()=>{var e;return r.data?Object.entries((null===(e=r.data)||void 0===e?void 0:e.v4Keypairs)||{}).map(e=>{let[t,n]=e;return{id:t,key:t,secret:n}})||[]:null},[r.data]),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:v}=(0,i.Wdu)(),{configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,sortDirection:_,resetDefaultColumnVisibility:O}=(0,i.oy6)("renterd/v0/keys",{columns:h,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),M=(0,i._4u)({dataset:l,filters:c,sortField:C,sortDirection:_}),T=(0,o.useMemo)(()=>M?M.slice(n,n+t):null,[M,n,t]),A=(0,o.useMemo)(()=>h.filter(e=>e.fixed||y.includes(e.id)),[y]),P=(0,i.c2j)(M,r.isValidating,r.error,c),N=(0,o.useMemo)(()=>({}),[]);return{dataState:P,limit:t,offset:n,isLoading:r.isLoading,error:r.error,pageCount:(null==T?void 0:T.length)||0,datasetCount:(null==l?void 0:l.length)||0,datasetFilteredCount:(null==M?void 0:M.length)||0,columns:A,dataset:l,cellContext:N,datasetPage:T,configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:v,sortDirection:_,resetDefaultColumnVisibility:O}}();return(0,r.jsx)(m.Provider,{value:n,children:t})}},33962:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["key","secret"],i="key",a=[{id:"key",label:"key",category:"general"},{id:"secret",label:"secret",category:"general"}]},40730:function(e,t,n){"use strict";n.d(t,{n:function(){return m},v:function(){return v}});var r=n(52322),i=n(97479),a=n(55329),o=n(2784),s=n(97112),l=n(6391),u=n.n(l),c=n(5632),d=n(45178),f=n(9338);let h=[],p=(0,o.createContext)({}),m=()=>(0,o.useContext)(p);function v(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:f.h}}}),l=(0,a.a0)({config:{swr:{refreshInterval:f.h}}}),{openDialog:p}=(0,s.Rh)(),m=(0,d.B)(),v=(0,o.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0,siascanUrl:m})),...(r.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:(0,i.I13)(e.id),timestamp:new Date(e.timestamp).getTime(),onClick:()=>p("transactionDetails",(0,i.I13)(e.id)),raw:e.raw,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:m})).sort((e,t)=>e.timestampnew Date(new Date().getTime()-30*b).toISOString(),[30,b]),w=(0,a.X1)({params:{start:x,interval:b,n:30}}),j=(0,o.useMemo)(()=>(w.data||[]).map(e=>({sc:new(u())(e.spendable).plus(e.unconfirmed).toNumber(),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[w.data]);return{dataset:v,error:g,dataState:y,offset:n,limit:t,pageCount:(null==v?void 0:v.length)||0,balances:j,metrics:w}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},88778:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(52322),i=n(97479),a=n(70899),o=n(26731),s=n(21487),l=n(32998),u=n(61020);function c(e){let{abort:t}=e;return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(u.bQp,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:t,children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u._fo,{})}),"Cancel upload"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{uploadAbort:t}}=e;return(0,r.jsx)(c,{abort:t})}},{id:"path",label:"path",contentClassName:"max-w-[600px]",category:"general",render:function(e){let{data:{path:t,id:n}}=e,o=(0,a.kj)(t).slice(1);return(0,r.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",size:"14",children:o}),(0,r.jsx)(i.XxW,{value:n,label:"upload ID",size:"10"})]})}},{id:"status",label:"status",category:"general",contentClassName:"w-[200px]",render:function(e){let{data:{loaded:t,size:n,uploadStatus:a,remote:s}}=e;return s?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"Uploading from a different session"}):(0,r.jsx)(o.s,{loaded:t,size:n,status:a})}},{id:"size",label:"size",category:"general",render:function(e){let{data:{remote:t,size:n}}=e;return t?null:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,s.vW)(n)})}},{id:"createdAt",label:"started at",category:"general",render:function(e){let{data:{createdAt:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,l.Z)(new Date(t).getTime(),new Date)})}}]},73076:function(e,t,n){"use strict";n.d(t,{V:function(){return m},x:function(){return p}});var r=n(52322),i=n(97479),a=n(99605),o=n(55329),s=n(2784);let l=["path","status","size","createdAt"],u=[];var c=n(88778),d=n(70899),f=n(41736);let h=(0,s.createContext)({}),p=()=>(0,s.useContext)(h);function m(e){let{children:t}=e,n=function(){var e,t;let{uploadsMap:n,activeBucket:r}=(0,f.b)(),h=(0,a.lr)(),p=Number(h.get("limit")||50),m=h.get("marker"),{filters:v,setFilter:g,removeFilter:y,removeLastFilter:b,resetFilters:x}=(0,i.Uu5)(),w=(0,o.LS)(),j=(0,o.bg)({disabled:!r,payload:{bucket:null==r?void 0:r.name,uploadIDMarker:m,limit:p}}),k=(0,s.useCallback)(async()=>{var e,t;return Promise.all(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(async e=>{let t=n[e.uploadID];if(t){var i;null===(i=t.uploadAbort)||void 0===i||i.call(t)}else await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}))},[j.data,w,r,n]),E=(0,s.useMemo)(()=>{var e,t;return(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(e=>{let t=e.uploadID,i=(0,d.vt)(e.path),a=(0,d.v_)(null==r?void 0:r.name,e.path);return n[t]||{id:t,path:a,bucket:r,name:i,size:1,loaded:1,isUploading:!0,uploadStatus:"uploading",createdAt:e.createdAt,remote:!0,type:"file",uploadAbort:async()=>{await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}}}))||[]},[n,r,j.data,w]),{configurableColumns:S,enabledColumns:C,sortableColumns:_,toggleColumnVisibility:O,setColumnsVisible:M,setColumnsHidden:T,toggleSort:A,setSortDirection:P,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/uploads",{columns:c.z,columnsDefaultVisible:l,sortOptions:u,defaultSortField:"path"}),Z=(0,s.useMemo)(()=>c.z.filter(e=>e.fixed||C.includes(e.id)),[C]);return{abortAll:k,dataState:(0,i.c2j)(E,j.isValidating,j.error,v),limit:p,nextMarker:null===(e=j.data)||void 0===e?void 0:e.nextUploadIDMarker,hasMore:null===(t=j.data)||void 0===t?void 0:t.hasMore,isLoading:j.isLoading,error:j.error,pageCount:(null==E?void 0:E.length)||0,columns:Z,datasetPage:E,configurableColumns:S,enabledColumns:C,sortableColumns:_,toggleColumnVisibility:O,setColumnsVisible:M,setColumnsHidden:T,toggleSort:A,setSortDirection:P,setSortField:N,sortField:R,filters:v,setFilter:g,removeFilter:y,removeLastFilter:b,resetFilters:x,sortDirection:D,resetDefaultColumnVisibility:L}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},82229:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(97479),i=n(55329),a=n(2784);function o(){let e=(0,i.ni)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating allowlist",body:i.error}),!1):(t.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist.")}),n.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist.")}),!0)})(),[e])}},94613:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(97479),i=n(55329),a=n(2784);function o(){let e=(0,i.Os)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating blocklist",body:i.error}),!1):(t.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist.")}),n.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist.")}),!0)})(),[e])}},18121:function(e,t,n){"use strict";n.d(t,{B:function(){return o},V:function(){return a}});var r=n(52322),i=n(61020);let a={excellent:1,good:.5,poor:0};function o(e){let{health:t,size:n,isDirectory:o}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},45178:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(97479),i=n(55329);function a(){var e;return(null===(e=(0,i.d_)().data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},38855:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(97479),i=n(67108),a=n(55329);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:s}=(0,i.Hv)(),l=(0,a.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,a.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,a.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:null===(t=l.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(o=d.data)||void 0===o?void 0:o.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},70899:function(e,t,n){"use strict";n.d(t,{W0:function(){return m},YF:function(){return f},ez:function(){return w},ru:function(){return h},gD:function(){return b},vt:function(){return v},kj:function(){return p},rj:function(){return y},IQ:function(){return g},v_:function(){return d},rd:function(){return x}});var r=n(79200),i=n(81441),a=n(81721),o=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},s=n(36202),l=n(25186),u=/^\s+/,c=function(e,t,n){if((e=(0,l.Z)(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,s.Z)(e),c=o(a,(0,s.Z)(t));return(0,i.Z)(a,c).join("")};function d(e,t){let n=e.endsWith("/")?e.slice(0,-1):e,r=t.startsWith("/")?t.slice(1):t;return"".concat(n,"/").concat(r)}function f(e,t){let n=d(e=c(e,"/"),t);return n.endsWith("/")?n:n+"/"}function h(e){return e.split("/")[0]}function p(e){let t=(e=c(e,"/")).split("/").slice(1).join("/");return"/".concat(t)}function m(e){return{bucket:h(e),key:p(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function v(e){let t=(e=c(e,"/")).split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function g(e){return e.endsWith("/")}function y(e){return(g(e=c(e,"/"))?e.slice(0,-1):e).split("/").slice(0,-1).join("/").concat("/")}function b(e){return g(e=c(e,"/"))?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function x(e){return e.join("/")}function w(e){return g(e=c(e,"/"))?e:e.concat("/")}},5184:function(e,t,n){"use strict";n.d(t,{E:function(){return a},e:function(){return i}});var r=n(70899);function i(e,t){let n=String(e.active.id),i=(0,r.rd)(t);e.collisions.length&&(i=".."===e.collisions[0].id?(0,r.rd)(t.slice(0,-1)):String(e.collisions[0].id));let a=(0,r.vt)(n);return{bucket:(0,r.ru)(n),from:(0,r.kj)(n),to:(0,r.kj)((0,r.v_)(i,a)),mode:a.endsWith("/")?"multi":"single"}}function a(e,t){let n=(0,r.v_)((0,r.rj)(e),t),i=(0,r.IQ)(e);return i&&(n=(0,r.ez)(n)),{bucket:(0,r.ru)(e),from:(0,r.kj)(e),to:(0,r.kj)(n),mode:i?"multi":"single"}}},83391:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var r=n(52322);n(50521);var i=n(97479),a=n(2784),o=n(97112),s=n(76838),l=n(56328),u=n(46081),c=n(68338),d=n(61020),f=n(38855),h=n(98334),p=n(42770),m=n(55329),v=n(6391),g=n.n(v),y=n(21487),b=n(67108),x=n(92762);function w(){var e,t;let{isUnlockedAndAuthedRoute:n}=(0,b.Hv)(),a=(0,u.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,m.X2)(),c=(0,m.e$)({config:{swr:{errorRetryInterval:1e4}}}),[v,w]=(0,x.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),k=(0,f.n)(),E=(0,p.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(g())(l.data?l.data.confirmed+l.data.unconfirmed:0),C=new(g())((null===(e=c.data)||void 0===e?void 0:e.contracts.allowance)||0),_=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=k.isSynced,M=S.gt(0),T=!E.active,A=[_,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:v?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>w(!1),children:(0,r.jsx)(d.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify how much data you plan to store and your target price.",action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:h._.config.index,children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 2: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.hzZ,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>s("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,y.Vz)(C)," siacoin to cover the required allowance.").concat(k.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!k.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(k.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[k.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.contracts.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 4: Wait for storage contracts to form"}),description:"Once all other steps are complete, contracts will automatically form. No user action required.",action:T?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[E.count,"/",E.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>w(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",N,"/",P," steps complete"]})})})}function j(e){let{title:t,action:n,description:a}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a})})]})})}var k=n(41736),E=n(26731);function S(e){let{loaded:t,size:n,path:a,abortTip:o,abort:s,status:l}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:a}),(0,r.jsx)(i.zxk,{tip:o,variant:"ghost",size:"none",onClick:()=>null==s?void 0:s(),children:(0,r.jsx)(d.PcV,{})})]}),(0,r.jsx)(E.s,{loaded:t,size:n,status:l})]})}var C=n(73076);function _(){let{isUnlockedAndAuthedRoute:e}=(0,b.Hv)(),{downloadsList:t,downloadCancel:n,isViewingUploads:o,navigateToUploads:s}=(0,k.b)(),{pageCount:l}=(0,C.x)(),[u,c]=(0,a.useState)(!0),f=!!l,h=t.length,p=!!h;if(!e||!f&&!p)return null;let m=(0,r.jsxs)("div",{className:"flex gap-2",children:[f&&!o?(0,r.jsxs)(i.zxk,{tip:"Uploads list",onClick:s,className:"flex gap-3",children:[(0,r.jsx)(d.R$6,{className:"opacity-50 scale-75 relative top-px"}),"Active uploads"]}):null,p?(0,r.jsxs)(i.zxk,{tip:"Downloads list",onClick:()=>c(e=>!e),className:"flex gap-3",children:[(0,r.jsx)(d.vzB,{className:"opacity-50 scale-75"}),"Active downloads"]}):null]});return p&&u?(0,r.jsxs)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex flex-col items-center justify-center gap-2",children:[(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsx)(i.xrM,{children:p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active downloads (",h,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(d.mli,{})})]}),t.map(e=>(0,r.jsx)(S,{path:e.path,loaded:e.loaded,size:e.size,status:e.loaded===e.size?"processing":"downloading",abort:()=>n(e),abortTip:"Cancel download"},e.id))]}):null})}),m]}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2",children:m})}var O=n(40730),M=n(71367),T=n(43385),A=n(75618),P=n(88385);function N(e){let{children:t}=e;return(0,r.jsx)(u.w,{children:(0,r.jsx)(c.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(O.v,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsx)(k.e,{children:(0,r.jsx)(C.V,{children:(0,r.jsx)(A.V,{children:(0,r.jsx)(T.p,{children:(0,r.jsx)(M.f,{children:(0,r.jsxs)(P.b,{children:[(0,r.jsx)(w,{}),(0,r.jsx)(_,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})})})})})})})}var R=n(46058),D=n.n(R),L=n(28863),Z=n.n(L);let F=(0,n(82851).cx)(D().variable,Z().variable);function z(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:F,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,r.jsx)(N,{children:(0,r.jsx)(t,{...n})})})}},97479:function(e,t,n){"use strict";let r,i,a,o;n.d(t,{tU3:function(){return OP},zXq:function(){return OH},juT:function(){return Oi},Cts:function(){return lq},Z58:function(){return Mf},WVB:function(){return c6},zxk:function(){return lM},b0u:function(){return k0},EKh:function(){return lY},vRO:function(){return MX},QHy:function(){return MF},TaT:function(){return Mw},eQh:function(){return lG},HfT:function(){return MI},wEc:function(){return Mp},ncR:function(){return Ce},VqE:function(){return uO},h_2:function(){return dt},Xiv:function(){return dn},Juw:function(){return dr},KpP:function(){return di},fhJ:function(){return p9},XOF:function(){return S9},S$c:function(){return Cd},WyV:function(){return MG},yEL:function(){return OV},cB7:function(){return Co},ZqQ:function(){return Ca},IKw:function(){return Cf},KZS:function(){return Cs},zsw:function(){return pm},__J:function(){return dv},rUS:function(){return db},Qjf:function(){return dx},xgg:function(){return kJ},TRl:function(){return dj},kFS:function(){return c8},FzK:function(){return MD},Clw:function(){return c5},PD$:function(){return M3},Wxm:function(){return hf},uDJ:function(){return _6},_5:function(){return _7},wFK:function(){return _8},s_4:function(){return nE},nvN:function(){return nj},u5Q:function(){return Mh},j4H:function(){return hl},hmz:function(){return hu},J2e:function(){return dU},kod:function(){return d3},xrM:function(){return uS},PhF:function(){return hd},Z0O:function(){return c0},DLL:function(){return Mr},KJW:function(){return Os},rsf:function(){return hO},D_D:function(){return O4},iA_:function(){return _5},mQc:function(){return fP},nUL:function(){return fD},drW:function(){return fN},SPt:function(){return fR},t6k:function(){return MB},xvT:function(){return nw},nvn:function(){return fZ},ua7:function(){return l_},mPE:function(){return O3},XxW:function(){return SI},PF9:function(){return SH},m2c:function(){return SY},YKL:function(){return SW},ho9:function(){return SK},QUh:function(){return Ma},weF:function(){return OQ},YNn:function(){return O8},DmW:function(){return O7},O9T:function(){return v9},fVJ:function(){return Mu},vQq:function(){return SO},E5z:function(){return ST},HLH:function(){return Tc},NrH:function(){return kz},k9c:function(){return kW},Y_Z:function(){return Mo},EJC:function(){return Tl},kOJ:function(){return Ml},leQ:function(){return SR},Ztc:function(){return O0},XAn:function(){return kq},Vkc:function(){return c2},sWj:function(){return kF},ort:function(){return k$},xLV:function(){return kI},okB:function(){return kU},AEA:function(){return kH},S5N:function(){return T5},z$:function(){return nk},XBW:function(){return kY},GXN:function(){return kK},I13:function(){return SP},cEb:function(){return fL},y70:function(){return ht},OHV:function(){return SS},OPV:function(){return SE},RFt:function(){return Sk},$Gg:function(){return SA},_4u:function(){return Ti},Wdu:function(){return Tr},Y97:function(){return OA},c2j:function(){return ON},t0Y:function(){return M1},mYE:function(){return MQ},u$d:function(){return M0},Z4p:function(){return MJ},WsO:function(){return Oz},Uu5:function(){return Ta},fb0:function(){return Ts},oy6:function(){return Tt},nNd:function(){return O9},BL0:function(){return kV},ivg:function(){return kB}});var s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k,E,S,C,_,O,M,T,A,P,N,R,D,L,Z,F,z,V,I,B,H,U,W,q,$,K,Y,X,G,J,Q,ee,et,en,er,ei,ea=n(52322),eo=n(2784),es=n.t(eo,2),el=n(7896),eu=n(34540),ec=n(26215),ed=n(99575);function ef(e){let t=e+"CollectionProvider",[n,r]=(0,eu.b)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",s=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(o,n),s=(0,ec.e)(t,i.collectionRef);return eo.createElement(ed.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:s,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),s=(0,ec.e)(t,o),c=a(l,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(ed.g7,{[u]:"",ref:s},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var eh=n(41816),ep=n(73597),em=n(72130),ev=n(64680),eg=n(28245),ey=n(26074);let eb="Collapsible",[ex,ew]=(0,eu.b)(eb),[ej,ek]=ex(eb),eE=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[l=!1,u]=(0,ep.T)({prop:r,defaultProp:i,onChange:o});return(0,eo.createElement)(ej,{scope:n,disabled:a,contentId:(0,ey.M)(),open:l,onOpenToggle:(0,eo.useCallback)(()=>u(e=>!e),[u])},(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":eC(l),"data-disabled":a?"":void 0},s,{ref:t})))},"CollapsibleContent"),eS=((e,t)=>{let{forceMount:n,...r}=e,i=ek(eE,e.__scopeCollapsible);return(0,eo.createElement)(eg.z,{present:n||i.open},({present:e})=>(0,eo.createElement)(eS,(0,el.Z)({},r,{ref:t,present:e})))},(0,eo.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=ek(eE,n),[s,l]=(0,eo.useState)(r),u=(0,eo.useRef)(null),c=(0,ec.e)(t,u),d=(0,eo.useRef)(0),f=d.current,h=(0,eo.useRef)(0),p=h.current,m=o.open||s,v=(0,eo.useRef)(m),g=(0,eo.useRef)();return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,ev.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[o.open,r]),(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":eC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m},a,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function eC(e){return e?"open":"closed"}let e_="Accordion",eO=["Home","End","ArrowDown","ArrowUp"],[eM,eT,eA]=ef(e_),[eP,eN]=(0,eu.b)(e_,[eA,ew]);ew(),eo.forwardRef((e,t)=>{let{type:n,...r}=e;return eo.createElement(eM.Provider,{scope:e.__scopeAccordion},"multiple"===n?eo.createElement(ez,(0,el.Z)({},r,{ref:t})):eo.createElement(eF,(0,el.Z)({},r,{ref:t})))}).propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[eR,eD]=eP(e_),[eL,eZ]=eP(e_,{collapsible:!1}),eF=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,l]=(0,ep.T)({prop:n,defaultProp:r,onChange:i});return eo.createElement(eR,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:eo.useCallback(()=>a&&l(""),[a,l])},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:a},eo.createElement(eB,(0,el.Z)({},o,{ref:t}))))}),ez=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],s]=(0,ep.T)({prop:n,defaultProp:r,onChange:i}),l=eo.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=eo.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return eo.createElement(eR,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:!0},eo.createElement(eB,(0,el.Z)({},a,{ref:t}))))}),[eV,eI]=eP(e_),eB=eo.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,a=eo.useRef(null),o=(0,ec.e)(a,t),s=eT(n),l=(0,eh.M)(e.onKeyDown,e=>{var t;if(!eO.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),a=r.length;if(-1===i)return;e.preventDefault();let o=i;switch(e.key){case"Home":o=0;break;case"End":o=a-1;break;case"ArrowDown":o=i+1;break;case"ArrowUp":(o=i-1)<0&&(o=a-1)}null===(t=r[o%a].ref.current)||void 0===t||t.focus()});return eo.createElement(eV,{scope:n,disabled:r},eo.createElement(eM.Slot,{scope:n},eo.createElement(em.WV.div,(0,el.Z)({},i,{ref:o,onKeyDown:r?void 0:l}))))}),[eH,eU]=eP("AccordionItem");var eW=n(82851),eq=n(83317);function e$(e){return e.split("-")[0]}function eK(e){return e.split("-")[1]}function eY(e){return["top","bottom"].includes(e$(e))?"x":"y"}function eX(e){return"y"===e?"height":"width"}function eG(e,t,n){let r,{reference:i,floating:a}=e,o=i.x+i.width/2-a.width/2,s=i.y+i.height/2-a.height/2,l=eY(t),u=eX(l),c=i[u]/2-a[u]/2,d="x"===l;switch(e$(t)){case"top":r={x:o,y:i.y-a.height};break;case"bottom":r={x:o,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-a.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eK(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eJ=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=await (null==o.isRTL?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eG(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:a,placement:o,rects:s,platform:l}=t;if(null==n)return{};let u=eQ(r),c={x:i,y:a},d=eY(o),f=eK(o),h=eX(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],j=x-p[h]-u[v],k=x/2-p[h]/2+(g/2-y/2),E=e4(w,e2(k,j)),S=("start"===f?u[m]:u[v])>0&&k!==E&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?ke5[e])}let e8={start:"end",end:"start"};function e7(e){return e.replace(/start|end/g,e=>e8[e])}let e9=["top","right","bottom","left"];e9.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let te=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a;let{placement:o,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=e$(o),b=p||(y!==u&&v?function(e){let t=e6(e);return[e7(e),t,e7(t)]}(u):[e6(u)]),x=[u,...b],w=await e1(t,g),j=[],k=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&j.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eK(e),i=eY(e),a=eX(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=e6(o)),{main:o,cross:e6(o)}}(o,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:o,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(a=k.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tn(e){return e9.some(t=>e[t]>=0)}let tr=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=tt(await e1(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tn(t)}}}case"escaped":{let t=tt(await e1(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tn(t)}}}default:return{}}}}},ti=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=e$(n),s=eK(n),l="x"===eY(n),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function ta(e){return"x"===e?"y":"x"}let to=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await e1(t,l),d=eY(e$(i)),f=ta(d),h=u[d],p=u[f];if(a){let e="y"===d?"bottom":"right";h=e4(h+c["y"===d?"top":"left"],e2(h,h-c[e]))}if(o){let e="y"===f?"bottom":"right";p=e4(p+c["y"===f?"top":"left"],e2(p,p-c[e]))}let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ts=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eY(i),f=ta(d),h=c[d],p=c[f],m="function"==typeof s?s({...a,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+v.mainAxis,n=a.reference[d]+a.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(e$(i)),n=a.reference[f]-a.floating[e]+(t&&null!=(g=null==(y=o.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:null!=(b=null==(x=o.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function tl(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tu(e){if(null==e)return window;if(!tl(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tc(e){return tu(e).getComputedStyle(e)}function td(e){return tl(e)?"":e?(e.nodeName||"").toLowerCase():""}function tf(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function th(e){return e instanceof tu(e).HTMLElement}function tp(e){return e instanceof tu(e).Element}function tm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tu(e).ShadowRoot||e instanceof ShadowRoot)}function tv(e){let{overflow:t,overflowX:n,overflowY:r}=tc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tg(e){let t=/firefox/i.test(tf()),n=tc(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ty(){return!/^((?!chrome|android).)*safari/i.test(tf())}let tb=Math.min,tx=Math.max,tw=Math.round;function tj(e,t,n){var r,i,a,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&th(e)&&(l=e.offsetWidth>0&&tw(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&tw(s.height)/e.offsetHeight||1);let c=tp(e)?tu(e):window,d=!ty()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tk(e){return((e instanceof tu(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tE(e){return tp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tS(e){return tj(tk(e)).left+tE(e).scrollLeft}function tC(e){return"html"===td(e)?e:e.assignedSlot||e.parentNode||(tm(e)?e.host:null)||tk(e)}function t_(e){return th(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tO(e){let t=tu(e),n=t_(e);for(;n&&["table","td","th"].includes(td(n))&&"static"===getComputedStyle(n).position;)n=t_(n);return n&&("html"===td(n)||"body"===td(n)&&"static"===getComputedStyle(n).position&&!tg(n))?t:n||function(e){let t=tC(e);for(tm(t)&&(t=t.host);th(t)&&!["html","body"].includes(td(t));){if(tg(t))return t;t=t.parentNode}return null}(e)||t}function tM(e){if(th(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tj(e);return{width:t.width,height:t.height}}function tT(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tC(t);return["html","body","#document"].includes(td(n))?t.ownerDocument.body:th(n)&&tv(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tu(r),o=i?[a].concat(a.visualViewport||[],tv(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(tT(o))}function tA(e,t,n){return"viewport"===t?e0(function(e,t){let n=tu(e),r=tk(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=ty();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n)):tp(t)?function(e,t){let n=tj(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):e0(function(e){var t;let n=tk(e),r=tE(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=tx(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tx(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tS(e),l=-r.scrollTop;return"rtl"===tc(i||n).direction&&(s+=tx(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(tk(e)))}let tP={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e){let t=tT(e),n=["absolute","fixed"].includes(tc(e).position)&&th(e)?tO(e):e;return tp(n)?t.filter(e=>tp(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tm(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==td(e)):[]}(t):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=tA(t,n,i);return e.top=tx(r.top,e.top),e.right=tb(r.right,e.right),e.bottom=tb(r.bottom,e.bottom),e.left=tx(r.left,e.left),e},tA(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=th(n),a=tk(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==td(n)||tv(a))&&(o=tE(n)),th(n))){let e=tj(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}},isElement:tp,getDimensions:tM,getOffsetParent:tO,getDocumentElement:tk,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=th(t),i=tk(t),a=tj(e,r&&function(e){let t=tj(e);return tw(t.width)!==e.offsetWidth||tw(t.height)!==e.offsetHeight}(t),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==td(t)||tv(i))&&(o=tE(t)),th(t)){let e=tj(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tS(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}(t,tO(n),r),floating:{...tM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tc(e).direction};function tN(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i&&!s,u=a&&!s,c=l||u?[...tp(e)?tT(e):[],...tT(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(o){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),tp(e)&&!s&&f.observe(e),f.observe(t)}let h=s?tj(e):null;return s&&function t(){let r=tj(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let tR=(e,t,n)=>eJ(e,t,{platform:tP,...n});var tD=n(28316),tL="undefined"!=typeof document?eo.useLayoutEffect:eo.useEffect;function tZ(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,a=eo.useRef(null),o=eo.useRef(null),s=function(e){let t=eo.useRef(e);return tL(()=>{t.current=e}),t}(i),l=eo.useRef(null),[u,c]=eo.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=eo.useState(t);!function e(t,n){let r,i,a;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=eo.useCallback(()=>{a.current&&o.current&&tR(a.current,o.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tD.flushSync(()=>{c(e)})})},[d,n,r]);tL(()=>{p.current&&h()},[h]);let p=eo.useRef(!1);tL(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=eo.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),a.current&&o.current){if(s.current){let e=s.current(a.current,o.current,h);l.current=e}else h()}},[h,s]),v=eo.useCallback(e=>{a.current=e,m()},[m]),g=eo.useCallback(e=>{o.current=e,m()},[m]),y=eo.useMemo(()=>({reference:a,floating:o}),[]);return eo.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tF=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return e3({element:t.current,padding:n}).fn(e)}else if(t)return e3({element:t,padding:n}).fn(e);return{}}}},tz=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(em.WV.svg,(0,el.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tV(e){let[t,n]=(0,eo.useState)(void 0);return(0,ev.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let tI="Popper",[tB,tH]=(0,eu.b)(tI),[tU,tW]=tB(tI),tq=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=tW("PopperAnchor",n),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(em.WV.div,(0,el.Z)({},i,{ref:s}))}),t$="PopperContent",[tK,tY]=tB(t$),[tX,tG]=tB(t$,{hasParent:!1,positionUpdateFns:new Set}),tJ=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,j=tW(t$,c),[k,E]=(0,eo.useState)(null),S=(0,ec.e)(t,e=>E(e)),[C,_]=(0,eo.useState)(null),O=tV(C),M=null!==(n=null==O?void 0:O.width)&&void 0!==n?n:0,T=null!==(r=null==O?void 0:O.height)&&void 0!==r?r:0,A="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],N=P.length>0,R={padding:A,boundary:P.filter(t2),altBoundary:N},{reference:D,floating:L,strategy:Z,x:F,y:z,placement:V,middlewareData:I,update:B}=tZ({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tN,middleware:[ti({mainAxis:f+T,alignmentAxis:p}),x?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?ts():void 0,...R}):void 0,C?tF({element:C,padding:m}):void 0,x?te({...R}):void 0,t4({arrowWidth:M,arrowHeight:T}),b?tr({strategy:"referenceHidden"}):void 0].filter(t1)});(0,ev.b)(()=>{D(j.anchor)},[D,j.anchor]);let H=null!==F&&null!==z,[U,W]=t3(V),q=null===(i=I.arrow)||void 0===i?void 0:i.x,$=null===(a=I.arrow)||void 0===a?void 0:a.y,K=(null===(o=I.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Y,X]=(0,eo.useState)();(0,ev.b)(()=>{k&&X(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:G,positionUpdateFns:J}=tG(t$,c),Q=!G;(0,eo.useLayoutEffect)(()=>{if(!Q)return J.add(B),()=>{J.delete(B)}},[Q,J,B]),(0,eo.useLayoutEffect)(()=>{Q&&H&&Array.from(J).reverse().forEach(e=>requestAnimationFrame(e))},[Q,H,J]);let ee={"data-side":U,"data-align":W,...w,ref:S,style:{...w.style,animation:H?void 0:"none",opacity:null!==(s=I.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:H?`translate3d(${Math.round(F)}px, ${Math.round(z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(l=I.transformOrigin)||void 0===l?void 0:l.x,null===(u=I.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,eo.createElement)(tK,{scope:c,placedSide:U,onArrowChange:_,arrowX:q,arrowY:$,shouldHideArrow:K},Q?(0,eo.createElement)(tX,{scope:c,hasParent:!0,positionUpdateFns:J},(0,eo.createElement)(em.WV.div,ee)):(0,eo.createElement)(em.WV.div,ee)))}),tQ={top:"bottom",right:"left",bottom:"top",left:"right"},t0=(0,eo.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tY("PopperArrow",n),a=tQ[i.placedSide];return(0,eo.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,eo.createElement)(tz,(0,el.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function t1(e){return void 0!==e}function t2(e){return null!==e}let t4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=t3(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function t3(e){let[t,n="center"]=e.split("-");return[t,n]}let t5=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(tU,{scope:t,anchor:r,onAnchorChange:i},n)};var t6=n(6500);let t8=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(em.WV.span,(0,el.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}}))),[t7,t9]=(0,eu.b)("Tooltip",[tH]),ne=tH(),nt="tooltip.open",[nn,nr]=t7("TooltipProvider"),ni="Tooltip",[na,no]=t7(ni),ns="TooltipTrigger",nl=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=no(ns,n),a=nr(ns,n),o=ne(n),s=(0,eo.useRef)(null),l=(0,ec.e)(t,s,i.onTriggerChange),u=(0,eo.useRef)(!1),c=(0,eo.useRef)(!1),d=(0,eo.useCallback)(()=>u.current=!1,[]);return(0,eo.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,eo.createElement)(tq,(0,el.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,el.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,eh.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,eh.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,eh.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,eh.M)(e.onBlur,i.onClose),onClick:(0,eh.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nu="TooltipPortal",[nc,nd]=t7(nu,{forceMount:void 0}),nf="TooltipContent",nh=(0,eo.forwardRef)((e,t)=>{let n=nd(nf,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=no(nf,e.__scopeTooltip);return(0,eo.createElement)(eg.z,{present:r||o.open},o.disableHoverableContent?(0,eo.createElement)(ng,(0,el.Z)({side:i},a,{ref:t})):(0,eo.createElement)(np,(0,el.Z)({side:i},a,{ref:t})))}),np=(0,eo.forwardRef)((e,t)=>{let n=no(nf,e.__scopeTooltip),r=nr(nf,e.__scopeTooltip),i=(0,eo.useRef)(null),a=(0,ec.e)(t,i),[o,s]=(0,eo.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,eo.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,eo.useCallback)((e,t)=>{let n=e.currentTarget,r=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),i="right"===r||"bottom"===r?-5:5;s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}(["right"===r||"left"===r?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),d(!0)},[d]);return(0,eo.useEffect)(()=>()=>f(),[f]),(0,eo.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,eo.useEffect)(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}(n,o);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,o,u,f]),(0,eo.createElement)(ng,(0,el.Z)({},e,{ref:a}))}),[nm,nv]=t7(ni,{isInside:!1}),ng=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=no(nf,n),u=ne(n),{onClose:c}=l;return(0,eo.useEffect)(()=>(document.addEventListener(nt,c),()=>document.removeEventListener(nt,c)),[c]),(0,eo.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,eo.createElement)(tJ,(0,el.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,eo.createElement)(ed.A4,null,r),(0,eo.createElement)(nm,{scope:n,isInside:!0},(0,eo.createElement)(t8,{id:l.contentId,role:"tooltip"},i||r))))}),ny=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=nr(ni,e.__scopeTooltip),u=ne(t),[c,d]=(0,eo.useState)(null),f=(0,ey.M)(),h=(0,eo.useRef)(0),p=null!=o?o:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,eo.useRef)(!1),[g=!1,y]=(0,ep.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(nt))):l.onClose(),null==a||a(e)}}),b=(0,eo.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,eo.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,eo.createElement)(t5,u,(0,eo.createElement)(na,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,eo.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,eo.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},nb=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=no(nu,t);return(0,eo.createElement)(nc,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},nx=(0,eW.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),nw=eo.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:a,weight:o,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,ea.jsx)(n,{ref:t,className:(0,eW.cx)(r,nx({font:i,color:a,weight:o,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),nj=eo.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,ea.jsx)(nw,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eW.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nk=(0,eW.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),nE=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:nk({className:n,color:r}),...i})});var nS=n(93542);let nC=(void 0===nS||nS.env,"production"),n_=1/60*1e3,nO="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nM="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nO()),n_),nT=!0,nA=!1,nP=!1,nN={delta:0,timestamp:0},nR=["read","update","preRender","render","postRender"],nD=nR.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let l=s&&i,u=l?t:n;return a&&o.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnA=!0),e),{}),nL=nR.reduce((e,t)=>{let n=nD[t];return e[t]=(e,t=!1,r=!1)=>(nA||nI(),n.schedule(e,t,r)),e},{}),nZ=nR.reduce((e,t)=>(e[t]=nD[t].cancel,e),{}),nF=nR.reduce((e,t)=>(e[t]=()=>nD[t].process(nN),e),{}),nz=e=>nD[e].process(nN),nV=e=>{nA=!1,nN.delta=nT?n_:Math.max(Math.min(e-nN.timestamp,40),1),nN.timestamp=e,nP=!0,nR.forEach(nz),nP=!1,nA&&(nT=!1,nM(nV))},nI=()=>{nA=!0,nT=!0,nP||nM(nV)},nB=()=>nN,nH="undefined"!=typeof document,nU=nH?eo.useLayoutEffect:eo.useEffect;function nW(){let e=(0,eo.useRef)(!1);return nU(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nq=(0,eo.createContext)(null);function n$(e){let t=(0,eo.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nK extends eo.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nY({children:e,isPresent:t}){let n=(0,eo.useId)(),r=(0,eo.useRef)(null),i=(0,eo.useRef)({width:0,height:0,top:0,left:0});return(0,eo.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:s}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -22,16 +22,16 @@ top: ${o}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),eo.createElement(nK,{isPresent:t,childRef:r,sizeRef:i},eo.cloneElement(e,{ref:r}))}let nX=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let s=n$(nG),l=(0,eo.useId)(),u=(0,eo.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),a?void 0:[n]);return(0,eo.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),eo.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===o&&(e=eo.createElement(nY,{isPresent:n},e)),eo.createElement(nq.Provider,{value:u},e)};function nG(){return new Map}let nQ=(0,eo.createContext)({});function nJ(e){return(0,eo.useEffect)(()=>()=>e(),[])}let n0=new Set;function n1(e,t,n){e||n0.has(t)||(console.warn(t),n&&console.warn(n),n0.add(t))}let n2=e=>e.key||"",n4=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",n1(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nW(),[t,n]=(0,eo.useState)(0),r=(0,eo.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,eo.useCallback)(()=>nL.postRender(r),[r]),t]}(),l=(0,eo.useContext)(nQ).forceRender;l&&(s=l);let u=nW(),c=function(e){let t=[];return eo.Children.forEach(e,e=>{(0,eo.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,eo.useRef)(d),p=(0,eo.useRef)(new Map).current,m=(0,eo.useRef)(!0);if(nU(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n2(e);t.set(n,e)})}(c,p),h.current=d}),nJ(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return eo.createElement(eo.Fragment,null,d.map(e=>eo.createElement(nX,{key:n2(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:o},e)));d=[...d];let v=h.current.map(n2),g=c.map(n2),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,eo.createElement(nX,{key:n2(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:eo.createElement(nX,{key:n2(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),"production"!==nC&&"wait"===o&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),eo.createElement(eo.Fragment,null,f.size?d:d.map(e=>(0,eo.cloneElement)(e)))},n3=(0,eo.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),n5=(0,eo.createContext)({}),n6=(0,eo.createContext)({strict:!1});function n8(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function n7(e){return"string"==typeof e||Array.isArray(e)}function n9(e){return"object"==typeof e&&"function"==typeof e.start}let re=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rt(e){return n9(e.animate)||re.some(t=>n7(e[t]))}function rn(e){return!!(rt(e)||e.variants)}function rr(e){return Array.isArray(e)?e.join(" "):e}let ri=e=>({isEnabled:t=>e.some(e=>!!t[e])}),ra={measureLayout:ri(["layout","layoutId","drag"]),animation:ri(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ri(["exit"]),drag:ri(["drag","dragControls"]),focus:ri(["whileFocus"]),hover:ri(["whileHover","onHoverStart","onHoverEnd"]),tap:ri(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ri(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ri(["whileInView","onViewportEnter","onViewportLeave"])},ro={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rs=1;class rl extends eo.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let ru=(0,eo.createContext)({}),rc=Symbol.for("motionComponentSymbol"),rd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function rf(e){if("string"!=typeof e||e.includes("-"));else if(rd.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rh={},rp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rm=new Set(rp);function rv(e,{layout:t,layoutId:n}){return rm.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rh[e]||"opacity"===e)}let rg=e=>!!(null==e?void 0:e.getVelocity),ry={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rb=(e,t)=>rp.indexOf(e)-rp.indexOf(t);function rx(e){return e.startsWith("--")}let rw=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rj=(e,t)=>n=>Math.max(Math.min(n,t),e),rk=e=>e%1?Number(e.toFixed(5)):e,rE=/(-)?([\d]*\.?[\d])+/g,rS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rC=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function r_(e){return"string"==typeof e}let rO=e=>({test:t=>r_(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rM=rO("deg"),rT=rO("%"),rA=rO("px"),rP=rO("vh"),rN=rO("vw"),rR=Object.assign(Object.assign({},rT),{parse:e=>rT.parse(e)/100,transform:e=>rT.transform(100*e)}),rD={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rL=Object.assign(Object.assign({},rD),{transform:rj(0,1)}),rZ=Object.assign(Object.assign({},rD),{default:1}),rF={...rD,transform:Math.round},rz={borderWidth:rA,borderTopWidth:rA,borderRightWidth:rA,borderBottomWidth:rA,borderLeftWidth:rA,borderRadius:rA,radius:rA,borderTopLeftRadius:rA,borderTopRightRadius:rA,borderBottomRightRadius:rA,borderBottomLeftRadius:rA,width:rA,maxWidth:rA,height:rA,maxHeight:rA,size:rA,top:rA,right:rA,bottom:rA,left:rA,padding:rA,paddingTop:rA,paddingRight:rA,paddingBottom:rA,paddingLeft:rA,margin:rA,marginTop:rA,marginRight:rA,marginBottom:rA,marginLeft:rA,rotate:rM,rotateX:rM,rotateY:rM,rotateZ:rM,scale:rZ,scaleX:rZ,scaleY:rZ,scaleZ:rZ,skew:rM,skewX:rM,skewY:rM,distance:rA,translateX:rA,translateY:rA,translateZ:rA,x:rA,y:rA,z:rA,perspective:rA,transformPerspective:rA,opacity:rL,originX:rR,originY:rR,originZ:rA,zIndex:rF,fillOpacity:rL,strokeOpacity:rL,numOctaves:rF};function rV(e,t,n,r){let{style:i,vars:a,transform:o,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rx(e)){a[e]=n;continue}let r=rz[e],f=rw(n,r);if(rm.has(e)){if(u=!0,o[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,a){let o="";for(let n of(t.sort(rb),t))o+=`${ry[n]||n}(${e[n]}) `;return n&&!e.z&&(o+="translateZ(0)"),o=o.trim(),a?o=a(e,i?"":o):r&&i&&(o="none"),o}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rI=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rB(e,t,n){for(let r in t)rg(t[r])||rv(r,n)||(e[r]=t[r])}let rH=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rU(e){return rH.has(e)}let rW=e=>!rU(e);try{(s=require("@emotion/is-prop-valid").default)&&(rW=e=>e.startsWith("on")?!rU(e):s(e))}catch(e){}function rq(e,t,n){return"string"==typeof e?e:rA.transform(t+n*e)}let r$={offset:"stroke-dashoffset",array:"stroke-dasharray"},rK={offset:"strokeDashoffset",array:"strokeDasharray"};function rY(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:s=0,...l},u,c){rV(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rq(t,e.x,e.width),i=rq(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?r$:rK;e[a.offset]=rA.transform(-r);let o=rA.transform(t),s=rA.transform(n);e[a.array]=`${o} ${s}`}(d,a,o,s,!1)}let rX=()=>({...rI(),attrs:{}}),rG=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rQ(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}let rJ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r0(e,t,n,r){for(let n in rQ(e,t,void 0,r),t.attrs)e.setAttribute(rJ.has(n)?n:rG(n),t.attrs[n])}function r1(e){let{style:t}=e,n={};for(let r in t)(rg(t[r])||rv(r,e))&&(n[r]=t[r]);return n}function r2(e){let t=r1(e);for(let n in e)rg(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function r4(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let r3=e=>Array.isArray(e),r5=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),r6=e=>r3(e)?e[e.length-1]||0:e;function r8(e){let t=rg(e)?e.get():e;return r5(t)?t.toValue():t}let r7=e=>(t,n)=>{let r=(0,eo.useContext)(n5),i=(0,eo.useContext)(nq),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){let o={latestValues:function(e,t,n,r){let i={},a=r(e);for(let e in a)i[e]=r8(a[e]);let{initial:o,animate:s}=e,l=rt(e),u=rn(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;return d&&"boolean"!=typeof d&&!n9(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=r4(e,t);if(!n)return;let{transitionEnd:r,transition:a,...o}=n;for(let e in o){let t=o[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,a,e),renderState:t()};return n&&(o.mount=e=>n(r,e,o)),o})(e,t,r,i);return n?a():n$(a)},r9={useVisualState:r7({scrapeMotionValuesFromProps:r2,createRenderState:rX,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rY(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r0(t,n)}})},ie={useVisualState:r7({scrapeMotionValuesFromProps:r1,createRenderState:rI})};function it(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ir(e,t,n,r){(0,eo.useEffect)(()=>{let i=e.current;if(n&&i)return it(i,t,n,r)},[e,t,n,r])}function ii(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(l=Z||(Z={})).Animate="animate",l.Hover="whileHover",l.Tap="whileTap",l.Drag="whileDrag",l.Focus="whileFocus",l.InView="whileInView",l.Exit="exit";let ia={pageX:0,pageY:0};function io(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||ia;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let is=(e,t=!1)=>{let n=t=>e(t,io(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},il=()=>nH&&null===window.onpointerdown,iu=()=>nH&&null===window.ontouchstart,ic=()=>nH&&null===window.onmousedown,id={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ih={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ip(e){if(il());else if(iu())return ih[e];else if(ic())return id[e];return e}function im(e,t,n,r){return it(e,ip(t),is(n,"pointerdown"===t),r)}function iv(e,t,n,r){return ir(e,ip(t),n&&is(n,"pointerdown"===t),r)}function ig(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let iy=ig("dragHorizontal"),ib=ig("dragVertical");function ix(e){let t=!1;if("y"===e)t=ib();else if("x"===e)t=iy();else{let e=iy(),n=ib();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function iw(){let e=ix(!0);return!e||(e(),!1)}function ij(e,t,n){return(r,i)=>{!(!ii(r)||iw())&&(e.animationState&&e.animationState.setActive(Z.Hover,t),n&&n(r,i))}}let ik=(e,t)=>!!t&&(e===t||ik(e,t.parentElement)),iE=(e,t)=>n=>t(e(n)),iS=(...e)=>e.reduce(iE),iC=new WeakMap,i_=new WeakMap,iO=e=>{let t=iC.get(e.target);t&&t(e)},iM=e=>{e.forEach(iO)},iT={some:0,all:1},iA=e=>t=>(e(t),null),iP={inView:iA(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,eo.useRef)({hasEnteredView:!1,isInView:!1}),o=!!(t||n||r);i.once&&a.current.hasEnteredView&&(o=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,eo.useEffect)(()=>{e&&r&&("production"!==nC&&n1(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(Z.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:o}){(0,eo.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:iT[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;i_.has(n)||i_.set(n,{});let r=i_.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iM,{root:e,...t})),r[i]}(t);return iC.set(e,n),r.observe(e),()=>{iC.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,o&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Z.InView,r);let i=n.getProps(),a=r?i.onViewportEnter:i.onViewportLeave;a&&a(e)})},[e,r,i,a])})(o,a.current,e,i)}),tap:iA(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,o=(0,eo.useRef)(!1),s=(0,eo.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),o.current=!1,i.animationState&&i.animationState.setActive(Z.Tap,!1),!iw()}function d(t,r){c()&&(ik(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!o.current&&(o.current=!0,s.current=iS(im(window,"pointerup",d,l),im(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Z.Tap,!0),t&&t(e,n))}iv(i,"pointerdown",a?h:void 0,l),nJ(u)}),focus:iA(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;ir(t,"focus",e?()=>{n&&n.setActive(Z.Focus,!0)}:void 0),ir(t,"blur",e?()=>{n&&n.setActive(Z.Focus,!1)}:void 0)}),hover:iA(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){iv(r,"pointerenter",e||n?ij(r,!0,e):void 0,{passive:!e}),iv(r,"pointerleave",t||n?ij(r,!1,t):void 0,{passive:!t})})};function iN(){let e=(0,eo.useContext)(nq);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,eo.useId)();return(0,eo.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iR(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var iL=function(){},iZ=function(){};let iF=(e,t,n)=>Math.min(Math.max(n,e),t);function iz(e,t){return e*Math.sqrt(1-t*t)}let iV=["duration","bounce"],iI=["stiffness","damping","mass"];function iB(e,t){return t.some(t=>void 0!==e[t])}function iH(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=iD(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!iB(e,iI)&&iB(e,iV)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;iL(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=iF(.05,1,o),e=iF(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/iz(t,o)*Math.exp(-i)},a=t=>{let r=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=iz(Math.pow(t,2),o);return(r*n+n-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(a),h=iU,p=iU;function m(){let e=c?-(c/1e3):0,r=n-t,a=l/(2*Math.sqrt(s*u)),o=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=iz(o,a);h=i=>n-Math.exp(-a*o*i)*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i)),p=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(1===a)h=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);h=i=>{let s=Math.exp(-a*o*i),l=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)o.done=e>=d;else{let a=1e3*p(e),s=Math.abs(n-t)<=i;o.done=Math.abs(a)<=r&&s}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iH.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iU=e=>0,iW=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iq=(e,t,n)=>-n*e+n*t+e,i$=(e,t)=>n=>!!(r_(n)&&rC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iK=(e,t,n)=>r=>{if(!r_(r))return r;let[i,a,o,s]=r.match(rE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},iY=rj(0,255),iX=Object.assign(Object.assign({},rD),{transform:e=>Math.round(iY(e))}),iG={test:i$("rgb","red"),parse:iK("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iX.transform(e)+", "+iX.transform(t)+", "+iX.transform(n)+", "+rk(rL.transform(r))+")"},iQ={test:i$("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iG.transform},iJ={test:i$("hsl","hue"),parse:iK("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rT.transform(rk(t))+", "+rT.transform(rk(n))+", "+rk(rL.transform(r))+")"};function i0(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=i0(s,r,e+1/3),a=i0(s,r,e),o=i0(s,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}let i2=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},i4=[iQ,iG,iJ],i3=e=>i4.find(t=>t.test(e)),i5=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i6=(e,t)=>{let n=i3(e),r=i3(t);iZ(!!n,i5(e)),iZ(!!r,i5(t));let i=n.parse(e),a=r.parse(t);n===iJ&&(i=i1(i),n=iG),r===iJ&&(a=i1(a),r=iG);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=i2(i[t],a[t],e));return o.alpha=iq(i.alpha,a.alpha,e),n.transform(o)}},i8={test:e=>iG.test(e)||iQ.test(e)||iJ.test(e),parse:e=>iG.test(e)?iG.parse(e):iJ.test(e)?iJ.parse(e):iQ.parse(e),transform:e=>r_(e)?e:e.hasOwnProperty("red")?iG.transform(e):iJ.transform(e)},i7="${c}",i9="${n}";function ae(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rS);r&&(n=r.length,e=e.replace(rS,i7),t.push(...r.map(i8.parse)));let i=e.match(rE);return i&&(e=e.replace(rE,i9),t.push(...i.map(rD.parse))),{values:t,numColors:n,tokenised:e}}function at(e){return ae(e).values}function an(e){let{values:t,numColors:n,tokenised:r}=ae(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,ai={test:function(e){var t,n,r,i;return isNaN(e)&&r_(e)&&(null!==(n=null===(t=e.match(rE))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(rS))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:at,createTransformer:an,getAnimatableNone:function(e){let t=at(e);return an(e)(t.map(ar))}},aa=e=>"number"==typeof e;function ao(e,t){return aa(e)?n=>iq(e,t,n):i8.test(e)?i6(e,t):ac(e,t)}let as=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ao(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=ao(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function au(e){let t=ai.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=ai.createTransformer(t),r=au(e),i=au(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?iS(as(r.parsed,i.parsed),n):(iL(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ad=(e,t)=>n=>iq(e,t,n);function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;iZ(a===t.length,"Both input and output ranges must be the same length"),iZ(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=function(e,t,n){var r;let i=[],a=n||("number"==typeof(r=e[0])?ad:"string"==typeof r?i8.test(r)?i6:ac:Array.isArray(r)?as:"object"==typeof r?al:void 0),o=e.length-1;for(let n=0;nn(iW(e,t,r))}(e,o):function(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti)&&t!==r;t++);a=t-1}let s=iW(e[a],e[a+1],i);return t[a](s)}}(e,o);return n?t=>s(iF(e[0],e[a-1],t)):s}let ah=e=>t=>1-e(1-t),ap=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,am=e=>t=>t*t*((e+1)*t-e),av=4/11,ag=8/11,ay=e=>e,ab=e=>Math.pow(e,2),ax=ah(ab),aw=ap(ab),aj=e=>1-Math.sin(Math.acos(e)),ak=ah(aj),aE=ap(ak),aS=am(1.525),aC=ah(aS),a_=ap(aS),aO=(e=>{let t=am(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),aM=4356/361,aT=35442/1805,aA=16061/1805,aP=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(o)).map(e=>e*i);function l(){return af(s,o,{ease:Array.isArray(n)?n:o.map(()=>n||aw).splice(0,o.length-1)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=l()}}}let aD={keyframes:aR,spring:iH,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};function aL(e,t,n=0){return e-t-n}let aZ=e=>{let t=({delta:t})=>e(t);return{start:()=>nL.update(t,!0),stop:()=>nZ.update(t)}};function aF(e){let t,n,r;var i,{from:a,autoplay:o=!0,driver:s=aZ,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iD(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return aR;if(aD[e.type])return aD[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iH;return aR}(g);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,a,y))&&(r=af([0,100],[a,y],{clamp:!1}),a=0,y=100);let E=k(Object.assign(Object.assign({},g),{from:a,to:y}));return o&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=E.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=a+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?aL(t+-e,t,n):t-(e-t)+n}(l,x,d,j=b%2==0):(l=aL(l,x,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let az=e=>1e3*e,aV=(e,t)=>1-3*t+3*e,aI=(e,t)=>3*t-6*e,aB=e=>3*e,aH=(e,t,n)=>((aV(t,n)*e+aI(t,n))*e+aB(t))*e,aU=(e,t,n)=>3*aV(t,n)*e*e+2*aI(t,n)*e+aB(t),aW={linear:ay,easeIn:ab,easeInOut:aw,easeOut:ax,circIn:aj,circInOut:aE,circOut:ak,backIn:aS,backInOut:a_,backOut:aC,anticipate:aO,bounceIn:aN,bounceInOut:e=>e<.5?.5*(1-aP(1-2*e)):.5*aP(2*e-1)+.5,bounceOut:aP},aq=e=>{if(Array.isArray(e)){iZ(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return ay;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=aH(.1*t,e,n);return a=>0===a||1===a?a:aH(function(t){let r=0,a=1;for(;10!==a&&i[a]<=t;++a)r+=.1;let o=r+(t-i[--a])/(i[a+1]-i[a])*.1,s=aU(o,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=aU(t,n,r);if(0===i)break;let a=aH(t,n,r)-e;t-=a/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){let a,o;let s=0;do(a=aH(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+.1,e,n)}(a),t,r)}(t,n,r,i)}return"string"==typeof e?(iZ(void 0!==aW[e],`Invalid easing type '${e}'`),aW[e]):e},a$=e=>Array.isArray(e)&&"number"!=typeof e[0],aK=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&ai.test(t)&&!t.startsWith("url(")),aY=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),aX=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),aG=()=>({type:"keyframes",ease:"linear",duration:.3}),aQ=e=>({type:"keyframes",duration:.8,values:e}),aJ={x:aY,y:aY,z:aY,rotate:aY,rotateX:aY,rotateY:aY,rotateZ:aY,scaleX:aX,scaleY:aX,scale:aX,opacity:aG,backgroundColor:aG,color:aG,default:aX},a0=(e,t)=>{let n;return n=r3(t)?aQ:aJ[e]||aJ.default,{to:t,...n(t)}},a1=new Set(["brightness","contrast","saturate","opacity"]);function a2(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rE)||[];if(!r)return e;let i=n.replace(r,""),a=a1.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}let a4=/([a-z-]*)\(.*?\)/g,a3=Object.assign(Object.assign({},ai),{getAnimatableNone:e=>{let t=e.match(a4);return t?t.map(a2).join(" "):e}}),a5={...rz,color:i8,backgroundColor:i8,outlineColor:i8,fill:i8,stroke:i8,borderColor:i8,borderTopColor:i8,borderRightColor:i8,borderBottomColor:i8,borderLeftColor:i8,filter:a3,WebkitFilter:a3},a6=e=>a5[e];function a8(e,t){var n;let r=a6(e);return r!==a3&&(r=ai),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let a7={current:!1};function a9(e,t){let n=performance.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(nZ.read(r),e(a-t))};return nL.read(r,!0),()=>nZ.read(r)}let oe=!1;function ot(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function on(e){return"number"==typeof e?0:a8("",e)}function or(e,t){return e[t]||e.default||e}function oi(e,t,n,r={}){return a7.current&&(r={type:!1}),t.start(i=>{var a,o,s;let l,u;let c=function(e,t,n,r,i){let a=or(r,e)||{},o=void 0!==a.from?a.from:t.get(),s=aK(e,n);"none"===o&&s&&"string"==typeof n?o=a8(e,n):ot(o)&&"string"==typeof n?o=on(n):!Array.isArray(n)&&ot(n)&&"string"==typeof o&&(n=on(o));let l=aK(e,o);return iL(l===s,`You are trying to animate ${e} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==a.type?function(){var r;let s={from:o,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:o,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,o,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n,i;r=o,o=e,n=e-r,t=(i=nB().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...a}):aF({...(r=a,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...a0(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...a}){let o={...a};return t&&(o.offset=t),a.duration&&(o.duration=az(a.duration)),a.repeatDelay&&(o.repeatDelay=az(a.repeatDelay)),e&&(o.ease=a$(e)?e.map(aq):aq(e)),"tween"===a.type&&(o.type="keyframes"),(n||i||r)&&(iL(!oe,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oe=!0,n?o.repeatType="reverse":i?o.repeatType="loop":r&&(o.repeatType="mirror"),o.repeat=i||n||r||a.repeat),"spring"!==a.type&&(o.type="keyframes"),o}(r)}),onUpdate:e=>{s.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=r6(n);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),d=null!==(s=null!==(o=(or(a=r,e)||{}).delay)&&void 0!==o?o:a.delay)&&void 0!==s?s:0,f=()=>l=c();return d?u=a9(f,az(d)):f(),()=>{u&&u(),l&&l.stop()}})}let oa=e=>/^\-?\d*\.?\d+$/.test(e),oo=e=>/^0[^.\s]+$/.test(e);function os(e,t){-1===e.indexOf(t)&&e.push(t)}function ol(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(e){return os(this.subscriptions,e),()=>ol(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class od{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ou,this.velocityUpdateSubscribers=new ou,this.renderSubscribers=new ou,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nB();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nL.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nL.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oc(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function of(e){return new od(e)}let oh=e=>t=>t.test(e),op=[rD,rA,rT,rM,rN,rP,{test:e=>"auto"===e,parse:e=>e}],om=e=>op.find(oh(e)),ov=[...op,i8,ai],og=e=>ov.find(oh(e));function oy(e,t,n){let r=e.getProps();return r4(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function ob(e){return!!(rg(e)&&e.add)}function ox(e,t,n={}){var r;let i=oy(e,t,n.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>ow(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(oj).forEach((e,r)=>{o.push(ox(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(t)}}function ow(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(o=r);let c=[],d=i&&(null===(a=e.animationState)||void 0===a?void 0:a.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...o};e.shouldReduceMotion&&rm.has(t)&&(a={...a,type:!1,delay:0});let s=oi(t,r,i,a);ob(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oy(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=r6(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,of(n))}}(e,s)})}function oj(e,t){return e.sortNodePosition(t)}let ok=[Z.Animate,Z.InView,Z.Focus,Z.Hover,Z.Tap,Z.Drag,Z.Exit],oE=[...ok].reverse(),oS=ok.length;function oC(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o_={animation:iA(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>ox(e,t,n)));else if("string"==typeof t)r=ox(e,t,n);else{let i="function"==typeof t?oy(e,t,n.custom):t;r=ow(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Z.Animate]:oC(!0),[Z.InView]:oC(),[Z.Hover]:oC(),[Z.Tap]:oC(),[Z.Drag]:oC(),[Z.Focus]:oC(),[Z.Exit]:oC()},r=!0,i=(t,n)=>{let r=oy(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(a,o){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(g)?g:[g],E=k.reduce(i,{});!1===b&&(E={});let{prevResolvedValues:S={}}=v,C={...S,...E},_=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?r3(t)&&r3(n)?!iR(t,n)||w?_(e):v.protectedKeys[e]=!0:void 0!==t?_(e):f.add(e):void 0!==t&&f.has(e)?_(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=E,v.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!x&&d.push(...k.map(e=>({animation:e,options:{type:m,...a}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=a(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),n9(t)&&(0,eo.useEffect)(()=>t.subscribe(e),[t])}),exit:iA(e=>{let{custom:t,visualElement:n}=e,[r,i]=iN(),a=(0,eo.useContext)(nq);(0,eo.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Z.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},oO=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oM=e=>oO(e)&&e.hasOwnProperty("z"),oT=(e,t)=>Math.abs(e-t);function oA(e,t){return aa(e)&&aa(t)?oT(e,t):oO(e)&&oO(t)?Math.sqrt(Math.pow(oT(e.x,t.x),2)+Math.pow(oT(e.y,t.y),2)+Math.pow(oM(e)&&oM(t)?oT(e.z,t.z):0,2)):void 0}class oP{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=oD(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=oA(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nB();this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=oN(t,this.transformPagePoint),ii(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nL.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=oD(oN(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=oN(io(e),this.transformPagePoint),{point:i}=r,{timestamp:a}=nB();this.history=[{...i,timestamp:a}];let{onSessionStart:o}=t;o&&o(e,oD(r,this.history)),this.removeListeners=iS(im(window,"pointermove",this.handlePointerMove),im(window,"pointerup",this.handlePointerUp),im(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),nZ.update(this.updatePoint)}}function oN(e,t){return t?{point:t(e.point)}:e}function oR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oD({point:e},t){return{point:e,delta:oR(e,oL(t)),offset:oR(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>az(.1)));)n--;if(!r)return{x:0,y:0};let a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,0)}}function oL(e){return e[e.length-1]}function oZ(e){return e.max-e.min}function oF(e,t=0,n=.01){return oA(e,t)({translate:0,scale:1,origin:0,originPoint:0}),oY=()=>({x:oK(),y:oK()}),oX=()=>({min:0,max:0}),oG=()=>({x:oX(),y:oX()});function oQ(e){return[e("x"),e("y")]}function oJ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o0(e){return void 0===e||1===e}function o1({scale:e,scaleX:t,scaleY:n}){return!o0(e)||!o0(t)||!o0(n)}function o2(e){return o1(e)||o4(e)||e.z||e.rotate||e.rotateX||e.rotateY}function o4(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function o3(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function o5(e,t=0,n=1,r,i){e.min=o3(e.min,t,n,r,i),e.max=o3(e.max,t,n,r,i)}function o6(e,{x:t,y:n}){o5(e.x,t.translate,t.scale,t.originPoint),o5(e.y,n.translate,n.scale,n.originPoint)}function o8(e,t){e.min=e.min+t,e.max=e.max+t}function o7(e,t,[n,r,i]){let a=void 0!==t[i]?t[i]:.5,o=iq(e.min,e.max,a);o5(e,t[n],t[r],o,t.scale)}let o9=["x","scaleX","originX"],se=["y","scaleY","originY"];function st(e,t){o7(e.x,t,o9),o7(e.y,t,se)}function sn(e,t){return oJ(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let sr=new WeakMap;class si{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=oG(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new oP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(io(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:a}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ix(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),oQ(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rT.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=oZ(i);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==a||a(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Z.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(o),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),null==a||a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Z.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sa(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iq(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&n8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:oU(e.x,n,i),y:oU(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:oq(e,"left","right"),y:oq(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oQ(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!n8(t))return!1;let r=t.current;iZ(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=function(e,t,n){let r=sn(e,n),{scroll:i}=t;return i&&(o8(r.x,i.x),o8(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:oW((e=i.layout.actual).x,a.x),y:oW(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=oJ(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(oQ(o=>{var l;if(!sa(o,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[o])&&void 0!==l?l:{};a&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(o,c)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oi(e,n,0,t)}stopAnimation(){oQ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){oQ(t=>{let{drag:n}=this.getProps();if(!sa(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.actual[t];i.set(e[t]-iq(n,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!n8(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};oQ(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=oZ(e),i=oZ(t);return i>r?n=iW(t.min,t.max-r,e.min):r>i&&(n=iW(e.min,e.max-i,t.min)),iF(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),oQ(e=>{if(!sa(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];n.set(iq(r,a,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;sr.set(this.visualElement,this);let t=im(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();n8(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let a=it(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(oQ(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),null==o||o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function sa(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let so={pan:iA(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let a=(0,eo.useRef)(null),{transformPagePoint:o}=(0,eo.useContext)(n3),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,eo.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(s)}),iv(i,"pointerdown",(e||t||n||r)&&function(e){a.current=new oP(e,s,{transformPagePoint:o})}),nJ(()=>a.current&&a.current.end())}),drag:iA(function(e){let{dragControls:t,visualElement:n}=e,r=n$(()=>new si(n));(0,eo.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,eo.useEffect)(()=>r.addListeners(),[r])})};function ss(e){return"string"==typeof e&&e.startsWith("var(--")}let sl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function su(e,t,n=1){iZ(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=sl.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():ss(i)?su(i,t,n+1):i}let sc=new Set(["width","height","top","left","right","bottom","x","y"]),sd=e=>sc.has(e),sf=e=>Object.keys(e).some(sd),sh=(e,t)=>{e.set(t,!1),e.set(t)},sp=e=>e===rD||e===rA;(u=F||(F={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let sm=(e,t)=>parseFloat(e.split(", ")[t]),sv=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sm(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sm(t[1],e):0}},sg=new Set(["x","y","z"]),sy=rp.filter(e=>!sg.has(e)),sb={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sv(4,13),y:sv(5,14)},sx=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=sb[e](r,a)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{sh(t.getValue(n),s[n]),e[n]=sb[n](l,a)}),e},sw=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(sd),a=[],o=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=om(c),f=t[i];if(r3(f)){let e=f.length,t=null===f[0]?1:0;d=om(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],sh(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=sx(t,e,s);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nH&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},sj=(e,t,n,r)=>{var i,a;let o=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!ss(t))return;let n=su(t,r);n&&e.set(n)}),t){let e=t[i];if(!ss(e))continue;let a=su(e,r);a&&(t[i]=a,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=o.target,r=o.transitionEnd,i=t,a=r,sf(i)?sw(e,i,n,a):{target:i,transitionEnd:a}},sk={current:null},sE={current:!1},sS=Object.keys(ra),sC=sS.length,s_=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sO{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>nL.render(this.render,!1,!0);let{latestValues:a,renderState:o}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=o,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rt(t),this.isVariantNode=rn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==a[e]&&rg(t)&&(t.set(a[e],!1),ob(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==a[e]&&rg(n)&&n.set(a[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sE.current||function(){if(sE.current=!0,nH){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sk.current=e.matches;e.addListener(t),t()}else sk.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sk.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),nZ.update(this.notifyUpdate),nZ.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&nL.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,a){let o=[];"production"!==nC&&n&&t&&iZ(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l})}return o}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oG()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=of(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=r4(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rg(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new ou),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let sM=["initial",...ok],sT=sM.length;class sA extends sO{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let a=function(e,t,n){var r;let i={};for(let a in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t);i[a]=void 0!==e?e:null===(r=n.getValue(a))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),a&&(a=r(a))),i){!function(e,t,n){var r,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),o=a.length;if(o)for(let s=0;srf(e)?new sN(t,{enableHardwareAcceleration:!1}):new sP(t,{enableHardwareAcceleration:!0});function sD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sL={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rA.test(e))return e;e=parseFloat(e)}let n=sD(e,t.target.x),r=sD(e,t.target.y);return`${n}% ${r}%`}},sZ="_$css",sF={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),a=[];i&&(e=e.replace(sl,e=>(a.push(e),sZ)));let o=ai.parse(e);if(o.length>5)return r;let s=ai.createTransformer(e),l="number"!=typeof o[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=c;let d=iq(u,c,.5);"number"==typeof o[2+l]&&(o[2+l]/=d),"number"==typeof o[3+l]&&(o[3+l]/=d);let f=s(o);if(i){let e=0;f=f.replace(sZ,()=>{let t=a[e];return e++,t})}return f}};class sz extends eo.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rh,sV),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ro.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===i||(i?a.promote():a.relegate()||nL.postRender(()=>{var e;(null===(e=a.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sV={borderRadius:{...sL,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sL,borderTopRightRadius:sL,borderBottomLeftRadius:sL,borderBottomRightRadius:sL,boxShadow:sF},sI=["TopLeft","TopRight","BottomLeft","BottomRight"],sB=sI.length,sH=e=>"string"==typeof e?parseFloat(e):e,sU=e=>"number"==typeof e||rA.test(e);function sW(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sq=sK(0,.5,ak),s$=sK(.5,.95,ay);function sK(e,t,n){return r=>rt?1:n(iW(e,t,r))}function sY(e,t){e.min=t.min,e.max=t.max}function sX(e,t){sY(e.x,t.x),sY(e.y,t.y)}function sG(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sQ(e,t,[n,r,i],a,o){!function(e,t=0,n=1,r=.5,i,a=e,o=e){if(rT.test(t)&&(t=parseFloat(t),t=iq(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=iq(a.min,a.max,r);e===a&&(s-=t),e.min=sG(e.min,t,n,s,i),e.max=sG(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,a,o)}let sJ=["x","scaleX","originX"],s0=["y","scaleY","originY"];function s1(e,t,n,r){sQ(e.x,t,sJ,null==n?void 0:n.x,null==r?void 0:r.x),sQ(e.y,t,s0,null==n?void 0:n.y,null==r?void 0:r.y)}function s2(e){return 0===e.translate&&1===e.scale}function s4(e){return s2(e.x)&&s2(e.y)}function s3(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function s5(e){return oZ(e.x)/oZ(e.y)}class s6{constructor(){this.members=[]}add(e){os(this.members,e),e.scheduleRender()}remove(e){if(ol(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function s8(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,a=`translate3d(${r}px, ${i}px, 0) `;if(a+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(a+=`rotate(${e}deg) `),t&&(a+=`rotateX(${t}deg) `),r&&(a+=`rotateY(${r}deg) `)}let o=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(a+=`scale(${o}, ${s})`)?"none":a}let s7=(e,t)=>e.depth-t.depth;class s9{constructor(){this.children=[],this.isDirty=!1}add(e){os(this.children,e),this.isDirty=!0}remove(e){ol(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(s7),this.isDirty=!1,this.children.forEach(e)}}let le=["","X","Y","Z"];function lt({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(ll),this.nodes.forEach(lu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=a9(r,250),ro.hasAnimatedSinceResize&&(ro.hasAnimatedSinceResize=!1,this.nodes.forEach(ls))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||a)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,a,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(a=null!==(i=this.options.transition)&&void 0!==i?i:o.getDefaultTransition())&&void 0!==a?a:lm,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=o.getProps(),h=!this.targetLayout||!s3(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...or(c,"layout"),onPlay:d,onComplete:f};o.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ls(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,nZ.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(lc))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ly(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lp));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;lf(o.x,e.x,f),lf(o.y,e.y,f),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(oH(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,lh(r.x,d.x,s.x,f),lh(r.y,d.y,s.y,f)),l&&(this.animationValues=a,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=iq(0,null!==(o=n.opacity)&&void 0!==o?o:1,sq(r)),e.opacityExit=iq(null!==(s=t.opacity)&&void 0!==s?s:1,0,s$(r))):a&&(e.opacity=iq(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{ro.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rg(e)?e:of(e);return oi("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&lb(this.options.animationType,this.layout.actual,r.actual)){n=this.target||oG();let t=oZ(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=oZ(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sX(t,n),st(t,i),oV(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new s6),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(la),this.root.sharedNodes.clear()}}}function ln(e){e.updateLayout()}function lr(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?oQ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(n);n.min=t[e].min,n.max=n.min+r}):lb(r,i.layout,t)&&oQ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(t[e]);n.max=n.min+r});let a=oY();oV(a,t,i.layout);let o=oY();i.isShared?oV(o,e.applyTransform(n,!0),i.measured):oV(o,t,i.layout);let s=!s4(a),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=oG();oH(n,i.layout,e.layout);let a=oG();oH(a,t,r.actual),s3(n,a)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function li(e){e.clearSnapshot()}function la(e){e.clearMeasurements()}function lo(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ls(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ll(e){e.resolveTargetDelta()}function lu(e){e.calcProjection()}function lc(e){e.resetRotation()}function ld(e){e.removeLeadSnapshot()}function lf(e,t,n){e.translate=iq(t.translate,0,n),e.scale=iq(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lh(e,t,n,r){e.min=iq(t.min,n.min,r),e.max=iq(t.max,n.max,r)}function lp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lm={duration:.45,ease:[.4,0,.1,1]};function lv(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function lg(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ly(e){lg(e.x),lg(e.y)}function lb(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return oA(e,t)<=n}(s5(t),s5(n),.2)}let lx=lt({attachResizeListener:(e,t)=>it(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lw={current:void 0},lj=lt({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lw.current){let e=new lx(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lw.current=e}return lw.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lk={...o_,...iP,...so,measureLayout:function(e){let[t,n]=iN(),r=(0,eo.useContext)(nQ);return eo.createElement(sz,{...e,layoutGroup:r,switchLayoutGroup:(0,eo.useContext)(ru),isPresent:t,safeToRemove:n})}},lE=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:a}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?ra.projectionNodeConstructor=e[t]:ra[t].Component=e[t]}(e);let o=(0,eo.forwardRef)(function(o,s){var l;let u={...(0,eo.useContext)(n3),...o,layoutId:function({layoutId:e}){let t=(0,eo.useContext)(nQ).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(rt(e)){let{initial:t,animate:n}=e;return{initial:!1===t||n7(t)?t:void 0,animate:n7(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,eo.useContext)(n5));return(0,eo.useMemo)(()=>({initial:t,animate:n}),[rr(t),rr(n)])}(o),h=c?void 0:n$(()=>{if(ro.hasEverUpdated)return rs++}),p=i(o,c);if(!c&&nH){f.visualElement=function(e,t,n,r){let i=(0,eo.useContext)(n5).visualElement,a=(0,eo.useContext)(n6),o=(0,eo.useContext)(nq),s=(0,eo.useContext)(n3).reducedMotion,l=(0,eo.useRef)();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:o?o.id:void 0,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:s}));let u=l.current;return nU(()=>{u&&u.render()}),(0,eo.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nU(()=>()=>u&&u.notify("Unmount"),[]),u}(a,p,u,t);let r=(0,eo.useContext)(n6).strict,i=(0,eo.useContext)(ru);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||ra.projectionNodeConstructor,i))}return eo.createElement(rl,{visualElement:f.visualElement,props:u},d,eo.createElement(n5.Provider,{value:f},r(a,o,h,(l=f.visualElement,(0,eo.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):n8(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return o[rc]=a,o}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){return{...rf(e)?r9:ie,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:a},o)=>{let s=(rf(t)?function(e,t){let n=(0,eo.useMemo)(()=>{let n=rX();return rY(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rB(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rB(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,eo.useMemo)(()=>{let r=rI();return rV(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r})(n,a,o),l={...function(e,t,n){let r={};for(let i in e)(rW(i)||!0===n&&rU(i)||!t&&!rU(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,eo.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,lk,sR,lj));function lS(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,eo.useState)(!1);return{open:(0,eo.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,eo.useCallback)(e=>{n?n(e):i(e)},[n])}}let lC={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function l_(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:a,delayDuration:o=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=lS({open:i,onOpenChange:a});return(0,ea.jsxs)(ny,{open:u,delayDuration:o,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,ea.jsx)(nl,{asChild:!0,children:t}),(0,ea.jsx)(n4,{children:n&&u?(0,ea.jsx)(nb,{forceMount:!0,children:(0,ea.jsx)(nh,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,ea.jsx)(lE.div,{variants:lC,initial:"init",animate:"show",exit:"exit",className:(0,eW.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,ea.jsx)("div",{className:(0,eW.cx)("py-1 px-2","max-w-xs","overflow-hidden",nk()),children:(0,ea.jsx)(nj,{size:"12",children:n})})})})}):null})]})}let lO=(0,eW.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lM=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,ea.jsx)(l_,{content:u,align:c,side:d,children:(0,ea.jsx)("button",{ref:t,type:h,disabled:o,className:lO({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})}):(0,ea.jsx)("button",{ref:t,disabled:o,type:h,className:lO({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})});var lT=n(61020);(0,eW.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lA=(0,eW.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lP=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{...r,className:lA({className:n}),ref:t})});var lN=n(86029);let lR="Avatar",[lD,lL]=(0,eu.b)(lR),[lZ,lF]=lD(lR),lz=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=(0,eo.useState)("idle");return(0,eo.createElement)(lZ,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},(0,eo.createElement)(em.WV.span,(0,el.Z)({},r,{ref:t})))}),lV=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=lF("AvatarImage",n),s=function(e){let[t,n]=(0,eo.useState)("idle");return(0,eo.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lN.W)(e=>{i(e),o.onImageLoadingStatusChange(e)});return(0,ev.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,eo.createElement)(em.WV.img,(0,el.Z)({},a,{ref:t,src:r})):null}),lI=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=lF("AvatarFallback",n),[o,s]=(0,eo.useState)(void 0===r);return(0,eo.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&"loaded"!==a.imageLoadingStatus?(0,eo.createElement)(em.WV.span,(0,el.Z)({},i,{ref:t})):null}),lB=(0,eW.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lH=(0,eW.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lU=eo.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:a,variant:o,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("relative h-fit w-fit",c),children:(0,ea.jsxs)(lz,{...d,ref:t,className:lB({className:c,size:a,variant:o,interactive:l,inactive:u,shape:s}),children:["filter"===o&&(0,ea.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,ea.jsx)(lV,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,ea.jsx)(lI,{className:lH({size:a}),children:i})]})})}),lW=(0,eW.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lq=eo.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:a,className:o,...s}=e;return(0,ea.jsx)("div",{...s,className:lW({variant:n,size:r,interactive:i,rounded:a,className:o}),ref:t})}),l$=eo.forwardRef((e,t)=>{let{className:n,size:r,color:i,...a}=e;return(0,ea.jsx)("pre",{children:(0,ea.jsx)("code",{className:(0,eW.cx)(nx({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...a,ref:t})})}),lK=(0,eW.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lY=eo.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,ea.jsx)("code",{...i,className:lK({color:n,className:r}),ref:t})}),lX=(0,eW.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lG=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:lX({className:n}),...r})});(0,eW.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lQ=(0,eW.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lJ=eo.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...a}=e;return(0,ea.jsx)("div",{ref:t,...a,className:lQ({size:i,pad:r,className:n})})});var l0=n(72331);let l1=(0,eo.createContext)(void 0);function l2(e){let t=(0,eo.useContext)(l1);return e||t||"ltr"}let l4="ScrollArea",[l3,l5]=(0,eu.b)(l4),[l6,l8]=l3(l4),l7=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=(0,eo.useState)(null),[u,c]=(0,eo.useState)(null),[d,f]=(0,eo.useState)(null),[h,p]=(0,eo.useState)(null),[m,v]=(0,eo.useState)(null),[g,y]=(0,eo.useState)(0),[b,x]=(0,eo.useState)(0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!1),S=(0,ec.e)(t,e=>l(e)),C=l2(i);return(0,eo.createElement)(l6,{scope:n,type:r,dir:C,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:k,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:x},(0,eo.createElement)(em.WV.div,(0,el.Z)({dir:C},o,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),l9=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,a=l8("ScrollAreaViewport",n),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o,a.onViewportChange);return(0,eo.createElement)(eo.Fragment,null,(0,eo.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,eo.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ue="ScrollAreaScrollbar",ut=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l8(ue,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s="horizontal"===e.orientation;return(0,eo.useEffect)(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),"hover"===i.type?(0,eo.createElement)(un,(0,el.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,eo.createElement)(ur,(0,el.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,eo.createElement)(ui,(0,el.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,eo.createElement)(ua,(0,el.Z)({},r,{ref:t})):null}),un=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l8(ue,e.__scopeScrollArea),[a,o]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,eo.createElement)(eg.z,{present:n||a},(0,eo.createElement)(ui,(0,el.Z)({"data-state":a?"visible":"hidden"},r,{ref:t})))}),ur=(0,eo.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,a=l8(ue,e.__scopeScrollArea),o="horizontal"===e.orientation,s=uk(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,eo.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,a.scrollHideDelay,u]),(0,eo.useEffect)(()=>{let e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[a.viewport,o,u,s]),(0,eo.createElement)(eg.z,{present:r||"hidden"!==l},(0,eo.createElement)(ua,(0,el.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),ui=(0,eo.forwardRef)((e,t)=>{let n=l8(ue,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=(0,eo.useState)(!1),s="horizontal"===e.orientation,l=uk(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=l8(ue,e.__scopeScrollArea),a=(0,eo.useRef)(null),o=(0,eo.useRef)(0),[s,l]=(0,eo.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uy(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=ub(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return uw([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,o.current,s,t)}return"horizontal"===n?(0,eo.createElement)(uo,(0,el.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ux(i.viewport.scrollLeft,s,i.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,eo.createElement)(us,(0,el.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ux(i.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),uo=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=l8(ue,e.__scopeScrollArea),[o,s]=(0,eo.useState)(),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l,a.onScrollbarXChange);return(0,eo.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,eo.createElement)(uc,(0,el.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ub(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ug(o.paddingLeft),paddingEnd:ug(o.paddingRight)}})}}))}),us=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=l8(ue,e.__scopeScrollArea),[o,s]=(0,eo.useState)(),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l,a.onScrollbarYChange);return(0,eo.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,eo.createElement)(uc,(0,el.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ub(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ug(o.paddingTop),paddingEnd:ug(o.paddingBottom)}})}}))}),[ul,uu]=l3(ue),uc=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=l8(ue,n),[p,m]=(0,eo.useState)(null),v=(0,ec.e)(t,e=>m(e)),g=(0,eo.useRef)(null),y=(0,eo.useRef)(""),b=h.viewport,x=r.content-r.viewport,w=(0,lN.W)(c),j=(0,lN.W)(l),k=uk(d,10);function E(e){g.current&&u({x:e.clientX-g.current.left,y:e.clientY-g.current.top})}return(0,eo.useEffect)(()=>{let e=e=>{let t=e.target;(null==p?void 0:p.contains(t))&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),(0,eo.useEffect)(j,[r,j]),uE(p,k),uE(h.content,k),(0,eo.createElement)(ul,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lN.W)(a),onThumbPointerUp:(0,lN.W)(o),onThumbPositionChange:j,onThumbPointerDown:(0,lN.W)(s)},(0,eo.createElement)(em.WV.div,(0,el.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,eh.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(e))}),onPointerMove:(0,eh.M)(e.onPointerMove,E),onPointerUp:(0,eh.M)(e.onPointerUp,e=>{e.target.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),ud="ScrollAreaThumb",uf=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=uu(ud,e.__scopeScrollArea);return(0,eo.createElement)(eg.z,{present:n||i.hasThumb},(0,eo.createElement)(uh,(0,el.Z)({ref:t},r)))}),uh=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=l8(ud,n),o=uu(ud,n),{onThumbPositionChange:s}=o,l=(0,ec.e)(t,e=>o.onThumbChange(e)),u=(0,eo.useRef)(),c=uk(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,eo.useEffect)(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uj(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,eh.M)(e.onPointerUp,o.onThumbPointerUp)}))}),up="ScrollAreaCorner",um=(0,eo.forwardRef)((e,t)=>{let n=l8(up,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,eo.createElement)(uv,(0,el.Z)({},e,{ref:t})):null}),uv=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=l8(up,n),[a,o]=(0,eo.useState)(0),[s,l]=(0,eo.useState)(0),u=!!(a&&s);return uE(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),uE(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),o(t)}),u?(0,eo.createElement)(em.WV.div,(0,el.Z)({},r,{ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function ug(e){return e?parseInt(e,10):0}function uy(e,t){let n=e/t;return isNaN(n)?0:n}function ub(e){let t=uy(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function ux(e,t,n="ltr"){let r=ub(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return uw([0,o],[0,a-r])(s)}function uw(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let uj=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uk(e,t){let n=(0,lN.W)(e),r=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,eo.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uE(e,t){let n=(0,lN.W)(t);(0,ev.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let uS=eo.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:a,keyToResetScrollbars:o}=e;return(0,ea.jsxs)(l7,{className:(0,eW.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,ea.jsx)(l9,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:a}),(0,ea.jsx)(ut,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,ea.jsx)(uf,{className:(0,eW.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},o?"v-".concat(o):void 0),(0,ea.jsx)(ut,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,ea.jsx)(uf,{className:(0,eW.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},o?"h-".concat(o):void 0),(0,ea.jsx)(um,{className:"bg-black/70"})]})}),uC=(0,eW.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),u_={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},uO=eo.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:a,onSubmit:o,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=lS({open:i,onOpenChange:a});return(0,ea.jsxs)(l0.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,ea.jsx)(l0.xz,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:v?(0,ea.jsx)(l0.h_,{forceMount:!0,children:(0,ea.jsx)(l0.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,ea.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,ea.jsx)(l0.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,ea.jsx)(lE.div,{variants:u_,initial:"init",animate:"show",exit:"exit",className:uC(u),children:(0,ea.jsx)(uA,{title:s,description:l,contentVariants:c,onSubmit:o,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uM(e){let{className:t}=e;return(0,ea.jsx)(l0.x8,{asChild:!0,type:"button",children:(0,ea.jsx)("div",{className:(0,eW.cx)("appearance-none",t),children:(0,ea.jsx)(lM,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,ea.jsx)(lT.QN4,{})})})})}let uT=(0,eW.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[nk()],none:""}},defaultVariants:{variant:"default"}}),uA=eo.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:a,controls:o,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,eo.useState)(0),r=(0,eo.useRef)(null);return(0,eo.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,a]),[h,p]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,ea.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uT(s),children:[i&&(0,ea.jsx)(l0.Dx,{className:uP({showSeparator:h}),children:i}),(0,ea.jsx)(uS,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,ea.jsxs)("div",{ref:d,className:(0,eW.cx)("p-4",u),children:[a&&(0,ea.jsx)(l0.dk,{className:uN(),children:a}),n]})}),o&&(0,ea.jsx)(uR,{separator:h,children:o}),(0,ea.jsx)(uM,{className:l||"absolute top-3.5 right-2"})]})}),uP=(0,eW.j)(["pt-4 pb-2 px-4 w-full",nx({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uN=(0,eW.j)([nx({color:"subtle",size:"14"}),"py-2"]);function uR(e){let{children:t,separator:n=!0}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uD=n(55070),uL=n(77334);let uZ="rovingFocusGroup.onEntryFocus",uF={bubbles:!1,cancelable:!0},uz="RovingFocusGroup",[uV,uI,uB]=ef(uz),[uH,uU]=(0,eu.b)(uz,[uB]),[uW,uq]=uH(uz),u$=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(uV.Provider,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uV.Slot,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uK,(0,el.Z)({},e,{ref:t}))))),uK=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),h=l2(a),[p=null,m]=(0,ep.T)({prop:o,defaultProp:s,onChange:l}),[v,g]=(0,eo.useState)(!1),y=(0,lN.W)(u),b=uI(n),x=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uZ,y),()=>e.removeEventListener(uZ,y)},[y]),(0,eo.createElement)(uW,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,eo.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,eo.useCallback)(()=>g(!0),[])},(0,eo.createElement)(em.WV.div,(0,el.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,eh.M)(e.onMouseDown,()=>{x.current=!0}),onFocus:(0,eh.M)(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(uZ,uF);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);uG([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current))}}x.current=!1}),onBlur:(0,eh.M)(e.onBlur,()=>g(!1))})))}),uY=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...a}=e,o=(0,ey.M)(),s=uq("RovingFocusGroupItem",n),l=s.currentTabStopId===o,u=uI(n);return(0,eo.createElement)(uV.ItemSlot,{scope:n,id:o,focusable:r,active:i},(0,eo.createElement)(em.WV.span,(0,el.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{r?s.onItemFocus(o):e.preventDefault()}),onFocus:(0,eh.M)(e.onFocus,()=>s.onItemFocus(o)),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uX[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=s.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>uG(i))}})})))}),uX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uG(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uQ=n(49732),uJ=n(70506);let u0=["Enter"," "],u1=["ArrowUp","PageDown","End"],u2=["ArrowDown","PageUp","Home",...u1],u4={ltr:[...u0,"ArrowRight"],rtl:[...u0,"ArrowLeft"]},u3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},u5="Menu",[u6,u8,u7]=ef(u5),[u9,ce]=(0,eu.b)(u5,[u7,tH,uU]),ct=tH(),cn=uU(),[cr,ci]=u9(u5),[ca,co]=u9(u5),cs=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=ct(n);return(0,eo.createElement)(tq,(0,el.Z)({},i,r,{ref:t}))}),cl="MenuPortal",[cu,cc]=u9(cl,{forceMount:void 0}),cd="MenuContent",[cf,ch]=u9(cd),cp=(0,eo.forwardRef)((e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(eg.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},o.modal?(0,eo.createElement)(cm,(0,el.Z)({},i,{ref:t})):(0,eo.createElement)(cv,(0,el.Z)({},i,{ref:t})))))}),cm=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uQ.R)(e)},[]),(0,eo.createElement)(cg,(0,el.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cv=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu);return(0,eo.createElement)(cg,(0,el.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cg=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=ci(cd,n),v=co(cd,n),g=ct(n),y=cn(n),b=u8(n),[x,w]=(0,eo.useState)(null),j=(0,eo.useRef)(null),k=(0,ec.e)(t,j,m.onContentChange),E=(0,eo.useRef)(0),S=(0,eo.useRef)(""),C=(0,eo.useRef)(0),_=(0,eo.useRef)(null),O=(0,eo.useRef)("right"),M=(0,eo.useRef)(0),T=h?uJ.Z:eo.Fragment,A=h?{as:ed.g7,allowPinchZoom:!0}:void 0,P=e=>{var t,n;let r=S.current+e,i=b().filter(e=>!e.disabled),a=document.activeElement,o=null===(t=i.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==n?o:void 0}(i.map(e=>e.textValue),r,o),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};(0,eo.useEffect)(()=>()=>window.clearTimeout(E.current),[]),(0,uD.EW)();let N=(0,eo.useCallback)(e=>{var t,n,r;return O.current===(null===(t=_.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=_.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,eo.createElement)(cf,{scope:n,searchRef:S,onItemEnter:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,eo.useCallback)(e=>{var t;N(e)||(null===(t=j.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:C,onPointerGraceIntentChange:(0,eo.useCallback)(e=>{_.current=e},[])},(0,eo.createElement)(T,A,(0,eo.createElement)(uL.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,eh.M)(a,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()}),onUnmountAutoFocus:o},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,eo.createElement)(u$,(0,el.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,eo.createElement)(tQ,(0,el.Z)({role:"menu","aria-orientation":"vertical","data-state":cP(m.open),dir:v.dir},g,p,{ref:k,style:{outline:"none",...p.style},onKeyDown:(0,eh.M)(p.onKeyDown,e=>{let t=e.target.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));let i=j.current;if(e.target!==i||!u2.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);u1.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,eh.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")}),onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?"right":"left";O.current=t,M.current=e.clientX}}))})))))))}),cy=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"group"},r,{ref:t}))}),cb=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,el.Z)({},r,{ref:t}))}),cx="MenuItem",cw="menu.itemSelect",cj=(0,eo.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=(0,eo.useRef)(null),o=co(cx,e.__scopeMenu),s=ch(cx,e.__scopeMenu),l=(0,ec.e)(t,a),u=(0,eo.useRef)(!1);return(0,eo.createElement)(ck,(0,el.Z)({},i,{ref:l,disabled:n,onClick:(0,eh.M)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(cw,{bubbles:!0,cancelable:!0});e.addEventListener(cw,e=>null==r?void 0:r(e),{once:!0}),(0,em.jH)(e,t),t.defaultPrevented?u.current=!1:o.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,eh.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u0.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ck=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=ch(cx,n),s=cn(n),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l),[c,d]=(0,eo.useState)(!1),[f,h]=(0,eo.useState)("");return(0,eo.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[a.children]),(0,eo.createElement)(u6.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,eo.createElement)(uY,(0,el.Z)({asChild:!0},s,{focusable:!r}),(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(e=>o.onItemLeave(e))),onFocus:(0,eh.M)(e.onFocus,()=>d(!0)),onBlur:(0,eh.M)(e.onBlur,()=>d(!1))}))))}),[cE,cS]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eo.createElement)(c_,{scope:e.__scopeMenu,checked:n},(0,eo.createElement)(cj,(0,el.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cN(n),onSelect:(0,eh.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},u9("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cC=((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=(0,lN.W)(r);return(0,eo.createElement)(cE,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,eo.createElement)(cy,(0,el.Z)({},i,{ref:t})))},"MenuItemIndicator"),[c_,cO]=u9(cC,{checked:!1}),[cM,cT]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=cO(cC,n);return(0,eo.createElement)(eg.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,el.Z)({},i,{ref:t,"data-state":cN(a.checked)})))},u9("MenuSub")),cA="MenuSubTrigger";function cP(e){return e?"open":"closed"}function cN(e){return e?"checked":"unchecked"}function cR(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=ci(cA,e.__scopeMenu),r=co(cA,e.__scopeMenu),i=cT(cA,e.__scopeMenu),a=ch(cA,e.__scopeMenu),o=(0,eo.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=(0,eo.useCallback)(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return(0,eo.useEffect)(()=>c,[c]),(0,eo.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,eo.createElement)(cs,(0,el.Z)({asChild:!0},u),(0,eo.createElement)(ck,(0,el.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cP(n.open)},e,{ref:(0,ec.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,eh.M)(e.onPointerMove,cR(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,o="right"===t,l=i[o?"left":"right"],u=i[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,eh.M)(e.onKeyDown,t=>{let i=""!==a.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&u4[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu),s=cT("MenuSubContent",e.__scopeMenu),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(eg.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},(0,eo.createElement)(cg,(0,el.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;o.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,eh.M)(e.onEscapeKeyDown,o.onClose),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=u3[o.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cD=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=ct(t),[l,u]=(0,eo.useState)(null),c=(0,eo.useRef)(!1),d=(0,lN.W)(a),f=l2(i);return(0,eo.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,eo.createElement)(t5,s,(0,eo.createElement)(cr,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,eo.createElement)(ca,{scope:t,onClose:(0,eo.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:o},r)))},cL=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ci(cl,t);return(0,eo.createElement)(cu,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},cZ="DropdownMenu",[cF,cz]=(0,eu.b)(cZ,[ce]),cV=ce(),[cI,cB]=cF(cZ),cH=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=cB("DropdownMenuTrigger",n),o=cV(n);return(0,eo.createElement)(cs,(0,el.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":!!a.open||void 0,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,ec.F)(t,a.triggerRef),onPointerDown:(0,eh.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cU=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cB("DropdownMenuContent",n),a=cV(n),o=(0,eo.useRef)(!1);return(0,eo.createElement)(cp,(0,el.Z)({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;o.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:(0,eh.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cW=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cb,(0,el.Z)({},i,r,{ref:t}))}),cq=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cj,(0,el.Z)({},i,r,{ref:t}))}),c$=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=cV(t),u=(0,eo.useRef)(null),[c=!1,d]=(0,ep.T)({prop:i,defaultProp:a,onChange:o});return(0,eo.createElement)(cI,{scope:t,triggerId:(0,ey.M)(),triggerRef:u,contentId:(0,ey.M)(),open:c,onOpenChange:d,onOpenToggle:(0,eo.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,eo.createElement)(cD,(0,el.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cK=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cV(t);return(0,eo.createElement)(cL,(0,el.Z)({},r,n))},cY="horizontal",cX=["horizontal","vertical"],cG=(0,eo.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cY,...i}=e,a=cQ(r)?r:cY;return(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-orientation":a},n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},i,{ref:t}))});function cQ(e){return cX.includes(e)}cG.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cQ(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + `),()=>{document.head.removeChild(l)}},[t]),eo.createElement(nK,{isPresent:t,childRef:r,sizeRef:i},eo.cloneElement(e,{ref:r}))}let nX=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let s=n$(nG),l=(0,eo.useId)(),u=(0,eo.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),a?void 0:[n]);return(0,eo.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),eo.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===o&&(e=eo.createElement(nY,{isPresent:n},e)),eo.createElement(nq.Provider,{value:u},e)};function nG(){return new Map}let nJ=(0,eo.createContext)({});function nQ(e){return(0,eo.useEffect)(()=>()=>e(),[])}let n0=new Set;function n1(e,t,n){e||n0.has(t)||(console.warn(t),n&&console.warn(n),n0.add(t))}let n2=e=>e.key||"",n4=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",n1(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nW(),[t,n]=(0,eo.useState)(0),r=(0,eo.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,eo.useCallback)(()=>nL.postRender(r),[r]),t]}(),l=(0,eo.useContext)(nJ).forceRender;l&&(s=l);let u=nW(),c=function(e){let t=[];return eo.Children.forEach(e,e=>{(0,eo.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,eo.useRef)(d),p=(0,eo.useRef)(new Map).current,m=(0,eo.useRef)(!0);if(nU(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n2(e);t.set(n,e)})}(c,p),h.current=d}),nQ(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return eo.createElement(eo.Fragment,null,d.map(e=>eo.createElement(nX,{key:n2(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:o},e)));d=[...d];let v=h.current.map(n2),g=c.map(n2),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,eo.createElement(nX,{key:n2(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:eo.createElement(nX,{key:n2(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),"production"!==nC&&"wait"===o&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),eo.createElement(eo.Fragment,null,f.size?d:d.map(e=>(0,eo.cloneElement)(e)))},n3=(0,eo.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),n5=(0,eo.createContext)({}),n6=(0,eo.createContext)({strict:!1});function n8(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function n7(e){return"string"==typeof e||Array.isArray(e)}function n9(e){return"object"==typeof e&&"function"==typeof e.start}let re=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rt(e){return n9(e.animate)||re.some(t=>n7(e[t]))}function rn(e){return!!(rt(e)||e.variants)}function rr(e){return Array.isArray(e)?e.join(" "):e}let ri=e=>({isEnabled:t=>e.some(e=>!!t[e])}),ra={measureLayout:ri(["layout","layoutId","drag"]),animation:ri(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ri(["exit"]),drag:ri(["drag","dragControls"]),focus:ri(["whileFocus"]),hover:ri(["whileHover","onHoverStart","onHoverEnd"]),tap:ri(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ri(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ri(["whileInView","onViewportEnter","onViewportLeave"])},ro={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rs=1;class rl extends eo.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let ru=(0,eo.createContext)({}),rc=Symbol.for("motionComponentSymbol"),rd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function rf(e){if("string"!=typeof e||e.includes("-"));else if(rd.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rh={},rp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rm=new Set(rp);function rv(e,{layout:t,layoutId:n}){return rm.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rh[e]||"opacity"===e)}let rg=e=>!!(null==e?void 0:e.getVelocity),ry={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rb=(e,t)=>rp.indexOf(e)-rp.indexOf(t);function rx(e){return e.startsWith("--")}let rw=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rj=(e,t)=>n=>Math.max(Math.min(n,t),e),rk=e=>e%1?Number(e.toFixed(5)):e,rE=/(-)?([\d]*\.?[\d])+/g,rS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rC=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function r_(e){return"string"==typeof e}let rO=e=>({test:t=>r_(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rM=rO("deg"),rT=rO("%"),rA=rO("px"),rP=rO("vh"),rN=rO("vw"),rR=Object.assign(Object.assign({},rT),{parse:e=>rT.parse(e)/100,transform:e=>rT.transform(100*e)}),rD={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rL=Object.assign(Object.assign({},rD),{transform:rj(0,1)}),rZ=Object.assign(Object.assign({},rD),{default:1}),rF={...rD,transform:Math.round},rz={borderWidth:rA,borderTopWidth:rA,borderRightWidth:rA,borderBottomWidth:rA,borderLeftWidth:rA,borderRadius:rA,radius:rA,borderTopLeftRadius:rA,borderTopRightRadius:rA,borderBottomRightRadius:rA,borderBottomLeftRadius:rA,width:rA,maxWidth:rA,height:rA,maxHeight:rA,size:rA,top:rA,right:rA,bottom:rA,left:rA,padding:rA,paddingTop:rA,paddingRight:rA,paddingBottom:rA,paddingLeft:rA,margin:rA,marginTop:rA,marginRight:rA,marginBottom:rA,marginLeft:rA,rotate:rM,rotateX:rM,rotateY:rM,rotateZ:rM,scale:rZ,scaleX:rZ,scaleY:rZ,scaleZ:rZ,skew:rM,skewX:rM,skewY:rM,distance:rA,translateX:rA,translateY:rA,translateZ:rA,x:rA,y:rA,z:rA,perspective:rA,transformPerspective:rA,opacity:rL,originX:rR,originY:rR,originZ:rA,zIndex:rF,fillOpacity:rL,strokeOpacity:rL,numOctaves:rF};function rV(e,t,n,r){let{style:i,vars:a,transform:o,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rx(e)){a[e]=n;continue}let r=rz[e],f=rw(n,r);if(rm.has(e)){if(u=!0,o[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,a){let o="";for(let n of(t.sort(rb),t))o+=`${ry[n]||n}(${e[n]}) `;return n&&!e.z&&(o+="translateZ(0)"),o=o.trim(),a?o=a(e,i?"":o):r&&i&&(o="none"),o}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rI=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rB(e,t,n){for(let r in t)rg(t[r])||rv(r,n)||(e[r]=t[r])}let rH=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rU(e){return rH.has(e)}let rW=e=>!rU(e);try{(s=require("@emotion/is-prop-valid").default)&&(rW=e=>e.startsWith("on")?!rU(e):s(e))}catch(e){}function rq(e,t,n){return"string"==typeof e?e:rA.transform(t+n*e)}let r$={offset:"stroke-dashoffset",array:"stroke-dasharray"},rK={offset:"strokeDashoffset",array:"strokeDasharray"};function rY(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:s=0,...l},u,c){rV(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rq(t,e.x,e.width),i=rq(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?r$:rK;e[a.offset]=rA.transform(-r);let o=rA.transform(t),s=rA.transform(n);e[a.array]=`${o} ${s}`}(d,a,o,s,!1)}let rX=()=>({...rI(),attrs:{}}),rG=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rJ(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}let rQ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r0(e,t,n,r){for(let n in rJ(e,t,void 0,r),t.attrs)e.setAttribute(rQ.has(n)?n:rG(n),t.attrs[n])}function r1(e){let{style:t}=e,n={};for(let r in t)(rg(t[r])||rv(r,e))&&(n[r]=t[r]);return n}function r2(e){let t=r1(e);for(let n in e)rg(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function r4(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let r3=e=>Array.isArray(e),r5=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),r6=e=>r3(e)?e[e.length-1]||0:e;function r8(e){let t=rg(e)?e.get():e;return r5(t)?t.toValue():t}let r7=e=>(t,n)=>{let r=(0,eo.useContext)(n5),i=(0,eo.useContext)(nq),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){let o={latestValues:function(e,t,n,r){let i={},a=r(e);for(let e in a)i[e]=r8(a[e]);let{initial:o,animate:s}=e,l=rt(e),u=rn(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;return d&&"boolean"!=typeof d&&!n9(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=r4(e,t);if(!n)return;let{transitionEnd:r,transition:a,...o}=n;for(let e in o){let t=o[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,a,e),renderState:t()};return n&&(o.mount=e=>n(r,e,o)),o})(e,t,r,i);return n?a():n$(a)},r9={useVisualState:r7({scrapeMotionValuesFromProps:r2,createRenderState:rX,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rY(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r0(t,n)}})},ie={useVisualState:r7({scrapeMotionValuesFromProps:r1,createRenderState:rI})};function it(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ir(e,t,n,r){(0,eo.useEffect)(()=>{let i=e.current;if(n&&i)return it(i,t,n,r)},[e,t,n,r])}function ii(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(l=Z||(Z={})).Animate="animate",l.Hover="whileHover",l.Tap="whileTap",l.Drag="whileDrag",l.Focus="whileFocus",l.InView="whileInView",l.Exit="exit";let ia={pageX:0,pageY:0};function io(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||ia;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let is=(e,t=!1)=>{let n=t=>e(t,io(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},il=()=>nH&&null===window.onpointerdown,iu=()=>nH&&null===window.ontouchstart,ic=()=>nH&&null===window.onmousedown,id={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ih={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ip(e){if(il());else if(iu())return ih[e];else if(ic())return id[e];return e}function im(e,t,n,r){return it(e,ip(t),is(n,"pointerdown"===t),r)}function iv(e,t,n,r){return ir(e,ip(t),n&&is(n,"pointerdown"===t),r)}function ig(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let iy=ig("dragHorizontal"),ib=ig("dragVertical");function ix(e){let t=!1;if("y"===e)t=ib();else if("x"===e)t=iy();else{let e=iy(),n=ib();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function iw(){let e=ix(!0);return!e||(e(),!1)}function ij(e,t,n){return(r,i)=>{!(!ii(r)||iw())&&(e.animationState&&e.animationState.setActive(Z.Hover,t),n&&n(r,i))}}let ik=(e,t)=>!!t&&(e===t||ik(e,t.parentElement)),iE=(e,t)=>n=>t(e(n)),iS=(...e)=>e.reduce(iE),iC=new WeakMap,i_=new WeakMap,iO=e=>{let t=iC.get(e.target);t&&t(e)},iM=e=>{e.forEach(iO)},iT={some:0,all:1},iA=e=>t=>(e(t),null),iP={inView:iA(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,eo.useRef)({hasEnteredView:!1,isInView:!1}),o=!!(t||n||r);i.once&&a.current.hasEnteredView&&(o=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,eo.useEffect)(()=>{e&&r&&("production"!==nC&&n1(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(Z.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:o}){(0,eo.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:iT[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;i_.has(n)||i_.set(n,{});let r=i_.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iM,{root:e,...t})),r[i]}(t);return iC.set(e,n),r.observe(e),()=>{iC.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,o&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Z.InView,r);let i=n.getProps(),a=r?i.onViewportEnter:i.onViewportLeave;a&&a(e)})},[e,r,i,a])})(o,a.current,e,i)}),tap:iA(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,o=(0,eo.useRef)(!1),s=(0,eo.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),o.current=!1,i.animationState&&i.animationState.setActive(Z.Tap,!1),!iw()}function d(t,r){c()&&(ik(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!o.current&&(o.current=!0,s.current=iS(im(window,"pointerup",d,l),im(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Z.Tap,!0),t&&t(e,n))}iv(i,"pointerdown",a?h:void 0,l),nQ(u)}),focus:iA(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;ir(t,"focus",e?()=>{n&&n.setActive(Z.Focus,!0)}:void 0),ir(t,"blur",e?()=>{n&&n.setActive(Z.Focus,!1)}:void 0)}),hover:iA(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){iv(r,"pointerenter",e||n?ij(r,!0,e):void 0,{passive:!e}),iv(r,"pointerleave",t||n?ij(r,!1,t):void 0,{passive:!t})})};function iN(){let e=(0,eo.useContext)(nq);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,eo.useId)();return(0,eo.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iR(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var iL=function(){},iZ=function(){};let iF=(e,t,n)=>Math.min(Math.max(n,e),t);function iz(e,t){return e*Math.sqrt(1-t*t)}let iV=["duration","bounce"],iI=["stiffness","damping","mass"];function iB(e,t){return t.some(t=>void 0!==e[t])}function iH(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=iD(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!iB(e,iI)&&iB(e,iV)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;iL(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=iF(.05,1,o),e=iF(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/iz(t,o)*Math.exp(-i)},a=t=>{let r=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=iz(Math.pow(t,2),o);return(r*n+n-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(a),h=iU,p=iU;function m(){let e=c?-(c/1e3):0,r=n-t,a=l/(2*Math.sqrt(s*u)),o=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=iz(o,a);h=i=>n-Math.exp(-a*o*i)*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i)),p=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(1===a)h=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);h=i=>{let s=Math.exp(-a*o*i),l=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)o.done=e>=d;else{let a=1e3*p(e),s=Math.abs(n-t)<=i;o.done=Math.abs(a)<=r&&s}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iH.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iU=e=>0,iW=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iq=(e,t,n)=>-n*e+n*t+e,i$=(e,t)=>n=>!!(r_(n)&&rC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iK=(e,t,n)=>r=>{if(!r_(r))return r;let[i,a,o,s]=r.match(rE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},iY=rj(0,255),iX=Object.assign(Object.assign({},rD),{transform:e=>Math.round(iY(e))}),iG={test:i$("rgb","red"),parse:iK("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iX.transform(e)+", "+iX.transform(t)+", "+iX.transform(n)+", "+rk(rL.transform(r))+")"},iJ={test:i$("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iG.transform},iQ={test:i$("hsl","hue"),parse:iK("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rT.transform(rk(t))+", "+rT.transform(rk(n))+", "+rk(rL.transform(r))+")"};function i0(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=i0(s,r,e+1/3),a=i0(s,r,e),o=i0(s,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}let i2=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},i4=[iJ,iG,iQ],i3=e=>i4.find(t=>t.test(e)),i5=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i6=(e,t)=>{let n=i3(e),r=i3(t);iZ(!!n,i5(e)),iZ(!!r,i5(t));let i=n.parse(e),a=r.parse(t);n===iQ&&(i=i1(i),n=iG),r===iQ&&(a=i1(a),r=iG);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=i2(i[t],a[t],e));return o.alpha=iq(i.alpha,a.alpha,e),n.transform(o)}},i8={test:e=>iG.test(e)||iJ.test(e)||iQ.test(e),parse:e=>iG.test(e)?iG.parse(e):iQ.test(e)?iQ.parse(e):iJ.parse(e),transform:e=>r_(e)?e:e.hasOwnProperty("red")?iG.transform(e):iQ.transform(e)},i7="${c}",i9="${n}";function ae(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rS);r&&(n=r.length,e=e.replace(rS,i7),t.push(...r.map(i8.parse)));let i=e.match(rE);return i&&(e=e.replace(rE,i9),t.push(...i.map(rD.parse))),{values:t,numColors:n,tokenised:e}}function at(e){return ae(e).values}function an(e){let{values:t,numColors:n,tokenised:r}=ae(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,ai={test:function(e){var t,n,r,i;return isNaN(e)&&r_(e)&&(null!==(n=null===(t=e.match(rE))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(rS))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:at,createTransformer:an,getAnimatableNone:function(e){let t=at(e);return an(e)(t.map(ar))}},aa=e=>"number"==typeof e;function ao(e,t){return aa(e)?n=>iq(e,t,n):i8.test(e)?i6(e,t):ac(e,t)}let as=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ao(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=ao(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function au(e){let t=ai.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=ai.createTransformer(t),r=au(e),i=au(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?iS(as(r.parsed,i.parsed),n):(iL(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ad=(e,t)=>n=>iq(e,t,n);function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;iZ(a===t.length,"Both input and output ranges must be the same length"),iZ(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=function(e,t,n){var r;let i=[],a=n||("number"==typeof(r=e[0])?ad:"string"==typeof r?i8.test(r)?i6:ac:Array.isArray(r)?as:"object"==typeof r?al:void 0),o=e.length-1;for(let n=0;nn(iW(e,t,r))}(e,o):function(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti)&&t!==r;t++);a=t-1}let s=iW(e[a],e[a+1],i);return t[a](s)}}(e,o);return n?t=>s(iF(e[0],e[a-1],t)):s}let ah=e=>t=>1-e(1-t),ap=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,am=e=>t=>t*t*((e+1)*t-e),av=4/11,ag=8/11,ay=e=>e,ab=e=>Math.pow(e,2),ax=ah(ab),aw=ap(ab),aj=e=>1-Math.sin(Math.acos(e)),ak=ah(aj),aE=ap(ak),aS=am(1.525),aC=ah(aS),a_=ap(aS),aO=(e=>{let t=am(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),aM=4356/361,aT=35442/1805,aA=16061/1805,aP=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(o)).map(e=>e*i);function l(){return af(s,o,{ease:Array.isArray(n)?n:o.map(()=>n||aw).splice(0,o.length-1)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=l()}}}let aD={keyframes:aR,spring:iH,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};function aL(e,t,n=0){return e-t-n}let aZ=e=>{let t=({delta:t})=>e(t);return{start:()=>nL.update(t,!0),stop:()=>nZ.update(t)}};function aF(e){let t,n,r;var i,{from:a,autoplay:o=!0,driver:s=aZ,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iD(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return aR;if(aD[e.type])return aD[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iH;return aR}(g);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,a,y))&&(r=af([0,100],[a,y],{clamp:!1}),a=0,y=100);let E=k(Object.assign(Object.assign({},g),{from:a,to:y}));return o&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=E.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=a+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?aL(t+-e,t,n):t-(e-t)+n}(l,x,d,j=b%2==0):(l=aL(l,x,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let az=e=>1e3*e,aV=(e,t)=>1-3*t+3*e,aI=(e,t)=>3*t-6*e,aB=e=>3*e,aH=(e,t,n)=>((aV(t,n)*e+aI(t,n))*e+aB(t))*e,aU=(e,t,n)=>3*aV(t,n)*e*e+2*aI(t,n)*e+aB(t),aW={linear:ay,easeIn:ab,easeInOut:aw,easeOut:ax,circIn:aj,circInOut:aE,circOut:ak,backIn:aS,backInOut:a_,backOut:aC,anticipate:aO,bounceIn:aN,bounceInOut:e=>e<.5?.5*(1-aP(1-2*e)):.5*aP(2*e-1)+.5,bounceOut:aP},aq=e=>{if(Array.isArray(e)){iZ(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return ay;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=aH(.1*t,e,n);return a=>0===a||1===a?a:aH(function(t){let r=0,a=1;for(;10!==a&&i[a]<=t;++a)r+=.1;let o=r+(t-i[--a])/(i[a+1]-i[a])*.1,s=aU(o,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=aU(t,n,r);if(0===i)break;let a=aH(t,n,r)-e;t-=a/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){let a,o;let s=0;do(a=aH(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+.1,e,n)}(a),t,r)}(t,n,r,i)}return"string"==typeof e?(iZ(void 0!==aW[e],`Invalid easing type '${e}'`),aW[e]):e},a$=e=>Array.isArray(e)&&"number"!=typeof e[0],aK=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&ai.test(t)&&!t.startsWith("url(")),aY=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),aX=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),aG=()=>({type:"keyframes",ease:"linear",duration:.3}),aJ=e=>({type:"keyframes",duration:.8,values:e}),aQ={x:aY,y:aY,z:aY,rotate:aY,rotateX:aY,rotateY:aY,rotateZ:aY,scaleX:aX,scaleY:aX,scale:aX,opacity:aG,backgroundColor:aG,color:aG,default:aX},a0=(e,t)=>{let n;return n=r3(t)?aJ:aQ[e]||aQ.default,{to:t,...n(t)}},a1=new Set(["brightness","contrast","saturate","opacity"]);function a2(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rE)||[];if(!r)return e;let i=n.replace(r,""),a=a1.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}let a4=/([a-z-]*)\(.*?\)/g,a3=Object.assign(Object.assign({},ai),{getAnimatableNone:e=>{let t=e.match(a4);return t?t.map(a2).join(" "):e}}),a5={...rz,color:i8,backgroundColor:i8,outlineColor:i8,fill:i8,stroke:i8,borderColor:i8,borderTopColor:i8,borderRightColor:i8,borderBottomColor:i8,borderLeftColor:i8,filter:a3,WebkitFilter:a3},a6=e=>a5[e];function a8(e,t){var n;let r=a6(e);return r!==a3&&(r=ai),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let a7={current:!1};function a9(e,t){let n=performance.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(nZ.read(r),e(a-t))};return nL.read(r,!0),()=>nZ.read(r)}let oe=!1;function ot(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function on(e){return"number"==typeof e?0:a8("",e)}function or(e,t){return e[t]||e.default||e}function oi(e,t,n,r={}){return a7.current&&(r={type:!1}),t.start(i=>{var a,o,s;let l,u;let c=function(e,t,n,r,i){let a=or(r,e)||{},o=void 0!==a.from?a.from:t.get(),s=aK(e,n);"none"===o&&s&&"string"==typeof n?o=a8(e,n):ot(o)&&"string"==typeof n?o=on(n):!Array.isArray(n)&&ot(n)&&"string"==typeof o&&(n=on(o));let l=aK(e,o);return iL(l===s,`You are trying to animate ${e} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==a.type?function(){var r;let s={from:o,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:o,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,o,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n,i;r=o,o=e,n=e-r,t=(i=nB().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...a}):aF({...(r=a,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...a0(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...a}){let o={...a};return t&&(o.offset=t),a.duration&&(o.duration=az(a.duration)),a.repeatDelay&&(o.repeatDelay=az(a.repeatDelay)),e&&(o.ease=a$(e)?e.map(aq):aq(e)),"tween"===a.type&&(o.type="keyframes"),(n||i||r)&&(iL(!oe,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oe=!0,n?o.repeatType="reverse":i?o.repeatType="loop":r&&(o.repeatType="mirror"),o.repeat=i||n||r||a.repeat),"spring"!==a.type&&(o.type="keyframes"),o}(r)}),onUpdate:e=>{s.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=r6(n);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),d=null!==(s=null!==(o=(or(a=r,e)||{}).delay)&&void 0!==o?o:a.delay)&&void 0!==s?s:0,f=()=>l=c();return d?u=a9(f,az(d)):f(),()=>{u&&u(),l&&l.stop()}})}let oa=e=>/^\-?\d*\.?\d+$/.test(e),oo=e=>/^0[^.\s]+$/.test(e);function os(e,t){-1===e.indexOf(t)&&e.push(t)}function ol(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(e){return os(this.subscriptions,e),()=>ol(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class od{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ou,this.velocityUpdateSubscribers=new ou,this.renderSubscribers=new ou,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nB();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nL.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nL.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oc(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function of(e){return new od(e)}let oh=e=>t=>t.test(e),op=[rD,rA,rT,rM,rN,rP,{test:e=>"auto"===e,parse:e=>e}],om=e=>op.find(oh(e)),ov=[...op,i8,ai],og=e=>ov.find(oh(e));function oy(e,t,n){let r=e.getProps();return r4(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function ob(e){return!!(rg(e)&&e.add)}function ox(e,t,n={}){var r;let i=oy(e,t,n.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>ow(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(oj).forEach((e,r)=>{o.push(ox(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(t)}}function ow(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(o=r);let c=[],d=i&&(null===(a=e.animationState)||void 0===a?void 0:a.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...o};e.shouldReduceMotion&&rm.has(t)&&(a={...a,type:!1,delay:0});let s=oi(t,r,i,a);ob(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oy(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=r6(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,of(n))}}(e,s)})}function oj(e,t){return e.sortNodePosition(t)}let ok=[Z.Animate,Z.InView,Z.Focus,Z.Hover,Z.Tap,Z.Drag,Z.Exit],oE=[...ok].reverse(),oS=ok.length;function oC(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o_={animation:iA(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>ox(e,t,n)));else if("string"==typeof t)r=ox(e,t,n);else{let i="function"==typeof t?oy(e,t,n.custom):t;r=ow(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Z.Animate]:oC(!0),[Z.InView]:oC(),[Z.Hover]:oC(),[Z.Tap]:oC(),[Z.Drag]:oC(),[Z.Focus]:oC(),[Z.Exit]:oC()},r=!0,i=(t,n)=>{let r=oy(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(a,o){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(g)?g:[g],E=k.reduce(i,{});!1===b&&(E={});let{prevResolvedValues:S={}}=v,C={...S,...E},_=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?r3(t)&&r3(n)?!iR(t,n)||w?_(e):v.protectedKeys[e]=!0:void 0!==t?_(e):f.add(e):void 0!==t&&f.has(e)?_(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=E,v.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!x&&d.push(...k.map(e=>({animation:e,options:{type:m,...a}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=a(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),n9(t)&&(0,eo.useEffect)(()=>t.subscribe(e),[t])}),exit:iA(e=>{let{custom:t,visualElement:n}=e,[r,i]=iN(),a=(0,eo.useContext)(nq);(0,eo.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Z.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},oO=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oM=e=>oO(e)&&e.hasOwnProperty("z"),oT=(e,t)=>Math.abs(e-t);function oA(e,t){return aa(e)&&aa(t)?oT(e,t):oO(e)&&oO(t)?Math.sqrt(Math.pow(oT(e.x,t.x),2)+Math.pow(oT(e.y,t.y),2)+Math.pow(oM(e)&&oM(t)?oT(e.z,t.z):0,2)):void 0}class oP{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=oD(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=oA(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nB();this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=oN(t,this.transformPagePoint),ii(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nL.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=oD(oN(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=oN(io(e),this.transformPagePoint),{point:i}=r,{timestamp:a}=nB();this.history=[{...i,timestamp:a}];let{onSessionStart:o}=t;o&&o(e,oD(r,this.history)),this.removeListeners=iS(im(window,"pointermove",this.handlePointerMove),im(window,"pointerup",this.handlePointerUp),im(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),nZ.update(this.updatePoint)}}function oN(e,t){return t?{point:t(e.point)}:e}function oR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oD({point:e},t){return{point:e,delta:oR(e,oL(t)),offset:oR(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>az(.1)));)n--;if(!r)return{x:0,y:0};let a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,0)}}function oL(e){return e[e.length-1]}function oZ(e){return e.max-e.min}function oF(e,t=0,n=.01){return oA(e,t)({translate:0,scale:1,origin:0,originPoint:0}),oY=()=>({x:oK(),y:oK()}),oX=()=>({min:0,max:0}),oG=()=>({x:oX(),y:oX()});function oJ(e){return[e("x"),e("y")]}function oQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o0(e){return void 0===e||1===e}function o1({scale:e,scaleX:t,scaleY:n}){return!o0(e)||!o0(t)||!o0(n)}function o2(e){return o1(e)||o4(e)||e.z||e.rotate||e.rotateX||e.rotateY}function o4(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function o3(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function o5(e,t=0,n=1,r,i){e.min=o3(e.min,t,n,r,i),e.max=o3(e.max,t,n,r,i)}function o6(e,{x:t,y:n}){o5(e.x,t.translate,t.scale,t.originPoint),o5(e.y,n.translate,n.scale,n.originPoint)}function o8(e,t){e.min=e.min+t,e.max=e.max+t}function o7(e,t,[n,r,i]){let a=void 0!==t[i]?t[i]:.5,o=iq(e.min,e.max,a);o5(e,t[n],t[r],o,t.scale)}let o9=["x","scaleX","originX"],se=["y","scaleY","originY"];function st(e,t){o7(e.x,t,o9),o7(e.y,t,se)}function sn(e,t){return oQ(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let sr=new WeakMap;class si{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=oG(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new oP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(io(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:a}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ix(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),oJ(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rT.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=oZ(i);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==a||a(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Z.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(o),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),null==a||a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Z.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sa(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iq(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&n8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:oU(e.x,n,i),y:oU(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:oq(e,"left","right"),y:oq(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oJ(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!n8(t))return!1;let r=t.current;iZ(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=function(e,t,n){let r=sn(e,n),{scroll:i}=t;return i&&(o8(r.x,i.x),o8(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:oW((e=i.layout.actual).x,a.x),y:oW(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=oQ(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(oJ(o=>{var l;if(!sa(o,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[o])&&void 0!==l?l:{};a&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(o,c)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oi(e,n,0,t)}stopAnimation(){oJ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){oJ(t=>{let{drag:n}=this.getProps();if(!sa(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.actual[t];i.set(e[t]-iq(n,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!n8(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};oJ(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=oZ(e),i=oZ(t);return i>r?n=iW(t.min,t.max-r,e.min):r>i&&(n=iW(e.min,e.max-i,t.min)),iF(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),oJ(e=>{if(!sa(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];n.set(iq(r,a,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;sr.set(this.visualElement,this);let t=im(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();n8(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let a=it(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(oJ(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),null==o||o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function sa(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let so={pan:iA(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let a=(0,eo.useRef)(null),{transformPagePoint:o}=(0,eo.useContext)(n3),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,eo.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(s)}),iv(i,"pointerdown",(e||t||n||r)&&function(e){a.current=new oP(e,s,{transformPagePoint:o})}),nQ(()=>a.current&&a.current.end())}),drag:iA(function(e){let{dragControls:t,visualElement:n}=e,r=n$(()=>new si(n));(0,eo.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,eo.useEffect)(()=>r.addListeners(),[r])})};function ss(e){return"string"==typeof e&&e.startsWith("var(--")}let sl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function su(e,t,n=1){iZ(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=sl.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():ss(i)?su(i,t,n+1):i}let sc=new Set(["width","height","top","left","right","bottom","x","y"]),sd=e=>sc.has(e),sf=e=>Object.keys(e).some(sd),sh=(e,t)=>{e.set(t,!1),e.set(t)},sp=e=>e===rD||e===rA;(u=F||(F={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let sm=(e,t)=>parseFloat(e.split(", ")[t]),sv=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sm(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sm(t[1],e):0}},sg=new Set(["x","y","z"]),sy=rp.filter(e=>!sg.has(e)),sb={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sv(4,13),y:sv(5,14)},sx=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=sb[e](r,a)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{sh(t.getValue(n),s[n]),e[n]=sb[n](l,a)}),e},sw=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(sd),a=[],o=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=om(c),f=t[i];if(r3(f)){let e=f.length,t=null===f[0]?1:0;d=om(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],sh(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=sx(t,e,s);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nH&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},sj=(e,t,n,r)=>{var i,a;let o=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!ss(t))return;let n=su(t,r);n&&e.set(n)}),t){let e=t[i];if(!ss(e))continue;let a=su(e,r);a&&(t[i]=a,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=o.target,r=o.transitionEnd,i=t,a=r,sf(i)?sw(e,i,n,a):{target:i,transitionEnd:a}},sk={current:null},sE={current:!1},sS=Object.keys(ra),sC=sS.length,s_=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sO{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>nL.render(this.render,!1,!0);let{latestValues:a,renderState:o}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=o,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rt(t),this.isVariantNode=rn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==a[e]&&rg(t)&&(t.set(a[e],!1),ob(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==a[e]&&rg(n)&&n.set(a[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sE.current||function(){if(sE.current=!0,nH){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sk.current=e.matches;e.addListener(t),t()}else sk.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sk.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),nZ.update(this.notifyUpdate),nZ.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&nL.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,a){let o=[];"production"!==nC&&n&&t&&iZ(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l})}return o}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oG()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=of(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=r4(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rg(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new ou),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let sM=["initial",...ok],sT=sM.length;class sA extends sO{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let a=function(e,t,n){var r;let i={};for(let a in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t);i[a]=void 0!==e?e:null===(r=n.getValue(a))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),a&&(a=r(a))),i){!function(e,t,n){var r,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),o=a.length;if(o)for(let s=0;srf(e)?new sN(t,{enableHardwareAcceleration:!1}):new sP(t,{enableHardwareAcceleration:!0});function sD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sL={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rA.test(e))return e;e=parseFloat(e)}let n=sD(e,t.target.x),r=sD(e,t.target.y);return`${n}% ${r}%`}},sZ="_$css",sF={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),a=[];i&&(e=e.replace(sl,e=>(a.push(e),sZ)));let o=ai.parse(e);if(o.length>5)return r;let s=ai.createTransformer(e),l="number"!=typeof o[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=c;let d=iq(u,c,.5);"number"==typeof o[2+l]&&(o[2+l]/=d),"number"==typeof o[3+l]&&(o[3+l]/=d);let f=s(o);if(i){let e=0;f=f.replace(sZ,()=>{let t=a[e];return e++,t})}return f}};class sz extends eo.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rh,sV),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ro.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===i||(i?a.promote():a.relegate()||nL.postRender(()=>{var e;(null===(e=a.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sV={borderRadius:{...sL,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sL,borderTopRightRadius:sL,borderBottomLeftRadius:sL,borderBottomRightRadius:sL,boxShadow:sF},sI=["TopLeft","TopRight","BottomLeft","BottomRight"],sB=sI.length,sH=e=>"string"==typeof e?parseFloat(e):e,sU=e=>"number"==typeof e||rA.test(e);function sW(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sq=sK(0,.5,ak),s$=sK(.5,.95,ay);function sK(e,t,n){return r=>rt?1:n(iW(e,t,r))}function sY(e,t){e.min=t.min,e.max=t.max}function sX(e,t){sY(e.x,t.x),sY(e.y,t.y)}function sG(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sJ(e,t,[n,r,i],a,o){!function(e,t=0,n=1,r=.5,i,a=e,o=e){if(rT.test(t)&&(t=parseFloat(t),t=iq(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=iq(a.min,a.max,r);e===a&&(s-=t),e.min=sG(e.min,t,n,s,i),e.max=sG(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,a,o)}let sQ=["x","scaleX","originX"],s0=["y","scaleY","originY"];function s1(e,t,n,r){sJ(e.x,t,sQ,null==n?void 0:n.x,null==r?void 0:r.x),sJ(e.y,t,s0,null==n?void 0:n.y,null==r?void 0:r.y)}function s2(e){return 0===e.translate&&1===e.scale}function s4(e){return s2(e.x)&&s2(e.y)}function s3(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function s5(e){return oZ(e.x)/oZ(e.y)}class s6{constructor(){this.members=[]}add(e){os(this.members,e),e.scheduleRender()}remove(e){if(ol(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function s8(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,a=`translate3d(${r}px, ${i}px, 0) `;if(a+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(a+=`rotate(${e}deg) `),t&&(a+=`rotateX(${t}deg) `),r&&(a+=`rotateY(${r}deg) `)}let o=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(a+=`scale(${o}, ${s})`)?"none":a}let s7=(e,t)=>e.depth-t.depth;class s9{constructor(){this.children=[],this.isDirty=!1}add(e){os(this.children,e),this.isDirty=!0}remove(e){ol(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(s7),this.isDirty=!1,this.children.forEach(e)}}let le=["","X","Y","Z"];function lt({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(ll),this.nodes.forEach(lu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=a9(r,250),ro.hasAnimatedSinceResize&&(ro.hasAnimatedSinceResize=!1,this.nodes.forEach(ls))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||a)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,a,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(a=null!==(i=this.options.transition)&&void 0!==i?i:o.getDefaultTransition())&&void 0!==a?a:lm,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=o.getProps(),h=!this.targetLayout||!s3(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...or(c,"layout"),onPlay:d,onComplete:f};o.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ls(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,nZ.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(lc))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ly(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lp));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;lf(o.x,e.x,f),lf(o.y,e.y,f),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(oH(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,lh(r.x,d.x,s.x,f),lh(r.y,d.y,s.y,f)),l&&(this.animationValues=a,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=iq(0,null!==(o=n.opacity)&&void 0!==o?o:1,sq(r)),e.opacityExit=iq(null!==(s=t.opacity)&&void 0!==s?s:1,0,s$(r))):a&&(e.opacity=iq(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{ro.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rg(e)?e:of(e);return oi("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&lb(this.options.animationType,this.layout.actual,r.actual)){n=this.target||oG();let t=oZ(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=oZ(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sX(t,n),st(t,i),oV(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new s6),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(la),this.root.sharedNodes.clear()}}}function ln(e){e.updateLayout()}function lr(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?oJ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(n);n.min=t[e].min,n.max=n.min+r}):lb(r,i.layout,t)&&oJ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(t[e]);n.max=n.min+r});let a=oY();oV(a,t,i.layout);let o=oY();i.isShared?oV(o,e.applyTransform(n,!0),i.measured):oV(o,t,i.layout);let s=!s4(a),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=oG();oH(n,i.layout,e.layout);let a=oG();oH(a,t,r.actual),s3(n,a)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function li(e){e.clearSnapshot()}function la(e){e.clearMeasurements()}function lo(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ls(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ll(e){e.resolveTargetDelta()}function lu(e){e.calcProjection()}function lc(e){e.resetRotation()}function ld(e){e.removeLeadSnapshot()}function lf(e,t,n){e.translate=iq(t.translate,0,n),e.scale=iq(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lh(e,t,n,r){e.min=iq(t.min,n.min,r),e.max=iq(t.max,n.max,r)}function lp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lm={duration:.45,ease:[.4,0,.1,1]};function lv(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function lg(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ly(e){lg(e.x),lg(e.y)}function lb(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return oA(e,t)<=n}(s5(t),s5(n),.2)}let lx=lt({attachResizeListener:(e,t)=>it(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lw={current:void 0},lj=lt({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lw.current){let e=new lx(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lw.current=e}return lw.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lk={...o_,...iP,...so,measureLayout:function(e){let[t,n]=iN(),r=(0,eo.useContext)(nJ);return eo.createElement(sz,{...e,layoutGroup:r,switchLayoutGroup:(0,eo.useContext)(ru),isPresent:t,safeToRemove:n})}},lE=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:a}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?ra.projectionNodeConstructor=e[t]:ra[t].Component=e[t]}(e);let o=(0,eo.forwardRef)(function(o,s){var l;let u={...(0,eo.useContext)(n3),...o,layoutId:function({layoutId:e}){let t=(0,eo.useContext)(nJ).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(rt(e)){let{initial:t,animate:n}=e;return{initial:!1===t||n7(t)?t:void 0,animate:n7(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,eo.useContext)(n5));return(0,eo.useMemo)(()=>({initial:t,animate:n}),[rr(t),rr(n)])}(o),h=c?void 0:n$(()=>{if(ro.hasEverUpdated)return rs++}),p=i(o,c);if(!c&&nH){f.visualElement=function(e,t,n,r){let i=(0,eo.useContext)(n5).visualElement,a=(0,eo.useContext)(n6),o=(0,eo.useContext)(nq),s=(0,eo.useContext)(n3).reducedMotion,l=(0,eo.useRef)();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:o?o.id:void 0,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:s}));let u=l.current;return nU(()=>{u&&u.render()}),(0,eo.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nU(()=>()=>u&&u.notify("Unmount"),[]),u}(a,p,u,t);let r=(0,eo.useContext)(n6).strict,i=(0,eo.useContext)(ru);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||ra.projectionNodeConstructor,i))}return eo.createElement(rl,{visualElement:f.visualElement,props:u},d,eo.createElement(n5.Provider,{value:f},r(a,o,h,(l=f.visualElement,(0,eo.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):n8(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return o[rc]=a,o}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){return{...rf(e)?r9:ie,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:a},o)=>{let s=(rf(t)?function(e,t){let n=(0,eo.useMemo)(()=>{let n=rX();return rY(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rB(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rB(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,eo.useMemo)(()=>{let r=rI();return rV(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r})(n,a,o),l={...function(e,t,n){let r={};for(let i in e)(rW(i)||!0===n&&rU(i)||!t&&!rU(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,eo.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,lk,sR,lj));function lS(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,eo.useState)(!1);return{open:(0,eo.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,eo.useCallback)(e=>{n?n(e):i(e)},[n])}}let lC={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function l_(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:a,delayDuration:o=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=lS({open:i,onOpenChange:a});return(0,ea.jsxs)(ny,{open:u,delayDuration:o,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,ea.jsx)(nl,{asChild:!0,children:t}),(0,ea.jsx)(n4,{children:n&&u?(0,ea.jsx)(nb,{forceMount:!0,children:(0,ea.jsx)(nh,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,ea.jsx)(lE.div,{variants:lC,initial:"init",animate:"show",exit:"exit",className:(0,eW.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,ea.jsx)("div",{className:(0,eW.cx)("py-1 px-2","max-w-xs","overflow-hidden",nk()),children:(0,ea.jsx)(nj,{size:"12",children:n})})})})}):null})]})}let lO=(0,eW.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lM=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,ea.jsx)(l_,{content:u,align:c,side:d,children:(0,ea.jsx)("button",{ref:t,type:h,disabled:o,className:lO({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})}):(0,ea.jsx)("button",{ref:t,disabled:o,type:h,className:lO({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})});var lT=n(61020);(0,eW.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lA=(0,eW.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lP=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{...r,className:lA({className:n}),ref:t})});var lN=n(86029);let lR="Avatar",[lD,lL]=(0,eu.b)(lR),[lZ,lF]=lD(lR),lz=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=(0,eo.useState)("idle");return(0,eo.createElement)(lZ,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},(0,eo.createElement)(em.WV.span,(0,el.Z)({},r,{ref:t})))}),lV=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=lF("AvatarImage",n),s=function(e){let[t,n]=(0,eo.useState)("idle");return(0,eo.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lN.W)(e=>{i(e),o.onImageLoadingStatusChange(e)});return(0,ev.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,eo.createElement)(em.WV.img,(0,el.Z)({},a,{ref:t,src:r})):null}),lI=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=lF("AvatarFallback",n),[o,s]=(0,eo.useState)(void 0===r);return(0,eo.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&"loaded"!==a.imageLoadingStatus?(0,eo.createElement)(em.WV.span,(0,el.Z)({},i,{ref:t})):null}),lB=(0,eW.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lH=(0,eW.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lU=eo.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:a,variant:o,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("relative h-fit w-fit",c),children:(0,ea.jsxs)(lz,{...d,ref:t,className:lB({className:c,size:a,variant:o,interactive:l,inactive:u,shape:s}),children:["filter"===o&&(0,ea.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,ea.jsx)(lV,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,ea.jsx)(lI,{className:lH({size:a}),children:i})]})})}),lW=(0,eW.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lq=eo.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:a,className:o,...s}=e;return(0,ea.jsx)("div",{...s,className:lW({variant:n,size:r,interactive:i,rounded:a,className:o}),ref:t})}),l$=eo.forwardRef((e,t)=>{let{className:n,size:r,color:i,...a}=e;return(0,ea.jsx)("pre",{children:(0,ea.jsx)("code",{className:(0,eW.cx)(nx({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...a,ref:t})})}),lK=(0,eW.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lY=eo.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,ea.jsx)("code",{...i,className:lK({color:n,className:r}),ref:t})}),lX=(0,eW.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lG=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:lX({className:n}),...r})});(0,eW.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lJ=(0,eW.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lQ=eo.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...a}=e;return(0,ea.jsx)("div",{ref:t,...a,className:lJ({size:i,pad:r,className:n})})});var l0=n(72331);let l1=(0,eo.createContext)(void 0);function l2(e){let t=(0,eo.useContext)(l1);return e||t||"ltr"}let l4="ScrollArea",[l3,l5]=(0,eu.b)(l4),[l6,l8]=l3(l4),l7=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=(0,eo.useState)(null),[u,c]=(0,eo.useState)(null),[d,f]=(0,eo.useState)(null),[h,p]=(0,eo.useState)(null),[m,v]=(0,eo.useState)(null),[g,y]=(0,eo.useState)(0),[b,x]=(0,eo.useState)(0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!1),S=(0,ec.e)(t,e=>l(e)),C=l2(i);return(0,eo.createElement)(l6,{scope:n,type:r,dir:C,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:k,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:x},(0,eo.createElement)(em.WV.div,(0,el.Z)({dir:C},o,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),l9=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,a=l8("ScrollAreaViewport",n),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o,a.onViewportChange);return(0,eo.createElement)(eo.Fragment,null,(0,eo.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,eo.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ue="ScrollAreaScrollbar",ut=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l8(ue,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s="horizontal"===e.orientation;return(0,eo.useEffect)(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),"hover"===i.type?(0,eo.createElement)(un,(0,el.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,eo.createElement)(ur,(0,el.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,eo.createElement)(ui,(0,el.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,eo.createElement)(ua,(0,el.Z)({},r,{ref:t})):null}),un=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l8(ue,e.__scopeScrollArea),[a,o]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,eo.createElement)(eg.z,{present:n||a},(0,eo.createElement)(ui,(0,el.Z)({"data-state":a?"visible":"hidden"},r,{ref:t})))}),ur=(0,eo.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,a=l8(ue,e.__scopeScrollArea),o="horizontal"===e.orientation,s=uk(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,eo.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,a.scrollHideDelay,u]),(0,eo.useEffect)(()=>{let e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[a.viewport,o,u,s]),(0,eo.createElement)(eg.z,{present:r||"hidden"!==l},(0,eo.createElement)(ua,(0,el.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),ui=(0,eo.forwardRef)((e,t)=>{let n=l8(ue,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=(0,eo.useState)(!1),s="horizontal"===e.orientation,l=uk(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=l8(ue,e.__scopeScrollArea),a=(0,eo.useRef)(null),o=(0,eo.useRef)(0),[s,l]=(0,eo.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uy(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=ub(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return uw([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,o.current,s,t)}return"horizontal"===n?(0,eo.createElement)(uo,(0,el.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ux(i.viewport.scrollLeft,s,i.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,eo.createElement)(us,(0,el.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ux(i.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),uo=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=l8(ue,e.__scopeScrollArea),[o,s]=(0,eo.useState)(),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l,a.onScrollbarXChange);return(0,eo.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,eo.createElement)(uc,(0,el.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ub(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ug(o.paddingLeft),paddingEnd:ug(o.paddingRight)}})}}))}),us=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=l8(ue,e.__scopeScrollArea),[o,s]=(0,eo.useState)(),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l,a.onScrollbarYChange);return(0,eo.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,eo.createElement)(uc,(0,el.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ub(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ug(o.paddingTop),paddingEnd:ug(o.paddingBottom)}})}}))}),[ul,uu]=l3(ue),uc=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=l8(ue,n),[p,m]=(0,eo.useState)(null),v=(0,ec.e)(t,e=>m(e)),g=(0,eo.useRef)(null),y=(0,eo.useRef)(""),b=h.viewport,x=r.content-r.viewport,w=(0,lN.W)(c),j=(0,lN.W)(l),k=uk(d,10);function E(e){g.current&&u({x:e.clientX-g.current.left,y:e.clientY-g.current.top})}return(0,eo.useEffect)(()=>{let e=e=>{let t=e.target;(null==p?void 0:p.contains(t))&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),(0,eo.useEffect)(j,[r,j]),uE(p,k),uE(h.content,k),(0,eo.createElement)(ul,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lN.W)(a),onThumbPointerUp:(0,lN.W)(o),onThumbPositionChange:j,onThumbPointerDown:(0,lN.W)(s)},(0,eo.createElement)(em.WV.div,(0,el.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,eh.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(e))}),onPointerMove:(0,eh.M)(e.onPointerMove,E),onPointerUp:(0,eh.M)(e.onPointerUp,e=>{e.target.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),ud="ScrollAreaThumb",uf=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=uu(ud,e.__scopeScrollArea);return(0,eo.createElement)(eg.z,{present:n||i.hasThumb},(0,eo.createElement)(uh,(0,el.Z)({ref:t},r)))}),uh=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=l8(ud,n),o=uu(ud,n),{onThumbPositionChange:s}=o,l=(0,ec.e)(t,e=>o.onThumbChange(e)),u=(0,eo.useRef)(),c=uk(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,eo.useEffect)(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uj(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,eh.M)(e.onPointerUp,o.onThumbPointerUp)}))}),up="ScrollAreaCorner",um=(0,eo.forwardRef)((e,t)=>{let n=l8(up,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,eo.createElement)(uv,(0,el.Z)({},e,{ref:t})):null}),uv=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=l8(up,n),[a,o]=(0,eo.useState)(0),[s,l]=(0,eo.useState)(0),u=!!(a&&s);return uE(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),uE(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),o(t)}),u?(0,eo.createElement)(em.WV.div,(0,el.Z)({},r,{ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function ug(e){return e?parseInt(e,10):0}function uy(e,t){let n=e/t;return isNaN(n)?0:n}function ub(e){let t=uy(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function ux(e,t,n="ltr"){let r=ub(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return uw([0,o],[0,a-r])(s)}function uw(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let uj=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uk(e,t){let n=(0,lN.W)(e),r=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,eo.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uE(e,t){let n=(0,lN.W)(t);(0,ev.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let uS=eo.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:a,keyToResetScrollbars:o}=e;return(0,ea.jsxs)(l7,{className:(0,eW.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,ea.jsx)(l9,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:a}),(0,ea.jsx)(ut,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,ea.jsx)(uf,{className:(0,eW.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},o?"v-".concat(o):void 0),(0,ea.jsx)(ut,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,ea.jsx)(uf,{className:(0,eW.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},o?"h-".concat(o):void 0),(0,ea.jsx)(um,{className:"bg-black/70"})]})}),uC=(0,eW.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),u_={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},uO=eo.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:a,onSubmit:o,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=lS({open:i,onOpenChange:a});return(0,eo.useEffect)(()=>{v&&g(v)},[v]),(0,ea.jsxs)(l0.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,ea.jsx)(l0.xz,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:v?(0,ea.jsx)(l0.h_,{forceMount:!0,children:(0,ea.jsx)(l0.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,ea.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,ea.jsx)(l0.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,ea.jsx)(lE.div,{variants:u_,initial:"init",animate:"show",exit:"exit",className:uC(u),children:(0,ea.jsx)(uA,{title:s,description:l,contentVariants:c,onSubmit:o,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uM(e){let{className:t}=e;return(0,ea.jsx)(l0.x8,{asChild:!0,type:"button",children:(0,ea.jsx)("div",{className:(0,eW.cx)("appearance-none",t),children:(0,ea.jsx)(lM,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,ea.jsx)(lT.QN4,{})})})})}let uT=(0,eW.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[nk()],none:""}},defaultVariants:{variant:"default"}}),uA=eo.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:a,controls:o,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,eo.useState)(0),r=(0,eo.useRef)(null);return(0,eo.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,a]),[h,p]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,ea.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uT(s),children:[i&&(0,ea.jsx)(l0.Dx,{className:uP({showSeparator:h}),children:i}),(0,ea.jsx)(uS,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,ea.jsxs)("div",{ref:d,className:(0,eW.cx)("p-4",u),children:[a&&(0,ea.jsx)(l0.dk,{className:uN(),children:a}),n]})}),o&&(0,ea.jsx)(uR,{separator:h,children:o}),(0,ea.jsx)(uM,{className:l||"absolute top-3.5 right-2"})]})}),uP=(0,eW.j)(["pt-4 pb-2 px-4 w-full",nx({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uN=(0,eW.j)([nx({color:"subtle",size:"14"}),"py-2"]);function uR(e){let{children:t,separator:n=!0}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uD=n(55070),uL=n(77334);let uZ="rovingFocusGroup.onEntryFocus",uF={bubbles:!1,cancelable:!0},uz="RovingFocusGroup",[uV,uI,uB]=ef(uz),[uH,uU]=(0,eu.b)(uz,[uB]),[uW,uq]=uH(uz),u$=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(uV.Provider,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uV.Slot,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uK,(0,el.Z)({},e,{ref:t}))))),uK=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),h=l2(a),[p=null,m]=(0,ep.T)({prop:o,defaultProp:s,onChange:l}),[v,g]=(0,eo.useState)(!1),y=(0,lN.W)(u),b=uI(n),x=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uZ,y),()=>e.removeEventListener(uZ,y)},[y]),(0,eo.createElement)(uW,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,eo.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,eo.useCallback)(()=>g(!0),[])},(0,eo.createElement)(em.WV.div,(0,el.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,eh.M)(e.onMouseDown,()=>{x.current=!0}),onFocus:(0,eh.M)(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(uZ,uF);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);uG([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current))}}x.current=!1}),onBlur:(0,eh.M)(e.onBlur,()=>g(!1))})))}),uY=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...a}=e,o=(0,ey.M)(),s=uq("RovingFocusGroupItem",n),l=s.currentTabStopId===o,u=uI(n);return(0,eo.createElement)(uV.ItemSlot,{scope:n,id:o,focusable:r,active:i},(0,eo.createElement)(em.WV.span,(0,el.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{r?s.onItemFocus(o):e.preventDefault()}),onFocus:(0,eh.M)(e.onFocus,()=>s.onItemFocus(o)),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uX[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=s.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>uG(i))}})})))}),uX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uG(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uJ=n(49732),uQ=n(70506);let u0=["Enter"," "],u1=["ArrowUp","PageDown","End"],u2=["ArrowDown","PageUp","Home",...u1],u4={ltr:[...u0,"ArrowRight"],rtl:[...u0,"ArrowLeft"]},u3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},u5="Menu",[u6,u8,u7]=ef(u5),[u9,ce]=(0,eu.b)(u5,[u7,tH,uU]),ct=tH(),cn=uU(),[cr,ci]=u9(u5),[ca,co]=u9(u5),cs=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=ct(n);return(0,eo.createElement)(tq,(0,el.Z)({},i,r,{ref:t}))}),cl="MenuPortal",[cu,cc]=u9(cl,{forceMount:void 0}),cd="MenuContent",[cf,ch]=u9(cd),cp=(0,eo.forwardRef)((e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(eg.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},o.modal?(0,eo.createElement)(cm,(0,el.Z)({},i,{ref:t})):(0,eo.createElement)(cv,(0,el.Z)({},i,{ref:t})))))}),cm=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uJ.R)(e)},[]),(0,eo.createElement)(cg,(0,el.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cv=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu);return(0,eo.createElement)(cg,(0,el.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cg=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=ci(cd,n),v=co(cd,n),g=ct(n),y=cn(n),b=u8(n),[x,w]=(0,eo.useState)(null),j=(0,eo.useRef)(null),k=(0,ec.e)(t,j,m.onContentChange),E=(0,eo.useRef)(0),S=(0,eo.useRef)(""),C=(0,eo.useRef)(0),_=(0,eo.useRef)(null),O=(0,eo.useRef)("right"),M=(0,eo.useRef)(0),T=h?uQ.Z:eo.Fragment,A=h?{as:ed.g7,allowPinchZoom:!0}:void 0,P=e=>{var t,n;let r=S.current+e,i=b().filter(e=>!e.disabled),a=document.activeElement,o=null===(t=i.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==n?o:void 0}(i.map(e=>e.textValue),r,o),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};(0,eo.useEffect)(()=>()=>window.clearTimeout(E.current),[]),(0,uD.EW)();let N=(0,eo.useCallback)(e=>{var t,n,r;return O.current===(null===(t=_.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=_.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,eo.createElement)(cf,{scope:n,searchRef:S,onItemEnter:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,eo.useCallback)(e=>{var t;N(e)||(null===(t=j.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:C,onPointerGraceIntentChange:(0,eo.useCallback)(e=>{_.current=e},[])},(0,eo.createElement)(T,A,(0,eo.createElement)(uL.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,eh.M)(a,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()}),onUnmountAutoFocus:o},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,eo.createElement)(u$,(0,el.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,eo.createElement)(tJ,(0,el.Z)({role:"menu","aria-orientation":"vertical","data-state":cP(m.open),dir:v.dir},g,p,{ref:k,style:{outline:"none",...p.style},onKeyDown:(0,eh.M)(p.onKeyDown,e=>{let t=e.target.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));let i=j.current;if(e.target!==i||!u2.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);u1.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,eh.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")}),onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?"right":"left";O.current=t,M.current=e.clientX}}))})))))))}),cy=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"group"},r,{ref:t}))}),cb=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,el.Z)({},r,{ref:t}))}),cx="MenuItem",cw="menu.itemSelect",cj=(0,eo.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=(0,eo.useRef)(null),o=co(cx,e.__scopeMenu),s=ch(cx,e.__scopeMenu),l=(0,ec.e)(t,a),u=(0,eo.useRef)(!1);return(0,eo.createElement)(ck,(0,el.Z)({},i,{ref:l,disabled:n,onClick:(0,eh.M)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(cw,{bubbles:!0,cancelable:!0});e.addEventListener(cw,e=>null==r?void 0:r(e),{once:!0}),(0,em.jH)(e,t),t.defaultPrevented?u.current=!1:o.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,eh.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u0.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ck=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=ch(cx,n),s=cn(n),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l),[c,d]=(0,eo.useState)(!1),[f,h]=(0,eo.useState)("");return(0,eo.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[a.children]),(0,eo.createElement)(u6.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,eo.createElement)(uY,(0,el.Z)({asChild:!0},s,{focusable:!r}),(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(e=>o.onItemLeave(e))),onFocus:(0,eh.M)(e.onFocus,()=>d(!0)),onBlur:(0,eh.M)(e.onBlur,()=>d(!1))}))))}),[cE,cS]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eo.createElement)(c_,{scope:e.__scopeMenu,checked:n},(0,eo.createElement)(cj,(0,el.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cN(n),onSelect:(0,eh.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},u9("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cC=((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=(0,lN.W)(r);return(0,eo.createElement)(cE,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,eo.createElement)(cy,(0,el.Z)({},i,{ref:t})))},"MenuItemIndicator"),[c_,cO]=u9(cC,{checked:!1}),[cM,cT]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=cO(cC,n);return(0,eo.createElement)(eg.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,el.Z)({},i,{ref:t,"data-state":cN(a.checked)})))},u9("MenuSub")),cA="MenuSubTrigger";function cP(e){return e?"open":"closed"}function cN(e){return e?"checked":"unchecked"}function cR(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=ci(cA,e.__scopeMenu),r=co(cA,e.__scopeMenu),i=cT(cA,e.__scopeMenu),a=ch(cA,e.__scopeMenu),o=(0,eo.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=(0,eo.useCallback)(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return(0,eo.useEffect)(()=>c,[c]),(0,eo.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,eo.createElement)(cs,(0,el.Z)({asChild:!0},u),(0,eo.createElement)(ck,(0,el.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cP(n.open)},e,{ref:(0,ec.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,eh.M)(e.onPointerMove,cR(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,o="right"===t,l=i[o?"left":"right"],u=i[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,eh.M)(e.onKeyDown,t=>{let i=""!==a.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&u4[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu),s=cT("MenuSubContent",e.__scopeMenu),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(eg.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},(0,eo.createElement)(cg,(0,el.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;o.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,eh.M)(e.onEscapeKeyDown,o.onClose),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=u3[o.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cD=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=ct(t),[l,u]=(0,eo.useState)(null),c=(0,eo.useRef)(!1),d=(0,lN.W)(a),f=l2(i);return(0,eo.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,eo.createElement)(t5,s,(0,eo.createElement)(cr,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,eo.createElement)(ca,{scope:t,onClose:(0,eo.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:o},r)))},cL=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ci(cl,t);return(0,eo.createElement)(cu,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},cZ="DropdownMenu",[cF,cz]=(0,eu.b)(cZ,[ce]),cV=ce(),[cI,cB]=cF(cZ),cH=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=cB("DropdownMenuTrigger",n),o=cV(n);return(0,eo.createElement)(cs,(0,el.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":!!a.open||void 0,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,ec.F)(t,a.triggerRef),onPointerDown:(0,eh.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cU=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cB("DropdownMenuContent",n),a=cV(n),o=(0,eo.useRef)(!1);return(0,eo.createElement)(cp,(0,el.Z)({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;o.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:(0,eh.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cW=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cb,(0,el.Z)({},i,r,{ref:t}))}),cq=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cj,(0,el.Z)({},i,r,{ref:t}))}),c$=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=cV(t),u=(0,eo.useRef)(null),[c=!1,d]=(0,ep.T)({prop:i,defaultProp:a,onChange:o});return(0,eo.createElement)(cI,{scope:t,triggerId:(0,ey.M)(),triggerRef:u,contentId:(0,ey.M)(),open:c,onOpenChange:d,onOpenToggle:(0,eo.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,eo.createElement)(cD,(0,el.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cK=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cV(t);return(0,eo.createElement)(cL,(0,el.Z)({},r,n))},cY="horizontal",cX=["horizontal","vertical"],cG=(0,eo.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cY,...i}=e,a=cJ(r)?r:cY;return(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-orientation":a},n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},i,{ref:t}))});function cJ(e){return cX.includes(e)}cG.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cJ(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical -Defaulting to \`${cY}\`.`):null}};let cJ=(0,eW.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),c0=eo.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...a}=e;return(0,ea.jsx)(cG,{ref:t,className:cJ({variant:n,color:r,className:i}),...a})}),c1=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(nx({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},c2=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(c1({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},c4=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:a="14",scaleSize:o,noWrap:s,ellipsis:l}=e;return nx({font:n,color:r,weight:i,size:a,scaleSize:o,noWrap:s,ellipsis:l,className:t})},c3=e=>(0,eW.cx)(["h-px","my-2","mx-1.5",e]),c5=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)(c0,{ref:t,className:c3(n),...i})}),c6=eo.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:a,size:o="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(c1({className:n,font:r,color:i,weight:a,size:o,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),c8=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["ml-auto","pl-5",n]),...r})}),c7=(0,eW.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),c9=e=>(0,eW.cx)(nk(),(0,eW.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),de={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dt=eo.forwardRef((e,t)=>{let{trigger:n,label:r,children:i,rootProps:a,contentProps:o,className:s,open:l,onOpenChange:u}=e,{open:c,onOpenChange:d}=lS({open:l,onOpenChange:u});return(0,ea.jsxs)(c$,{open:c,onOpenChange:d,...a,children:[(0,ea.jsx)(cH,{asChild:!0,"aria-label":r,children:n}),(0,ea.jsx)(n4,{children:c?(0,ea.jsx)(cK,{forceMount:!0,children:(0,ea.jsx)(cU,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,ea.jsx)(lE.div,{variants:de,initial:"init",animate:"show",exit:"exit",className:c7(),children:(0,ea.jsx)("div",{className:c9(s),children:i})})})}):null})]})}),dn=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cq,{ref:t,className:c2({className:n}),...r})}),dr=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cW,{ref:t,className:(0,eW.cx)("px-1.5",c4({className:n})),...r})}),di=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var da=n(99605);let ds={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},dl={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},du=eo.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:a,anchorLink:o,showAnchor:s,...l}=e,u=ds[n];if(o){let e=i||("string"==typeof a?encodeURI(a.toLowerCase().replace(/ /g,"-")):"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,ea.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,ea.jsxs)(da.rU,{href:"#".concat(e),className:"relative group",children:[(0,ea.jsx)(nw,{className:"hidden group-hover:block",children:(0,ea.jsx)(lT.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,ea.jsx)(nw,{as:u,...l,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",dl[n]),children:a})]})]})}return(0,ea.jsx)("div",{className:(0,eW.cx)("flex flex-col gap-6 items-start",r),children:(0,ea.jsx)(nw,{as:u,...l,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",dl[n],r),children:a})})}),dc=(0,eW.j)(["rounded"]);function dd(e){let{className:t,...n}=e;return(0,ea.jsx)(da.Ee,{className:dc({className:t}),...n})}let[df,dh]=(0,eu.k)("Label",{id:void 0,controlRef:{current:null}}),dp=(0,eo.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,a=(0,eo.useRef)(null),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o),l=(0,ey.M)(r);return(0,eo.useEffect)(()=>{if(n){let e=document.getElementById(n);if(o.current&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),a.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,eo.createElement)(df,{id:l,controlRef:a},(0,eo.createElement)(em.WV.span,(0,el.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!a.current||t.defaultPrevented)return;let r=a.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(a.current.click(),a.current.focus())}})))}),dm=e=>{let t=dh("LabelConsumer"),{controlRef:n}=t;return(0,eo.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dv=eo.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:a,color:o="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,ea.jsx)(dp,{ref:t,...c,className:c4({font:n,size:r,scaleSize:i,color:o,weight:a,noWrap:s,ellipsis:l,className:u})})}),dg=(0,eW.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),dy=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:a,noWrap:o,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,eW.cx)(nx({scaleSize:r,size:n,font:t,color:i,weight:a,noWrap:o,ellipsis:s,underline:l}),dg({disabled:u,underline:l}),c)},db=eo.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:a,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,eo.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:dy({font:r,scaleSize:a,size:i,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),dx=eo.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:a,state:o,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,eo.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,ea.jsx)(l_,{content:c,children:(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:lO({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:lO({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),dw={src:"/_next/static/media/logo.0e2362ab.png"};function dj(e){let{size:t=30,className:n}=e;return(0,ea.jsx)(dd,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let dk="Popover",[dE,dS]=(0,eu.b)(dk,[tH]),dC=tH(),[d_,dO]=dE(dk),dM=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dO("PopoverTrigger",n),a=dC(n),o=(0,ec.e)(t,i.triggerRef),s=(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dF(i.open)},r,{ref:o,onClick:(0,eh.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,eo.createElement)(tq,(0,el.Z)({asChild:!0},a),s)}),dT="PopoverPortal",[dA,dP]=dE(dT,{forceMount:void 0}),dN="PopoverContent",dR=(0,eo.forwardRef)((e,t)=>{let n=dP(dN,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=dO(dN,e.__scopePopover);return(0,eo.createElement)(eg.z,{present:r||a.open},a.modal?(0,eo.createElement)(dD,(0,el.Z)({},i,{ref:t})):(0,eo.createElement)(dL,(0,el.Z)({},i,{ref:t})))}),dD=(0,eo.forwardRef)((e,t)=>{let n=dO(dN,e.__scopePopover),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r),a=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uQ.R)(e)},[]),(0,eo.createElement)(uJ.Z,{as:ed.g7,allowPinchZoom:!0},(0,eo.createElement)(dZ,(0,el.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,eh.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dL=(0,eo.forwardRef)((e,t)=>{let n=dO(dN,e.__scopePopover),r=(0,eo.useRef)(!1);return(0,eo.createElement)(dZ,(0,el.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let o=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(o))&&t.preventDefault()}}))}),dZ=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dO(dN,n),h=dC(n);return(0,uD.EW)(),(0,eo.createElement)(uL.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,eo.createElement)(tQ,(0,el.Z)({"data-state":dF(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dF(e){return e?"open":"closed"}let dz=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=dC(t),l=(0,eo.useRef)(null),[u,c]=(0,eo.useState)(!1),[d=!1,f]=(0,ep.T)({prop:r,defaultProp:i,onChange:a});return(0,eo.createElement)(t5,s,(0,eo.createElement)(d_,{scope:t,contentId:(0,ey.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,eo.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,eo.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,eo.useCallback)(()=>c(!1),[]),modal:o},n))},dV=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=dO(dT,t);return(0,eo.createElement)(dA,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},dI=(0,eW.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dB=(0,eW.cx)(nk(),(0,eW.j)(["py-1","px-1"])()),dH={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dU=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{open:o,onOpenChange:s}=lS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(dz,{open:o,onOpenChange:s,...i,children:[(0,ea.jsx)(dM,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:o?(0,ea.jsx)(dV,{forceMount:!0,children:(0,ea.jsx)(dR,{asChild:!0,forceMount:!0,ref:t,...a,children:(0,ea.jsx)(lE.div,{variants:dH,initial:"init",animate:"show",exit:"exit",className:dI(),children:(0,ea.jsx)(uS,{className:dB,children:r})})})}):null})]})}),dW="Progress",[dq,d$]=(0,eu.b)(dW),[dK,dY]=dq(dW),dX=(0,eo.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:a=dQ,...o}=e,s=d1(i)?i:100,l=d2(r,s)?r:null,u=d0(l)?a(l,s):void 0;return(0,eo.createElement)(dK,{scope:n,value:l,max:s},(0,eo.createElement)(em.WV.div,(0,el.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":d0(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dJ(l,s),"data-value":null!=l?l:void 0,"data-max":s},o,{ref:t})))});dX.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!d1(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),a=d1(e.max)?e.max:100;return null==r||d2(r,a)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: +Defaulting to \`${cY}\`.`):null}};let cQ=(0,eW.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),c0=eo.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...a}=e;return(0,ea.jsx)(cG,{ref:t,className:cQ({variant:n,color:r,className:i}),...a})}),c1=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(nx({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},c2=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(c1({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},c4=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:a="14",scaleSize:o,noWrap:s,ellipsis:l}=e;return nx({font:n,color:r,weight:i,size:a,scaleSize:o,noWrap:s,ellipsis:l,className:t})},c3=e=>(0,eW.cx)(["h-px","my-2","mx-1.5",e]),c5=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)(c0,{ref:t,className:c3(n),...i})}),c6=eo.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:a,size:o="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(c1({className:n,font:r,color:i,weight:a,size:o,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),c8=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["ml-auto","pl-5",n]),...r})}),c7=(0,eW.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),c9=e=>(0,eW.cx)(nk(),(0,eW.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),de={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dt=eo.forwardRef((e,t)=>{let{trigger:n,label:r,children:i,rootProps:a,contentProps:o,className:s,open:l,onOpenChange:u}=e,{open:c,onOpenChange:d}=lS({open:l,onOpenChange:u});return(0,ea.jsxs)(c$,{open:c,onOpenChange:d,...a,children:[(0,ea.jsx)(cH,{asChild:!0,"aria-label":r,children:n}),(0,ea.jsx)(n4,{children:c?(0,ea.jsx)(cK,{forceMount:!0,children:(0,ea.jsx)(cU,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,ea.jsx)(lE.div,{variants:de,initial:"init",animate:"show",exit:"exit",className:c7(),children:(0,ea.jsx)("div",{className:c9(s),children:i})})})}):null})]})}),dn=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cq,{ref:t,className:c2({className:n}),...r})}),dr=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cW,{ref:t,className:(0,eW.cx)("px-1.5",c4({className:n})),...r})}),di=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var da=n(99605);let ds={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},dl={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},du=eo.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:a,anchorLink:o,showAnchor:s,...l}=e,u=ds[n];if(o){let e=i||("string"==typeof a?encodeURI(a.toLowerCase().replace(/ /g,"-")):"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,ea.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,ea.jsxs)(da.rU,{href:"#".concat(e),className:"relative group",children:[(0,ea.jsx)(nw,{className:"hidden group-hover:block",children:(0,ea.jsx)(lT.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,ea.jsx)(nw,{as:u,...l,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",dl[n]),children:a})]})]})}return(0,ea.jsx)("div",{className:(0,eW.cx)("flex flex-col gap-6 items-start",r),children:(0,ea.jsx)(nw,{as:u,...l,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",dl[n],r),children:a})})}),dc=(0,eW.j)(["rounded"]);function dd(e){let{className:t,...n}=e;return(0,ea.jsx)(da.Ee,{className:dc({className:t}),...n})}let[df,dh]=(0,eu.k)("Label",{id:void 0,controlRef:{current:null}}),dp=(0,eo.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,a=(0,eo.useRef)(null),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o),l=(0,ey.M)(r);return(0,eo.useEffect)(()=>{if(n){let e=document.getElementById(n);if(o.current&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),a.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,eo.createElement)(df,{id:l,controlRef:a},(0,eo.createElement)(em.WV.span,(0,el.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!a.current||t.defaultPrevented)return;let r=a.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(a.current.click(),a.current.focus())}})))}),dm=e=>{let t=dh("LabelConsumer"),{controlRef:n}=t;return(0,eo.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dv=eo.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:a,color:o="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,ea.jsx)(dp,{ref:t,...c,className:c4({font:n,size:r,scaleSize:i,color:o,weight:a,noWrap:s,ellipsis:l,className:u})})}),dg=(0,eW.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),dy=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:a,noWrap:o,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,eW.cx)(nx({scaleSize:r,size:n,font:t,color:i,weight:a,noWrap:o,ellipsis:s,underline:l}),dg({disabled:u,underline:l}),c)},db=eo.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:a,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,eo.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:dy({font:r,scaleSize:a,size:i,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),dx=eo.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:a,state:o,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,eo.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,ea.jsx)(l_,{content:c,children:(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:lO({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:lO({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),dw={src:"/_next/static/media/logo.0e2362ab.png"};function dj(e){let{size:t=30,className:n}=e;return(0,ea.jsx)(dd,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let dk="Popover",[dE,dS]=(0,eu.b)(dk,[tH]),dC=tH(),[d_,dO]=dE(dk),dM=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dO("PopoverTrigger",n),a=dC(n),o=(0,ec.e)(t,i.triggerRef),s=(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dF(i.open)},r,{ref:o,onClick:(0,eh.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,eo.createElement)(tq,(0,el.Z)({asChild:!0},a),s)}),dT="PopoverPortal",[dA,dP]=dE(dT,{forceMount:void 0}),dN="PopoverContent",dR=(0,eo.forwardRef)((e,t)=>{let n=dP(dN,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=dO(dN,e.__scopePopover);return(0,eo.createElement)(eg.z,{present:r||a.open},a.modal?(0,eo.createElement)(dD,(0,el.Z)({},i,{ref:t})):(0,eo.createElement)(dL,(0,el.Z)({},i,{ref:t})))}),dD=(0,eo.forwardRef)((e,t)=>{let n=dO(dN,e.__scopePopover),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r),a=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uJ.R)(e)},[]),(0,eo.createElement)(uQ.Z,{as:ed.g7,allowPinchZoom:!0},(0,eo.createElement)(dZ,(0,el.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,eh.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dL=(0,eo.forwardRef)((e,t)=>{let n=dO(dN,e.__scopePopover),r=(0,eo.useRef)(!1);return(0,eo.createElement)(dZ,(0,el.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let o=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(o))&&t.preventDefault()}}))}),dZ=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dO(dN,n),h=dC(n);return(0,uD.EW)(),(0,eo.createElement)(uL.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,eo.createElement)(tJ,(0,el.Z)({"data-state":dF(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dF(e){return e?"open":"closed"}let dz=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=dC(t),l=(0,eo.useRef)(null),[u,c]=(0,eo.useState)(!1),[d=!1,f]=(0,ep.T)({prop:r,defaultProp:i,onChange:a});return(0,eo.createElement)(t5,s,(0,eo.createElement)(d_,{scope:t,contentId:(0,ey.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,eo.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,eo.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,eo.useCallback)(()=>c(!1),[]),modal:o},n))},dV=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=dO(dT,t);return(0,eo.createElement)(dA,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},dI=(0,eW.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dB=(0,eW.cx)(nk(),(0,eW.j)(["py-1","px-1"])()),dH={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dU=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{open:o,onOpenChange:s}=lS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(dz,{open:o,onOpenChange:s,...i,children:[(0,ea.jsx)(dM,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:o?(0,ea.jsx)(dV,{forceMount:!0,children:(0,ea.jsx)(dR,{asChild:!0,forceMount:!0,ref:t,...a,children:(0,ea.jsx)(lE.div,{variants:dH,initial:"init",animate:"show",exit:"exit",className:dI(),children:(0,ea.jsx)(uS,{className:dB,children:r})})})}):null})]})}),dW="Progress",[dq,d$]=(0,eu.b)(dW),[dK,dY]=dq(dW),dX=(0,eo.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:a=dJ,...o}=e,s=d1(i)?i:100,l=d2(r,s)?r:null,u=d0(l)?a(l,s):void 0;return(0,eo.createElement)(dK,{scope:n,value:l,max:s},(0,eo.createElement)(em.WV.div,(0,el.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":d0(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dQ(l,s),"data-value":null!=l?l:void 0,"data-max":s},o,{ref:t})))});dX.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!d1(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),a=d1(e.max)?e.max:100;return null==r||d2(r,a)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`)}};let dG=(0,eo.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,a=dY("ProgressIndicator",r);return(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":dJ(a.value,a.max),"data-value":null!==(n=a.value)&&void 0!==n?n:void 0,"data-max":a.max},i,{ref:t}))});function dQ(e,t){return`${Math.round(e/t*100)}%`}function dJ(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function d0(e){return"number"==typeof e}function d1(e){return d0(e)&&!isNaN(e)&&e>0}function d2(e,t){return d0(e)&&!isNaN(e)&&e<=t&&e>=0}let d4=(0,eW.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),d3=eo.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:a,max:o=100,...s}=e,l=null!=a?Math.round(a/o*100):null;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,ea.jsx)(dX,{...s,ref:t,value:a,max:o,className:d4({variant:r,className:i}),children:(0,ea.jsx)(dG,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,ea.jsx)(nw,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function d5(e){let t=(0,eo.useRef)({value:e,previous:e});return(0,eo.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let d6="Radio",[d8,d7]=(0,eu.b)(d6),[d9,fe]=d8(d6),ft=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:a=!1,required:o,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,eo.useState)(null),h=(0,ec.e)(t,e=>f(e)),p=dm(d),m=(0,eo.useRef)(!1),v=!d||!!d.closest("form");return(0,eo.createElement)(d9,{scope:n,checked:a,disabled:s},(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",role:"radio","aria-checked":a,"aria-labelledby":r||p,"data-state":fi(a),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,eh.M)(e.onClick,e=>{a||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,eo.createElement)(fr,{control:d,bubbles:!m.current,name:i,value:l,checked:a,required:o,disabled:s,style:{transform:"translateX(-100%)"}}))}),fn=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=fe("RadioIndicator",n);return(0,eo.createElement)(eg.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,el.Z)({"data-state":fi(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),fr=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),s=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,el.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fi(e){return e?"checked":"unchecked"}let fa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fo="RadioGroup",[fs,fl]=(0,eu.b)(fo,[uU,d7]),fu=uU(),fc=d7(),[fd,ff]=fs(fo),fh=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:a,value:o,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=dm(),p=fu(n),m=l2(u),[v,g]=(0,ep.T)({prop:o,defaultProp:a,onChange:d});return(0,eo.createElement)(fd,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,eo.createElement)(u$,(0,el.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fp=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=ff("RadioGroupItem",n),o=fu(n),s=fc(n),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l),c=a.value===i.value,d=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{fa.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,eo.createElement)(uY,(0,el.Z)({asChild:!0},o,{focusable:!r,active:c}),(0,eo.createElement)(ft,(0,el.Z)({disabled:r,required:a.required,checked:c},s,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:(0,eh.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,eh.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),fm=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fc(n);return(0,eo.createElement)(fn,(0,el.Z)({},i,r,{ref:t}))}),fv=(0,eW.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fg=(0,eW.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fy=eo.forwardRef((e,t)=>{let{size:n,className:r,children:i,...a}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(fp,{...a,className:fg({size:n,className:r}),ref:t,children:(0,ea.jsx)(fm,{className:fv({size:n})})}),(0,ea.jsx)(nw,{size:"14",className:"relative top-px flex items-center",color:a.disabled?"verySubtle":"subtle",children:i})]})}),fb=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fh,{...r,className:(0,eW.cx)("flex gap-2",n),ref:t})}),fx="Tabs",[fw,fj]=(0,eu.b)(fx,[uU]),fk=uU(),[fE,fS]=fw(fx),fC=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=l2(s),[d,f]=(0,ep.T)({prop:r,onChange:i,defaultProp:a});return(0,eo.createElement)(fE,{scope:n,baseId:(0,ey.M)(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:l},(0,eo.createElement)(em.WV.div,(0,el.Z)({dir:c,"data-orientation":o},u,{ref:t})))}),f_=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=fS("TabsList",n),o=fk(n);return(0,eo.createElement)(u$,(0,el.Z)({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),fO=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=fS("TabsTrigger",n),s=fk(n),l=fT(o.baseId,r),u=fA(o.baseId,r),c=r===o.value;return(0,eo.createElement)(uY,(0,el.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:(0,eh.M)(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(r)})})))}),fM=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=fS("TabsContent",n),l=fT(s.baseId,r),u=fA(s.baseId,r),c=r===s.value,d=(0,eo.useRef)(c);return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eo.createElement)(eg.z,{present:i||c},({present:n})=>(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a))});function fT(e,t){return`${e}-trigger-${t}`}function fA(e,t){return`${e}-content-${t}`}let fP=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fC,{ref:t,className:(0,eW.cx)("flex flex-col",n),...r})}),fN=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(f_,{ref:t,className:(0,eW.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fR=eo.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:a,...o}=e;return(0,ea.jsx)(fO,{ref:t,type:"button",className:(0,eW.cx)("px-10 h-12","flex-1 flex items-center justify-center","outline-none","select-none cursor-pointer","border-b-3","text-gray-1000 dark:text-graydark-1000","hover:text-gray-1100 hover:dark:text-white","border-transparent","data-[state=active]:text-accent-1100 data-[state=active]:dark:text-accentdark-1100","data-[state=active]:border-green-600 data-[state=active]:dark:border-green-500",nx({font:n,size:r,weight:i,ellipsis:!0}),a),...o})}),fD=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fM,{ref:t,className:(0,eW.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,eW.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nx(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fL=(0,eW.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fZ=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l,...u}=e;return(0,ea.jsx)("input",{ref:t,className:fL({variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l}),...u})});function fF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function fz(){}function fV(e){return!!(e||"").match(/\d/)}function fI(e){return null==e}function fB(e){return fI(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function fH(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fU(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function fW(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function fq(e,t){return Array(t+1).join(e)}function f$(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(!(a=Number(a)))return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+fq("0",Math.abs(o))+i:o>=s?i+=fq("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function fK(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=fU(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=(o.length<=t?"0."+o:l.toFixed(t)).split(".");return(s?"-":"")+a.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])+(r?".":"")+fW(u[1]||"",t,n)}function fY(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(c=z||(z={})).event="event",c.props="prop";var fX=(d=function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}},h=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return f&&e.length===f.length&&e.every(function(e,t){return e===f[t]})?h:(f=e,h=d.apply(void 0,e))});function fG(e){return Math.max(e.selectionStart,e.selectionEnd)}function fQ(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function fJ(e,t,n,r){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return -1===t&&(t=i),t}function f0(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:r-gC.length-u.length||ST?M=p:p>e.length-u.length&&(M=p),e=e.substring(0,M),void 0===(r=j?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),a=/(-)/.test(r),o=i.test(r),r=r.replace(/-/g,""),a&&!o&&s&&(r="-"+r);var A=(e=((e=r).match(RegExp("(^-)|[0-9]|"+fH(g),"g"))||[]).join("")).indexOf(g),P=fU(e=e.replace(RegExp(fH(g),"g"),function(e,t){return t===A?".":""}),s),N=P.beforeDecimal,R=P.afterDecimal,D=P.addNegation;return f.end-f.start=l.start&&i{h(navigator.language);let e=()=>{h(navigator.language)};return h(navigator.language),window.addEventListener("languagechange",e),()=>{window.removeEventListener("languagechange",e)}},[]);let p=(0,eo.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:v}=(0,eo.useMemo)(()=>(function(e,t){if("none"===t)return{groupingSeparator:"",groupingStyle:"none"};let n=new Intl.NumberFormat(e).format(123456789),r=n.replace(/[0-9]/g,"")[0],i=n.split(r).map(e=>e.length);return t?{groupingSeparator:r,groupingStyle:t}:{groupingSeparator:r,groupingStyle:i.every(e=>3===e)?"thousand":i.length>=2&&i.slice(1).every(e=>2===e)&&3===i[0]?"lakh":i.every(e=>4===e)?"wan":"thousand"}})(f,o),[f,o]);return(0,ea.jsxs)("div",{className:"relative",children:[(0,ea.jsx)(f8,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:v,thousandSeparator:m,className:(0,eW.cx)(fL({variant:n,size:r,state:i,focus:s,noSpin:a,cursor:l,className:u}),t?"pr-9":"")}),t&&(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,ea.jsx)(nw,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var f9=n(6391),he=n.n(f9);function ht(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function hn(e){let{value:t,placeholder:n=new(he())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:a,onChange:o,size:s="small",units:l,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,eo.useMemo)(()=>new(he())(t),[t]),[m,v]=(0,eo.useState)(""),g=(0,eo.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(he())(e):void 0)},[o]),y=(0,eo.useCallback)(e=>{v(e),g(e)},[v,g]);return(0,eo.useEffect)(()=>{p.isEqualTo(m)||v(ht(p,r))},[p]),(0,ea.jsx)(f7,{...h,thousandsGroupStyle:a?"none":void 0,"data-testid":"numberfield",size:s,placeholder:n.isNaN()?"":ht(n,r),units:l,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var hr=n(10363),hi=n(82494);let ha=new(he())(0);function ho(e){let{sc:t,placeholder:n=new(he())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:a,size:o="medium",units:s="SC",showFiat:l=!0,error:u,changed:c,prefix:d,onBlur:f,onFocus:h,name:p,...m}=e,v=(0,eo.useMemo)(()=>new(he())(void 0===t?NaN:t),[t]),{settings:g}=(0,hr.Hv)(),y=(0,hi.BW)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,eo.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(he())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||ha):ha},[y.data,g]),[x,w]=(0,eo.useState)(),[j,k]=(0,eo.useState)(""),[E,S]=(0,eo.useState)(""),C=(0,eo.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(he())(e):void 0)},[a]),_=(0,eo.useCallback)(e=>{S(ht(e,r))},[S,r]),O=(0,eo.useCallback)(e=>{let t=ht(e,i);return k(t),C(t),t},[k,i,C]),M=(0,eo.useCallback)(e=>{k(e),C(e)},[k,C]),T=(0,eo.useCallback)(e=>{_(new(he())(e).times(b))},[_,b]),A=(0,eo.useCallback)(e=>{O(new(he())(e).dividedBy(b))},[O,b]),[P,N]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{if(!v.isEqualTo(j)){let e=ht(v,i);k(e),"fiat"!==x&&T(e)}P||N(!0)},[v]),(0,eo.useEffect)(()=>{P&&T(j)},[b]),(0,eo.useEffect)(()=>{"sc"===x&&T(j)},[j]),(0,eo.useEffect)(()=>{"fiat"===x&&A(E)},[E]),(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",u?"border-red-500 dark:border-red-400":c?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ea.jsx)(f7,{...m,name:p,"data-testid":"scInput",size:o,variant:"ghost",focus:"none",placeholder:ht(n,i),units:s,value:"NaN"!==j?j:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{M(e.value||"")},onBlur:e=>{w(void 0),f&&f(e)},onFocus:e=>{w("sc"),h&&h(e)}}),l&&g.siaCentral&&(0,ea.jsx)(f7,{...m,"data-testid":"fiatInput",name:"".concat(p,"-fiat"),size:o,variant:"ghost",focus:"none",value:"NaN"!==E?E:"",units:g.currency.label,decimalScale:i,allowNegative:!1,onValueChange:e=>{S(e.value||"")},placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(r):"0.42"),prefix:d||g.currency.prefix,onFocus:e=>{w("fiat"),h&&h(e)},onBlur:e=>{w(void 0),f&&f(e)}})]})}function hs(e){let{children:t}=e;return(0,ea.jsx)(l_,{content:t,children:(0,ea.jsx)("div",{className:"relative items-center inline mx-1",children:(0,ea.jsx)(nw,{color:"subtle",children:(0,ea.jsx)(lT.RdX,{className:"scale-75"})})})})}function hl(e){let{values:t,options:n,onChange:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,ea.jsx)(lM,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function hu(e){let{options:t,onClick:n,onRemove:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,ea.jsx)(lM,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,ea.jsx)(lT.PcV,{})})]},e.value))})}let hc=(0,eW.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),hd=eo.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:a,...o}=e;return(0,ea.jsxs)("div",{className:hc({size:n,state:r,className:a}),children:[i,(0,ea.jsx)("select",{ref:t,...o,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,ea.jsx)(lT.Cp0,{className:"pointer-events-none scale-75"})]})}),hf=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("option",{ref:t,...r,className:(0,eW.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),hh=(0,eW.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hp(e){let{className:t}=e;return(0,ea.jsx)("div",{className:hh({className:t})})}let hm=(0,eW.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),hv=eo.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:hm({size:n,className:r}),...i})}),hg="Switch",[hy,hb]=(0,eu.b)(hg),[hx,hw]=hy(hg),hj=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:a,defaultChecked:o,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,eo.useState)(null),p=(0,ec.e)(t,e=>h(e)),m=dm(f),v=(0,eo.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,ep.T)({prop:a,defaultProp:o,onChange:c});return(0,eo.createElement)(hx,{scope:n,checked:y,disabled:l},(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hS(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,eh.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,eo.createElement)(hE,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hk=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hw("SwitchThumb",n);return(0,eo.createElement)(em.WV.span,(0,el.Z)({"data-state":hS(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hE=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),s=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,el.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hS(e){return e?"checked":"unchecked"}let hC=(0,eW.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),h_=(0,eW.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hO=(0,eo.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:a,...o}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(hj,{className:h_({size:n,state:r,className:i}),...o,ref:t,children:(0,ea.jsx)(hk,{className:hC({size:n})})}),a&&(0,ea.jsx)(nw,{color:o.disabled?"subtle":"contrast",children:a})]})}),hM=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(hP);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(hT,(0,el.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(hT,(0,el.Z)({},r,{ref:t}),n)});hM.displayName="Slot";let hT=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,ec.F)(t,n.ref)}):eo.Children.count(n)>1?eo.Children.only(null):null});hT.displayName="SlotClone";let hA=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function hP(e){return(0,eo.isValidElement)(e)&&e.type===hA}let hN=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?hM:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,el.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hR=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(hN.svg,(0,el.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hD="Popper",[hL,hZ]=(0,eu.b)(hD),[hF,hz]=hL(hD),hV=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=hz("PopperAnchor",n),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(hN.div,(0,el.Z)({},i,{ref:s}))}),hI="PopperContent",[hB,hH]=hL(hI),[hU,hW]=hL(hI,{hasParent:!1,positionUpdateFns:new Set}),hq=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:j,...k}=e,E=hz(hI,d),[S,C]=(0,eo.useState)(null),_=(0,ec.e)(t,e=>C(e)),[O,M]=(0,eo.useState)(null),T=tV(O),A=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,P=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(g)?g:[g],D=R.length>0,L={padding:N,boundary:R.filter(hY),altBoundary:D},{reference:Z,floating:F,strategy:z,x:V,y:I,placement:B,middlewareData:H,update:U}=tZ({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tN,middleware:[hX(),ti({mainAxis:h+P,alignmentAxis:m}),w?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?ts():void 0,...L}):void 0,O?tF({element:O,padding:v}):void 0,w?te({...L}):void 0,{name:"size",options:c={...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:a,elements:o}=e,{apply:s,...l}=c,u=await e1(e,l),d=e$(r),f=eK(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=e4(u.left,0),p=e4(u.right,0),m=e4(u.top,0),v=e4(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:e4(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:e4(u.left,u.right)):u[n])},y=await a.getDimensions(o.floating);null==s||s({...e,...g});let b=await a.getDimensions(o.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hG({arrowWidth:A,arrowHeight:P}),x?tr({strategy:"referenceHidden"}):void 0].filter(hK)});(0,ev.b)(()=>{Z(E.anchor)},[Z,E.anchor]);let W=null!==V&&null!==I,[q,$]=hQ(B),K=(0,lN.W)(j);(0,ev.b)(()=>{W&&(null==K||K())},[W,K]);let Y=null===(i=H.arrow)||void 0===i?void 0:i.x,X=null===(a=H.arrow)||void 0===a?void 0:a.y,G=(null===(o=H.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Q,J]=(0,eo.useState)();(0,ev.b)(()=>{S&&J(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:ee,positionUpdateFns:et}=hW(hI,d),en=!ee;(0,eo.useLayoutEffect)(()=>{if(!en)return et.add(U),()=>{et.delete(U)}},[en,et,U]),(0,ev.b)(()=>{en&&W&&Array.from(et).reverse().forEach(e=>requestAnimationFrame(e))},[en,W,et]);let er={"data-side":q,"data-align":$,...k,ref:_,style:{...k.style,animation:W?void 0:"none",opacity:null!==(s=H.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:W?`translate3d(${Math.round(V)}px, ${Math.round(I)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=H.transformOrigin)||void 0===l?void 0:l.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,eo.createElement)(hB,{scope:d,placedSide:q,onArrowChange:M,arrowX:Y,arrowY:X,shouldHideArrow:G},en?(0,eo.createElement)(hU,{scope:d,hasParent:!0,positionUpdateFns:et},(0,eo.createElement)(hN.div,er)):(0,eo.createElement)(hN.div,er)))}),h$={top:"bottom",right:"left",bottom:"top",left:"right"};function hK(e){return void 0!==e}function hY(e){return null!==e}let hX=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hG=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hQ(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hQ(e){let[t,n="center"]=e.split("-");return[t,n]}let hJ=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(hF,{scope:t,anchor:r,onAnchorChange:i},n)},h0=(0,eo.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?tD.createPortal((0,eo.createElement)(hN.div,(0,el.Z)({},i,{ref:t})),r):null}),h1="dismissableLayer.update",h2=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h4=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,eo.useContext)(h2),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),v=(0,ec.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lN.W)(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){h5("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lN.W)(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h5("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lN.W)(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),h3(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h3())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(h1,e),()=>document.removeEventListener(h1,e)},[]),(0,eo.createElement)(hN.div,(0,el.Z)({},c,{ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,eh.M)(e.onFocusCapture,E.onFocusCapture),onBlurCapture:(0,eh.M)(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,k.onPointerDownCapture)}))});function h3(){let e=new CustomEvent(h1);document.dispatchEvent(e)}function h5(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tD.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let h6="HoverCard",[h8,h7]=(0,eu.b)(h6,[hZ]),h9=hZ(),[pe,pt]=h8(h6),pn=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=pt("HoverCardTrigger",n),a=h9(n);return(0,eo.createElement)(hV,(0,el.Z)({asChild:!0},a),(0,eo.createElement)(hN.a,(0,el.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,pu(i.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pu(i.onClose)),onFocus:(0,eh.M)(e.onFocus,i.onOpen),onBlur:(0,eh.M)(e.onBlur,i.onClose),onTouchStart:(0,eh.M)(e.onTouchStart,e=>e.preventDefault())})))}),pr="HoverCardPortal",[pi,pa]=h8(pr,{forceMount:void 0}),po="HoverCardContent",ps=(0,eo.forwardRef)((e,t)=>{let n=pa(po,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=pt(po,e.__scopeHoverCard);return(0,eo.createElement)(eg.z,{present:r||a.open},(0,eo.createElement)(pl,(0,el.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:(0,eh.M)(e.onPointerEnter,pu(a.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pu(a.onClose)),ref:t})))}),pl=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,...l}=e,u=pt(po,n),c=h9(n),d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),[h,p]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,eo.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,eo.useEffect)(()=>{d.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(d.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,eo.createElement)(h4,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:(0,eh.M)(o,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,eo.createElement)(hq,(0,el.Z)({},c,l,{onPointerDown:(0,eh.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function pu(e){return t=>"touch"===t.pointerType?void 0:e()}let pc=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:s=300}=e,l=h9(t),u=(0,eo.useRef)(0),c=(0,eo.useRef)(0),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(!1),[h=!1,p]=(0,ep.T)({prop:r,defaultProp:i,onChange:a}),m=(0,eo.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),o)},[o,p]),v=(0,eo.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,eo.useCallback)(()=>p(!1),[p]);return(0,eo.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,eo.createElement)(pe,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,eo.createElement)(hJ,l,n))},pd=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=pt(pr,t);return(0,eo.createElement)(pi,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(h0,{asChild:!0,container:i},r)))},pf=(0,eW.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),ph=(0,eW.cx)(nk(),"max-w-sm","py-0.5","px-1"),pp={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pm=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{className:o,...s}=a||{},{open:l,onOpenChange:u}=lS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(pc,{open:l,onOpenChange:u,...i,children:[n&&(0,ea.jsx)(pn,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:l?(0,ea.jsx)(pd,{forceMount:!0,children:(0,ea.jsx)(ps,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,ea.jsx)(lE.div,{variants:pp,initial:"init",animate:"show",exit:"exit",className:pf(),children:(0,ea.jsx)("div",{className:(0,eW.cx)(ph,o),children:r})})})}):null})]})});function pv(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,eo.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,eo.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,eo.createContext)(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=(null==n?void 0:n[e][a])||i,l=(0,eo.useMemo)(()=>o,Object.values(o));return(0,eo.createElement)(s.Provider,{value:l},r)}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=(null==o?void 0:o[e][a])||i,l=(0,eo.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,eo.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function py(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pb(...e){return(0,eo.useCallback)(py(...e),e)}let px=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(pk);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(pw,(0,el.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(pw,(0,el.Z)({},r,{ref:t}),n)});px.displayName="Slot";let pw=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?py(t,n.ref):n.ref}):eo.Children.count(n)>1?eo.Children.only(null):null});pw.displayName="SlotClone";let pj=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function pk(e){return(0,eo.isValidElement)(e)&&e.type===pj}let pE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?px:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,el.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pS(e){let t=(0,eo.useRef)(e);return(0,eo.useEffect)(()=>{t.current=e}),(0,eo.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pC=(null==globalThis?void 0:globalThis.document)?eo.useLayoutEffect:()=>{},p_=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,eo.useState)(),a=(0,eo.useRef)({}),o=(0,eo.useRef)(e),s=(0,eo.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,eo.useEffect)(()=>{let e=pO(a.current);s.current="mounted"===l?e:"none"},[l]),pC(()=>{let t=a.current,n=o.current;if(n!==e){let r=s.current,i=pO(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pC(()=>{if(r){let e=e=>{let t=pO(a.current).includes(e.animationName);e.target===r&&t&&(0,tD.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=pO(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,eo.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):eo.Children.only(n),a=pb(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,eo.cloneElement)(i,{ref:a}):null};function pO(e){return(null==e?void 0:e.animationName)||"none"}p_.displayName="Presence";let pM=es["useId".toString()]||(()=>void 0),pT=0;function pA(e){let t=e+"CollectionProvider",[n,r]=pv(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",s=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=pb(t,a(o,n).collectionRef);return eo.createElement(px,{ref:i},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:s,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),s=pb(t,o),c=a(l,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(px,{[u]:"",ref:s},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}let pP="dismissableLayer.update",pN=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pR=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,eo.useContext)(pN),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),v=pb(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=pS(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){pL("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=pS(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pL("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pS(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pD(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,r,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pD())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pP,e),()=>document.removeEventListener(pP,e)},[]),(0,eo.createElement)(pE.div,(0,el.Z)({},c,{ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:pg(e.onFocusCapture,E.onFocusCapture),onBlurCapture:pg(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:pg(e.onPointerDownCapture,k.onPointerDownCapture)}))});function pD(){let e=new CustomEvent(pP);document.dispatchEvent(e)}function pL(e,t,n,{discrete:r}){var i,a;let o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(i=o,a=s,i&&(0,tD.flushSync)(()=>i.dispatchEvent(a))):o.dispatchEvent(s)}(e,t)=>(0,eo.createElement)(pE.span,(0,el.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}}));let pZ="NavigationMenu",[pF,pz,pV]=pA(pZ),[pI,pB,pH]=pA(pZ),[pU,pW]=pv(pZ,[pV,pH]),[pq,p$]=pU(pZ),[pK,pY]=pU(pZ),[pX,pG]=pU("NavigationMenuItem"),pQ=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=p$("NavigationMenuIndicator",n),a=pz(n),[o,s]=(0,eo.useState)(null),[l,u]=(0,eo.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,eo.useEffect)(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&s(t)},[a,i.value]);let f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return p3(o,f),p3(i.indicatorTrack,f),l?(0,eo.createElement)(pE.div,(0,el.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pJ=((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=p$(pQ,e.__scopeNavigationMenu);return pC(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pC(()=>()=>r(e.value),[e.value,r]),null},"navigationMenu.rootContentDismiss"),p0=(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=p$(pQ,n),d=(0,eo.useRef)(null),f=pb(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=pz(n),v=(0,eo.useRef)(null),{onItemDismiss:g}=c;(0,eo.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pJ,t),()=>e.removeEventListener(pJ,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,eo.useMemo)(()=>{let e=m().map(e=>e.value);"rtl"===c.dir&&e.reverse();let t=e.indexOf(c.value),n=e.indexOf(c.previousValue),i=r===c.value,a=n===e.indexOf(r);if(!i&&!a)return v.current;let o=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return v.current=o,o},[c.previousValue,c.value,c.dir,m,r]);return(0,eo.createElement)(p1,{asChild:!0},(0,eo.createElement)(pR,(0,el.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pJ,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pg(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:pg(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pg(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=function(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);if(p4(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=a.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:pg(e.onEscapeKeyDown,e=>{o.current=!0})})))}),p1=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=p$("NavigationMenuViewport",n),o=pb(t,a.onViewportChange),s=pY(pQ,e.__scopeNavigationMenu),[l,u]=(0,eo.useState)(null),[c,d]=(0,eo.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!a.value,m=p?a.value:a.previousValue;return p3(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,eo.createElement)(pE.div,(0,el.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":a.orientation},i,{ref:o,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:pg(e.onPointerEnter,a.onContentEnter),onPointerLeave:pg(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(a.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,eo.createElement)(p_,{key:e,present:n||i},(0,eo.createElement)(p0,(0,el.Z)({},r,{ref:py(t,e=>{i&&e&&d(e)})})))}))},(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=p$("FocusGroup",n);return(0,eo.createElement)(pI.Provider,{scope:n},(0,eo.createElement)(pI.Slot,{scope:n},(0,eo.createElement)(pE.div,(0,el.Z)({dir:i.dir},r,{ref:t}))))})),p2=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pB(n),a=p$("FocusGroupItem",n);return(0,eo.createElement)(pI.ItemSlot,{scope:n},(0,eo.createElement)(pE.button,(0,el.Z)({},r,{ref:t,onKeyDown:pg(e.onKeyDown,e=>{if(["Home","End",...p2].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),p2.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>p4(t)),e.preventDefault()}})})))};function p4(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function p3(e,t){let n=pS(t);pC(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var p5=n(38617);let p6=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fp,{...r,ref:t,className:(0,eW.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function p8(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:a}=(0,p5.F)();return(0,ea.jsxs)(fh,{value:i,tabIndex:r,className:(0,eW.cx)("flex gap-4",t),onValueChange:e=>a(e),children:[(0,ea.jsx)(p6,{value:"system",children:(0,ea.jsx)(l_,{className:n,sideOffset:16,content:"System",children:(0,ea.jsx)(lT.$Iz,{})})}),(0,ea.jsx)(p6,{value:"light",children:(0,ea.jsx)(l_,{className:n,sideOffset:16,content:"Light",children:(0,ea.jsx)(lT.JaG,{})})}),(0,ea.jsx)(p6,{value:"dark",children:(0,ea.jsx)(l_,{className:n,sideOffset:16,content:"Dark",children:(0,ea.jsx)(lT.osk,{})})})]})}let{useDropzone:p7}=n(74424);function p9(e){let{title:t,children:n,rootClassName:r,className:i,message:a,showBorderInactive:o,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=p7(s);return(0,ea.jsxs)("div",{...l(),className:(0,eW.cx)("outline-none",r),children:[(0,ea.jsxs)("div",{className:(0,eW.cx)(c?"z-20":"","absolute","top-0","left-0","w-full","h-full","pointer-events-none","rounded","p-4","flex justify-center items-center text-center","border-2 border-dashed",o?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",c?["border-green-500 dark:border-green-600 bg-green-100/20 dark:bg-green-100/20","hover:border-green-500 hover:dark:border-green-600 hover:bg-green-100/20 hover:dark:bg-green-100/20"]:"",i),children:[(0,ea.jsx)("input",{...u()}),a&&(0,ea.jsx)(nj,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var me=n(14582),mt=n(63739),mn=n(13980),mr=n.n(mn),mi=n(72779),ma=n.n(mi),mo=n(47440),ms=n(59309),ml=n(19067),mu=n(71220),mc=n(28142);function md(e){return"bandwidth"in e?e.bandwidth():0}var mf=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mh(){return(mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mf),g=null!=m?m:(0,mu.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+md(r)/2,b=g.map(function(e,t){var n,a=(null!=(n=(0,mc.Z)(r(e)))?n:0)+y;return{index:t,from:new ml.Z({x:0,y:a}),to:new ml.Z({x:i,y:a})}});return eo.createElement(ms.Z,{className:ma()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return eo.createElement(mo.default,mh({key:"row-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:h},v))}))}mp.propTypes={tickValues:mr().array,width:mr().number.isRequired};var mm=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mv(){return(mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mm),g=null!=p?p:(0,mu.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+md(r)/2,b=g.map(function(e,t){var n,a=(null!=(n=(0,mc.Z)(r(e)))?n:0)+y;return{index:t,from:new ml.Z({x:a,y:0}),to:new ml.Z({x:a,y:i})}});return eo.createElement(ms.Z,{className:ma()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return eo.createElement(mo.default,mv({key:"column-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:f},v))}))}mg.propTypes={tickValues:mr().array,height:mr().number.isRequired};var my=n(64183),mb=n(8597);function mx(e){var t=e.id,n=e.width,r=e.height,i=e.children;return eo.createElement("defs",null,eo.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mx.propTypes={id:mr().string.isRequired,width:mr().number.isRequired,height:mr().number.isRequired,children:mr().node.isRequired};var mw={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mj(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,a=e.strokeWidth,o=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return eo.createElement(mx,{id:t,width:n,height:r},!!h&&eo.createElement("rect",{className:ma()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return eo.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:ma()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mw.horizontal:return"M 0,"+t/2+" l "+t+",0";case mw.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case mw.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case mw.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:a,strokeDasharray:o,strokeLinecap:l,shapeRendering:c})}))}mj.propTypes={id:mr().string.isRequired,width:mr().number.isRequired,height:mr().number.isRequired,className:mr().string,background:mr().string,stroke:mr().string,strokeWidth:mr().oneOfType([mr().number,mr().string]),strokeDasharray:mr().oneOfType([mr().string,mr().number]),strokeLinecap:mr().oneOf(["square","butt","round","inherit"]),shapeRendering:mr().oneOfType([mr().string,mr().number]),orientation:mr().array};var mk=["tooltipOpen"];function mE(){return(mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mS);return eo.createElement("div",mC({ref:t,className:ma()("visx-tooltip",n),style:mC({top:null==r||null==l?r:r+l,left:null==i||null==o?i:i+o},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function mM(){return(mM=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mR),v=!1,g=!1;if(u&&l){var y=void 0===r?0:r,b=void 0===f?0:f;if(l.width){var x=y+a+u.width-l.width,w=u.width-y-a;v=x>0&&x>w}else{var j=y+a+u.width-window.innerWidth,k=u.width-y-a;v=j>0&&j>k}if(l.height){var E=b+s+u.height-l.height,S=u.height-b-s;g=E>0&&E>S}else g=b+s+u.height>window.innerHeight;y=v?y-u.width-a:y+a,b=g?b-u.height-s:b+s,t="translate("+(y=Math.round(y))+"px, "+(b=Math.round(b))+"px)"}return eo.createElement(mO,mD({ref:p,style:mD({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),eo.createElement(mN,{value:{isFlippedVertically:!g,isFlippedHorizontally:!v}},n))}mL.propTypes={nodeRef:mr().oneOfType([mr().string,mr().func,mr().object])};var mZ=((p=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=eo.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mT(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:tD.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():mA,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mA}},n.render=function(){return eo.createElement(mL,mM({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(eo.PureComponent)).displayName="withBoundingRects("+(mL.displayName||"")+")",p),mF=n(99985);function mz(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],a=0,o=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(o>0)for(;t>r+o*(a+1);)a+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-o):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return mK({},t,{isBrushing:!0,extent:mK({},t.extent,{x0:r+l,x1:o+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mK({},e,{isBrushing:!1,start:mK({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mK({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mY(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,a=e.brush,o=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return eo.createElement(mF.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return eo.createElement("g",null,h&&eo.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mX}),eo.createElement("rect",mK({x:Math.min(a.extent.x0,a.extent.x1),y:Math.min(a.extent.y0,a.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:o?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:a.isBrushing||a.activeHandle?"none":"all",cursor:o?void 0:"move"}},d)))})},t}(eo.Component);function mQ(){return(mQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-a):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-o):Math.max(u,e.bounds.y0-r);return mQ({},e,{isBrushing:!0,extent:mQ({},e.extent,{x0:n+s,y0:r+c,x1:a+s,y1:o+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,a={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},o=n.getExtent(s,a);return mQ({},e,{end:a,extent:o})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,a=r.width,o=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?a:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?o:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=o&&o.left?o.left:0,u=null!=o&&o.top?o.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-a-u},d=mQ({},c);r&&r(c),n.updateBrush(function(t){return mQ({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mI(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin;if(r){var s=null!=o&&o.left?o.left:0,l=null!=o&&o.top?o.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-a-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,a=t.inheritedMargin,o=t.useWindowMoveEvents;if(e.isDragging&&!o){var s=(null==a?void 0:a.left)||0,l=(null==a?void 0:a.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mQ({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,a=mQ({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(a),r&&n.reset(),a})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,a=t.y0,o=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:a-s,height:e,width:l+e},bottom:{x:r-s,y:o-s,height:e,width:l+e},right:{x:i-s,y:a-s,height:u+e,width:e},left:{x:r-s,y:a-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,a=t.y0,o=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(a,o)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(a,o)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mQ({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mJ(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,a=n.extent;if(!(-1===a.x0&&-1===a.x1&&-1===a.y0&&-1===a.y1)){var o=t.props.width/e.width,s=t.props.height/e.height;r={x:o*a.x0,y:s*a.y0},i={x:o*a.x1,y:s*a.y1},a=t.getExtent(r,i)}return{start:r,end:i,extent:a,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,a=i.top,o=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),S=new Set(p);return eo.createElement(ms.Z,{className:"visx-brush",top:a,left:o},eo.createElement(mF.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,a=t.dragEnd;return eo.createElement(me.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,m6),g=a,y=s,b=o,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),eo.createElement("defs",null,eo.createElement("linearGradient",m8({id:n,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&eo.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&eo.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}m7.propTypes={id:mr().string.isRequired,from:mr().string,to:mr().string,x1:mr().oneOfType([mr().string,mr().number]),x2:mr().oneOfType([mr().string,mr().number]),y1:mr().oneOfType([mr().string,mr().number]),y2:mr().oneOfType([mr().string,mr().number]),fromOffset:mr().oneOfType([mr().string,mr().number]),fromOpacity:mr().oneOfType([mr().string,mr().number]),toOffset:mr().oneOfType([mr().string,mr().number]),toOpacity:mr().oneOfType([mr().string,mr().number]),rotate:mr().oneOfType([mr().string,mr().number]),transform:mr().string,children:mr().node,vertical:mr().bool};var m9=n(78307),ve=n(74747);function vt(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}var vn=n(88744),vr=n(55746),vi=n(45742),va=n(27266),vo=["id","markerWidth","markerHeight","markerUnits","children"];function vs(){return(vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vo);return eo.createElement("defs",null,eo.createElement("marker",vs({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},o),a))}vl.propTypes={id:mr().string.isRequired,size:mr().number,markerWidth:mr().oneOfType([mr().string,mr().number]),markerHeight:mr().oneOfType([mr().string,mr().number]),markerUnits:mr().string,refX:mr().oneOfType([mr().string,mr().number]),refY:mr().oneOfType([mr().string,mr().number]),strokeWidth:mr().number,children:mr().node.isRequired};var vu=["id","size","strokeWidth"];function vc(){return(vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vu),s=2*r+a,l=s/2;return eo.createElement(vl,vc({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},o),eo.createElement("circle",{r:r,cx:l,cy:l}))}var vf=n(64170),vh={top:"top",left:"left",bottom:"bottom"};function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vx),j=null!=v?v:"tickFormat"in m?m.tickFormat():vg.Z,k=f===vh.left,E=f===vh.top,S=E||f===vh.bottom,C=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(m),_=k||E?-1:1,O=m.range(),M=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:vb({start:0,end:0},t)),T=vy({x:Number(O[0])+.5-M.start,y:0},S),A=vy({x:Number(O[O.length-1])+.5+M.end,y:0},S),P=(null!=b?b:(0,mu.Z)(m,c)).filter(function(e){return!s||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=P.map(function(e){var t=e.value,n=e.index,r=(0,mc.Z)(C(t));return{value:t,index:n,from:vy({x:r,y:0},S),to:vy({x:r,y:y*_},S),formattedValue:j(t,n,P)}});return eo.createElement(ms.Z,{className:ma()("visx-axis",r),top:void 0===x?0:x,left:void 0===l?0:l},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,a=e.hideTicks,o=e.horizontal,s=e.label,l=void 0===s?"":s,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?vv:d,h=e.orientation,p=void 0===h?vh.bottom:h,m=e.scale,v=e.stroke,g=e.strokeDasharray,y=e.strokeWidth,b=void 0===y?1:y,x=e.tickClassName,w=e.tickComponent,j=e.tickLineProps,k=e.tickLabelProps,E=void 0===k?function(){return vv}:k,S=e.tickLength,C=e.tickStroke,_=e.tickTransform,O=e.ticks,M=e.ticksComponent,T=O.map(function(e){return E(e.value,e.index,O)}),A=Math.max.apply(Math,[10].concat(T.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return eo.createElement(eo.Fragment,null,(void 0===M?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,a=e.tickComponent,o=e.tickLabelProps,s=e.tickStroke,l=void 0===s?"#222":s,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var s,c=e.value,h=e.index,p=e.from,m=e.to,v=e.formattedValue,g=null!=(s=o[h])?s:{},y=Math.max(10,"number"==typeof g.fontSize&&g.fontSize||0),b=m.y+(n&&r!==vh.top?y:0);return eo.createElement(ms.Z,{key:"visx-tick-"+c+"-"+h,className:ma()("visx-axis-tick",i),transform:u},!t&&eo.createElement(mt.Z,vp({from:p,to:m,stroke:l,strokeWidth:d,strokeLinecap:"square"},f)),a?a(vp({},g,{x:m.x,y:b,formattedValue:v})):eo.createElement(vf.Z,vp({x:m.x,y:b},g),v))})}:M)({hideTicks:a,horizontal:o,orientation:p,scale:m,tickClassName:x,tickComponent:w,tickLabelProps:T,tickStroke:void 0===C?"#222":C,tickTransform:_,ticks:O,strokeWidth:b,tickLineProps:j}),!i&&eo.createElement(mt.Z,{className:ma()("visx-axis-line",n),from:t,to:r,stroke:void 0===v?"#222":v,strokeWidth:b,strokeDasharray:g}),l&&eo.createElement(vf.Z,vm({className:ma()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,o=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=o===vh.left||o===vh.top?-1:1;if(o===vh.top||o===vh.bottom){var d=o===vh.bottom&&"number"==typeof a.fontSize?a.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(u+i+l+d)}else t=(Number(s[0])+Number(s[s.length-1]))/2*c,n=-(u+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===c?14:c,labelProps:f,orientation:p,range:m.range(),tickLabelFontSize:A,tickLength:void 0===S?8:S}),f),l))}:n)(vw({},w,{axisFromPoint:T,axisToPoint:A,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==a&&a,hideZero:s,horizontal:S,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:j,tickLength:y,tickPosition:C,tickSign:_,ticks:N})))}var vk=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vE(){return(vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vk);return eo.createElement(vj,vE({axisClassName:ma()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:vh.bottom,tickLabelProps:void 0===r?vS:r,tickLength:void 0===i?8:i},a))}var v_=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vO(){return(vO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v_);return eo.createElement(vj,vO({axisClassName:ma()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:vh.left,tickLabelProps:void 0===r?vM:r,tickLength:void 0===i?8:i},a))}let vA=e=>new Date((null==e?void 0:e.timestamp)||0),vP=e=>(null==e?void 0:e.value)||0,vN="var(--colors-hiContrast)",vR={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vN},vD={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vN};function vL(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:a,xScale:o,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,ea.jsxs)(ms.Z,{left:d||a.left,top:c||a.top,children:[(0,ea.jsx)(vd,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,ea.jsx)(m7,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,ea.jsx)(vr.Z,{data:t,x:e=>o(vA(e))||0,y:e=>s(vP(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?vi.ZP:va.Z}),!l&&(0,ea.jsx)(vC,{top:i,scale:o,numTicks:r>520?10:5,stroke:vN,tickStroke:vN,tickLabelProps:()=>vR}),!u&&(0,ea.jsx)(vT,{scale:s,numTicks:5,stroke:vN,tickStroke:vN,tickLabelProps:()=>vD}),h]})}let{inherit:vZ,current:vF,transparent:vz,black:vV,white:vI,slate:vB,zinc:vH,neutral:vU,stone:vW,red:vq,orange:v$,amber:vK,yellow:vY,lime:vX,green:vG,emerald:vQ,teal:vJ,cyan:v0,sky:v1,blue:v2,indigo:v4,violet:v3,purple:v5,fuchsia:v6,pink:v8,rose:v7}=n(6692),v9={inherit:vZ,current:vF,transparent:vz,black:vV,white:vI,slate:vB,zinc:vH,neutral:vU,stone:vW,red:vq,orange:v$,amber:vK,yellow:vY,lime:vX,green:vG,emerald:vQ,teal:vJ,cyan:v0,sky:v1,blue:v2,indigo:v4,violet:v3,purple:v5,fuchsia:v6,pink:v8,rose:v7,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var ge=n(21487);let gt={top:10,bottom:15,left:10,right:10},gn="brush_pattern",gr="brush_gradient",gi=(0,vn.Z)(e=>e(),15),ga=(0,m9.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===m&&(m={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===v&&(v=function(e,t){return eo.createElement("div",t,e)});var go=n(54073),gs=n.n(go),gl=n(44711),gu=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function gc(){return(gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gu),d=(0,eo.useRef)(null),f=(0,eo.useRef)(0),h=(0,eo.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],v=(0,eo.useMemo)(function(){var e=Array.isArray(o)?o:[o];return gs()(function(t){m(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:u})},[i,u,o]);return(0,eo.useEffect)(function(){var e=new gl.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;f.current=window.requestAnimationFrame(function(){v({width:i,height:a,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),eo.createElement("div",gc({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(gc({},p,{ref:d.current,resize:v})))}gf.propTypes={className:mr().string,debounceTime:mr().number,enableDebounceLeadingCall:mr().bool,ignoreDimensions:mr().oneOfType([mr().any,mr().arrayOf(mr().any)]),children:mr().func.isRequired};var gh=n(52058);function gp(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:a,curve:o,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:b,renderTooltipGlyph:x,renderLineSeries:w,sharedTooltip:j,showHorizontalCrosshair:k,showTooltip:E,showVerticalCrosshair:S,snapTooltipToDatum:C,stackOffset:_,margin:O,theme:M,xAxisOrientation:T,yAxisOrientation:A,AreaSeries:P,AreaStack:N,Axis:R,BarGroup:D,BarSeries:L,BarStack:Z,Grid:F,LineSeries:z,Tooltip:V,XYChart:I}=e;return(0,ea.jsxs)(I,{theme:M.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:O,captureEvents:!0,children:[(0,ea.jsx)("g",{children:(0,ea.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,ea.jsx)(m7,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(mj,{id:"pattern-".concat(gm(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,ea.jsx)(m7,{id:"gradient-".concat(gm(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,ea.jsx)(F,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:a,numTicks:p},"grid-".concat(a)),y&&(0,ea.jsx)(Z,{offset:l.stackOffset,children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gv(t,e,l)},e))}),g&&(0,ea.jsx)(D,{children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gv(t,e,l)},e))}),m&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>(0,ea.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gv(t,e,l),fill:gv(t,e,l),curve:o},e))}),v&&(0,ea.jsx)(N,{curve:o,offset:l.stackOffset,renderLine:"wiggle"!==_,children:c.map(e=>(0,ea.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gv(t,e,l),fill:gv(t,e,l)},e))}),w&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>{var t,n;return(0,ea.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:o},e)})}),(0,ea.jsx)(R,{orientation:T,numTicks:p,animationTrajectory:a,tickFormat:e=>(0,ge.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(a)),(0,ea.jsx)(R,{label:null==_?"SC":"expand"===_?"Fraction of total":"",orientation:A,numTicks:p,tickLength:12,animationTrajectory:a,tickFormat:l.formatTickY,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(a)),E&&(0,ea.jsx)(V,{showHorizontalCrosshair:k,showVerticalCrosshair:S,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:j&&!g,renderGlyph:b?x:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,a=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,o=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=j?d:o?[o]:[],u=l.formatTimestamp||(e=>(0,ge.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,gh.Z)(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col gap-2 py-1"),children:[(0,ea.jsx)(nw,{font:"mono",size:"12",color:"contrast",className:"text-end",children:a?u(i.date(a)):"No date"}),(0,ea.jsx)(c0,{color:"panel",className:"w-full"}),(0,ea.jsx)("div",{className:(0,eW.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=a?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](a);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,ea.jsx)(nw,{weight:"semibold",children:t}),(0,ea.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=a&&i.y[c](a);return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(nw,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eW.cx)(o===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,ea.jsx)(nw,{size:"12",style:{textAlign:"end"},className:(0,eW.cx)(o===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,ea.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{className:"pt-2",children:"total"}),(0,ea.jsx)(nw,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,ea.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function gm(e,t){return"".concat(e,"-").concat(t)}function gv(e,t,n){var r;let i=gm(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var gg=n(24037),gy=n(86707);function gb(e){var t=e.top,n=e.left,r=e.className,i=e.children;return eo.createElement(ms.Z,{className:ma()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}gb.propTypes={top:mr().number,left:mr().number,className:mr().string,children:mr().node};var gx=["children","className","top","left","size"];function gw(){return(gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gx),s=(0,gg.Z)();return(s.type(gy.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?eo.createElement(eo.Fragment,null,t({path:s})):eo.createElement(gb,{top:r,left:i},eo.createElement("path",gw({className:ma()("visx-glyph-star",n),d:s()||""},o)))}gj.propTypes={children:mr().func,className:mr().string,top:mr().number,left:mr().number,size:mr().oneOfType([mr().number,mr().func])};var gk=["top","left","className"];function gE(){return(gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gk);return eo.createElement(gb,{top:void 0===t?0:t,left:void 0===n?0:n},eo.createElement("circle",gE({className:ma()("visx-glyph-dot",r)},i)))}gS.propTypes={className:mr().string,top:mr().number,left:mr().number,r:mr().number,cx:mr().number,cy:mr().number};var gC=n(9135),g_=["children","className","top","left","size"];function gO(){return(gO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g_),s=(0,gg.Z)();return(s.type(gC.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?eo.createElement(eo.Fragment,null,t({path:s})):eo.createElement(gb,{top:r,left:i},eo.createElement("path",gO({className:ma()("visx-glyph-cross",n),d:s()||""},o)))}gM.propTypes={children:mr().func,className:mr().string,top:mr().number,left:mr().number,size:mr().oneOfType([mr().number,mr().func])};var gT=n(46385),gA=n(20651),gP={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},gN=gP.gray,gR=gN[7],gD=[gP.cyan[9],gP.cyan[3],gP.yellow[5],gP.red[4],gP.grape[8],gP.grape[5],gP.pink[9]];function gL(){return(gL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)gI(e,n,{get:t[n],enumerable:!0})})(gB,{assign:()=>yc,colors:()=>ys,createStringInterpolator:()=>V,skipAnimation:()=>yl,to:()=>I,willAdvance:()=>yu});var gH=g5(),gU=e=>g1(e,gH),gW=g5();gU.write=e=>g1(e,gW);var gq=g5();gU.onStart=e=>g1(e,gq);var g$=g5();gU.onFrame=e=>g1(e,g$);var gK=g5();gU.onFinish=e=>g1(e,gK);var gY=[];gU.setTimeout=(e,t)=>{let n=gU.now()+t,r=()=>{let e=gY.findIndex(e=>e.cancel==r);~e&&gY.splice(e,1),gJ-=~e?1:0},i={time:n,handler:e,cancel:r};return gY.splice(gX(n),0,i),gJ+=1,g2(),i};var gX=e=>~(~gY.findIndex(t=>t.time>e)||~gY.length);gU.cancel=e=>{gq.delete(e),g$.delete(e),gK.delete(e),gH.delete(e),gW.delete(e)},gU.sync=e=>{g0=!0,gU.batchedUpdates(e),g0=!1},gU.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,gU.onStart(n)}return r.handler=e,r.cancel=()=>{gq.delete(n),t=null},r};var gG="undefined"!=typeof window?window.requestAnimationFrame:()=>{};gU.use=e=>gG=e,gU.now="undefined"!=typeof performance?()=>performance.now():Date.now,gU.batchedUpdates=e=>e(),gU.catch=console.error,gU.frameLoop="always",gU.advance=()=>{"demand"!==gU.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):g3()};var gQ=-1,gJ=0,g0=!1;function g1(e,t){g0?(t.delete(e),e(0)):(t.add(e),g2())}function g2(){gQ<0&&(gQ=0,"demand"!==gU.frameLoop&&gG(g4))}function g4(){~gQ&&(gG(g4),gU.batchedUpdates(g3))}function g3(){let e=gQ,t=gX(gQ=gU.now());if(t&&(g6(gY.splice(0,t),e=>e.handler()),gJ-=t),!gJ){gQ=-1;return}gq.flush(),gH.flush(e?Math.min(64,gQ-e):16.667),g$.flush(),gW.flush(),gK.flush()}function g5(){let e=new Set,t=e;return{add(n){gJ+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(gJ-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,gJ-=t.size,g6(t,t=>t(n)&&e.add(t)),gJ+=e.size,t=e)}}}function g6(e,t){e.forEach(e=>{try{t(e)}catch(e){gU.catch(e)}})}function g8(){}var g7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),g9={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 ye(e,t){if(g9.arr(e)){if(!g9.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yn(e,t,n){if(g9.arr(e)){for(let r=0;rg9.und(e)?[]:g9.arr(e)?e:[e];function yi(e,t){if(e.size){let n=Array.from(e);e.clear(),yt(n,t)}}var ya=(e,...t)=>yi(e,e=>e(...t)),yo=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ys=null,yl=!1,yu=g8,yc=e=>{e.to&&(I=e.to),e.now&&(gU.now=e.now),void 0!==e.colors&&(ys=e.colors),null!=e.skipAnimation&&(yl=e.skipAnimation),e.createStringInterpolator&&(V=e.createStringInterpolator),e.requestAnimationFrame&&gU.use(e.requestAnimationFrame),e.batchedUpdates&&(gU.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yu=e.willAdvance),e.frameLoop&&(gU.frameLoop=e.frameLoop)},yd=new Set,yf=[],yh=[],yp=0,ym={get idle(){return!yd.size&&!yf.length},start(e){yp>e.priority?(yd.add(e),gU.onStart(yv)):(yg(e),gU(yb))},advance:yb,sort(e){if(yp)gU.onFrame(()=>ym.sort(e));else{let t=yf.indexOf(e);~t&&(yf.splice(t,1),yy(e))}},clear(){yf=[],yd.clear()}};function yv(){yd.forEach(yg),yd.clear(),gU(yb)}function yg(e){yf.includes(e)||yy(e)}function yy(e){yf.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(yf,t=>t.priority>e.priority),0,e)}function yb(e){let t=yh;for(let n=0;n0}var yx="[-+]?\\d*\\.?\\d+",yw=yx+"%";function yj(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yk=RegExp("rgb"+yj(yx,yx,yx)),yE=RegExp("rgba"+yj(yx,yx,yx,yx)),yS=RegExp("hsl"+yj(yx,yw,yw)),yC=RegExp("hsla"+yj(yx,yw,yw,yx)),y_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yO=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yM=/^#([0-9a-fA-F]{6})$/,yT=/^#([0-9a-fA-F]{8})$/;function yA(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yP(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*yA(i,r,e+1/3))<<24|Math.round(255*yA(i,r,e))<<16|Math.round(255*yA(i,r,e-1/3))<<8}function yN(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function yR(e){return(parseFloat(e)%360+360)%360/360}function yD(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yL(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function yZ(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yM.exec(e))?parseInt(t[1]+"ff",16)>>>0:ys&&void 0!==ys[e]?ys[e]:(t=yk.exec(e))?(yN(t[1])<<24|yN(t[2])<<16|yN(t[3])<<8|255)>>>0:(t=yE.exec(e))?(yN(t[1])<<24|yN(t[2])<<16|yN(t[3])<<8|yD(t[4]))>>>0:(t=y_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yT.exec(e))?parseInt(t[1],16)>>>0:(t=yO.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yS.exec(e))?(255|yP(yR(t[1]),yL(t[2]),yL(t[3])))>>>0:(t=yC.exec(e))?(yP(yR(t[1]),yL(t[2]),yL(t[3]))|yD(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var yF=(e,t,n)=>{if(g9.fun(e))return e;if(g9.arr(e))return yF({range:e,output:t,extrapolate:n});if(g9.str(e.output[0]))return V(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=a(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,a,o,e.map)}},yz=Symbol.for("FluidValue.get"),yV=Symbol.for("FluidValue.observers"),yI=e=>!!(e&&e[yz]),yB=e=>e&&e[yz]?e[yz]():e,yH=e=>e[yV]||null;function yU(e,t){let n=e[yV];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yW=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");yq(this,e)}},yq=(e,t)=>yY(e,yz,t);function y$(e,t){if(e[yz]){let n=e[yV];n||yY(e,yV,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yK(e,t){let n=e[yV];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[yV]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yY=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yX=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yQ=RegExp(`(${yX.source})(%|[a-z]+)`,"i"),yJ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,y0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,y1=e=>{let[t,n]=y2(e);if(!t||yo())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&y0.test(n))return y1(n);else if(n)return n;return e},y2=e=>{let t=y0.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},y4=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,y3=e=>{B||(B=ys?RegExp(`(${Object.keys(ys).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>yB(e).replace(y0,y1).replace(yG,yZ).replace(B,yZ)),n=t.map(e=>e.match(yX).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>yF({...e,output:t}));return e=>{let n=!yQ.test(t[0])&&t.find(e=>yQ.test(e))?.replace(yX,""),i=0;return t[0].replace(yX,()=>`${r[i++](e)}${n||""}`).replace(yJ,y4)}},y5="react-spring: ",y6=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${y5}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},y8=y6(console.warn),y7=y6(console.warn);function y9(e){return g9.str(e)&&("#"==e[0]||/\d/.test(e)||!yo()&&y0.test(e)||e in(ys||{}))}var be=yo()?eo.useEffect:eo.useLayoutEffect,bt=()=>{let e=(0,eo.useRef)(!1);return be(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function bn(){let e=(0,eo.useState)()[1],t=bt();return()=>{t.current&&e(Math.random())}}var br=e=>(0,eo.useEffect)(e,bi),bi=[];function ba(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e}),t.current}var bo=Symbol.for("Animated:node"),bs=e=>!!e&&e[bo]===e,bl=e=>e&&e[bo],bu=(e,t)=>g7(e,bo,t),bc=e=>e&&e[bo]&&e[bo].getPayload(),bd=class{constructor(){bu(this,this)}getPayload(){return this.payload||[]}},bf=class extends bd{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,g9.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new bf(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return g9.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,g9.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bh=class extends bf{constructor(e){super(0),this._string=null,this._toString=yF({output:[e,e]})}static create(e){return new bh(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(g9.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=yF({output:[this.getValue(),e]})),this._value=0,super.reset()}},bp={dependencies:null},bm=class extends bd{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yn(this.source,(n,r)=>{bs(n)?t[r]=n.getValue(e):yI(n)?t[r]=yB(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yt(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){bp.dependencies&&yI(e)&&bp.dependencies.add(e);let t=bc(e);t&&yt(t,e=>this.add(e))}},bv=class extends bm{constructor(e){super(e)}static create(e){return new bv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(bg)),!0)}};function bg(e){return(y9(e)?bh:bf).create(e)}function by(e){let t=bl(e);return t?t.constructor:g9.arr(e)?bv:y9(e)?bh:bf}var bb=(e,t)=>{let n=!g9.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,eo.forwardRef)((r,i)=>{let a=(0,eo.useRef)(null),o=n&&(0,eo.useCallback)(e=>{a.current=(i&&(g9.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return bp.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new bm(e),bp.dependencies=null,[e,n]}(r,t),u=bn(),c=()=>{let e=a.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new bx(c,l),f=(0,eo.useRef)();be(()=>(f.current=d,yt(l,e=>y$(e,d)),()=>{f.current&&(yt(f.current.deps,e=>yK(e,f.current)),gU.cancel(f.current.update))})),(0,eo.useEffect)(c,[]),br(()=>()=>{let e=f.current;yt(e.deps,t=>yK(t,e))});let h=t.getComponentProps(s.getValue());return eo.createElement(e,{...h,ref:o})})},bx=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&gU.write(this.update)}},bw=Symbol.for("AnimatedComponent"),bj=e=>g9.str(e)?e:e&&g9.str(e.displayName)?e.displayName:g9.fun(e)&&e.name||null;function bk(e,...t){return g9.fun(e)?e(...t):e}var bE=(e,t)=>!0===e||!!(t&&e&&(g9.fun(e)?e(t):yr(e).includes(t))),bS=(e,t)=>g9.obj(e)?t&&e[t]:e,bC=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b_=e=>e,bO=(e,t=b_)=>{let n=bM;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);g9.und(n)||(r[i]=n)}return r},bM=["config","onProps","onStart","onChange","onPause","onResume","onRest"],bT={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 bA(e){let t=function(e){let t={},n=0;if(yn(e,(e,r)=>{!bT[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yn(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function bP(e){return e=yB(e),g9.arr(e)?e.map(bP):y9(e)?gB.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function bN(e){for(let t in e)return!0;return!1}function bR(e){return g9.fun(e)||g9.arr(e)&&g9.obj(e[0])}function bD(e,t){e.ref?.delete(e),t?.delete(e)}function bL(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var bZ={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},bF=class{constructor(){this.velocity=0,Object.assign(this,bZ)}};function bz(e,t){if(g9.und(t.decay)){let n=!g9.und(t.tension)||!g9.und(t.friction);!n&&g9.und(t.frequency)&&g9.und(t.damping)&&g9.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var bV=[],bI=class{constructor(){this.changed=!1,this.values=bV,this.toValues=null,this.fromValues=bV,this.config=new bF,this.immediate=!1}};function bB(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u;let c=bE(n.cancel??r?.cancel,t);if(c)h();else{g9.und(n.pause)||(i.paused=bE(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||bE(e,t)),l=bk(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-gU.now()}function f(){l>0&&!gB.skipAnimation?(i.delayed=!0,u=gU.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var bH=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?bq(e.get()):t.every(e=>e.noop)?bU(e.get()):bW(e.get(),t.every(e=>e.finished)),bU=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bW=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),bq=e=>({value:e,cancelled:!0,finished:!1});function b$(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=bO(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&bq(r)||i!==n.asyncId&&bW(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let a=new bY,o=new bX;return(async()=>{if(gB.skipAnimation)throw bK(n),o.result=bW(r,!1),c(o),o;p(a);let s=g9.obj(e)?{...e}:{...t,to:e};s.parentId=i,yn(f,(e,t)=>{g9.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(gB.skipAnimation)return bK(n),bW(r,!1);try{let t;t=g9.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=bW(r.get(),!0,!1)}catch(e){if(e instanceof bY)d=e.result;else if(e instanceof bX)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return g9.fun(o)&&gU.batchedUpdates(()=>{o(d,r,r.item)}),d})():l}function bK(e,t){yi(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var bY=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.")}},bX=class extends Error{constructor(){super("SkipAnimationSignal")}},bG=e=>e instanceof bJ,bQ=1,bJ=class extends yW{constructor(){super(...arguments),this.id=bQ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=bl(this);return e&&e.getValue()}to(...e){return gB.to(this,e)}interpolate(...e){return y8(`${y5}The "interpolate" function is deprecated in v9 (use "to" instead)`),gB.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){yU(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ym.sort(this),yU(this,{type:"priority",parent:this,priority:e})}},b0=Symbol.for("SpringPhase"),b1=e=>(1&e[b0])>0,b2=e=>(2&e[b0])>0,b4=e=>(4&e[b0])>0,b3=(e,t)=>t?e[b0]|=3:e[b0]&=-3,b5=(e,t)=>t?e[b0]|=4:e[b0]&=-5,b6=class extends bJ{constructor(e,t){if(super(),this.animation=new bI,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,!g9.und(e)||!g9.und(t)){let n=g9.obj(e)?{...e}:{...t,from:e};g9.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(b2(this)||this._state.asyncTo)||b4(this)}get goal(){return yB(this.animation.to)}get velocity(){let e=bl(this);return e instanceof bf?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return b1(this)}get isAnimating(){return b2(this)}get isPaused(){return b4(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=bc(r.to);!o&&yI(r.to)&&(i=yr(yB(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==bh?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=g9.arr(a.velocity)?a.velocity[l]:a.velocity,f=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(g9.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*n);d=i+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=o*r}else{t=null==s.lastVelocity?o:s.lastVelocity;let n=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!g9.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*t)/a.mass;t+=1*e,d+=1*t}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(a.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+a.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=bl(this),l=s.getValue();if(t){let e=yB(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return gU.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(b2(this)){let{to:e,config:t}=this.animation;gU.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 n;return g9.und(e)?(n=this.queue||[],this.queue=[]):n=[g9.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>bH(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),bK(this._state,e&&this._lastCallId),gU.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:n,from:r}=e;(null==(n=g9.obj(n)?n[t]:n)||bR(n))&&(n=void 0),null==(r=g9.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return b1(this)||(e.reverse&&([n,r]=[r,n]),r=yB(r),g9.und(r)?bl(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bO(e,(e,t)=>/^on/.test(t)?bS(e,n):e)),xn(this,e,"onProps"),xr(this,"onProps",e,this);let i=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 a=this._state;return bB(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{b4(this)||(b5(this,!0),ya(a.pauseQueue),xr(this,"onPause",bW(this,b8(this,this.animation.to)),this))},resume:()=>{b4(this)&&(b5(this,!1),b2(this)&&this._resume(),ya(a.resumeQueue),xr(this,"onResume",bW(this,b8(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=b7(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(bq(this));let r=!g9.und(e.to),i=!g9.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(bq(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||g9.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!ye(d,u);f&&(s.from=d),d=yB(d);let h=!ye(c,l);h&&this._focus(c);let p=bR(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(bz(n={...n},t),t={...n,...t}),bz(e,t),Object.assign(e,t),bZ)null==e[r]&&(e[r]=bZ[r]);let{frequency:r,damping:i}=e,{mass:a}=e;g9.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,bk(t.config,a),t.config!==o.config?bk(o.config,a):void 0);let y=bl(this);if(!y||g9.und(c))return n(bW(this,!0));let b=g9.und(t.reset)?i&&!t.default:!g9.und(d)&&bE(t.reset,a),x=b?d:this.get(),w=bP(c),j=g9.num(w)||g9.arr(w)||y9(w),k=!p&&(!j||bE(o.immediate||t.immediate,a));if(h){let e=by(c);if(e!==y.constructor){if(k)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let E=y.constructor,S=yI(c),C=!1;if(!S){let e=b||!b1(this)&&f;(h||e)&&(S=!(C=ye(bP(x),w))),(ye(s.immediate,k)||k)&&ye(m.decay,v)&&ye(m.velocity,g)||(S=!0)}if(C&&b2(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||yI(l))&&(s.values=y.getPayload(),s.toValues=yI(c)?null:E==bh?[1]:yr(w)),s.immediate==k||(s.immediate=k,k||b||this._set(l)),S)){let{onRest:e}=s;yt(xt,e=>xn(this,t,e));let r=bW(this,b8(this,l));ya(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&gU.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?bk(o.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(b$(t.to,t,this._state,this)):S?this._start():b2(this)&&!h?this._pendingCalls.add(n):n(bU(x))}_focus(e){let t=this.animation;e!==t.to&&(yH(this)&&this._detach(),t.to=e,yH(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;yI(t)&&(y$(t,this),bG(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;yI(e)&&yK(e,this)}_set(e,t=!0){let n=yB(e);if(!g9.und(n)){let e=bl(this);if(!e||!ye(n,e.getValue())){let r=by(n);e&&e.constructor==r?e.setValue(n):bu(this,r.create(n)),e&&gU.batchedUpdates(()=>{this._onChange(n,t)})}}return bl(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xr(this,"onStart",bW(this,b8(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bk(this.animation.onChange,e,this)),bk(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;bl(this).reset(yB(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),b2(this)||(b3(this,!0),b4(this)||this._resume())}_resume(){gB.skipAnimation?this.finish():ym.start(this)}_stop(e,t){if(b2(this)){b3(this,!1);let n=this.animation;yt(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yU(this,{type:"idle",parent:this});let r=t?bq(this.get()):bW(this.get(),b8(this,e??n.to));ya(this._pendingCalls,r),n.changed&&(n.changed=!1,xr(this,"onRest",r,this))}}};function b8(e,t){let n=bP(t);return ye(bP(e.get()),n)}function b7(e,t=e.loop,n=e.to){let r=bk(t);if(r){let i=!0!==r&&bA(r),a=(i||e).reverse,o=!i||i.reset;return b9({...e,loop:t,default:!1,pause:void 0,to:!a||bR(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function b9(e){let{to:t,from:n}=e=bA(e),r=new Set;return g9.obj(t)&&xe(t,r),g9.obj(n)&&xe(n,r),e.keys=r.size?Array.from(r):null,e}function xe(e,t){yn(e,(e,n)=>null!=e&&t.add(n))}var xt=["onStart","onRest","onChange","onPause","onResume"];function xn(e,t,n){e.animation[n]=t[n]!==bC(t,n)?bS(t[n],e.key):void 0}function xr(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xi=["onStart","onChange","onRest"],xa=1,xo=class{constructor(e,t){this.id=xa++,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,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];g9.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(b9(e)),this}start(e){let{queue:t}=this;return(e?t=yr(e).map(b9):this.queue=[],this._flush)?this._flush(this,t):(xh(this,t),xs(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yt(yr(t),t=>n[t].stop(!!e))}else bK(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(g9.und(e))this.start({pause:!0});else{let t=this.springs;yt(yr(e),e=>t[e].pause())}return this}resume(e){if(g9.und(e))this.start({pause:!1});else{let t=this.springs;yt(yr(e),e=>t[e].resume())}return this}each(e){yn(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,yi(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&yi(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,yi(n,([e,t])=>{t.value=o,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)}gU.onFrame(this._onFrame)}};function xs(e,t){return Promise.all(t.map(t=>xl(e,t))).then(t=>bH(e,t))}async function xl(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=g9.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=g9.arr(i)||g9.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yt(xi,n=>{let r=t[n];if(g9.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,ya(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===bC(t,"cancel");(c||h&&d.asyncId)&&f.push(bB(++e._lastAsyncId,{props:t,state:d,actions:{pause:g8,resume:g8,start(t,n){h?(bK(d,e._lastAsyncId),n(bq(e))):(t.onRest=s,n(b$(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=bH(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=b7(t,o,i);if(n)return xh(e,[n]),xl(e,n,!0)}return l&&gU.batchedUpdates(()=>l(p,e,e.item)),p}function xu(e,t){let n={...e.springs};return t&&yt(yr(t),e=>{g9.und(e.keys)&&(e=b9(e)),g9.obj(e.to)||(e={...e,to:void 0}),xf(n,e,e=>xd(e))}),xc(e,n),n}function xc(e,t){yn(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,y$(t,e))})}function xd(e,t){let n=new b6;return n.key=e,t&&y$(n,t),n}function xf(e,t,n){t.keys&&yt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function xh(e,t){yt(t,t=>{xf(e.springs,t,t=>xd(t,e))})}var xp=({children:e,...t})=>{let n=(0,eo.useContext)(xm),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,eo.useState)(()=>({inputs:t,result:e()})),r=(0,eo.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=xm;return eo.createElement(a,{value:t},e)},xm=(Object.assign(xp,eo.createContext({})),xp.Provider._context=xp,xp.Consumer._context=xp,xp);xp.Provider=xm.Provider,xp.Consumer=xm.Consumer;var xv=()=>{let e=[],t=function(t){y7(`${y5}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 r=[];return yt(e,(e,i)=>{if(g9.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return yt(e,e=>e.pause(...arguments)),this},t.resume=function(){return yt(e,e=>e.resume(...arguments)),this},t.set=function(t){yt(e,(e,n)=>{let r=g9.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yt(e,(e,r)=>{if(g9.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return yt(e,e=>e.stop(...arguments)),this},t.update=function(t){return yt(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return g9.fun(e)?e(n,t):e};return t._getProps=n,t};function xg(e,t){let n=g9.fun(e),[[r],i]=function(e,t,n){let r=g9.fun(t)&&t;r&&!n&&(n=[]);let i=(0,eo.useMemo)(()=>r||3==arguments.length?xv():void 0,[]),a=(0,eo.useRef)(0),o=bn(),s=(0,eo.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=xu(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{xc(e,n),s.queue.push(()=>{r(xs(e,t))}),o()}):xs(e,t)}}),[]),l=(0,eo.useRef)([...s.ctrls]),u=[],c=ba(e)||0;function d(e,n){for(let i=e;i{yt(l.current.slice(e,c),e=>{bD(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,eo.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>xu(e,u[t])),h=(0,eo.useContext)(xp),p=ba(h),m=h!==p&&bN(h);be(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],yt(e,e=>e())),yt(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(bL(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),br(()=>()=>{yt(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xy(e,t,n){let r=g9.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,eo.useMemo)(()=>r||3==arguments.length?xv():void 0,[]),h=yr(e),p=[],m=(0,eo.useRef)(null),v=i?null:m.current;be(()=>{m.current=p}),br(()=>(yt(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yt(m.current,e=>{e.expired&&clearTimeout(e.expirationId),bD(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xb++})}return g9.und(n)?e:g9.fun(n)?e.map(n):yr(n)}(h,r?r():t,v),y=i&&m.current||[];be(()=>yt(y,({ctrl:e,item:t,key:n})=>{bD(e,f),bk(u,t,n)}));let b=[];if(v&&yt(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),yt(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new xo},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;yt(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}g9.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let x=-o,w=bn(),j=bO(t),k=new Map,E=(0,eo.useRef)(new Map),S=(0,eo.useRef)(!1);yt(p,(e,n)=>{let i,a;let u=e.key,f=e.phase,h=r?r():t,p=bk(h.delay||0,u);if("mount"==f)i=h.enter,a="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,a="leave";else{if(!(i=h.update))return;a="update"}}else{if(e)return;i=h.enter,a="enter"}}if(i=bk(i,e.item,n),!(i=g9.obj(i)?bA(i):{to:i}).config){let t=d||j.config;i.config=bk(t,e.item,n,a)}x+=o;let y={...j,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==a&&g9.und(y.from)){let i=r?r():t,a=g9.und(i.initial)||v?i.from:i.initial;y.from=bk(a,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{bk(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=bk(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(E.current.delete(n),l&&(S.current=!0),w())}}};let C=xu(e.ctrl,y);"leave"===a&&l?E.current.set(e,{phase:a,springs:C,payload:y}):k.set(e,{phase:a,springs:C,payload:y})});let C=(0,eo.useContext)(xp),_=ba(C),O=C!==_&&bN(C);be(()=>{O&&yt(p,e=>{e.ctrl.start({default:C})})},[C]),yt(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),be(()=>{yt(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&"enter"==e&&r.start({default:C}),t&&(bL(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let M=e=>eo.createElement(eo.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eo.createElement(i.type,{...i.props,key:g9.str(t.key)||g9.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var xb=1,xx=class extends bJ{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yF(...t);let n=this._get();bu(this,by(n).create(n))}advance(e){let t=this._get();ye(t,this.get())||(bl(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xj(this._active)&&xk(this)}_get(){let e=g9.arr(this.source)?this.source.map(yB):yr(yB(this.source));return this.calc(...e)}_start(){this.idle&&!xj(this._active)&&(this.idle=!1,yt(bc(this),e=>{e.done=!1}),gB.skipAnimation?(gU.batchedUpdates(()=>this.advance()),xk(this)):ym.start(this))}_attach(){let e=1;yt(yr(this.source),t=>{yI(t)&&y$(t,this),bG(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yt(yr(this.source),e=>{yI(e)&&yK(e,this)}),this._active.clear(),xk(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=yr(this.source).reduce((e,t)=>Math.max(e,(bG(t)?t.priority:0)+1),0))}};function xw(e){return!1!==e.idle}function xj(e){return!e.size||Array.from(e).every(xw)}function xk(e){e.idle||(e.idle=!0,yt(bc(e),e=>{e.done=!0}),yU(e,{type:"idle",parent:e}))}var xE=(e,...t)=>new xx(e,t);gB.assign({createStringInterpolator:y3,to:(e,t)=>new xx(e,t)}),ym.advance;var xS=/^--/,xC={},x_={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},xO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xM=["Webkit","Ms","Moz","O"];x_=Object.keys(x_).reduce((e,t)=>(xM.forEach(n=>e[xO(n,t)]=e[t]),e),x_);var xT=/^(matrix|translate|scale|rotate|skew)/,xA=/^(translate)/,xP=/^(rotate|skew)/,xN=(e,t)=>g9.num(e)&&0!==e?e+t:e,xR=(e,t)=>g9.arr(e)?e.every(e=>xR(e,t)):g9.num(e)?e===t:parseFloat(e)===t,xD=class extends bm{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>xN(e,"px")).join(",")})`,xR(e,0)])),yn(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(xT.test(t)){if(delete r[t],g9.und(e))return;let n=xA.test(t)?"px":xP.test(t)?"deg":"";i.push(yr(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xN(i,n)})`,xR(i,0)]:e=>[`${t}(${e.map(e=>xN(e,n)).join(",")})`,xR(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xL(i,a)),super(r)}},xL=class extends yW{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 yt(this.inputs,(n,r)=>{let i=yB(n[0]),[a,o]=this.transforms[r](g9.arr(i)?i:n.map(yB));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&yt(this.inputs,e=>yt(e,e=>yI(e)&&y$(e,this)))}observerRemoved(e){0==e&&yt(this.inputs,e=>yt(e,e=>yI(e)&&yK(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),yU(this,e)}};gB.assign({batchedUpdates:tD.unstable_batchedUpdates,createStringInterpolator:y3,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 xZ=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new bm(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=bj(e)||"Anonymous";return(e=g9.str(e)?a[e]||(a[e]=bb(e,i)):e[bw]||(e[bw]=bb(e,i))).displayName=`Animated(${t})`,e};return yn(e,(t,n)=>{g9.arr(e)&&(n=bj(t)),a[n]=a(t)}),{animated:a}})(["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 n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xC[t]||(xC[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xS.test(t)||x_.hasOwnProperty(t)&&x_[t]?(""+d).trim():d+"px";xS.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new xD(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xF=n(23442),xz=(0,eo.createContext)({});function xV(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,a=e.children,o=(0,eo.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return eo.createElement(xz.Provider,{value:o},a)}function xI(){return(xI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x$),p=(0,eo.useContext)(xU)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,eo.useMemo)(function(){return y?xW(y):0},[y]),j=(0,eo.useMemo)(function(){return b?xW(b):0},[b]);if((!s||!l)&&!o)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==o?null:null==x?void 0:x.get(o),E=s||(null==k?void 0:k.xAccessor),S=l||(null==k?void 0:k.yAccessor);if(!y||!b||!v||!m||!E||!S||!g)return null;var C=(null!=(t=(0,mc.Z)(y(E(a))))?t:NaN)+w/2,_=(null!=(n=(0,mc.Z)(b(S(a))))?n:NaN)+j/2,O=C+c+16>g.left+v?-c:c,M=_+f+16>g.top+m?-f:f;return xq(C)&&xq(_)?eo.createElement(r,xK({width:v,height:m},h,{x:C,y:_,dx:O,dy:M}),i):null}xY.propTypes={dataKey:mr().string,xAccessor:mr().func,yAccessor:mr().func};var xX=["x","y","AnnotationComponent"],xG=["editable"];function xQ(){return(xQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function x0(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.AnnotationComponent,o=xJ(e,xX),s=(0,eo.useRef)({x:n,y:i}),l=xg({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,eo.useEffect)(function(){s.current={x:n,y:i}},[n,i]),eo.createElement(xZ.g,{transform:xE([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},eo.createElement(a,xQ({x:n,y:i},o)))}function x1(e){var t=e.editable,n=xJ(e,xG),r=(0,eo.useCallback)(function(e){return eo.createElement(x0,xQ({AnnotationComponent:t?xH:xV},e))},[t]);return eo.createElement(xY,xQ({AnnotationComponent:r},n))}x1.propTypes={editable:mr().bool};var x2=n(12766),x4=["d","stroke","fill"];function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x4),a=(0,eo.useRef)(t),o=(0,eo.useCallback)(gs()(function(e){a.current=e},50),[]),s=(0,x2.interpolatePath)(a.current,t);o(t);var l=xg({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xg({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return eo.createElement(xZ.path,x3({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var x6=n(12935),x8=n(12151);function x7(){return(x7=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function wu(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>wl(e(t),n)),{left:r,center:function(e,n,i,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}let wc=wu(wl);wc.right;let wd=wc.left;function wf(e){var t,n,r=e.scale,i=e.accessor,a=e.scaledValue,o=e.data;if("invert"in r&&"function"==typeof r.invert){var s=wu(i).left,l=Number(r.invert(a)),u=s(o,l),c=o[u-1],d=o[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=wd(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r=0||(i[n]=e[n]);return i}(e,wE),S=(0,eo.useContext)(xU),C=S.colorScale,_=S.theme,O=S.horizontal,M=(0,eo.useMemo)(function(){return b?we(x,b):void 0},[x,b]),T=(0,eo.useMemo)(function(){return we(x,y)},[x,y]),A=(0,eo.useMemo)(function(){return j?we(k,j):void 0},[k,j]),P=(0,eo.useMemo)(function(){return we(k,w)},[k,w]),N=(0,eo.useCallback)(function(e){return xq(x(y(e)))&&xq(k(w(e)))},[x,y,k,w]),R=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+l,L=wb({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[wn,D]}),Z=(0,eo.useMemo)(function(){var e=wt(O?x:k);return O?{x0:null!=M?M:e,x1:T,y:P}:{x:T,y0:null!=A?A:e,y1:P}},[x,k,O,T,P,M,A]),F=!!(d||c),z=(0,eo.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wk(wS({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(x6.Z,wS({},Z,E,{curve:o,defined:N}),function(e){var t=e.path;return eo.createElement(a,wS({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},E,{d:t(s)||""},L))}),(void 0===g||g)&&eo.createElement(x8.Z,wS({x:T,y:P,defined:N,curve:o},u),function(e){var t=e.path;return eo.createElement(a,wS({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),F&&eo.createElement(ww,{dataKey:l,data:s,xAccessor:y,yAccessor:w,xScale:x,yScale:k,renderGlyphs:z}))}wC.propTypes={renderLine:mr().bool};var w_=x9(wC);function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n}function wD(e,t){return e[t]}function wL(e){let t=[];return t.key=e,t}Array.prototype.slice;var wZ=n(74322),wF=n(58543);function wz(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=a&&(n=r=a):(n>a&&(n=a),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[a,l]),d=(0,eo.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=wP([]),t=wR,n=wN,r=wD;function i(i){var a,o,s,l=Array.from(e.apply(this,arguments),wL),u=l.length,c=-1;for(let e of i)for(o=0,++c;o0&&0===r&&(a?i.xScale=function(e){return e.domain(wz(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(wz(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,a,d,o,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function wW(e,t,n){var r,i,a,o,s=e.xScale,l=e.yScale,u=e.point,c=(n?wp:wh)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,wA.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,wA.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(a=l((0,wA.l8)(c.datum)))?a:-1/0)&&u.y>=(null!=(o=l((0,wA.xf)(c.datum)))?o:1/0)?0:c.distanceY}:null}var wq=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function w$(){return(w$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(o,wq)),u=w$({fill:null!=(n=null!=(r=null==v?void 0:v(e.key))?r:null==w?void 0:null==(i=w.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[S,C,v,E,w]),O=(0,eo.useCallback)(function(e){var t,n,r=null==(t=E.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wW(e,r,y):null},[E,y]),M="AREASTACK_EVENT_SOURCE-"+k.join("-"),T=wb({dataKey:k,enableEvents:void 0===a||a,findNearestDatum:O,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:M,allowedSources:[wn,M]}),A=!!(l||s),P=(0,eo.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wk(w$({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[A,T.onFocus,T.onBlur]);return!k.some(function(e){return null==g.get(e)})&&b&&x&&v?eo.createElement("g",{className:"visx-area-stack"},_.map(function(e){return eo.createElement(x6.Z,w$({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return eo.createElement(n,w$({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),(void 0===p||p)&&_.map(function(e){return eo.createElement(wT.Z,w$({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return eo.createElement(n,w$({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),A&&_.map(function(e,t){var n=_[_.length-t-1];return eo.createElement(ww,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:wK,yScale:wK,renderGlyphs:P})})):null}function wX(){return(wX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wJ),c=(0,eo.useContext)(xU),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,eo.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,x=(0,eo.useMemo)(function(){return b||y?function(e,t,n){return w0({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),w="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?eo.createElement(l,w0({top:w,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(a=y.axisLine)?void 0:a.stroke,strokeWidth:null==y?void 0:null==(o=y.axisLine)?void 0:o.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:k})):null}function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return w5({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=o(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return w5({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",C=wb({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:o,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wn,S]}),_=(0,eo.useMemo)(function(){return b?wt(b):0},[b]),O=(0,eo.useMemo)(function(){return x?wt(x):0},[x]),M=j.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var T=xW(k),A=M.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,a=e.key,o=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-_:(null!=(i=x(r(e)))?i:NaN)-O},s=v?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(a))?t:0,u=v?function(e){return _+Math.min(0,o(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return O+Math.min(0,o(e))},d=v?function(e){return Math.abs(o(e))}:function(){return T},f=v?function(){return T}:function(e){return Math.abs(o(e))},h=w.find(function(e){return e.props.dataKey===a}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:a,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!xq(r))return null;var i=c(e);if(!xq(i))return null;var o=d(e);if(!xq(o))return null;var s=f(e);return xq(s)?{key:a+"-"+t,x:r,y:i,width:o,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(a)}:null}).filter(function(e){return e})}});return eo.createElement("g",{className:"visx-bar-group"},A.map(function(e){return e&&eo.createElement(a,w6({horizontal:v,xScale:b,yScale:x},e,C,{key:e.key}))}))}w8.propTypes={children:mr().node.isRequired,padding:mr().number,sortBars:mr().func};var w7=n(10897),w9=function(e){return!!(null==e?void 0:e.includes("url("))},je=function(e){return w9(e)?"rgba(0,0,0,0.1)":e},jt=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],jn=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function jr(){return(jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function ja(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:je(e.fill),opacity:1}}function jo(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,s=e.radiusLeft,l=ji(e,jt);return eo.createElement(eo.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return eo.createElement(w7.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:a,bottom:o,left:s},function(e){var t=e.path;return eo.createElement(x5,jr({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function js(e){var t,n,r,i=e.bars,a=e.xScale,o=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,ji(e,jn)),u=xy(i,jr({},(n=(t={horizontal:s,scale:s?a:o}).scale,r=!!t.horizontal,(0,eo.useMemo)(function(){var e=wt(n);function t(t){var n=t.x,i=t.y,a=t.width,o=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:a,height:r?o:0,fill:je(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:ja,update:ja,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return eo.createElement(eo.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,a=e.width,o=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:eo.createElement(xZ.rect,jr({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:a,height:o,fill:w9(t.fill)?t.fill:s,opacity:u},l))}))}function jl(e){return null==e.radius?eo.createElement(js,e):eo.createElement(jo,jr({},e,{radius:e.radius}))}function ju(){return(ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jd),w=(0,eo.useContext)(xU),j=w.colorScale,k=w.horizontal,E=w.theme,S=w.innerWidth,C=w.innerHeight,_=(0,eo.useMemo)(function(){return we(g,v)},[g,v]),O=(0,eo.useMemo)(function(){return we(b,y)},[b,y]),M=xW(k?b:g)||(k?void 0===C?0:C:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===a?.1:a))),T=(0,eo.useMemo)(function(){return g?wt(g):0},[g]),A=(0,eo.useMemo)(function(){return b?wt(b):0},[b]),P=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",N=(0,eo.useMemo)(function(){var e=k?0:-M/2,t=k?-M/2:0;return s.map(function(n,r){var i,a=_(n)+e;if(!xq(a))return null;var s=O(n)+t;if(!xq(s))return null;var l=k?a-T:s-A;return xq(l)?{key:""+r,x:k?T+Math.min(0,l):a,y:k?s:A+Math.min(0,l),width:k?Math.abs(l):M,height:k?M:Math.abs(l),fill:null!=(i=null==o?void 0:o(n,r))?i:P}:null}).filter(function(e){return e})},[M,P,o,s,_,O,k,T,A]),R="BARSERIES_EVENT_SOURCE-"+l,D=wb({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wn,R]});return eo.createElement("g",{className:"vx-bar-series"},eo.createElement(i,jf({bars:N,horizontal:k,xScale:g,yScale:b},D,x)))}jh.propTypes={barPadding:mr().number,colorAccessor:mr().func};var jp=x9(jh),jm=["colorAccessor"];function jv(){return(jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jm);return eo.createElement(jp,jv({},n,{colorAccessor:t,BarsComponent:jl}))}var jy=n(15590);function jb(){return(jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jS),i=(0,eo.useCallback)(function(e){return eo.createElement(jE,jC({},e,{renderGlyph:n}))},[n]);return eo.createElement(wj,jC({},r,{renderGlyphs:i}))}var jO=n(93353),jM=n(63962),jT=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jA(){return(jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jT),o=(0,eo.useContext)(xU),s=o.theme,l=o.xScale,u=o.yScale,c=o.margin,d=o.innerWidth,f=o.innerHeight,h=null==s?void 0:s.gridStyles;return eo.createElement(eo.Fragment,null,(void 0===t||t)&&u&&null!=d&&eo.createElement(r,jA({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},a)),(void 0===n||n)&&l&&null!=f&&eo.createElement(i,jA({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:l},a)))}jP.propTypes={rows:mr().bool,columns:mr().bool};var jN=["animationTrajectory"];function jR(){return(jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jN),r=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jO.Z,jR({},e,{animationTrajectory:t}))}},[t]),i=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jM.Z,jR({},e,{animationTrajectory:t}))}},[t]);return eo.createElement(jP,jR({GridRowsComponent:r,GridColumnsComponent:i},n))}var jL=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jZ(){return(jZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jL),j=(0,eo.useContext)(xU),k=j.colorScale,E=j.theme,S=(0,eo.useMemo)(function(){return we(v,m)},[v,m]),C=(0,eo.useMemo)(function(){return we(y,g)},[y,g]),_=(0,eo.useCallback)(function(e){return xq(v(m(e)))&&xq(y(g(e)))},[v,m,y,g]),O=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,T=wb({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[wn,M]}),A=!!(u||l),P=(0,eo.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wk(jZ({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[A,T.onFocus,T.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(x8.Z,jZ({x:S,y:C,defined:_,curve:a},w),function(e){var t,n=e.path;return eo.createElement(x,jZ({stroke:null!=(t=null==i?void 0:i(s))?t:O,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(o)||""},T))}),A&&eo.createElement(ww,{dataKey:s,data:o,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:P}))}jF.propTypes={colorAccessor:mr().func};var jz=x9(jF);function jV(){return(jV=Object.assign?Object.assign.bind():function(e){for(var t=1;tjU.every(n=>e[n]===t[n]);function jq(e,t){return(jq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var j$=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jq(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?tD.createPortal(this.props.children,this.node):null},t}(eo.PureComponent);j$.propTypes={zIndex:mr().oneOfType([mr().number,mr().string])};var jK=["detectBounds","zIndex"],jY=["left","top","detectBounds","zIndex"];function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jQ=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jJ=["x","y"];function j0(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function j1(){return(j1=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,eo.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,y:c};u.current.element instanceof HTMLElement&&a&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jW(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jH()(e,d):e,c?jH()(e,c):e]},[l,a,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new o(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,eo.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,eo.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,eo.useEffect)(()=>{v(),g()},[r,m,p]),(0,eo.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:a}=window.getComputedStyle(t);return[r,i,a].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(jG(et,jK)))[0],el=ea[1],eu=ea[2],ec=(0,eo.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,a=jG(e,jY),o=null==i?ei:i,s=(null==r?er:r)?mZ:mO,l=(void 0===t?0:t)+(el.left||0)+window.scrollX,u=(void 0===n?0:n)+(el.top||0)+window.scrollY;return eo.createElement(j$,{zIndex:o},eo.createElement(s,jX({left:l,top:u},a)))}},[er,ei,el.left,el.top]),{containerRef:es,containerBounds:el,forceRefreshBounds:eu,TooltipInPortal:ec}),N=P.containerRef,R=P.TooltipInPortal,D=P.forceRefreshBounds,L=(0,eo.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),Z=null!=A&&A.tooltipOpen?a(j1({},A,{colorScale:k})):null,F=(null==A?void 0:A.tooltipOpen)&&null!=Z,z=(0,eo.useRef)(!1);(0,eo.useEffect)(function(){F&&!z.current&&D(),z.current=F},[F,D]);var V=null==A?void 0:A.tooltipLeft,I=null==A?void 0:A.tooltipTop,B=O?xW(O):0,H=M?xW(M):0,U=(0,eo.useCallback)(function(e,t){var n,r,i=null==T?void 0:T.get(e),a=null==i?void 0:i.xAccessor,o=null==i?void 0:i.yAccessor;return{left:O&&a?null!=(n=Number(O(a(t)))+B/2)?n:0:void 0,top:M&&o?null!=(r=Number(M(o(t)))+H/2)?r:0:void 0}},[T,B,H,O,M]),W=null==A?void 0:null==(ed=A.tooltipData)?void 0:ed.nearestDatum,q=null!=(ef=null==W?void 0:W.key)?ef:"";if(F&&W&&(v||y)){var $=U(q,W.datum),K=$.left,Y=$.top;V=v&&xq(K)?K:V,I=y&&xq(Y)?Y:I}var X=[];if(F&&(void 0!==c&&c||h)){var G=Number(null!=(eE=null==i?void 0:i.radius)?eE:4);if(h)Object.values(null!=(eS=null==A?void 0:null==(eC=A.tooltipData)?void 0:eC.datumByKey)?eS:{}).forEach(function(e){var t,n,r,a=e.key,o=e.datum,s=e.index,l=null!=(t=null!=(n=null==k?void 0:k(a))?n:null==E?void 0:null==(r=E.htmlLabel)?void 0:r.color)?t:"#222",u=U(a,o),c=u.left,d=u.top;xq(c)&&xq(d)&&X.push({key:a,color:l,datum:o,index:s,size:G,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===a})});else if(W){var Q=U(q,W.datum),J=Q.left,ee=Q.top;if(xq(J)&&xq(ee)){var et,en,er,ei,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,ek,eE,eS,eC,e_,eO,eM,eT,eA,eP,eN=null!=(e_=null!=(eO=null!=(eM=null!=(eT=q&&(null==k?void 0:k(q)))?eT:null)?eM:null==E?void 0:null==(eA=E.gridStyles)?void 0:eA.stroke)?eO:null==E?void 0:null==(eP=E.htmlLabel)?void 0:eP.color)?e_:"#222";X.push({key:q,color:eN,datum:W.datum,index:W.index,size:G,x:J,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return eo.createElement(eo.Fragment,null,eo.createElement("svg",{ref:L,style:j4}),F&&eo.createElement(eo.Fragment,null,void 0!==p&&p&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:V,top:null==_?void 0:_.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j2},eo.createElement("svg",{width:"1",height:S,overflow:"visible"},eo.createElement("line",j1({x1:0,x2:0,y1:0,y2:S,strokeWidth:1.5,stroke:null!=(eh=null!=(ep=null==E?void 0:null==(em=E.gridStyles)?void 0:em.stroke)?ep:null==E?void 0:null==(ev=E.htmlLabel)?void 0:ev.color)?eh:"#222"},b)))),void 0!==d&&d&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==_?void 0:_.left,top:I,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j2},eo.createElement("svg",{width:C,height:"1",overflow:"visible"},eo.createElement("line",j1({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eg=null!=(ey=null==E?void 0:null==(eb=E.gridStyles)?void 0:eb.stroke)?ey:null==E?void 0:null==(ex=E.htmlLabel)?void 0:ex.color)?eg:"#222"},r)))),X.map(function(e,t){var n=e.x,r=e.y,i=j0(e,jJ);return eo.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j2},eo.createElement("svg",{overflow:"visible"},s(j1({x:0,y:0},i))))}),eo.createElement(R,j1({left:V,top:I,style:j1({},m_,{background:null!=(ew=null==E?void 0:E.backgroundColor)?ew:"white",boxShadow:"0 1px 2px "+(null!=E&&null!=(ej=E.htmlLabel)&&ej.color?(null==E?void 0:null==(ek=E.htmlLabel)?void 0:ek.color)+"55":"#22222255")},null==E?void 0:E.htmlLabel)},w),Z)))}function j8(e){var t=(0,eo.useContext)(wr);return null!=t&&t.tooltipOpen?eo.createElement(j6,e):null}j3.propTypes={isNearestDatum:mr().bool.isRequired},j6.propTypes={renderTooltip:mr().func.isRequired,renderGlyph:mr().func,snapTooltipToDatumX:mr().bool,snapTooltipToDatumY:mr().bool,showVerticalCrosshair:mr().bool,showHorizontalCrosshair:mr().bool,showDatumGlyph:mr().bool,showSeriesGlyphs:mr().bool},j8.propTypes={renderTooltip:mr().func.isRequired,renderGlyph:mr().func,snapTooltipToDatumX:mr().bool,snapTooltipToDatumY:mr().bool,showVerticalCrosshair:mr().bool,showHorizontalCrosshair:mr().bool,showDatumGlyph:mr().bool,showSeriesGlyphs:mr().bool};var j7=n(70390);function j9(e){var t=e.children,n=(0,eo.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return eo.createElement(wi.Provider,{value:n},t)}function ke(){return(ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mk);return mE({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),a=(0,eo.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:a}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,eo.useRef)(null),g=(0,eo.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,a=e.distanceX,o=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(xq(a)?a:1/0,2)+Math.pow(xq(o)?o:1/0,2));p(function(e){var a,o,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xq(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(a=null==u?void 0:null==(o=u.nearestDatum)?void 0:o.key)?a:"")!==r&&c0&&i>0&&g({width:p,height:i,margin:s})},[g,p,i,s]);var x=wo({source:wn});return(wy({dataKey:"nearest"===(void 0===f?"nearest":f)?wg:wv,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:kp}),g)?null==p||null==i?eo.createElement(j7.Z,null,function(t){return eo.createElement(km,kf({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?eo.createElement(kt,null,eo.createElement(km,e)):null==b?eo.createElement(j9,null,eo.createElement(km,e)):p>0&&i>0?eo.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&eo.createElement("rect",kf({x:s.left,y:s.top,width:p-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},x))):null:m&&v?eo.createElement(kd,{xScale:m,yScale:v,theme:h,initialDimensions:{width:p,height:i,margin:s},horizontal:a},eo.createElement(km,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function kv(e){return eo.createElement(w_,e)}function kg(e){return eo.createElement(wY,e)}function ky(){return(ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kE(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,s=e.radiusLeft,l=kk(e,kx),u=!!(l.onFocus||l.onBlur);return eo.createElement(eo.Fragment,null,t.map(function(e){var t=e.key,c=kk(e,kw);return null==n?eo.createElement("rect",kj({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):eo.createElement(w7.Z,kj({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:a,bottom:o,left:s},c,l))}))}function kS(){return(kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k_);return eo.createElement(jp,kO({},n,{colorAccessor:t,BarsComponent:kE}))};function kT(){return(kT=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"line",children:"Line"}),(0,ea.jsx)(fy,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,ea.jsx)(fy,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,ea.jsx)(fy,{disabled:p,value:"area",children:"Area"}),(0,ea.jsx)(fy,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Stack series offset"}),(0,ea.jsxs)(fb,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,ea.jsxs)(fy,{disabled:!s,value:"none",children:["None",(0,ea.jsx)(hs,{children:"zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!s,value:"diverging",children:["Diverging",(0,ea.jsx)(hs,{children:"non zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!s,value:"expand",children:["Expand",(0,ea.jsx)(hs,{children:"values sum to 1"})]}),(0,ea.jsxs)(fy,{disabled:!s,value:"wiggle",children:["Wiggle",(0,ea.jsx)(hs,{children:"stream graph"})]})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Curve shape"}),(0,ea.jsxs)(fb,{value:i,onValueChange:e=>a(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{disabled:!o,value:"linear",children:"Linear"}),(0,ea.jsx)(fy,{disabled:!o,value:"cardinal",children:"Cardinal"}),(0,ea.jsx)(fy,{disabled:!o,value:"step",children:"Step"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Axes"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,ea.jsxs)(fb,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"bottom",children:"Bottom"}),(0,ea.jsx)(fy,{value:"top",children:"Top"})]}),(0,ea.jsxs)(fb,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,ea.jsx)(fy,{value:"left",children:"Left"}),(0,ea.jsx)(fy,{value:"right",children:"Right"})]})]})]})]})})}let kQ=(0,eo.forwardRef)((e,t)=>{let{className:n}=e;return(0,ea.jsxs)("div",{ref:t,className:(0,eW.cx)("flex gap-1 items-center",n),children:[(0,ea.jsx)(kJ,{}),(0,ea.jsx)(kJ,{}),(0,ea.jsx)(kJ,{})]})});function kJ(){return(0,ea.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function k0(e){let{id:t,height:n,data:r,config:i,actionsLeft:a,isLoading:o,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,eo.useState)(!(0,hr.Tb)()&&!n.disableAnimations),{resolvedTheme:a}=(0,p5.F)(),o=(0,eo.useMemo)(()=>"dark"===a?gV:gz,[a]),[s,l]=(0,eo.useState)("center"),[u,c]=(0,eo.useState)([!1,!1]),[d,f]=u,[h,p]=(0,kX.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,v]=(0,kX.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[g,y]=(0,eo.useState)(!0),[b,x]=(0,eo.useState)(!0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!0),[S,C]=(0,eo.useState)(!0),[_,O]=(0,kX.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[M,T]=(0,kX.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[A,P]=(0,kX.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,eo.useMemo)(()=>n.chartType,[]),R=(0,eo.useMemo)(()=>n.curveType,[]),D=(0,eo.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(_),Z=["barstack","areastack"].includes(_),F=o.xyChartTheme.gridStyles.stroke,[z,V]=(0,eo.useState)(!1),[I,B]=(0,eo.useState)("star"),H=(0,eo.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:a,onPointerOut:o,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:a,onPointerOut:o,onPointerUp:s};return"star"===I?(0,ea.jsx)(gj,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===I?(0,ea.jsx)(gS,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===I?(0,ea.jsx)(gM,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,ea.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[I,F]),U=(0,eo.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==_&&"bargroup"!==_?[...t,{...e,timestamp:e.timestamp+kz(1)}]:t},[_,t]),W=(0,eo.useMemo)(()=>{if(U.length<2)return 0;let e=[U[0].timestamp,U[U.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys((0,kZ.Z)(t[0],"timestamp")),[t]),$=(0,eo.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,eo.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,eo.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]);return{id:e,accessors:Y,animationTrajectory:s,config:n,scales:(0,eo.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:U,curve:(0,eo.useMemo)(()=>"cardinal"===M&&gT.ZP||"step"===M&&vi.ZP||gA.Z,[M]),chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:_,curveType:M,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===_,renderBarStack:"barstack"===_,enableTooltipGlyph:z,renderTooltipGlyph:H,renderAreaSeries:"area"===_,renderAreaStack:"areastack"===_,renderLineSeries:"line"===_,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:g,showVerticalCrosshair:b,snapTooltipToDatum:!Z&&k,stackOffset:A,theme:o,margin:(0,eo.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]),xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:C,setChartType:O,setCurveType:T,setStackOffset:P,setEnableTooltipGlyph:V,setTooltipGlyphComponent:B,...r?{Annotation:x1,AreaSeries:wM,AreaStack:wG,Axis:w4,BarGroup:jc,BarSeries:jg,BarStack:jj,GlyphSeries:j_,Grid:jD,LineSeries:jI,Tooltip:j8,XYChart:km}:{AreaSeries:kv,AreaStack:kg,Axis:kb,BarGroup:kC,BarSeries:kM,BarStack:kA,Grid:kD,LineSeries:kL,Tooltip:j8,XYChart:km}}}(t,r,i),f=(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,ea.jsx)(kG,{...d})]}),(0,ea.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:a}),(0,ea.jsx)(gf,{children:e=>{let{width:t,height:n}=e;return o?(0,ea.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,ea.jsx)(kQ,{className:"scale-150"})}):0===r.length&&l?l:(0,ea.jsx)(gp,{...d,width:t,height:n})}})]});return"panel"===u?(0,ea.jsx)(nE,{className:"relative p-px",style:{height:n},children:f}):(0,ea.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var k1="text/plain",k2=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var k4="undefined"==typeof window?void 0:window,k3="undefined"==typeof globalThis?void 0:globalThis,k5=null!=(H=null==k4?void 0:k4.Promise)?H:null==k3?void 0:k3.Promise,k6="undefined"==typeof navigator?void 0:navigator,k8=null==k6?void 0:k6.clipboard;null==(U=null==k8?void 0:k8.read)||U.bind(k8),null==(W=null==k8?void 0:k8.readText)||W.bind(k8);var k7=null==(q=null==k8?void 0:k8.write)?void 0:q.bind(k8),k9=null==($=null==k8?void 0:k8.writeText)?void 0:$.bind(k8),Ee=null==k4?void 0:k4.ClipboardItem,Et=function(){if(!k5)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return k5}();function En(e,t,n){for(var r in k2("listener called"),e.success=!0,t){var i=t[r],a=n.clipboardData;a.setData(r,i),r===k1&&a.getData(r)!==i&&(k2("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Er(e){var t={success:!1},n=En.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function Ei(e,t){Ea(e);var n=Er(t);return Eo(),n}function Ea(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function Eo(){var e=document.getSelection();e&&e.removeAllRanges()}function Es(e){var t,n,r,i,a,o,s,l=k1 in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==k4?void 0:k4.clipboardData)&&void 0!==(null==k4?void 0:k4.clipboardData.setData)){if(!l)throw Error("No `text/plain` value was specified.");if(function(e){if(!k4.clipboardData)return!1;var t=k4.clipboardData.setData("Text",e);return t&&k2("writeTextIE worked"),t}(e[k1]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return Er(e)?(k2("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(k2('UA "Edge" => assuming success'),!0):Ei(document.body,e)?(k2("copyUsingTempSelection worked"),!0):((o=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),o.textContent="temporary element",document.body.appendChild(o),s=Ei(o,e),document.body.removeChild(o),s)?(k2("copyUsingTempElem worked"),!0):(t=e[k1],k2("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(k2("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),Ea(i),a=document.execCommand("copy"),Eo(),document.body.removeChild(n),!!a&&(k2("copyTextUsingDOM worked"),!0))}function El(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return Et.all(n).then(t=>{for(var n={},r=0;rEt.resolve(!0),Ed=Et.resolve(!1);function Ef(e){return new Et((t,n)=>{try{t(e())}catch(e){n(e)}})}function Eh(e){return Ef(()=>k9?(k2("Using `navigator.clipboard.writeText()`."),k9(e).catch(Ep)):Et.resolve(Ep(e)))}function Ep(e){var t;if(!Es(((t={})[k1]=e,t)))throw Error("writeText() failed")}function Em(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function Ev(e){return El(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),Ee?n(new Ee(t,i)):r("window.ClipboardItem is not defined")}))}let Eg={data:""},Ey=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Eg,Eb=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ex=/\/\*[^]*?\*\/|\s\s+|\n/g,Ew=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+o+";":r+="f"==a[1]?Ew(o,a):a+"{"+Ew(o,"k"==a[1]?"":t)+"}":"object"==typeof o?r+=Ew(o,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ew.p?Ew.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ej={},Ek=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Ek(e[n]);return t}return e},EE=(e,t,n,r,i)=>{var a;let o=Ek(e),s=Ej[o]||(Ej[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Ej[s]){let t=o!==e?e:(e=>{let t,n=[{}];for(;t=Eb.exec(e.replace(Ex,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);Ej[s]=Ew(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return a=Ej[s],-1==t.data.indexOf(a)&&(t.data=r?a+t.data:t.data+a),s},ES=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Ew(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function EC(e){let t=this||{},n=e.call?e(t.p):e;return EE(n.unshift?n.raw?ES(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Ey(t.target),t.g,t.o,t.k)}EC.bind({g:1});let E_,EO,EM,ET=EC.bind({k:1});function EA(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:EO&&EO()},s),n.o=/ *go\d+/.test(l),s.className=EC.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let u=e;return e[0]&&(u=s.as||e,delete s.as),EM&&u[0]&&EM(s),E_(u,s)}return t?t(i):i}}function EP(){return(EP=Object.assign||function(e){for(var t=1;t-1&&EI.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return EP({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||EU[t.type],style:EP({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return EP({},n,{toasts:i})},Eq=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),EP({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||ED()}));return EH({type:K.UPSERT_TOAST,toast:i}),i.id}},E$=function(e,t){return Eq("blank")(e,t)};E$.error=Eq("error"),E$.success=Eq("success"),E$.loading=Eq("loading"),E$.custom=Eq("custom"),E$.dismiss=function(e){EH({type:K.DISMISS_TOAST,toastId:e})},E$.remove=function(e){return EH({type:K.REMOVE_TOAST,toastId:e})},E$.promise=function(e,t,n){var r=E$.loading(t.loading,EP({},n,null==n?void 0:n.loading));return e.then(function(e){return E$.success(ER(t.success,e),EP({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){E$.error(ER(t.error,e),EP({id:r},n,null==n?void 0:n.error))}),e};var EK=function(e){var t=EW(e),n=t.toasts,r=t.pausedAt;(0,eo.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&E$.dismiss(t.id);return}return setTimeout(function(){return E$.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,eo.useMemo)(function(){return{startPause:function(){EH({type:K.START_PAUSE,time:Date.now()})},endPause:function(){r&&EH({type:K.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EH({type:K.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},a=i.reverseOrder,o=i.gutter,s=void 0===o?8:o,l=i.defaultPosition,u=n.filter(function(t){return(t.position||l)===(e.position||l)&&t.height}),c=u.findIndex(function(t){return t.id===e.id}),d=u.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Sy=function(){return e},e}x=eo.createElement,Ew.p=void 0,E_=x,EO=void 0,EM=void 0;var Sb=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return EP({left:0,right:0,display:"flex",position:"absolute",transition:EL()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},Sx=EC(Sy()),Sw=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,a=e.gutter,o=e.children,s=e.containerStyle,l=e.containerClassName,u=EK(i),c=u.toasts,d=u.handlers;return(0,eo.createElement)("div",{style:EP({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=Sb(i,d.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,eo.createElement)("div",{ref:l,className:e.visible?Sx:"",key:e.id,style:s},"custom"===e.type?ER(e.message,e):o?o(e):(0,eo.createElement)(Sg,{toast:e,position:i}))}))};function Sj(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,ea.jsx)(nw,{className:"flex items-center",color:"subtle",children:t}),(0,ea.jsx)(l_,{content:n,children:(0,ea.jsx)(nw,{ellipsis:!0,className:"flex-1",children:n})}),(0,ea.jsx)("div",{className:"flex items-center pl-1",children:(0,ea.jsx)(lM,{icon:"hover",size:"none",onClick:e=>{E$.dismiss(i)},children:(0,ea.jsx)(lT.PcV,{})})})]}),r&&(0,ea.jsx)("div",{className:"pb-1",children:(0,ea.jsx)(uS,{children:(0,ea.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,ea.jsx)(nw,{color:"subtle",size:"14",children:r})})})})]})}let Sk=e=>{let{title:t,body:n,icon:r,options:i={}}=e;E$(e=>(0,ea.jsx)(Sj,{toastId:e.id,title:t,body:n,icon:r}),SC(i))};function SE(e){let{title:t,body:n,options:r}=e;Sk({title:t,body:n,icon:(0,ea.jsx)(lT.yar,{className:"text-green-600"}),options:r})}function SS(e){let{title:t,body:n,options:r}=e;Sk({title:t,body:n,icon:(0,ea.jsx)(lT.T80,{className:"text-red-600"}),options:r})}function SC(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eW.cx)(nk(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(lT.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(lT.Jsc,{className:"w-5 text-red-600"})})},...t}}function S_(){return(0,ea.jsx)(Sw,{toastOptions:SC(),containerStyle:{zIndex:20}})}let SO=(e,t)=>{Sk({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(lT.vtB,{})}),Eh(e)},SM=(e,t,n)=>{var r;Sk({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(lT.vtB,{})}),r=[new ClipboardItem({[t]:e})],Ef(()=>k7&&Ee?(k2("Using `navigator.clipboard.write()`."),Et.all(r.map(Ev)).then(e=>k7(e).then(Ec).catch(e=>{if(!Em(r,k1)&&!Em(r,"text/html"))throw e;return Ed}))):Ed).then(e=>{var t;return e?Eu:(Em(r,k1)||k2("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call suppressWarnings() to suppress this warning."),El((t=r[0]).types,function(e){return t.getType(e).then(e=>new Et((t,n)=>{var r=new FileReader;r.addEventListener("load",()=>{var e=r.result;"string"==typeof e?t(e):n("could not convert blob to string")}),r.readAsText(e)}))}).then(e=>{if(!Es(e))throw Error("write() failed")}))})},ST=e=>{let{text:t,title:n,body:r,icon:i,options:a}=e;Sk({title:n,body:r,icon:i||(0,ea.jsx)(lT.vtB,{}),options:a}),Eh(t)};function SA(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function SP(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function SN(e,t,n){return t?"".concat(e," ").concat(SA(t,n)):"".concat(e)}function SR(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let SD={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},SL={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},SZ={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function SF(e){return e?SD[e]:void 0}function Sz(e){return e?SZ[e]:void 0}function SV(e){return e&&["ip","hostIp"].includes(e)?20:12}function SI(e){let{value:t,displayValue:n,type:r,label:i,href:a,maxLength:o,size:s,scaleSize:l,weight:u,font:c,color:d="contrast",className:f,siascanUrl:h,contextMenu:p}=e,m=i||(r?SL[r]:void 0),v=o||SV(r),g=SP(t),y=n||g,b="".concat(null==y?void 0:y.slice(0,v)).concat(((null==y?void 0:y.length)||0)>v?"...":"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",f),children:[a?(0,ea.jsx)(db,{href:a,underline:"hover",size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}):(0,ea.jsx)(nw,{size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:p||(0,ea.jsx)(SB,{cleanValue:g,label:m,size:s,siascanUrl:h,type:r})})]})}function SB(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:a,type:o}=e;return(0,ea.jsxs)(dt,{trigger:(0,ea.jsx)(lM,{size:"none",variant:"ghost",children:(0,ea.jsx)(lT.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,ea.jsxs)(dn,{onSelect:e=>{SO(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(lT.olJ,{})}),"Copy to clipboard"]}),a&&o&&(t=o)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,ea.jsx)(db,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(a,o,r),className:"block w-full",underline:"none",children:(0,ea.jsxs)(dn,{onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(lT.V8Q,{})}),"View on Siascan"]})})]})}function SH(e){let{value:t,displayValue:n,type:r,href:i,maxLength:a,size:o,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=a||SV(r),f=SP(t),h=n||f,p="".concat(null==h?void 0:h.slice(0,d)).concat(((null==h?void 0:h.length)||0)>d?"...":"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",c),children:[i?(0,ea.jsx)(db,{href:i,underline:"hover",size:o,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,ea.jsx)(nw,{size:o,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function SU(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change"}=e,o=(0,ge.yF)(String(t),{units:"SF"});return(0,ea.jsx)(l_,{content:(i?"".concat(i," "):"")+o,children:(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===a?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===a&&t>0?"+":"",o]})})}function SW(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",color:o,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=o||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===a?"".concat(f).concat((0,ge.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,ge.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,ea.jsx)(nw,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,ea.jsx)(l_,{content:(i?"".concat(i," "):"")+(0,ge.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function Sq(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:a="",variant:o="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,hi.BW)(),{settings:{currency:d}}=(0,hr.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===o?"+":t.isLessThan(0)?"-":"",h=i||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(he())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,ea.jsx)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(S$(p.absoluteValue(),m))});return u?(0,ea.jsx)(l_,{content:(a?"".concat(a," "):"")+"".concat(f).concat(d.prefix).concat(S$(p.absoluteValue(),l)),children:v}):v}function S$(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function SK(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",fixed:o=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,hr.Hv)(),v=(0,hi.BW)(),g=(0,eo.useMemo)(()=>(0,ea.jsx)(SW,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:o,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,a,o,u,c,d,f,m,h,p]),y=(0,eo.useMemo)(()=>(0,ea.jsx)(Sq,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,a,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,ea.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,ea.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function SY(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:a="change",color:o,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,ea.jsx)(l_,{content:(i?"".concat(i," "):"")+s(t),children:(0,ea.jsx)(nw,{size:n,weight:r,font:"mono",ellipsis:!0,color:o||u,children:"change"===a?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var SX=n(19510),SG=n(89930),SQ=n(62875),SJ=1/0,S0=function(e){var t,n=(t=e)?(t=(0,SQ.Z)(t))===SJ||t===-SJ?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},S1=Math.min,S2=function(e,t){if((e=S0(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=S1(e,4294967295);t="function"==typeof(n=t)?n:SG.Z,e-=4294967295;for(var a=(0,SX.Z)(i,t);++r(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex gap-4 p-3.5",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,ea.jsx)(hp,{className:"w-[60px] h-[50px]"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ea.jsx)(hp,{className:"w-[90%] h-[20px]"}),(0,ea.jsx)(hp,{className:"w-[140px] h-[14px]"})]})]},e))})}var S3=n(29193),S5=n(34864);function S6(e){let{type:t,label:n,initials:r,href:i,src:a,shape:o}=e,s=(0,ea.jsx)(lU,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:a,shape:o||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,ea.jsx)(db,{href:i,underline:"none",children:s})||s;return t?(0,ea.jsx)(l_,{content:n||SF(t),children:(0,ea.jsx)("div",{className:"",children:l})}):l}function S8(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:a,href:o,onClick:s,children:l}=e;return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex gap-4 p-4",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,ea.jsx)(S6,{label:t,type:n,shape:i,src:r,initials:a||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:o}),l]})}function S7(e){let t=e.sc,n=e.sf,r=e.hash&&(0,ea.jsx)(SI,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&Sz(e.txType)||SF(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?(0,S5.Z)(i):i;return(0,ea.jsx)(S8,{...e,children:(0,ea.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,ea.jsx)(nw,{color:"subtle",weight:"semibold",children:(0,ea.jsx)(db,{href:e.blockHref,underline:"none",children:(0,ge.yF)(e.height)})}),a?(0,ea.jsx)(l_,{content:a,children:(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:a})}):(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:r})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,ea.jsx)(SK,{variant:e.scVariant,value:t}),!!n&&(0,ea.jsx)(SU,{variant:e.sfVariant,value:n})]})]}),(0,ea.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ea.jsx)("div",{className:"flex gap-1",children:!!a&&r}),(0,ea.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(lT.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,ea.jsx)(nw,{color:"subtle",children:(0,S3.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function S9(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:a,emptyMessage:o,skeletonCount:s=10,children:l}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||l||(c="skeleton"),((null==r?void 0:r.length)||l)&&(c="currentData"),(0,ea.jsx)(nE,{children:(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,ea.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,ea.jsx)("div",{className:"flex-1"}),n]}),(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(a||(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center justify-center h-[84px]",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,ea.jsx)(nw,{size:"18",color:"subtle",children:o||"No results"})})),"currentData"===c&&(l||(null==r?void 0:r.map((e,t)=>(0,ea.jsx)(S7,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,ea.jsx)(S4,{skeletonCount:s})]})]})})}function Ce(e){let{label:t,entityType:n,entityValue:r,actions:i,href:a,value:o,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:v}=e,g=(0,ea.jsx)(nw,{color:"subtle",size:"12",className:"h-6",children:f});return(0,ea.jsx)(nE,{children:(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",v?"cursor-pointer":""),onClick:v,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,ea.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?(0,S5.Z)(t):t}),i]}),(0,ea.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,ea.jsx)(hp,{className:"h-12 w-[150px]"}):(0,ea.jsxs)(ea.Fragment,{children:[void 0!==u&&(0,ea.jsx)(SK,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,ea.jsx)(SU,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,ea.jsx)(SI,{scaleSize:p,label:SF(n),href:a,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,ea.jsx)(SI,{scaleSize:p,label:"hash",value:l}),void 0!==o&&(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:o})]}),g?(0,ea.jsx)("div",{className:"mt-1",children:m?(0,ea.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,ea.jsx)(hp,{className:"h-4 w-[100px]"})}):h?(0,ea.jsx)(l_,{content:h,children:g}):g}):null]})]})})})}function Ct(e){let{title:t,actions:n,name:r}=e;return(0,ea.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,ea.jsx)(dv,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Cn(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],a=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,ea.jsx)(nw,{size:"14",color:"red",children:a}):null}function Cr(e){let{form:t,title:n,actions:r,name:i,className:a,wrap:o}=e,s=t.formState.errors[i];return n||s?(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-x-4 overflow-hidden",o?"flex-wrap":"",a),children:[(0,ea.jsx)(Ct,{name:i,title:n,actions:r}),(0,ea.jsx)(Cn,{form:t,name:i})]}):null}function Ci(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(Cr,{...n}),t]})}function Ca(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,ea.jsx)(ea.Fragment,{children:(0,ea.jsx)(lM,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,ea.jsx)(kQ,{}):i})})}function Co(e){let{formik:t,title:n,name:r,placeholder:i,disabled:a,readOnly:o,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,ea.jsx)(Cd,{formik:t,title:n,name:r,children:"number"===g?(0,ea.jsx)(Cl,{formik:t,name:r,units:v,disabled:a,readOnly:o,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,ea.jsx)(Cu,{formik:t,name:r,disabled:a,readOnly:o,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,ea.jsx)(Cs,{formik:t,name:r,autoComplete:s,disabled:a,readOnly:o,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function Cs(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:a,readOnly:o,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,ea.jsx)(fZ,{id:n,name:n,autoComplete:i,disabled:a,spellCheck:l,placeholder:r,tabIndex:s,readOnly:o||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function Cl(e){let{formik:t,name:n,units:r,disabled:i,readOnly:a,tabIndex:o,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,ea.jsx)(hn,{id:n,units:r,name:n,placeholder:new(he())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:a||t.isSubmitting,tabIndex:o,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function Cu(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:a,placeholder:o,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,ea.jsx)(ho,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:a,onFocus:()=>t.setFieldTouched(n),sc:new(he())(t.values[n]),placeholder:new(he())(o),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Cc(e){var t,n;let{formik:r,title:i,name:a,withStatusError:o=!1,className:s}=e,l=r.errors[a]&&r.touched[a]||o&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[a]||o&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-4",s),children:[i?(0,ea.jsx)(dv,{htmlFor:a,children:i}):(0,ea.jsx)("div",{}),l&&(0,ea.jsx)(nw,{size:"14",color:"red",children:u})]})}function Cd(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(Cc,{...n}),t]})}function Cf(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:a=!0,children:o}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,ea.jsx)(nw,{color:"red",children:n.status.error}),(0,ea.jsx)(lM,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,ea.jsx)(kQ,{}):o})]})}let Ch="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Cp(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Cm(e){return"nodeType"in e}function Cv(e){var t,n;return e?Cp(e)?e:Cm(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Cg(e){let{Document:t}=Cv(e);return e instanceof t}function Cy(e){return!Cp(e)&&e instanceof Cv(e).HTMLElement}function Cb(e){return e instanceof Cv(e).SVGElement}function Cx(e){return e?Cp(e)?e.document:Cm(e)?Cg(e)?e:Cy(e)||Cb(e)?e.ownerDocument:document:document:document}let Cw=Ch?eo.useLayoutEffect:eo.useEffect;function Cj(e){let t=(0,eo.useRef)(e);return Cw(()=>{t.current=e}),(0,eo.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function CE(e,t){let n=(0,eo.useRef)();return(0,eo.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function CS(e){let t=Cj(e),n=(0,eo.useRef)(null),r=(0,eo.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function CC(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e},[e]),t.current}let C_={};function CO(e,t){return(0,eo.useMemo)(()=>{if(t)return t;let n=null==C_[e]?0:C_[e]+1;return C_[e]=n,e+"-"+n},[e,t])}function CM(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let CT=CM(1),CA=CM(-1);function CP(e){if(!e)return!1;let{KeyboardEvent:t}=Cv(e.target);return t&&e instanceof t}function CN(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=Cv(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let CR=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[CR.Translate.toString(e),CR.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),CD="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",CL={display:"none"};function CZ(e){let{id:t,value:n}=e;return eo.createElement("div",{id:t,style:CL},n)}function CF(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return eo.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let Cz=(0,eo.createContext)(null),CV={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},CI={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CB(e){let{announcements:t=CI,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=CV}=e,{announce:a,announcement:o}=function(){let[e,t]=(0,eo.useState)("");return{announce:(0,eo.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=CO("DndLiveRegion"),[l,u]=(0,eo.useState)(!1);if((0,eo.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,eo.useContext)(Cz);(0,eo.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,eo.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!l)return null;let c=eo.createElement(eo.Fragment,null,eo.createElement(CZ,{id:r,value:i.draggable}),eo.createElement(CF,{id:s,announcement:o}));return n?(0,tD.createPortal)(c,n):c}function CH(){}function CU(e,t){return(0,eo.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(w=Y||(Y={})).DragStart="dragStart",w.DragMove="dragMove",w.DragEnd="dragEnd",w.DragCancel="dragCancel",w.DragOver="dragOver",w.RegisterDroppable="registerDroppable",w.SetDroppableDisabled="setDroppableDisabled",w.UnregisterDroppable="unregisterDroppable";let CW=Object.freeze({x:0,y:0});function Cq(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let C$=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(r0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Cq)};function CK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:CW}let CY=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function CX(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let CG={ignoreTransform:!1};function CQ(e,t){void 0===t&&(t=CG);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=Cv(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=CX(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),u=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function CJ(e){return CQ(e,{ignoreTransform:!0})}function C0(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if(Cg(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Cy(i)||Cb(i)||n.includes(i))return n;let o=Cv(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=Cv(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,o)&&n.push(i),void 0===(a=o)&&(a=Cv(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function C1(e){let[t]=C0(e,1);return null!=t?t:null}function C2(e){return Ch&&e?Cp(e)?e:Cm(e)?Cg(e)||e===Cx(e).scrollingElement?window:Cy(e)?e:null:null:null}function C4(e){return Cp(e)?e.scrollX:e.scrollLeft}function C3(e){return Cp(e)?e.scrollY:e.scrollTop}function C5(e){return{x:C4(e),y:C3(e)}}function C6(e){return!!Ch&&!!e&&e===document.scrollingElement}function C8(e){let t={x:0,y:0},n=C6(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(j=X||(X={}))[j.Forward=1]="Forward",j[j.Backward=-1]="Backward";let C7={x:.2,y:.2};function C9(e){return e.reduce((e,t)=>CT(e,C5(t)),CW)}function _e(e,t){if(void 0===t&&(t=CQ),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);C1(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let _t=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+C4(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+C3(t),0)}]];class _n{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=C0(t),r=C9(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,_t))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),o=r[t]-i;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class _r{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function _i(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function _a(e){e.preventDefault()}function _o(e){e.stopPropagation()}(k=G||(G={})).Click="click",k.DragStart="dragstart",k.Keydown="keydown",k.ContextMenu="contextmenu",k.Resize="resize",k.SelectionChange="selectionchange",k.VisibilityChange="visibilitychange",(E=Q||(Q={})).Space="Space",E.Down="ArrowDown",E.Right="ArrowRight",E.Left="ArrowLeft",E.Up="ArrowUp",E.Esc="Escape",E.Enter="Enter";let _s={start:[Q.Space,Q.Enter],cancel:[Q.Esc],end:[Q.Space,Q.Enter]},_l=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Q.Right:return{...n,x:n.x+25};case Q.Left:return{...n,x:n.x-25};case Q.Down:return{...n,y:n.y+25};case Q.Up:return{...n,y:n.y-25}}};class _u{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new _r(Cx(t)),this.windowListeners=new _r(Cv(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(G.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&_e(n),t(CW)}handleKeyDown(e){if(CP(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=_s,coordinateGetter:a=_l,scrollBehavior:o="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:CW;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=CA(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=C8(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===Q.Right?h.right-h.width/2:h.right,Math.max(i===Q.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===Q.Down?h.bottom-h.height/2:h.bottom,Math.max(i===Q.Down?h.top:h.top+h.height/2,c.y))},m=i===Q.Right&&!s||i===Q.Left&&!l,v=i===Q.Down&&!u||i===Q.Up&&!a;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,a=i===Q.Right&&e<=d.x||i===Q.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===Q.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(v&&p.y!==c.y){let e=n.scrollTop+t.y,a=i===Q.Down&&e<=d.y||i===Q.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===Q.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,CT(CA(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function _c(e){return!!(e&&"distance"in e)}function _d(e){return!!(e&&"delay"in e)}_u.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=_s,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class _f{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=Cv(e);return e instanceof t?e:Cx(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=Cx(a),this.documentListeners=new _r(this.document),this.listeners=new _r(n),this.windowListeners=new _r(Cv(a)),this.initialCoordinates=null!=(r=CN(i))?r:CW,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.DragStart,_a),this.windowListeners.add(G.VisibilityChange,this.handleCancel),this.windowListeners.add(G.ContextMenu,_a),this.documentListeners.add(G.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_d(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(_c(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(G.Click,_o,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(G.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!r)return;let s=null!=(t=CN(e))?t:CW,l=CA(r,s);if(!n&&o){if(_c(o)){if(null!=o.tolerance&&_i(l,o.tolerance))return this.handleCancel();if(_i(l,o.distance))return this.handleStart()}return _d(o)&&_i(l,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Q.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let _h={move:{name:"pointermove"},end:{name:"pointerup"}};class _p extends _f{constructor(e){let{event:t}=e;super(e,_h,Cx(t.target))}}_p.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let _m={move:{name:"mousemove"},end:{name:"mouseup"}};(S=J||(J={}))[S.RightClick=2]="RightClick";class _v extends _f{constructor(e){super(e,_m,Cx(e.event.target))}}_v.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==J.RightClick&&(null==r||r({event:n}),!0)}}];let _g={move:{name:"touchmove"},end:{name:"touchend"}};class _y extends _f{constructor(e){super(e,_g)}static setup(){return window.addEventListener(_g.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(_g.move.name,e)};function e(){}}}_y.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(C=ee||(ee={}))[C.Pointer=0]="Pointer",C[C.DraggableRect=1]="DraggableRect",(_=et||(et={}))[_.TreeOrder=0]="TreeOrder",_[_.ReversedTreeOrder=1]="ReversedTreeOrder";let _b={x:{[X.Backward]:!1,[X.Forward]:!1},y:{[X.Backward]:!1,[X.Forward]:!1}};(O=en||(en={}))[O.Always=0]="Always",O[O.BeforeDragging=1]="BeforeDragging",O[O.WhileDragging=2]="WhileDragging",(er||(er={})).Optimized="optimized";let _x=new Map;function _w(e,t){return CE(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function _j(e){let{callback:t,disabled:n}=e,r=Cj(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function _k(e){return new _n(CQ(e),e)}function _E(e,t,n){void 0===t&&(t=_k);let[r,i]=(0,eo.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a},null),a=function(e){let{callback:t,disabled:n}=e,r=Cj(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=_j({callback:i});return Cw(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let _S=[];function _C(e,t){void 0===t&&(t=[]);let n=(0,eo.useRef)(null);return(0,eo.useEffect)(()=>{n.current=null},t),(0,eo.useEffect)(()=>{let t=e!==CW;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?CA(e,n.current):CW}function __(e){return(0,eo.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let _O=[];function _M(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Cy(t)?t:e}let _T=[{sensor:_p,options:{}},{sensor:_u,options:{}}],_A={current:{}},_P={draggable:{measure:CJ},droppable:{measure:CJ,strategy:en.WhileDragging,frequency:er.Optimized},dragOverlay:{measure:CQ}};class _N extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let _R={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _N,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CH},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_P,measureDroppableContainers:CH,windowRect:null,measuringScheduled:!1},_D={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CH,draggableNodes:new Map,over:null,measureDroppableContainers:CH},_L=(0,eo.createContext)(_D),_Z=(0,eo.createContext)(_R);function _F(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _N}}}function _z(e,t){switch(t.type){case Y.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Y.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Y.DragEnd:case Y.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Y.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new _N(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Y.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new _N(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Y.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new _N(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function _V(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,eo.useContext)(_L),a=CC(r),o=CC(null==n?void 0:n.id);return(0,eo.useEffect)(()=>{if(!t&&!r&&a&&null!=o){if(!CP(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=e.matches(CD)?e:e.querySelector(CD);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function _I(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let _B=(0,eo.createContext)({...CW,scaleX:1,scaleY:1});(M=ei||(ei={}))[M.Uninitialized=0]="Uninitialized",M[M.Initializing=1]="Initializing",M[M.Initialized=2]="Initialized";let _H=(0,eo.memo)(function(e){var t,n,r,i,a,o;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=_T,collisionDetection:f=C$,measuring:h,modifiers:p,...m}=e,[v,g]=(0,eo.useReducer)(_z,void 0,_F),[y,b]=function(){let[e]=(0,eo.useState)(()=>new Set),t=(0,eo.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,eo.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[x,w]=(0,eo.useState)(ei.Uninitialized),j=x===ei.Initialized,{draggable:{active:k,nodes:E,translate:S},droppable:{containers:C}}=v,_=k?E.get(k):null,O=(0,eo.useRef)({initial:null,translated:null}),M=(0,eo.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==_?void 0:_.data)?e:_A,rect:O}:null},[k,_]),T=(0,eo.useRef)(null),[A,P]=(0,eo.useState)(null),[N,R]=(0,eo.useState)(null),D=Ck(m,Object.values(m)),L=CO("DndDescribedBy",s),Z=(0,eo.useMemo)(()=>C.getEnabled(),[C]),F=(0,eo.useMemo)(()=>({draggable:{..._P.draggable,...null==h?void 0:h.draggable},droppable:{..._P.droppable,...null==h?void 0:h.droppable},dragOverlay:{..._P.dragOverlay,...null==h?void 0:h.dragOverlay}}),[null==h?void 0:h.draggable,null==h?void 0:h.droppable,null==h?void 0:h.dragOverlay]),{droppableRects:z,measureDroppableContainers:V,measuringScheduled:I}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,eo.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,eo.useRef)(e),d=function(){switch(u){case en.Always:return!1;case en.BeforeDragging:return n;default:return!n}}(),f=Ck(d),h=(0,eo.useCallback)(function(e){void 0===e&&(e=[]),f.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,eo.useRef)(null),m=CE(t=>{if(d&&!n)return _x;if(!t||t===_x||c.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new _n(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,l]);return(0,eo.useEffect)(()=>{c.current=e},[e]),(0,eo.useEffect)(()=>{d||h()},[n,d]),(0,eo.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,eo.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(Z,{dragging:j,dependencies:[S.x,S.y],config:F.droppable}),B=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return CE(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),H=(0,eo.useMemo)(()=>N?CN(N):null,[N]),U=function(){let e=(null==A?void 0:A.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,n=j&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),W=_w(B,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,eo.useRef)(!1),{x:o,y:s}="boolean"==typeof i?{x:i,y:i}:i;Cw(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=CK(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=C1(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}({activeNode:k?E.get(k):null,config:U.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let q=_E(B,F.draggable.measure,W),$=_E(B?B.parentElement:null),K=(0,eo.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=C.getNodeFor(null==(t=K.current.over)?void 0:t.id),Q=function(e){let{measure:t}=e,[n,r]=(0,eo.useState)(null),i=_j({callback:(0,eo.useCallback)(e=>{for(let{target:n}of e)if(Cy(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=CS((0,eo.useCallback)(e=>{let n=_M(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,eo.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:F.dragOverlay.measure}),J=null!=(n=Q.nodeRef.current)?n:B,er=j?null!=(r=Q.rect)?r:q:null,ea=!!(Q.nodeRef.current&&Q.rect),es=function(e){let t=_w(e);return CK(e,t)}(ea?null:q),el=__(J?Cv(J):null),eu=function(e){let t=(0,eo.useRef)(e),n=CE(n=>e?n&&n!==_S&&e&&t.current&&e.parentNode===t.current.parentNode?n:C0(e):_S,[e]);return(0,eo.useEffect)(()=>{t.current=e},[e]),n}(j?null!=G?G:B:null),ec=function(e,t){void 0===t&&(t=CQ);let[n]=e,r=__(n?Cv(n):null),[i,a]=(0,eo.useReducer)(function(){return e.length?e.map(e=>C6(e)?r:new _n(t(e),e)):_O},_O),o=_j({callback:a});return e.length>0&&i===_O&&a(),Cw(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),a())},[e]),i}(eu),ed=_I(p,{transform:{x:S.x-es.x,y:S.y-es.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:q,containerNodeRect:$,draggingNodeRect:er,over:K.current.over,overlayNodeRect:Q.rect,scrollableAncestors:eu,scrollableAncestorRects:ec,windowRect:el}),ef=H?CT(H,S):null,eh=function(e){let[t,n]=(0,eo.useState)(null),r=(0,eo.useRef)(e),i=(0,eo.useCallback)(e=>{let t=C2(e.target);t&&n(e=>e?(e.set(t,C5(t)),new Map(e)):null)},[]);return(0,eo.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=C2(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,C5(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=C2(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,eo.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>CT(e,t),CW):C9(e):CW,[e,t])}(eu),ep=_C(eh),em=_C(eh,[q]),ev=CT(ed,ep),eg=er?CY(er,ed):null,ey=M&&eg?f({active:M,collisionRect:eg,droppableRects:z,droppableContainers:Z,pointerCoordinates:ef}):null,eb=function(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}(ey,"id"),[ex,ew]=(0,eo.useState)(null),ej=(a=ea?ed:CT(ed,em),o=null!=(i=null==ex?void 0:ex.rect)?i:null,{...a,scaleX:o&&q?o.width/q.width:1,scaleY:o&&q?o.height/q.height:1}),ek=(0,eo.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==T.current)return;let i=E.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:K,onStart(e){let t=T.current;if(null==t)return;let n=E.get(t);if(!n)return;let{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:O}};(0,tD.unstable_batchedUpdates)(()=>{null==r||r(i),w(ei.Initializing),g({type:Y.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){g({type:Y.DragMove,coordinates:e})},onEnd:s(Y.DragEnd),onCancel:s(Y.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=K.current,o=null;if(t&&i){let{cancelDrop:s}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===Y.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(e=Y.DragCancel)}T.current=null,(0,tD.unstable_batchedUpdates)(()=>{g({type:e}),w(ei.Uninitialized),ew(null),P(null),R(null);let t=e===Y.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=D.current[t];null==e||e(o),y({type:t,event:o})}})}}(0,tD.unstable_batchedUpdates)(()=>{P(o),R(e.nativeEvent)})},[E]),eE=(0,eo.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=E.get(r);null!==T.current||!a||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:a})||(i.dndKit={capturedBy:t.sensor},T.current=r,ek(n,t))},[E,ek]),eS=(0,eo.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:eE(e.handler,t)}))]},[]),[d,eE]);(0,eo.useEffect)(()=>{if(!Ch)return;let e=d.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},d.map(e=>{let{sensor:t}=e;return t})),Cw(()=>{q&&x===ei.Initializing&&w(ei.Initialized)},[q,x]),(0,eo.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=K.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ev.x,y:ev.y},over:i};(0,tD.unstable_batchedUpdates)(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[ev.x,ev.y]),(0,eo.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=K.current;if(!e||null==T.current||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(eb),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,tD.unstable_batchedUpdates)(()=>{ew(s),null==a||a(l),y({type:"onDragOver",event:l})})},[eb]),Cw(()=>{K.current={activatorEvent:N,active:M,activeNode:B,collisionRect:eg,collisions:ey,droppableRects:z,draggableNodes:E,draggingNode:J,draggingNodeRect:er,droppableContainers:C,over:ex,scrollableAncestors:eu,scrollAdjustedTranslate:ev},O.current={initial:er,translated:eg}},[M,B,ey,eg,E,J,er,z,C,ex,eu,ev]),function(e){let{acceleration:t,activator:n=ee.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=et.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=CC(t);return CE(e=>{if(n||!r||!e)return _b;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[X.Backward]:e.x[X.Backward]||-1===i.x,[X.Forward]:e.x[X.Forward]||1===i.x},y:{[X.Backward]:e.y[X.Backward]||-1===i.y,[X.Forward]:e.y[X.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!a}),[p,m]=function(){let e=(0,eo.useRef)(null);return[(0,eo.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,eo.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,eo.useRef)({x:0,y:0}),g=(0,eo.useRef)({x:0,y:0}),y=(0,eo.useMemo)(()=>{switch(n){case ee.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ee.DraggableRect:return i}},[n,i,l]),b=(0,eo.useRef)(null),x=(0,eo.useCallback)(()=>{let e=b.current;if(!e)return;let t=v.current.x*g.current.x,n=v.current.y*g.current.y;e.scrollBy(t,n)},[]),w=(0,eo.useMemo)(()=>s===et.TreeOrder?[...u].reverse():u,[s,u]);(0,eo.useEffect)(()=>{if(!a||!u.length||!y){m();return}for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=C7);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=C8(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&a<=t.top+m.height?(h.y=X.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=X.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=X.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(h.x=X.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}(e,n,y,t,f);for(let e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){m(),b.current=e,p(x,o),v.current=a,g.current=i;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,x,r,m,a,o,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:S,draggingRect:eg,pointerCoordinates:ef,scrollableAncestors:eu,scrollableAncestorRects:ec});let eC=(0,eo.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:q,activatorEvent:N,collisions:ey,containerNodeRect:$,dragOverlay:Q,draggableNodes:E,droppableContainers:C,droppableRects:z,over:ex,measureDroppableContainers:V,scrollableAncestors:eu,scrollableAncestorRects:ec,measuringConfiguration:F,measuringScheduled:I,windowRect:el}),[M,B,q,N,ey,$,Q,E,C,z,ex,V,eu,ec,F,I,el]),e_=(0,eo.useMemo)(()=>({activatorEvent:N,activators:eS,active:M,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:E,over:ex,measureDroppableContainers:V}),[N,eS,M,q,g,L,E,ex,V]);return eo.createElement(Cz.Provider,{value:b},eo.createElement(_L.Provider,{value:e_},eo.createElement(_Z.Provider,{value:eC},eo.createElement(_B.Provider,{value:ej},c)),eo.createElement(_V,{disabled:(null==l?void 0:l.restoreFocus)===!1})),eo.createElement(CB,{...l,hiddenTextDescribedById:L}))}),_U=(0,eo.createContext)(null),_W="button",_q={timeout:25};function _$(e){let{animation:t,children:n}=e,[r,i]=(0,eo.useState)(null),[a,o]=(0,eo.useState)(null),s=CC(n);return n||r||!s||i(s),Cw(()=>{if(!a)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),eo.createElement(eo.Fragment,null,n,r?(0,eo.cloneElement)(r,{ref:o}):null)}let _K={x:0,y:0,scaleX:1,scaleY:1};function _Y(e){let{children:t}=e;return eo.createElement(_L.Provider,{value:_D},eo.createElement(_B.Provider,{value:_K},t))}let _X={position:"fixed",touchAction:"none"},_G=e=>CP(e)?"transform 250ms ease":void 0,_Q=(0,eo.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:l,transform:u,transition:c=_G}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={..._X,width:s.width,height:s.height,top:s.top,left:s.left,transform:CR.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=CN(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,s):void 0,transition:"function"==typeof c?c(r):c,...l};return eo.createElement(n,{className:o,style:f,ref:t},a)}),_J={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:CR.Transform.toString(t)},{transform:CR.Transform.toString(n)}]},sideEffects:(T={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,r={},{styles:i,className:a}=T;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&n.node.classList.add(a.dragOverlay),function(){for(let[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}})},_0=0,_1=eo.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:j}=(0,eo.useContext)(_Z),k=(0,eo.useContext)(_B),E=(t=null==f?void 0:f.id,(0,eo.useMemo)(()=>{if(null!=t)return++_0},[t])),S=_I(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:k,windowRect:j}),C=_w(h),_=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Cj((e,a)=>{if(null===t)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let l=_M(a);if(!l)return;let{transform:u}=Cv(a).getComputedStyle(a),c=CX(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={..._J,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...l}=e;if(!t)return;let u={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},c={scaleX:1!==s.scaleX?a.rect.width*s.scaleX/o.rect.width:1,scaleY:1!==s.scaleY?a.rect.height*s.scaleY/o.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==r?void 0:r({active:a,dragOverlay:o,...l}),v=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==m||m(),e()}})}}(t);return _e(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:b}),O=C?g.setRef:void 0;return eo.createElement(_Y,null,eo.createElement(_$,{animation:_},f&&E?eo.createElement(_Q,{key:E,id:f.id,ref:O,as:l,activatorEvent:d,adjustScale:n,className:u,transition:o,rect:C,style:{zIndex:c,...a},transform:S},r):null))});function _2(){return(0,eo.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:a,context:o,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,ea.jsx)("tr",{ref:t,...i,...a,style:r,id:n.id,onClick:n.onClick,className:(0,eW.cx)("border-b border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",h),children:s.map((e,t)=>{let{id:r,render:i,contentClassName:a,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,ea.jsx)("td",{className:(0,eW.cx)(d(t,(0,eW.cx)(s,h),!1),u&&u===n.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===c?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===c?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===c?"!shadow-red-500 dark:!shadow-red-400":"","amber"===c?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===c?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,ea.jsx)("div",{className:(0,eW.cx)(f(t,(0,eW.cx)(a,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,ea.jsx)(i,{data:n,context:o})})},"".concat(r,"/").concat(n.id))})},n.id)})}function _4(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=CO("Droppable"),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,eo.useContext)(_L),{role:h=_W,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,g=(0,eo.useContext)(v?_B:_U),[y,b]=CS(),[x,w]=CS(),j=(0,eo.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[o,t]),k=Ck(n);return Cw(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:k}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,eo.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!v&&h===_W||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]),isDragging:v,listeners:r?void 0:j,node:y,over:f,setNodeRef:b,setActivatorNodeRef:w,transform:g}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,eo.useMemo)(()=>_2(),[]);return(0,ea.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:s,getContentClassNames:l})}function _3(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=CO("Droppable"),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=(0,eo.useContext)(_L),c=(0,eo.useRef)({disabled:n}),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(null),h=(0,eo.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={..._q,...i},g=Ck(null!=m?m:r),y=_j({callback:(0,eo.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),disabled:p||!o}),[b,x]=CS((0,eo.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=Ck(t);return(0,eo.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),Cw(()=>(s({type:Y.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:w}}),()=>s({type:Y.UnregisterDroppable,key:a,id:r})),[r]),(0,eo.useEffect)(()=>{n!==c.current.disabled&&(s({type:Y.SetDroppableDisabled,id:r,key:a,disabled:n}),c.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:x}}({id:t.id}),d=(0,eo.useMemo)(()=>_2(),[]);return(0,ea.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:s,getContentClassNames:l})}function _5(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:a,sortableColumns:o,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,draggingDatum:b}=e,x="emptyState";!c||(null==n?void 0:n.length)||(x="skeleton"),(null==n?void 0:n.length)&&(x="currentData");let w=(0,eo.useCallback)((e,n,r)=>(0,eW.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),j=(0,eo.useCallback)((e,t)=>(0,eW.cx)("flex items-center",t),[]),k=(0,eo.useMemo)(()=>_2(),[]),E=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(CU(_v,{activationConstraint:{distance:10}}),CU(_y,{activationConstraint:{delay:250,tolerance:5}}));return(0,ea.jsxs)(_H,{sensors:E,onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,children:[(0,ea.jsx)(_1,{children:b&&(0,ea.jsx)(nE,{className:"inline-block",children:(0,ea.jsx)("table",{children:(0,ea.jsx)(k,{className:"pointer-events-none",data:b,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},b.id)})})}),(0,ea.jsxs)(nE,{children:[(0,ea.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,ea.jsx)("thead",{className:(0,eW.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,ea.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==o?void 0:o.includes(n))&&!!s,h=i===n;return(0,ea.jsx)("th",{className:(0,eW.cx)(w(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,ea.jsx)("div",{className:(0,eW.cx)("overflow-hidden","py-3"),children:(0,ea.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,eW.cx)(j(t,d),f?"cursor-pointer":""),children:[(0,ea.jsx)(l_,{content:u,children:(0,ea.jsxs)(nw,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,ea.jsx)("div",{children:r}):null,(0,ea.jsx)(nw,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,ea.jsx)(nw,{color:"contrast",children:"asc"===a?(0,ea.jsx)(lT.kqg,{className:"scale-75"}):(0,ea.jsx)(lT.EMN,{className:"scale-75"})}),f&&!h&&(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(lT.kqg,{className:"scale-75"})})]})})},n)})})}),(0,ea.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===x&&(null==n?void 0:n.map(e=>(null==b?void 0:b.id)===e.id?null:e.isDraggable?(0,ea.jsx)(_4,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},e.id):e.isDroppable?(0,ea.jsx)(_3,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},e.id):(0,ea.jsx)(k,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},e.id))),"skeleton"===x&&S2(u).map(e=>(0,ea.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,ea.jsx)("td",{className:w(t,i,!1),children:(0,ea.jsx)("div",{className:(0,eW.cx)(j(t,r),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===x&&d]})]})}function _6(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(lT.XJM,{})})}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(lT.bdU,{})}),(0,ea.jsx)(lM,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,ea.jsx)(kQ,{className:"px-2"}):"No results"}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.min(t+n,r)}}),children:(0,ea.jsx)(lT.VUy,{})}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>a.push({query:{...a.query,offset:Math.floor(r/n)*n}}),children:(0,ea.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,ea.jsx)(lT.RRj,{})})})]})}function _8(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(lT.XJM,{})})}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(lT.bdU,{})}),i?(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kQ,{className:"px-2"})}):r?(0,ea.jsxs)(lM,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(lM,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:t+n}}),children:(0,ea.jsx)(lT.VUy,{})})]})}function _7(e){let{marker:t,isMore:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{icon:"contrast",size:"small",variant:"gray",className:"rounded-r-none",disabled:!t,onClick:()=>a.push({query:{...a.query,marker:""}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(lT.XJM,{})})}),i?(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kQ,{className:"px-2"})}):r?(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",children:r}):(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(lM,{icon:"contrast",disabled:!n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,marker:t}}),children:(0,ea.jsx)(lT.VUy,{})})]})}function _9(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,ea.jsx)(nw,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,ea.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,ea.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:n}),(0,ea.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,ea.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let Oe=("string"==typeof(A={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:A}:A).src;function Ot(e){let{children:t}=e;return(0,ea.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,ea.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,ea.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(Oe,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,ea.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function On(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,ea.jsxs)(da.Fb,{children:[(0,ea.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,ea.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,ea.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,ea.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,ea.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,ea.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,ea.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,ea.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,ea.jsx)("title",{children:i})]})}function Or(e){let{appName:t,title:n,children:r}=e;return(0,ea.jsxs)("div",{className:"h-screen",children:[(0,ea.jsx)(On,{appName:t,title:n}),r]})}function Oi(e){let{appName:t,title:n,children:r,filters:i,actions:a}=e;return(0,ea.jsxs)(Or,{appName:t,title:n,children:[(0,ea.jsx)(Ot,{}),(0,ea.jsx)("div",{className:"flex h-full",children:(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(_9,{nav:i,actions:a}),(0,ea.jsx)("div",{className:"flex-1",children:(0,ea.jsx)(lJ,{className:"h-full",children:r})})]})})]})}function Oa(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,ea.jsx)(l_,{side:t,content:(0,ea.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(nw,{children:"spendable"}),(0,ea.jsx)(nw,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,ea.jsx)("div",{className:"flex justify-end",children:(0,ea.jsx)(SK,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(nw,{children:"confirmed"}),(0,ea.jsx)(nw,{color:"subtle",children:"All confirmed outputs."})]}),(0,ea.jsx)("div",{className:"flex justify-end",children:(0,ea.jsx)(SK,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(nw,{children:"unconfirmed"}),(0,ea.jsx)(nw,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,ea.jsx)("div",{className:"flex justify-end",children:(0,ea.jsx)(SK,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,ea.jsx)("div",{children:r})}):null}function Oo(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,ea.jsx)(SK,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,ea.jsx)(Oa,{side:"right",balanceSc:t,children:i}):(0,ea.jsx)(l_,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ea.jsx)("div",{children:i})})}function Os(e){let{title:t,children:n,route:r,onClick:i}=e,a=(0,da.jD)(),o=r&&("/"===r?a===r:null==a?void 0:a.startsWith(r));return r?(0,ea.jsx)(db,{href:r,className:"no-underline",children:(0,ea.jsx)(l_,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ea.jsx)(lM,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":o?"open":"closed",onClick:i,children:n})})}):(0,ea.jsx)(l_,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ea.jsx)(lM,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":o?"open":"closed",onClick:i,children:n})})}function Ol(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,ea.jsx)(Os,{title:"Wallet",route:r.wallet.view,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,ea.jsx)(lT.oaN,{}),n&&t&&(0,ea.jsx)(Oo,{isSynced:n,balanceSc:t})]})})}function Ou(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:a,lock:o,openSettings:s,children:l}=e;return(0,ea.jsx)(nE,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,ea.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,ea.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,ea.jsx)(dj,{size:30})}),(0,ea.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,ea.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsx)(c0,{className:"w-full"}),i&&(0,ea.jsx)(Ol,{routes:t,isSynced:r,walletBalanceSc:a}),(0,ea.jsx)(Os,{title:"Blockchain node",route:t.node.index,children:(0,ea.jsx)(lT.kBK,{})}),(0,ea.jsx)(Os,{title:"App preferences",onClick:()=>s(),children:(0,ea.jsx)(lT.UG6,{})}),(0,ea.jsx)(Os,{title:"Lock app",onClick:o,children:(0,ea.jsx)(lT.mBM,{})})]})]})})}var Oc=Object.create,Od=Object.defineProperty,Of=Object.getOwnPropertyDescriptor,Oh=Object.getOwnPropertyNames,Op=Object.getPrototypeOf,Om=Object.prototype.hasOwnProperty,Ov=(D=null!=(R=(P=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,a=(t=function(e,t){return i.set(e,t),t},function(e){var a=i.get(e),o=void 0===a?e.size:an)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*n);return t(e,o)});e.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},e.generateUniqueNumber=a},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(N||P((N={exports:{}}).exports,N),N.exports))())?Oc(Op(R)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Oh(t))Om.call(e,n)||void 0===n||Od(e,n,{get:()=>t[n],enumerable:!(r=Of(t,n))||r.enumerable});return e})(R&&R.__esModule?D:Od(D,"default",{value:R,enumerable:!0}),R)),Og=e=>void 0!==e.method&&"call"===e.method,Oy=e=>null===e.error&&"number"==typeof e.id;L=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(Og(e)){let{params:{timerId:i,timerType:a}}=e;if("interval"===a){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===a){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(Oy(e)){let{id:i}=e,a=r.get(i);if(void 0===a)throw Error("The timer is in an undefined state.");let{timerId:o,timerType:s}=a;r.delete(i),"interval"===s?t.delete(o):n.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,Ov.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,Ov.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,Ov.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,Ov.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},o=null,()=>{if(null!==o)return o;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return o=L(t),setTimeout(()=>URL.revokeObjectURL(t)),o};var Ob=(typeof window>"u"?"undefined":typeof window)=="object",Ox={setTimeout:Ob?setTimeout.bind(window):setTimeout,clearTimeout:Ob?clearTimeout.bind(window):clearTimeout,setInterval:Ob?setInterval.bind(window):setInterval,clearInterval:Ob?clearInterval.bind(window):clearInterval},Ow={},Oj=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Ow[e]=Ow[e]||[],Ow[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),Ox.setTimeout(()=>{window.localStorage.removeItem(n)},500),Ow[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=Ow[this.name].indexOf(this);Ow[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},Ok=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Oj;function OE(){return Math.random().toString(36).substring(2)}var OS=class{options;channel;token=OE();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>Ox.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{Ox.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=Ox.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>Ox.clearInterval(e))}catch{}}}},OC=class{channel;options;elector;token=OE();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new Ok(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new OS(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},O_=Ob?document:null,OO=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function OM(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function OA(e){let{route:t}=e,n=(0,hr.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function OP(e){let{appName:t,title:n,navTitle:r,profile:i,size:a="4",banner:o,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:x}=(0,hr.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:a}=OA({route:n}),{settings:o}=(0,hr.Hv)(),s=(0,da.j0)();(0,eo.useEffect)(()=>{if(a)return;let e=!s.asPath.startsWith(r.login),n=!o.password||!i;if(e&&n){t();return}},[s,o.password,i,a])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=O_,events:i=OO,timers:a,immediateEvents:o=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,eo.useRef)(OT()),S=(0,eo.useRef)(OT()),C=(0,eo.useRef)(null),_=(0,eo.useRef)(null),O=(0,eo.useRef)(0),M=(0,eo.useRef)(0),T=(0,eo.useRef)(0),A=(0,eo.useRef)(0),P=(0,eo.useRef)(!1),N=(0,eo.useRef)(!1),R=(0,eo.useRef)(!1),D=(0,eo.useRef)(!0),L=(0,eo.useRef)(!1),Z=(0,eo.useRef)(null),F=(0,eo.useRef)(null),z=(0,eo.useRef)(e),V=(0,eo.useRef)(0);(0,eo.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(z.current=e-n,V.current=n):(z.current=e,V.current=t),!D.current){if(g||k)return;P.current&&(Y.current(null,eA),F.current&&F.current.active()),ed()}},[e,t,n,g,k]);let I=(0,eo.useRef)(y);(0,eo.useEffect)(()=>{I.current=y},[y]);let B=(0,eo.useRef)(o),H=(0,eo.useRef)(r),U=(0,eo.useRef)([...new Set([...i,...o]).values()]),W=(0,eo.useRef)(k);(0,eo.useEffect)(()=>{W.current=k,!D.current&&(k?ep():g||ed())},[k]);let q=(0,eo.useRef)(s);(0,eo.useEffect)(()=>{q.current=s},[s]);let $=(0,eo.useRef)(l);(0,eo.useEffect)(()=>{$.current=l},[l]);let K=(0,eo.useRef)(u);(0,eo.useEffect)(()=>{K.current=u},[u]);let Y=(0,eo.useRef)(c);(0,eo.useEffect)(()=>{Y.current=c},[c]);let X=(0,eo.useRef)(d);(0,eo.useEffect)(()=>{X.current=d},[d]);let G=(0,eo.useRef)(f);(0,eo.useEffect)(()=>{G.current=f},[f]);let Q=(0,eo.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?OM(e,p):e},[p,h]),J=(0,eo.useRef)();(0,eo.useEffect)(()=>{b&&w&&(J.current=OM(()=>{F.current.active()},w))},[b,w]);let ee=()=>{null!==Z.current&&(Ox.clearTimeout(Z.current),Z.current=null)},et=(e,t=!0)=>{ee(),Z.current=Ox.setTimeout(ea,e||z.current),t&&(_.current=OT())},en=e=>{N.current||P.current||($.current(e,eA),q.current({type:"active",prompted:!0},eA)),A.current=0,T.current=OT(),N.current=!0,et(V.current,!1)},er=()=>{ee(),P.current||(K.current(null,eA),q.current({type:"idle"},eA)),P.current=!0,C.current=OT(),I.current?ec():N.current&&(T.current=0,N.current=!1)},ei=e=>{ee(),(P.current||N.current)&&(Y.current(e,eA),q.current({type:"active",prompted:!1},eA)),N.current=!1,T.current=0,P.current=!1,O.current+=OT()-C.current,M.current+=OT()-C.current,eu(),et()},ea=e=>{if(!P.current){Q.cancel&&Q.cancel();let t=OT()-_.current;if(!(z.current+V.current0&&!N.current){F.current?F.current.prompt():en(e);return}F.current?F.current.idle():er();return}F.current?F.current.active():ei(e)},es=e=>{if(v||_.current||(_.current=OT(),Y.current(null,eA)),Q(e,eA),N.current)return;if(ee(),!P.current&&B.current.includes(e.type)){ea(e);return}let t=OT()-_.current;if(P.current&&!y||!P.current&&t>=z.current){ea(e);return}R.current=!1,A.current=0,T.current=0,et(),b&&w&&J.current()},el=(0,eo.useRef)(es);(0,eo.useEffect)(()=>{let e=L.current;e&&ec(),m>0?el.current=OM(es,m):el.current=es,e&&eu()},[m,p,h,X,b,w]);let eu=()=>{Ob&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{Ob&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,el.current,{capture:!0})}),L.current=!1)},ed=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),P.current=!1,N.current=!1,R.current=!1,A.current=0,T.current=0,F.current&&!e&&F.current.start(),et(),!0),[Z,P,W,z,F]),ef=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),S.current=OT(),O.current+=OT()-C.current,M.current+=OT()-C.current,O.current=0,P.current=!1,N.current=!1,R.current=!1,A.current=0,T.current=0,F.current&&!e&&F.current.reset(),g||et(),!0),[Z,P,z,g,W,F]),eh=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),(P.current||N.current)&&ei(),P.current=!1,N.current=!1,R.current=!1,A.current=0,T.current=0,S.current=OT(),F.current&&!e&&F.current.activate(),et(),!0),[Z,P,N,W,z,F]),ep=(0,eo.useCallback)((e=!1)=>!W.current&&!R.current&&(A.current=ej(),R.current=!0,ec(),ee(),F.current&&!e&&F.current.pause(),!0),[Z,W,F]),em=(0,eo.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||eu(),P.current||et(A.current),T.current&&(T.current=OT()),F.current&&!e&&F.current.resume(),!0),[Z,z,W,A,F]),ev=(0,eo.useCallback)((e,t)=>(F.current?(t&&G.current(e,eA),F.current.message(e)):t&&G.current(e,eA),!0),[f]),eg=(0,eo.useCallback)(()=>P.current,[P]),ey=(0,eo.useCallback)(()=>N.current,[N]),eb=(0,eo.useCallback)(()=>F.current?F.current.isLeader:null,[F]),ex=(0,eo.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,eo.useCallback)(()=>F.current?F.current.token:null,[F]),ej=(0,eo.useCallback)(()=>{if(R.current)return A.current;let e=Math.floor((A.current?A.current:V.current+z.current)-(_.current?OT()-_.current:0));return e<0?0:Math.abs(e)},[z,V,N,A,_]),ek=(0,eo.useCallback)(()=>Math.round(OT()-S.current),[S]),eE=(0,eo.useCallback)(()=>Math.round(OT()-E.current),[E]),eS=(0,eo.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,eo.useCallback)(()=>_.current?new Date(_.current):null,[_]),e_=(0,eo.useCallback)(()=>P.current?Math.round(OT()-C.current+O.current):Math.round(O.current),[C,O]),eO=(0,eo.useCallback)(()=>P.current?Math.round(OT()-C.current+M.current):Math.round(M.current),[C,M]),eM=(0,eo.useCallback)(()=>{let e=Math.round(ek()-e_());return e>=0?e:0},[C,O]),eT=(0,eo.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[C,O]);(0,eo.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(Ox.setTimeout=a.setTimeout,Ox.clearTimeout=a.clearTimeout,Ox.setInterval=a.setInterval,Ox.clearInterval=a.clearInterval);let e=()=>{F.current&&F.current.close(),Q.cancel&&Q.cancel(),ee(),ec(!0)};return Ob&&window.addEventListener("beforeunload",e),()=>{Ob&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),Q.cancel&&Q.cancel(),ee(),ec(!0)}},[]),(0,eo.useEffect)(()=>{F.current&&F.current.close(),b?F.current=new OC({channelName:x,leaderElection:j,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{G.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):F.current=null},[b,x,j,$,K,Y,G,ed,ef,ep,em]),(0,eo.useEffect)(()=>{D.current||(ee(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,D]),(0,eo.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...o]).values()];ec(),U.current=e,H.current=r,B.current=o,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(o),D,k,g,v]),(0,eo.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:eS,getLastActiveTime:eC,getIdleTime:e_,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,q.current=e},setOnPrompt:e=>{l=e,$.current=e},setOnIdle:e=>{u=e,K.current=e},setOnActive:e=>{c=e,Y.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,G.current=e}}}({disabled:!t,onIdle:(0,eo.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!x.autoLock,lockTimeout:x.autoLockTimeout,lock:b}),(0,ea.jsxs)(Or,{appName:t,title:n,children:[(0,ea.jsx)(Ot,{}),(0,ea.jsxs)("div",{className:"flex flex-col h-full w-full",children:[o,(0,ea.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,ea.jsx)(Ou,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,ea.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,ea.jsx)(_9,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,ea.jsx)(uS,{className:"z-0",children:(0,ea.jsx)(lJ,{size:a,pad:!1,children:(0,ea.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,ea.jsx)(lJ,{size:a,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function ON(e,t,n,r){let[i,a]=(0,eo.useState)();return(0,eo.useEffect)(()=>{!t&&e&&a(e.length)},[t,e,a]),(0,eo.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}(0,eo.createContext)(null).Consumer;var OR=n(89644),OD=n.n(OR),OL=n(63955),OZ=n(69046);function OF(e){let{form:t,field:n,name:r}=e,i=t.watch(r),a=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:o,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,eo.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,eo.useCallback)((e,i)=>{var a;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(a=n.trigger)||void 0===a||a.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:o,name:r,value:i,error:a,onBlur:l,onChange:u,setValue:c}}function Oz(e){return(0,eo.useCallback)(t=>{SS({title:"Error",body:(0,OZ.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function OV(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:a,spellCheck:o,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=OF({name:t,form:n,field:u}),p=(0,ea.jsx)(fZ,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:a,type:u.type,readOnly:u.readOnly,spellCheck:o,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,ea.jsx)(Ci,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var OI=n(67693);async function OB(e){let{api:t,route:n,password:r}=e;try{return await OD().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function OH(e){let{appName:t,route:n,routes:r}=e,i=(0,da.j0)(),{settings:a,setSettings:o}=(0,hr.Hv)(),{allowCustomApi:s}=a,l=(0,eo.useMemo)(()=>({api:a.api,password:""}),[a.api]),u=(0,OL.cI)({mode:"onBlur",defaultValues:l});(0,eo.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,eo.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await OB({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(o({api:t,password:e.password,recentApis:{...a.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,a,o,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=Oz(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,OI.Z)(Object.entries(a.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,ea.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,ea.jsx)(nE,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsx)(dt,{label:"login settings",trigger:(0,ea.jsx)(lM,{icon:"hover",variant:"ghost",children:(0,ea.jsx)(lT.shL,{})}),children:(0,ea.jsx)(dn,{onSelect:()=>o({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,ea.jsx)(c0,{className:"w-full mt-2 mb-3"}),(0,ea.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(OV,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,ea.jsx)(dt,{trigger:(0,ea.jsx)(lM,{type:"button",children:(0,ea.jsx)(lT.wGX,{})}),children:p.map(e=>(0,ea.jsx)(dn,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,ea.jsx)(OV,{name:"password",form:u,fields:d,group:!1}),h&&(0,ea.jsx)(nw,{size:"14",color:"red",children:h.message}),(0,ea.jsx)(Ca,{size:"small",form:u,children:"Unlock"})]})})]})})})}var OU=n(7114),OW=n(24511);let Oq={address:"",siacoin:void 0,includeFee:!1},O$=OW.Ry().shape({address:OW.Z_().required("Required"),siacoin:OW.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(he())(e||0).isZero())});function OK(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,a=n.plus(r);return(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,ea.jsx)(SI,{value:t,type:"address"})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:a,variant:"value",dynamicUnits:!1})})]}),i&&(0,ea.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,ea.jsx)(SI,{value:i,type:"transaction"})]})]})}function OY(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),a=n.length-1;return(0,ea.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,ea.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,ea.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/a*100,"%")}}),n.map((e,n)=>{let{id:o,label:s}=e,l=t===o,u=i>=n,c=n===a,d=0===n,f=u&&i!==a;return(0,ea.jsxs)("div",{className:(0,eW.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/a*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(o)},children:[(0,ea.jsx)(nw,{color:l?"contrast":"verySubtle",className:(0,eW.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,ea.jsx)("div",{className:(0,eW.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,ea.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},o)})]})}function OX(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(OK,{address:t,siacoin:n,fee:r,transactionId:i}),(0,ea.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.Z$8,{})}),(0,ea.jsx)(nw,{children:"Transaction successfully broadcasted."})]})]})}let OG=(0,ge.qN)(.00393),OQ={address:"",siacoin:new(he())(0),includeFee:!1};function OJ(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:a}=e,[o,s]=(0,eo.useState)("setup"),[l,u]=(0,eo.useState)(),[c,d]=(0,eo.useState)(OQ),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,OU.TA)({initialValues:Oq,validationSchema:O$,onSubmit:async e=>{if(!e.siacoin)return;let a=e.includeFee?(0,ge.qN)(e.siacoin).minus(n):(0,ge.qN)(e.siacoin);if(t){if(t.isLessThan((0,ge.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:a})}}}),a=(0,ge.qN)(i.values.siacoin||0),o=(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(Co,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,ea.jsx)(Co,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[(0,ea.jsx)(hO,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,ea.jsx)(hs,{children:"Include or exclude the network fee from the above transaction value."}),(0,ea.jsx)("div",{className:"flex flex-1"})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:i.values.includeFee?a:a.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:o}}({balance:i,fee:OG,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:a,siacoin:o}=n||{},s=(0,OU.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:a,sc:o});if(n){s.setStatus({error:n});return}i({transactionId:e})}});return{form:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsx)(OK,{address:a,siacoin:o,fee:r})}),formik:s}}({fee:OG,formData:c,send:a,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,eo.useMemo)(()=>"setup"===o?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===o?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[o,f,h]);return(0,ea.jsx)(uO,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,ea.jsx)("div",{className:"flex flex-col gap-1",children:(0,ea.jsx)(Cf,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(OY,{onChange:e=>s(e),activeStep:o,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,ea.jsx)(c0,{className:"w-full mt-4"}),"setup"===o&&f.form,"confirm"===o&&h.form,"done"===o&&(0,ea.jsx)(OX,{data:c,fee:OG,transactionId:l})]})})}let O0=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),O1={port:9981,ip:""},O2=OW.Ry().shape({port:OW.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:OW.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>O0().test(e||""))});function O4(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,a=(0,OU.TA)({initialValues:O1,validationSchema:O2,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),a=await r(n);if(a.error){let e=a.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else SE({title:"Connected to peer"}),t.resetForm(),i(!1)}});return(0,ea.jsx)(uO,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||a.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Connect to a peer by IP address."}),(0,ea.jsx)("form",{onSubmit:a.handleSubmit,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(Co,{formik:a,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,ea.jsx)(Co,{formik:a,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,ea.jsx)(Cf,{formik:a,size:"medium",children:"Connect"})]})})]})})}function O3(e){var t,n;let{id:r,transaction:i,trigger:a,open:o,onOpenChange:s}=e;return(0,ea.jsx)(uO,{title:SN((null==i?void 0:i.txType)?(0,S5.Z)(Sz(i.txType)):"Transaction",r,16),trigger:a,open:o,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,ea.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Inflow"}),(0,ea.jsx)(SW,{value:new(he())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Outflow"}),(0,ea.jsx)(SW,{value:new(he())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Miner fee"}),(0,ea.jsx)(SW,{value:new(he())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(he())(0)))||0)})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Timestamp"}),(0,ea.jsx)(nw,{children:(null==i?void 0:i.timestamp)?(0,ge.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,ea.jsx)(l$,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,ea.jsx)(nw,{children:"Could not find transaction in wallet"})})}OW.Ry().shape({address:OW.Z_().required("Required"),description:OW.Z_().required("Required"),index:OW.Rx().integer().required("Required")});var O5=n(38001);function O6(e){let{title:t,description:n,address:r}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",children:t}),n&&(0,ea.jsx)(nw,{children:n}),(0,ea.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,ea.jsx)("div",{className:"absolute",children:(0,ea.jsx)(O5.Z,{size:200,value:r})})}),(0,ea.jsx)(SI,{type:"address",value:r})]})}function O8(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:a}=e;return(0,ea.jsx)(uO,{title:SN("Address",SP(t)||"",16),trigger:r,open:i,onOpenChange:a,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,ea.jsx)(O6,{address:t||""}):(0,ea.jsx)(nw,{children:"Could not retreive wallet address"})})})}function O7(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(lT.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(lT.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let O9={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function Me(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,hr.Hv)();return(0,ea.jsx)(hd,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,ea.jsx)(hf,{value:t,children:n},t)})})}let Mt=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function Mn(){let{settings:e,setSettings:t}=(0,hr.Hv)();return(0,ea.jsx)(hd,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:Mt.map(e=>{let{id:t,label:n}=e;return(0,ea.jsx)(hf,{value:t,children:n},t)})})}function Mr(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:a,setSettings:o,gpu:s}=(0,hr.Hv)();return(0,ea.jsx)(uO,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Display"}),(0,ea.jsx)(nj,{size:"14",children:"Configure visual and locale display preferences."}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Currency display"}),(0,ea.jsx)(Mn,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Fiat"}),(0,ea.jsx)(Me,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Theme"}),(0,ea.jsx)(p8,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"GPU"}),(0,ea.jsx)(hO,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,ea.jsxs)(nj,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Security"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Configure security preferences."}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Lock app"}),(0,ea.jsx)(hO,{size:"medium",checked:a.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,ea.jsxs)(hd,{disabled:!a.autoLock,value:String(a.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,ea.jsx)(hf,{value:kF(5),children:"5 minutes"}),(0,ea.jsx)(hf,{value:kF(10),children:"10 minutes"}),(0,ea.jsx)(hf,{value:kF(20),children:"20 minutes"}),(0,ea.jsx)(hf,{value:kF(30),children:"30 minutes"}),(0,ea.jsx)(hf,{value:kF(60),children:"1 hour"})]})]}),(0,ea.jsx)(nj,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Privacy"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Sia Central"}),(0,ea.jsx)(hO,{size:"medium",checked:a.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,ea.jsx)(nj,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Help"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)(db,{href:O9.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.lq1,{}),"Website"]}),(0,ea.jsxs)(db,{href:O9.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.RdX,{}),"Docs"]}),(0,ea.jsxs)(db,{href:O9.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.Sfn,{}),"About"]}),(0,ea.jsxs)(db,{href:O9.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.b47,{}),"Discord"]})]})]})]})]})})}function Mi(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,ea.jsx)(Oa,{side:"bottom",balanceSc:t,children:(0,ea.jsx)(nE,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,ea.jsx)(SK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,ea.jsx)(l_,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ea.jsxs)(nE,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(lT.qdM,{})}),(0,ea.jsx)(SK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function Ma(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:a,sendSiacoin:o,receiveSiacoin:s}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(0,ea.jsx)(Mi,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:a}),s&&(0,ea.jsxs)(lM,{size:"small",onClick:s,children:[(0,ea.jsx)(lT.xHM,{}),"Receive"]}),(0,ea.jsxs)(lM,{size:"small",variant:"accent",onClick:o,children:[(0,ea.jsx)(lT.rW0,{}),"Send"]})]})}function Mo(e,t){if(!e||!e.length)return[];let n=Object.keys((0,kZ.Z)(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let a={...t};0!==i&&(n.forEach(n=>{let r=t[n],o=e[i-1][n];a[n]=r-o}),r.push(a))}):r=e,r}let Ms={"5m":e=>{let t=e+kF(5);return"5m interval from ".concat((0,ge.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,ge.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kF(15);return"15m interval from ".concat((0,ge.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,ge.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>"Hour interval from ".concat((0,ge.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,ge.rN)(e+36e5,{timeStyle:"short",hour12:!1})),daily:e=>"Day interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(e+864e5)),weekly:e=>{let t=e+kz(7);return"Week interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(t))},monthly:e=>{let t=e+kz(30);return"Month interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(t))},yearly:e=>{let t=e+kz(365);return"Year interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(t))},default:e=>"".concat((0,ge.rN)(e))};function Ml(e){return Ms[e]||Ms.default}function Mu(e){if(!e||!e.length)return{};let t=Object.keys((0,kZ.Z)(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,a=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0;return Mc({total:t.reduce((t,n)=>t+(n[e]||0),0),start:i,end:a,count:t.length})}(n,e)}),{}),total:function(e,t){let n=Md(e,t[0]),r=Md(e,t[t.length-1]);return Mc({total:t.reduce((t,n)=>t+Md(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function Mc(e){let{total:t,start:n,end:r,count:i}=e,a=r-n;return{total:t,diff:a,change:0===n?void 0:a/n*100,latest:r,average:t/i}}function Md(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function Mf(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,p5.F)(),a=(0,eo.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:v9.accent[800]}}:{sc:{label:"siacoin",color:v9.accentdark[800]}},[i]),o=(0,eo.useMemo)(()=>({data:Mo(t,"none"),stats:Mu(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:a.sc},format:e=>(0,ge.Vz)(e),formatTimestamp:Ml("default"),formatTickY:e=>(0,ge.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,a,r]);return(0,ea.jsx)("div",{className:"relative",children:(0,ea.jsx)(k0,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:o.data,config:o.config})})}function Mh(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,ea.jsx)(S9,{title:"Peers",actions:(0,ea.jsx)(lM,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Mp(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:a}=e;return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[a&&(0,ea.jsx)("div",{className:"relative top-px",children:(0,ea.jsx)(hv,{style:{backgroundColor:a}})}),(0,ea.jsx)(nw,{size:t,children:n})]})}function Mm(e){let{children:t,variant:n,align:r}=e;return(0,ea.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,ea.jsx)(nw,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Mv(e){let{date:t,align:n,variant:r}=e;return t?(0,ea.jsx)(Mm,{variant:r,align:n,children:(0,ge.rN)(t)}):null}function Mg(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,ea.jsx)(Mm,{variant:r,align:n,children:t.toLocaleString()}):null}function My(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:a,color:o,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!a)return null;let d=r.endHeight-r.startHeight,f=(0,ge.pp)(d),h=(0,ge.jr)(n,r.startHeight),p=(0,ge.jr)(n,i),m=(0,ge.jr)(n,a),v=(p-h)/f,g=(m-h)/f;return(0,ea.jsxs)("div",{className:(0,eW.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Mb(v),width:Mb(g-v)},children:[(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,ea.jsx)("div",{className:(0,eW.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===o?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===o?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===o?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Mb(1-g)}:{left:Mb(v)},children:[(0,ea.jsx)(Mg,{blockHeight:i,align:"start",variant:"primary"}),(0,ea.jsx)(Mm,{variant:"primary",children:t}),(0,ea.jsx)(Mg,{blockHeight:a,align:"end",variant:"primary"})]}),c&&(0,ea.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Mb(1-g)}:{left:Mb(v)},children:[(0,ea.jsx)(Mv,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(Mv,{date:m,align:"start",variant:"secondary"})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Mb(1-g)}:{left:Mb(v)},children:[(0,ea.jsx)(Mv,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(Mv,{date:m,align:"start",variant:"secondary"})]})]})}function Mb(e){return"".concat(100*e,"%")}function Mx(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:a,bottomLabel:o,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,ge.pp)(f),p=(0,ge.jr)(n,i.startHeight),m=r?(0,ge.jr)(n,r):0;return r?(0,ea.jsx)("div",{className:(0,eW.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,ea.jsxs)("div",{className:(0,eW.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,ea.jsx)("div",{className:(0,eW.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,ea.jsx)(Mg,{blockHeight:r,align:"start",variant:"primary"}),(0,ea.jsx)(Mm,{variant:"primary",children:a})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,ea.jsx)(Mv,{date:m,align:"start",variant:"secondary"}),o&&(0,ea.jsx)(Mm,{variant:"secondary",children:o})]})]})}):null}function Mw(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:a,revisionHeight:o,proofHeight:s,range:l}=e,u=t-n<6;return(0,ea.jsx)("div",{className:"group/main relative w-full",children:(0,ea.jsx)("div",{className:"relative py-6",children:(0,ea.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,ea.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,ea.jsxs)("div",{className:"group/segments",children:[(0,ea.jsx)(My,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,ea.jsx)(My,{label:"proof window",currentHeight:t,startHeight:i,endHeight:a,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,ea.jsx)(Mx,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,ea.jsx)(Mx,{label:"last revision",currentHeight:t,eventHeight:o,range:l,color:"green",className:"z-20"}),(0,ea.jsx)(Mx,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,ea.jsx)(Mx,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Mj=n(90463),Mk=n(58527),ME=n(40704),MS=n(95598),MC=n(93225),M_=n(11749),MO=function(e,t,n,r){var i=-1,a=Mk.Z,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=(0,MS.Z)(t,(0,MC.Z)(n))),r?(a=ME.Z,o=!1):t.length>=200&&(a=M_.Z,o=!1,t=new Mj.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,ea.jsx)(lT.xVB,{})}),(0,ea.jsx)(lM,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),a(n)},children:(0,ea.jsx)(lT.pHg,{})})]})]})}function ML(e){let{title:t,children:n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,ea.jsx)(du,{anchorLink:!0,size:"24",children:t}),(0,ea.jsx)(nE,{className:"p-6",children:(0,ea.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function MZ(e){let{title:t,description:n,control:r}=e;return(0,ea.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,ea.jsx)(du,{size:"20",children:t}),(0,ea.jsx)(nj,{size:"14",children:n})]}),(0,ea.jsx)("div",{className:"",children:r})]})}function MF(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:a,title:o,variant:s,action:l,onConfirm:u}=n||{},c=(0,OL.cI)(),d=(0,eo.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,ea.jsx)(uO,{title:o,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[a,(0,ea.jsx)("div",{className:"flex gap-1 justify-end",children:(0,ea.jsx)(Ca,{variant:s,form:c,size:"small",children:l})})]})})})}function Mz(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsxs)("div",{className:"flex items-center",children:[n?(0,ea.jsxs)(lM,{className:"relative left-2 only:left-0",variant:"ghost",onClick:a,tip:"".concat(n," connected peers"),children:[(0,ea.jsx)(nw,{color:"subtle",children:n.toLocaleString()}),(0,ea.jsx)(lT.RK4,{})]}):null,i&&r?(0,ea.jsx)(l_,{content:"Blockchain is synced",children:(0,ea.jsx)("div",{className:"relative left-2",children:(0,ea.jsxs)(lM,{variant:"ghost",state:"waiting",children:[(0,ea.jsx)(nw,{color:"subtle",children:i.toLocaleString()}),(0,ea.jsx)(nw,{color:"green",children:(0,ea.jsx)(lT.Y3p,{})})]})})}):null]})]})}function MV(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,ea.jsx)(d3,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,ea.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function MI(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:a,nodeBlockHeight:o,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,ea.jsx)(pm,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,ea.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===a||0===a?null:(0,ea.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,ea.jsxs)(nw,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[a,"%"]})}),(0,ea.jsx)(dj,{size:30})]}),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,ea.jsx)(Mz,{nodeBlockHeight:o,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,ea.jsx)(c0,{className:"w-full mb-0.5"}):(0,ea.jsx)(MV,{percent:a,nodeBlockHeight:o,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,ea.jsx)(c0,{className:"w-full mb-1"})]}),c]})})}function MB(e){let{testnetName:t}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,ea.jsx)(nw,{color:"lo",children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsxs)(nw,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function MH(e){let{type:t,label:n,link:r,tip:i,icon:a,value:o,onClick:s,decimalsLimit:l,units:u}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(l_,{align:"start",side:"bottom",content:i,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:a||(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(nw,{size:"12",ellipsis:!0,children:r?(0,ea.jsx)(db,{href:r,target:"_blank",children:n}):n})]})}),(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(o)},children:"siacoin"===t?(0,ea.jsx)(SW,{value:o,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,ea.jsx)(SY,{value:o,variant:"value",size:"12",format:e=>"".concat(ht(e,l)," ").concat(u)})})]})}function MU(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:a,suggestion:o,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=OF({name:t,field:i,form:n}),y=(0,eo.useMemo)(()=>s?new(he())(s):o&&"boolean"!=typeof o?new(he())(o):void 0,[s,o]);return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)(ho,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:y,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),a&&(0,ea.jsx)(MH,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,ge.qN)(a),onClick:()=>{m(a,!0)}}),o&&u&&(0,ea.jsx)(MH,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,ge.qN)(o),onClick:()=>{m(o,!0)}}),(0,ea.jsx)(d||(()=>null),{name:t,form:n,fields:r})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MW(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:a,averageTip:o,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=OF({form:n,field:i,name:t}),m=(0,eo.useMemo)(()=>c?new(he())(c):s&&"boolean"!=typeof s?new(he())(s):void 0,[c,s]);return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)(hn,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{f(void 0!==e?new(he())(e):void 0,!0)},onBlur:()=>{f(h,!0)}}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[a&&(0,ea.jsx)(MH,{type:"number",label:"Network average",tip:o||"Averages provided by Sia Central.",decimalsLimit:u,value:a,units:d,onClick:()=>{f(a,!0)}}),s&&l&&(0,ea.jsx)(MH,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function Mq(e){let{label:t,link:n,tip:r,value:i,onClick:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(l_,{align:"start",side:"bottom",content:r,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(nw,{size:"12",children:n?(0,ea.jsx)(db,{href:n,target:"_blank",children:t}):t})]})}),(0,ea.jsx)("div",{className:"flex cursor-pointer items-center",onClick:a,children:(0,ea.jsx)(nw,{size:"12",children:(0,ea.jsx)(lY,{children:i})})})]})}function M$(e){let{name:t,form:n,fields:r,type:i}=e,a=r[t],{placeholder:o,suggestion:s,suggestionTip:l}=a,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=OF({name:t,form:n,field:a});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)(fZ,{ref:u,name:t,placeholder:o,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,ea.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,ea.jsx)(Mq,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MK(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:a,suggestionTip:o}=i,{setValue:s,value:l,error:u}=OF({name:t,field:i,form:n});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(hO,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,ea.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&o&&(0,ea.jsx)(Mq,{label:"Suggestion",tip:o,value:a?"on":"off",onClick:()=>{s(a,!0)}})})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MY(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:a,suggestion:o,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=OF({name:t,form:n,field:i});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(hd,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==a?void 0:a.map(e=>(0,ea.jsx)(hf,{value:e.value,children:e.label},e.value))})}),(0,ea.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&s&&(0,ea.jsx)(Mq,{label:"Suggestion",tip:s,value:o?"on":"off",onClick:()=>{c(o,!0)}})})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MX(e){let{title:t,category:n,form:r,fields:i}=e,a=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===a.length?null:(0,ea.jsx)(ML,{title:t,children:a.map((e,t)=>{let[n,o]=e;return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(MZ,{title:o.title,description:o.description,control:"number"===o.type?(0,ea.jsx)(MW,{form:r,name:n,fields:i}):"siacoin"===o.type?(0,ea.jsx)(MU,{form:r,name:n,fields:i}):"text"===o.type?(0,ea.jsx)(M$,{form:r,name:n,fields:i}):"password"===o.type?(0,ea.jsx)(M$,{form:r,type:"password",fields:i,name:n}):"boolean"===o.type?(0,ea.jsx)(MK,{form:r,name:n,fields:i}):"select"===o.type?(0,ea.jsx)(MY,{form:r,name:n,fields:i}):null}),t(0,ea.jsx)(hf,{value:e.value,children:e.label},e.value))});return a?(0,ea.jsx)(Ci,{title:o.title,name:t,form:n,children:f}):f}function MQ(e){let{form:t,remoteValues:n}=e,r=(0,eo.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,n]);(0,eo.useEffect)(()=>{r()},[n])}function MJ(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function M0(e){let{form:t,remoteValues:n}=e,[r,i]=(0,eo.useState)(!1),{isUnlockedAndAuthedRoute:a}=(0,hr.Hv)();(0,eo.useEffect)(()=>{a||i(!1)},[a]),(0,eo.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}function M1(e){let{form:t,onOpenChange:n,defaultValues:r}=e,i=(0,eo.useCallback)(()=>{t.reset(r)},[t,r]),a=(0,eo.useCallback)(()=>{n(!1),t.reset(r)},[t,n,r]),o=(0,eo.useCallback)(e=>{e||a()},[a]);return{reset:i,closeAndReset:a,handleOpenChange:o}}lT.lg1,lT.eHR,lT.I$H,lT.KiD,lT.P5r,lT.CCF,lT.w9S,lT.EL$,lT.aPl,lT.wEY,lT.EOT,lT.kSc,lT.W$S,lT.lJ7,lT.ORH,lT.ka0,lT.BdP,lT.d19,lT.Mes,lT.VUg,lT.U_S,lT.T85;let M2=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[o,s]=(0,eo.useState)(!0),l=(0,eo.useRef)(!1),u=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,eo.createElement)(nn,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,eo.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},a)};function M4(e){let{children:t}=e,[n,r]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{r(!0)},[]),(0,ea.jsx)("div",{children:n?t:null})}function M3(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:a}=e;return(0,ea.jsx)(M4,{children:(0,ea.jsx)(hr.kl,{fallback:r,children:(0,ea.jsx)(p5.f,{attribute:"class",children:(0,ea.jsx)(M2,{children:(0,ea.jsx)(hr.bW,{lockRoutes:a,passwordProtectRequestHooks:n,children:(0,ea.jsxs)("div",{id:"root",className:t,children:[(0,ea.jsx)(S_,{}),i]})})})})})})}var M5=n(28356),M6=Math.min,M8=function(e,t,n){for(var r=n?ME.Z:Mk.Z,i=e[0].length,a=e.length,o=a,s=Array(a),l=1/0,u=[];o--;){var c=e[o];o&&t&&(c=(0,MS.Z)(c,(0,MC.Z)(t))),l=M6(c.length,l),s[o]=!n&&(t||i>=120&&c.length>=120)?new Mj.Z(o&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,eo.useCallback)(e=>{l(t=>(0,M5.Z)([...t,...e]))},[l]),d=(0,eo.useCallback)(e=>{l(t=>MR(t,e))},[l]),f=(0,eo.useCallback)(()=>{l(r)},[l,r]),h=(0,eo.useMemo)(()=>n.filter(e=>{let t=null==o?void 0:o.includes(e.category||"");return!e.fixed&&!t}),[n,o]),p=(0,eo.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==o?void 0:o.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,o]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[a,o]=(0,kX.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,kX.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,eo.useCallback)(e=>{if(a!==e){o(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[a,o,l]),setSortDirection:l,setSortField:o,sortableColumns:(0,eo.useMemo)(()=>r?M9(r.map(e=>e.id),i):[],[r,i]),sortField:a,sortDirection:s}}(e,{defaultSortField:i,sortOptions:a,enabledColumns:p}),x=(0,eo.useMemo)(()=>a?M9(a.map(e=>e.id),p):[],[a,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function Tn(){let e=(0,da.xj)(),t=(0,da.jD)(),n=(0,da.lr)();return(0,eo.useCallback)(()=>{if(!e||!t)return;let r=new URLSearchParams(n),i=r.toString();r.delete("limit"),r.delete("offset"),r.delete("marker");let a=r.toString(),o=i?"".concat(t,"?").concat(i):t,s=a?"".concat(t,"?").concat(a):t;s!==o&&e.replace(s)},[e,n,t])}function Tr(){let[e,t]=(0,eo.useState)([]),n=Tn(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[t,e,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}function Ti(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,eo.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),a=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...a=a.sort((e,t)=>{let n=e[r],a=t[r];return"desc"===i?n instanceof he()&&a instanceof he()?n.lte(a)?1:-1:n<=a?1:-1:n instanceof he()&&a instanceof he()?n.gte(a)?1:-1:n>=a?1:-1})]},[t,n,r,i])}function Ta(){let[e,t]=(0,eo.useState)([]),n=Tn(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}let To=new(he())(0);function Ts(e){let{sc:t}=e,{settings:n}=(0,hr.Hv)(),r=(0,hi.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,eo.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(he())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||To):To},[r.data,n]),a=(0,eo.useMemo)(()=>new(he())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:a,currency:n.currency}}function Tl(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,ge.gU)(5),n.startHeight=n.startHeight-(0,ge.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=kz(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}let Tu=/^[a-z]{2}$/i;function Tc(e){if(!Tu.test(e)){let t=typeof e;throw TypeError("cc argument must be an ISO 3166-1 alpha-2 string, but got '".concat("string"===t?e:t,"' instead."))}return String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt()+127397))}let Td=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Tf(e){let t=[];for(let n=0,r=e.length;n{let r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Tv(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tg(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),Tv(i)}let Ty=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||Ty(n,t))};function Tb(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let a=Td();try{t.className=`${t.className} ${a}`}catch(e){return}let o=document.createElement("style");o.appendChild(function(e,t,n){let r=`.${e}:${t}`,i=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):Tf(n).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${i}}`)}(a,n,r)),t.appendChild(o)}let Tx="application/font-woff",Tw="image/jpeg",Tj={woff:Tx,woff2:Tx,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Tw,jpeg:Tw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Tk(e){return Tj[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function TE(e){return -1!==e.search(/^(data:)/)}function TS(e,t){return`data:${t};base64,${e}`}async function TC(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}let T_={};async function TO(e,t,n){var r,i,a;let o,s;let l=(r=e,i=t,a=n.includeQueryParams,s=r.replace(/\?.*/,""),a&&(s=r),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=T_[l])return T_[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await TC(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));o=TS(r,t)}catch(r){o=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return T_[l]=o,o}async function TM(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Tm(t)}async function TT(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),Tm(t.toDataURL())}let n=e.poster,r=Tk(n);return Tm(await TO(n,r,t))}async function TA(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await TL(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function TP(e,t){return Ty(e,HTMLCanvasElement)?TM(e):Ty(e,HTMLVideoElement)?TT(e,t):Ty(e,HTMLIFrameElement)?TA(e):e.cloneNode(!1)}let TN=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function TR(e,t,n){var r,i;let a=[];return 0===(a=TN(e)&&e.assignedNodes?Tf(e.assignedNodes()):Ty(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Tf(e.contentDocument.body.childNodes):Tf((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes)).length||Ty(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>TL(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function TD(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iTP(e,t)).then(n=>TR(e,n,t)).then(t=>{var n,r;return n=e,Ty(r=t,Element)&&(!function(e,t){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Tf(r).forEach(i=>{let a=r.getPropertyValue(i);if("font-size"===i&&a.endsWith("px")){let e=Math.floor(parseFloat(a.substring(0,a.length-2)))-.1;a=`${e}px`}Ty(e,HTMLIFrameElement)&&"display"===i&&"inline"===a&&(a="block"),"d"===i&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}(n,r),Tb(n,r,":before"),Tb(n,r,":after"),Ty(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),Ty(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(Ty(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>TD(e,t)):null}let TZ=/url\((['"]?)([^'"]+?)\1\)/g,TF=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Tz=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function TV(e,t,n,r,i){try{let a;let o=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,s=Tk(t);if(i){let e=await i(o);a=TS(e,s)}else a=await TO(o,s,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}function TI(e){return -1!==e.search(TZ)}async function TB(e,t,n){if(!TI(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(Tz,e=>{for(;;){let[n,,r]=TF.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(TZ,(e,n,r)=>(t.push(r),e)),t.filter(e=>!TE(e))})(r).reduce((e,r)=>e.then(e=>TV(e,r,t,n)),Promise.resolve(r))}async function TH(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await TB(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function TU(e,t){await TH("background",e,t)||await TH("background-image",e,t),await TH("mask",e,t)||await TH("mask-image",e,t)}async function TW(e,t){let n=Ty(e,HTMLImageElement);if(!(n&&!TE(e.src))&&!(Ty(e,SVGImageElement)&&!TE(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await TO(r,Tk(r),t);await new Promise((t,r)=>{e.onload=t,e.onerror=r,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function Tq(e,t){let n=Tf(e.childNodes).map(e=>T$(e,t));await Promise.all(n).then(()=>e)}async function T$(e,t){Ty(e,Element)&&(await TU(e,t),await TW(e,t),await Tq(e,t))}let TK={};async function TY(e){let t=TK[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},TK[e]=t,t}async function TX(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),TC(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function TG(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=a.exec(n)))break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function TQ(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{Tf(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,s=TY(o).then(e=>TX(e,t)).then(e=>TG(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?a+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(s)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(TY(n.href).then(e=>TX(e,t)).then(e=>TG(e).forEach(e=>{i.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{Tf(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function TJ(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=Tf(e.ownerDocument.styleSheets);return(await TQ(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>TI(e.style.getPropertyValue("src")))}async function T0(e,t){let n=await TJ(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return TB(e.cssText,n,t)}))).join("\n")}async function T1(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await T0(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function T2(e,t={}){let{width:n,height:r}=Tp(e,t),i=await TL(e,t,!0);return await T1(i,t),await T$(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await Tg(i,n,r)}async function T4(e,t={}){let{width:n,height:r}=Tp(e,t),i=await T2(e,t),a=await Tm(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return o.width=u*l,o.height=c*l,!t.skipAutoScale&&(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${u}`,o.style.height=`${c}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function T3(e,t={}){return(await T4(e,t)).toDataURL()}async function T5(e,t){let{name:n,quality:r,copy:i,download:a}=t;if(!e)throw Error("HTML node required");let o=await T3(e,{quality:r||.5});if(a){let e=document.createElement("a");e.download="".concat(n,".png"),e.href=o,e.click()}if(i){let e=await fetch(o);SM(await e.blob(),"image/png",n)}}},99605:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.a},Fb:function(){return o.a},UO:function(){return u.useParams},j0:function(){return c.useRouter},jD:function(){return u.usePathname},lr:function(){return u.useSearchParams},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),a=n(97729),o=n.n(a),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},10363:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return Y},gw:function(){return a},Tc:function(){return q},du:function(){return $},Hv:function(){return Z},iv:function(){return H},rB:function(){return U},Nf:function(){return B},Tu:function(){return K},mw:function(){return V},q0:function(){return z},Tb:function(){return M},V1:function(){return I},Q5:function(){return W},D:function(){return P}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return O}});var i=n(79381);function a(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),s=n.n(o),l=n(2784);function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function h(e,t,n){var r,i;let a=function(e,t,n){var r,i,a,o;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(o=n.config)||void 0===o?void 0:null===(a=o.axios)||void 0===a?void 0:a.headers},l=f(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:a}}function p(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t)for(let n of Object.keys(t)){let r=String(t[n]);e.includes(":".concat(n))?e=e.replace(":".concat(n),r):e.includes("?")?e+="&".concat(n,"=").concat(encodeURIComponent(r)):e+="?".concat(n,"=").concat(encodeURIComponent(r))}return e}(t,i)))return null;let a=f(e,n,r);return a===e.api?"".concat(a,"/api").concat(t):"".concat(a).concat(t)}function m(e,t,n,r){let i=f(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),g=n(99605),y=n(92762);function b(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}let x=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function w(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let j="undefined"==typeof window,k=(()=>{if(j)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let S=[],C=[];function _(e){return null!=e}let O=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:a="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>b(void 0,void 0,void 0,function*(){let o={};if(j)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>b(void 0,void 0,void 0,function*(){let t=yield fetch(`${a}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=w(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=w(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let a=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(a,3,5126,!1,0,0),e.enableVertexAttribArray(a),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let o=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,o),e.deleteProgram(r),e.deleteBuffer(i),o.join("")}(e),a="801621810",o="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",o,15],["a8x",o,15],["a9",o,15],["a9x",o,15],["a10",o,15],["a10x",o,15],["a12",a,15],["a12x",a,15],["a12z",a,15],["a14",a,15],["m1",a,15]]:[["a7",s,12],["a8",o,12],["a9",o,15],["a10",o,15],["a11",a,15],["a12",a,15],["a13",a,15],["a14",a,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return b(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,a=o[i]=null!==(t=o[i])&&void 0!==t?t:c(i);try{n=yield a}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let a,o=0;for(;ou?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=Math.abs(x-t*n);re===n?t-r:e-n);if(!v.length){let e=x.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",y,g,O)});function M(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let{getGPUTier:T}=r,A=(0,l.createContext)({}),P=()=>(0,l.useContext)(A);function N(e){let{children:t}=e,n=function(){let[e,t]=(0,l.useState)({}),n=(0,l.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]);return{setWorkflow:n,removeWorkflow:(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,l.useCallback)(()=>{t({})},[t]),workflows:(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let R=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],D={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:R[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},L=(0,l.createContext)({}),Z=()=>(0,l.useContext)(L);function F(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,a=(0,l.useMemo)(()=>({...D,...r}),[r]),[o,s]=(0,y.Z)("v1/settings",{defaultValue:a});(0,l.useEffect)(()=>{s(e=>({...a,...e}))},[]);let u=(0,l.useMemo)(()=>({...a,...o}),[o,a]),{resetWorkflows:c}=P(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=R.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.xj)(),p=(0,g.jD)(),[m,v]=(0,l.useState)({}),b=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,l.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,g.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),j=(0,l.useMemo)(()=>!!u.password,[u]);return{settings:u,setSettings:d,setCurrency:f,currencyOptions:R,gpu:function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:a,hasUserSet:o},s]=(0,y.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,l.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,l.useCallback)(async()=>{let e=!1;{let t=await T();console.log("GPU",t),e=t.tier>0,!o&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,o]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:a,shouldRender:r&&a,setCanGpuRender:i,setIsGpuEnabled:u}}(),lock:x,isUnlockedAndAuthedRoute:j&&w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(n);return(0,v.jsx)(L.Provider,{value:r,children:t})}function z(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:r,passwordProtectRequestHooks:a}=Z(),o=p(r,n.route,n,void 0),u=(0,l.useMemo)(()=>{var t,i;return t=o?"".concat(o).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,i=n.disabled||a&&!r.password,!t||i?null:t},[o,e,n,a,r]);return(0,i.ZP)(u,async()=>{if(!n.route)throw Error("No route");let t=h(r,n,void 0);if(!o)throw Error("No route");try{return(await s().post(o,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function V(e,t){let{setWorkflow:n,removeWorkflow:r}=P(),{mutate:a}=(0,i.kY)(),{settings:o}=Z(),l=u(e);return{post:async e=>{let i=d(e);try{let u;let c=h(o,l,i),d=p(o,l.route,l,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(o,d,e,i);n(f,{path:v,payload:u});let g=await s().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=arguments.length>2?arguments[2]:void 0;return a(n=>{if("string"!=typeof n)return!1;let r=m(o,n,e,i);return t(r)},n,r)},i,g),r(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function I(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=Z(),{setWorkflow:a,removeWorkflow:o}=P(),l=u(e);return{put:async e=>{let i=d(e);try{let u;let c=h(r,l,i),d=p(r,l.route,l,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(r,d,e,i);a(f,{path:v,payload:u});let g=await s().put(d,u,c);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=m(r,n,e,i);return t(a)},a,o)},i,g),o(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e){var t,n,r;let a=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:u}=Z(),d=p(o,a.route,a,void 0);return(0,i.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,r=a.disabled||u&&!o.password,!n||r?null:n),async()=>{if(!a.route)throw Error("No route");let e=h(o,a,void 0);if(!d)throw Error("No route");try{return(await s().get(d,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=a.config)||void 0===t?void 0:t.swr)}function H(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=Z(),{setWorkflow:a,removeWorkflow:o}=P(),l=u(e);return{delete:async e=>{let i=d(e);try{let u=h(r,l,i),c=p(r,l.route,l,i);if(!c)throw Error("No route");let d=m(r,c,e,i);a(c,{path:d});let f=await s().delete(c,u);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=m(r,n,e,i);return t(a)},a,o)},i,f),o(c),{status:f.status,data:f.data,headers:f.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function U(e){var t;let{get:n}=function(e){let{settings:t}=Z(),n=u(e);return{get:async e=>{let r=d(e);try{let e=h(t,n,r),i=p(t,n.route,n,r);if(!i)throw Error("No route");let a=await s().get(i,e);return{status:a.status,data:a.data,headers:a.headers}}catch(t){var i,a,o,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(a=t.response)||void 0===a?void 0:a.data.text()):(null===(o=t.response)||void 0===o?void 0:o.data)||t.message;return{status:null===(l=t.response)||void 0===l?void 0:l.status,error:e}}}}}({...e,config:{...e.config,axios:{...null===(t=e.config)||void 0===t?void 0:t.axios,responseType:"blob"}}});return{get:async(e,t)=>{let r=await n(t);return r.data&&function(e,t){let n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),URL.revokeObjectURL(n)},100)}(e,r.data),r}}}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function q(){return Math.round((new Date().getTime()-14336e8)/6e5)}function $(){return Math.round((new Date().getTime()-16736e8)/6e5)}function K(e){let{settings:t}=Z();return(0,l.useMemo)(()=>function(n,r,a){return(0,i.JG)(r=>"string"==typeof r&&n(m(t,r,e,void 0)),r,a)},[t,e])}function Y(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,v.jsx)(N,{children:(0,v.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},61020:function(e,t,n){"use strict";n.d(t,{aXP:function(){return tP},eHR:function(){return tz},xHM:function(){return tV},L6f:function(){return tI},rW0:function(){return tB},osk:function(){return tH},JaG:function(){return tU},wWN:function(){return iv},Dkj:function(){return iC},fi8:function(){return im},EMN:function(){return tJ},bdU:function(){return t0},VUy:function(){return t1},Cp0:function(){return t2},kqg:function(){return t4},Mes:function(){return t3},oce:function(){return t6},uTh:function(){return t5},DI$:function(){return t7},Y3p:function(){return t9.Y3p},Z$8:function(){return t9.Z$8},tEK:function(){return t9.tEK},yar:function(){return t9.yar},F3j:function(){return t9.F3j},PcV:function(){return t9.PcV},QN4:function(){return t9.QN4},Jsc:function(){return t9.Jsc},T80:function(){return t9.T80},bQp:function(){return t9.bQp},Y9T:function(){return t9.Y9T},wEY:function(){return nr},olJ:function(){return na},vtB:function(){return ni},KiD:function(){return nl},B4q:function(){return nh},_Eq:function(){return nu},VHe:function(){return ik},Jrl:function(){return np},aPl:function(){return nm},kBK:function(){return iw},c_L:function(){return nb},Bpb:function(){return nx},vzB:function(){return nw},nDH:function(){return n_},dr6:function(){return nO},_fo:function(){return nM},d19:function(){return nT},w9S:function(){return nA},VBo:function(){return ig},q0D:function(){return nL},Hb6:function(){return nD},CCF:function(){return nZ},Qbr:function(){return nI},L37:function(){return nB},ROc:function(){return iE},UG6:function(){return ij},lq1:function(){return nH},zvn:function(){return iy},EL$:function(){return nW},BdP:function(){return nq.BdP},e1T:function(){return nq.e1T},P5r:function(){return nq.P5r},RdX:function(){return nq.RdX},U_S:function(){return nq.U_S},_m8:function(){return i_},V8Q:function(){return nQ},POp:function(){return nJ},nCM:function(){return n2},kSc:function(){return n1},TtX:function(){return n0},mBM:function(){return ix},Lur:function(){return n6},b47:function(){return n8},Sfn:function(){return n7},W$S:function(){return ri},T85:function(){return ra},c6N:function(){return ro},Ckx:function(){return rs},EOT:function(){return rl},RK4:function(){return rc},jH8:function(){return rm},XJM:function(){return rv},RRj:function(){return rg},ka0:function(){return ry},hzZ:function(){return rw},n6M:function(){return rj},VUg:function(){return r_},owP:function(){return rO},Fs9:function(){return rM},wGX:function(){return rT},Wet:function(){return rA.Wet},xkX:function(){return rA.xkX},Zbu:function(){return rA.Zbu},ZEk:function(){return rA.ZEk},$Iz:function(){return rL},UBs:function(){return rZ},shL:function(){return rF},hiv:function(){return rz},eOF:function(){return rH},mli:function(){return rB},_kF:function(){return rW},lJ7:function(){return iS},ORH:function(){return rY},I98:function(){return rX},R$6:function(){return rG},JCW:function(){return r8},xVB:function(){return r7},pHg:function(){return r9},I$H:function(){return it},HCc:function(){return ie},oaN:function(){return ib},qdM:function(){return ia},KTM:function(){return ii},gFQ:function(){return ir},Gu6:function(){return io},SmH:function(){return ic},RFr:function(){return id},lg1:function(){return ih}});var r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k,E,S,C,_,O,M,T,A,P,N,R,D,L,Z,F,z,V,I,B,H,U,W,q,$,K,Y,X,G,Q,J,ee,et,en,er,ei,ea,eo,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,ek,eE,eS,eC,e_,eO,eM,eT,eA,eP,eN,eR,eD,eL,eZ,eF,ez,eV,eI,eB,eH,eU,eW,eq,e$,eK,eY,eX,eG,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,ta,to,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tj,tk,tE,tS,tC,t_,tO,tM=n(36662),tT=n(2784),tA=["children"],tP=tT.forwardRef(function(e,t){var n=e.children,i=(0,tM._)(e,tA);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=tT.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tN=["children"],tR=["children"],tD=["children"],tL=["children"],tZ=["children"],tF=["children"],tz=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tN);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=tT.createElement("path",{d:"M14 19H18V21H14z"})),a||(a=tT.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tV=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tR);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=tT.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),tI=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tD);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tT.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),tB=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tL);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=tT.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),tH=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tZ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tT.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),tU=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tF);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tT.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),d||(d=tT.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),f||(f=tT.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),h||(h=tT.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),p||(p=tT.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),m||(m=tT.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),v||(v=tT.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),g||(g=tT.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),y||(y=tT.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),tW=["children"],tq=["children"],t$=["children"],tK=["children"],tY=["children"],tX=["children"],tG=["children"],tQ=["children"],tJ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tW);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),b||(b=tT.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t0=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tq);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),x||(x=tT.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t1=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,t$);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),w||(w=tT.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),t2=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tK);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tT.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),t4=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tY);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tT.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),t3=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tX);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tT.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),t5=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tG);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tT.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),t6=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tQ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tT.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),t8=["children"],t7=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,t8);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tT.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),O||(O=tT.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),t9=n(98358),ne=["children"],nt=["children"],nn=["children"],nr=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ne);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tT.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),T||(T=tT.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),ni=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nt);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tT.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),P||(P=tT.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),na=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nn);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tT.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),R||(R=tT.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),no=["children"],ns=["children"],nl=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,no);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tT.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),L||(L=tT.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nu=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ns);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tT.createElement("circle",{cx:"22",cy:"24",r:"2"})),F||(F=tT.createElement("path",{d:"M29.7769,23.4785A8.64,8.64,0,0,0,22,18a8.64,8.64,0,0,0-7.7769,5.4785L14,24l.2231.5215A8.64,8.64,0,0,0,22,30a8.64,8.64,0,0,0,7.7769-5.4785L30,24ZM22,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,28Z"})),z||(z=tT.createElement("circle",{cx:"8",cy:"8",r:"1"})),V||(V=tT.createElement("circle",{cx:"8",cy:"16",r:"1"})),I||(I=tT.createElement("circle",{cx:"8",cy:"24",r:"1"})),B||(B=tT.createElement("path",{d:"M5,21h7V19H5V13H21v3h2V5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2h7V27H5ZM5,5H21v6H5Z"})),n)}),nc=["children"],nd=["children"],nf=["children"],nh=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nc);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tT.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),U||(U=tT.createElement("path",{d:"M27,3H5A2.0025,2.0025,0,0,0,3,5V27a2.0025,2.0025,0,0,0,2,2H27a2.0025,2.0025,0,0,0,2-2V5A2.0025,2.0025,0,0,0,27,3Zm0,2,0,4H5V5ZM5,27V11H27l0,16Z"})),n)}),np=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nd);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tT.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),q||(q=tT.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nm=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nf);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tT.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),K||(K=tT.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nv=["children"],ng=["children"],ny=["children"],nb=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nv);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tT.createElement("path",{d:"M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"})),X||(X=tT.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),nx=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ng);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),G||(G=tT.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nw=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ny);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tT.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),nj=["children"],nk=["children"],nE=["children"],nS=["children"],nC=["children"],n_=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nj);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),J||(J=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z"})),n)}),nO=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nk);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ee||(ee=tT.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),nM=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nE);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tT.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),n)}),nT=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nS);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),en||(en=tT.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),er||(er=tT.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ei||(ei=tT.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nA=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nC);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tT.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),nP=["children"],nN=["children"],nR=["children"],nD=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nP);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tT.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nL=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nN);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tT.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nZ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nR);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tT.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),nF=["children"],nz=["children"],nV=["children"],nI=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nF);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tT.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),nB=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nz);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ec||(ec=tT.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),ed||(ed=tT.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),nH=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nV);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tT.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),eh||(eh=tT.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),nU=["children"],nW=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nU);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tT.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),nq=n(315),n$=["children"],nK=["children"],nY=["children"],nX=["children"],nG=["children"],nQ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n$);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tT.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),ev||(ev=tT.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),nJ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nK);return tT.createElement(tM.I,(0,tM.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tT.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),ey||(ey=tT.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),n0=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nY);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tT.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),n1=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nX);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tT.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),n2=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nG);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tT.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),n4=["children"],n3=["children"],n5=["children"],n6=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n4);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tT.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),n8=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n3);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tT.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eE||(eE=tT.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),n7=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n5);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tT.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),n9=["children"],re=["children"],rt=["children"],rn=["children"],rr=["children"],ri=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n9);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tT.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),e_||(e_=tT.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),ra=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,re);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tT.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),ro=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rt);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tT.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2 l2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z"})),eT||(eT=tT.createElement("path",{d:"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8 l2.7,2.7L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),rs=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rn);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tT.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eP||(eP=tT.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rl=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rr);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=tT.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eR||(eR=tT.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),ru=["children"],rc=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ru);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tT.createElement("circle",{cx:"21",cy:"26",r:"2"})),eL||(eL=tT.createElement("circle",{cx:"21",cy:"6",r:"2"})),eZ||(eZ=tT.createElement("circle",{cx:"4",cy:"16",r:"2"})),eF||(eF=tT.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rd);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tT.createElement("circle",{cx:"8",cy:"16",r:"2"})),eV||(eV=tT.createElement("circle",{cx:"16",cy:"16",r:"2"})),eI||(eI=tT.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),rv=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rf);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tT.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rg=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rh);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tT.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),ry=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rp);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tT.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eW||(eW=tT.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rb=["children"],rx=["children"],rw=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rb);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),e$||(e$=tT.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rj=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rx);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tT.createElement("path",{d:"M29.37,14.75,20,10V6a4,4,0,0,0-8,0v4L2.63,14.75a1,1,0,0,0-.63.93v5a1,1,0,0,0,1,1,1,1,0,0,0,.29-.05L12,18v5L8.55,24.72a1,1,0,0,0-.55.9V29a1,1,0,0,0,1,1,.9.9,0,0,0,.28,0L16,28l6.72,2A.9.9,0,0,0,23,30a1,1,0,0,0,1-1V25.62a1,1,0,0,0-.55-.9L20,23V18l8.71,3.61a1,1,0,0,0,.29.05,1,1,0,0,0,1-1v-5A1,1,0,0,0,29.37,14.75ZM28,19.15,18,15v9.24l4,2v1.43l-6-1.75-6,1.75V26.24l4-2V15L4,19.15V16.3l10-5.07V6a2,2,0,0,1,4,0v5.23L28,16.3Z"})),n)}),rk=["children"],rE=["children"],rS=["children"],rC=["children"],r_=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rk);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tT.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),eX||(eX=tT.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),rO=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rE);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tT.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),eQ||(eQ=tT.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),eJ||(eJ=tT.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),rM=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rS);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),rT=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rC);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=tT.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e2||(e2=tT.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),rA=n(55791),rP=["children"],rN=["children"],rR=["children"],rD=["children"],rL=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rP);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e4||(e4=tT.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),rZ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rN);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=tT.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),n)}),rF=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rR);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tT.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),e6||(e6=tT.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),rz=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rD);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tT.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),rV=["children"],rI=["children"],rB=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rV);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tT.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rH=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rI);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tT.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rU=["children"],rW=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rU);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tT.createElement("path",{d:"M14 20.18L10.41 16.59 9 18 14 23 23 14 21.59 12.58 14 20.18z"})),tt||(tt=tT.createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),n)}),rq=["children"],r$=["children"],rK=["children"],rY=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rq);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tT.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),rX=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r$);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=tT.createElement("path",{d:"M29.391,14.527L17.473,2.609C17.067,2.203,16.533,2,16,2s-1.067,0.203-1.473,0.609L2.609,14.527C2.203,14.933,2,15.466,2,16 s0.203,1.067,0.609,1.473l11.917,11.917C14.933,29.797,15.467,30,16,30s1.067-0.203,1.473-0.609l11.917-11.917 C29.797,17.067,30,16.534,30,16S29.797,14.933,29.391,14.527z M21,18H11v-4h10V18z"})),ti||(ti=tT.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),rG=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rK);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tT.createElement("path",{d:"M3 9L3.7 9.7 7.5 5.9 7.5 15 8.5 15 8.5 5.9 12.3 9.7 13 9 8 4zM3 4V2h10v2h1V2c0-.6-.4-1-1-1H3C2.4 1 2 1.4 2 2v2H3z"})),n)}),rQ=["children"],rJ=["children"],r0=["children"],r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=["children"],r6=["children"],r8=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rQ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tT.createElement("path",{d:"M21,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H21a2,2,0,0,1,2,2v4.06l5.42-3.87A1,1,0,0,1,30,9V23a1,1,0,0,1-1.58.81L23,19.94V24A2,2,0,0,1,21,26ZM4,8V24H21V18a1,1,0,0,1,1.58-.81L28,21.06V10.94l-5.42,3.87A1,1,0,0,1,21,14V8Z"})),n)}),r7=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rJ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tT.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tl||(tl=tT.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),r9=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r0);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tT.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tc||(tc=tT.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),ie=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r1);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tT.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tT.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),it=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r2);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tT.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tT.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),ir=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r4);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),tv||(tv=tT.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),ii=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r3);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),ty||(ty=tT.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),ia=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r5);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tb||(tb=tT.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tx||(tx=tT.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),io=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r6);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tT.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),tj||(tj=tT.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}),is=["children"],il=["children"],iu=["children"],ic=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,is);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tT.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tE||(tE=tT.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),id=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,il);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM28,15H22A24.26,24.26,0,0,0,19.21,4.45,12,12,0,0,1,28,15ZM16,28a5,5,0,0,1-.67,0A21.85,21.85,0,0,1,12,17H20a21.85,21.85,0,0,1-3.3,11A5,5,0,0,1,16,28ZM12,15a21.85,21.85,0,0,1,3.3-11,6,6,0,0,1,1.34,0A21.85,21.85,0,0,1,20,15Zm.76-10.55A24.26,24.26,0,0,0,10,15h-6A12,12,0,0,1,12.79,4.45ZM4.05,17h6a24.26,24.26,0,0,0,2.75,10.55A12,12,0,0,1,4.05,17ZM19.21,27.55A24.26,24.26,0,0,0,22,17h6A12,12,0,0,1,19.21,27.55Z"})),n)}),ih=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,iu);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tT.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),t_||(t_=tT.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tO||(tO=tT.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),ip=n(52322);function im(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M96 152v8H48v-8C48 68.1 116.1 0 200 0h48c83.9 0 152 68.1 152 152v8H352v-8c0-57.4-46.6-104-104-104H200C142.6 48 96 94.6 96 152zM0 224c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-5.1L388.5 469c-2.6 24.4-23.2 43-47.7 43H107.2c-24.6 0-45.2-18.5-47.7-43L37.1 256H32c-17.7 0-32-14.3-32-32z"})})}function iv(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ip.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function ig(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ip.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iy(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ip.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function ib(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ip.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function ix(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function iw(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function ij(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ip.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function ik(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,ip.jsx)("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"})})}function iE(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ip.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function iS(e){let{size:t=24}=e;return(0,ip.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,ip.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ip.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,ip.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,ip.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,ip.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iC(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}function i_(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ip.jsx)("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})})}},57016:function(e,t,n){"use strict";n.d(t,{pz:function(){return ep},HI:function(){return a},cJ:function(){return P},Z7:function(){return J},Uy:function(){return ee},e$:function(){return ef},oe:function(){return eh},S0:function(){return em},YX:function(){return ec},Bl:function(){return ev},D5:function(){return z},oV:function(){return V},sg:function(){return B},ol:function(){return I},B$:function(){return F},d_:function(){return o},DQ:function(){return s},cq:function(){return D},IK:function(){return L},Wu:function(){return Z},GP:function(){return R},nH:function(){return l},$:function(){return E},wW:function(){return A},s2:function(){return O},ni:function(){return M},uf:function(){return C},Os:function(){return T},FV:function(){return k},Yy:function(){return en},Bi:function(){return er},X1:function(){return ei},LS:function(){return es},_3:function(){return eo},eM:function(){return ea},bg:function(){return el},Pt:function(){return eb},wy:function(){return W},xw:function(){return K},Jv:function(){return H},p$:function(){return eg},SD:function(){return U},GD:function(){return $},Iy:function(){return q},Q5:function(){return Y},ZM:function(){return ey},f$:function(){return ej},yu:function(){return X},KJ:function(){return G},og:function(){return et},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},X2:function(){return m},aO:function(){return b},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return ew}});var r=n(79381),i=n(10363);let a="/bus/state";function o(e){return(0,i.Nf)({...e,route:a})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=o({config:{swr:{revalidateOnFocus:!1}}});return(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}let u="/bus/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/bus/syncer/connect"},async e=>{e(e=>e===u)})}let f="/bus/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/bus/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith(x))})}function m(e){return(0,i.Nf)({...e,route:"/bus/wallet"})}function v(e){return(0,i.Nf)({...e,route:"/bus/wallet/transactions"})}function g(e){return(0,i.mw)({...e,route:"/bus/wallet/fund"})}function y(e){return(0,i.mw)({...e,route:"/bus/wallet/sign"})}function b(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let x="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:x})}let j="/bus/search/hosts";function k(e){return(0,i.q0)({...e,route:j})}function E(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function C(e){return(0,i.Nf)({...e,route:S})}let _="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:_})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,_,N].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,N].find(t=>e.startsWith(t)))})}function A(e){return(0,i.mw)({...e,route:"/bus/host/:publicKey/resetlostsectors"})}function P(e){return(0,i.mw)({...e,route:"/bus/account/:id/resetdrift"})}let N="/bus/contracts";function R(e){return(0,i.Nf)({...e,route:N})}function D(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function L(e){return(0,i.iv)({...e,route:"/bus/contract/:id"},async e=>{e(e=>e.startsWith("/bus/contract"))})}function Z(e){return(0,i.Nf)({...e,route:"/bus/contracts/sets"})}function F(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function z(e){return(0,i.Nf)({...e,route:"/bus/bucket/:name"})}function V(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function I(e){return(0,i.V1)({...e,route:"/bus/bucket/:name/policy"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function B(e){return(0,i.iv)({...e,route:"/bus/bucket/:name"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function H(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function U(e){return(0,i.q0)({...e,route:"/bus/objects/list"})}function W(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function q(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function $(e){return(0,i.mw)({...e,route:"/bus/objects/rename"})}function K(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function Y(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function X(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function G(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let Q="/bus/alerts";function J(e){return(0,i.Nf)({...e,route:Q})}function ee(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith(Q))})}function et(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}function en(e){return(0,i.Nf)({...e,route:"/bus/metric/contract"})}function er(e){return(0,i.Nf)({...e,route:"/bus/metric/contractset"})}function ei(e){return(0,i.Nf)({...e,route:"/bus/metric/wallet"})}function ea(e){return(0,i.mw)({...e,route:"/bus/multipart/create"},async e=>{e(e=>e.startsWith("/bus/multipart"))})}function eo(e){return(0,i.mw)({...e,route:"/bus/multipart/complete"},async e=>{e(e=>e.startsWith("/bus/multipart"))})}function es(e){return(0,i.mw)({...e,route:"/bus/multipart/abort"},async e=>{e(e=>e.startsWith("/bus/multipart"))})}function el(e){return(0,i.q0)({...e,route:"/bus/multipart/listuploads"})}let eu="/autopilot/state";function ec(e){return(0,i.Nf)({...e,route:eu})}let ed="/autopilot/config";function ef(e){return(0,i.Nf)({...e,route:ed})}function eh(e){return(0,i.V1)({...e,route:ed},async e=>{e(e=>e===ed),(async()=>{await (0,i.gw)(1e3),e(e=>e===eu)})()})}let ep="/autopilot/hosts";function em(e){return(0,i.q0)({...e,route:ep})}function ev(e){return(0,i.mw)({...e,route:"/autopilot/trigger"})}function eg(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function ey(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects"))})}function eb(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/multipart/:key"})}let ex=(0,n(1456).Z)(e=>e(),5e3),ew="/worker/rhp/scan";function ej(e){return(0,i.mw)({...e,route:ew},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith("/autopilot/hosts"),e=>null==e?void 0:e.map(e=>e.host.publicKey===r?{...e,host:{...e.host,interactions:{...e.host.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),e(e=>e.startsWith("/bus/search/hosts"),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,interactions:{...e.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}:e),!1),ex(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},82494:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return a},BF:function(){return o}});var r=n(10363);let i="https://api.siacentral.com/v2";function a(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/list?showinactive=false&sort=download_speed&dir=desc&protocol=rhp3&page=0&limit=1000",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function o(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/network/averages",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function s(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}},21487:function(e,t,n){"use strict";n.d(t,{B$:function(){return a},xf:function(){return s},jr:function(){return j},pp:function(){return x},x5:function(){return w},JW:function(){return o},gU:function(){return g},vW:function(){return h},rN:function(){return v},yF:function(){return m},Vz:function(){return f},bc:function(){return p},S5:function(){return b},qN:function(){return c},ll:function(){return u},mv:function(){return y}});var r=n(6391),i=n.n(r);function a(e){return new(i())(e).times(1024).times(1024)}function o(e){return new(i())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function s(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let l=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(l).toFixed(t)):new r.BigNumber(e).dividedBy(l)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(l).toFixed(0))}let d={fixed:3,dynamicUnits:!0,hastingUnits:!1};function f(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:a}={...d,...t},o=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),c=new r.BigNumber(e).abs(),f=l.isNegative()?"-":"";if(!i)return"".concat(f).concat(u(c).toFormat(n)," SC");if(c.dividedBy(o).isLessThan(1))return a?"".concat(f).concat(c," H"):"".concat(f,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=c.dividedBy(o.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}function h(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let a=Math.floor(Math.log10(n)/Math.log10(1e3));return(n/Math.pow(1e3,a)).toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][a]}function p(e,t){let{format:n="abbreviated"}=t||{},r="abbreviated"===n;if(e<1e3)return"".concat(e.toFixed(0)).concat(r?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(r?"s":" seconds");let a=i/60;if(a<60)return"".concat(a.toFixed(0)).concat(r?"m":" minutes");let o=a/60;return o<24?"".concat(o.toFixed(0)).concat(r?"h":" hours"):"".concat((o/24).toFixed(0)).concat(r?"d":" days")}function m(e,t){let{fixed:n=0,units:r="",abbreviated:a=!1}=t||{},o=new(i())(e||0);if(a){let e=o.toNumber();if(e<1e3)return o.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),a=e/Math.pow(1e3,i);return"".concat(a.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(o.toFormat(n)).concat(r?" ".concat(r):"")}function v(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function g(e){return 144*e}function y(e){return 1008*e}function b(e){return 4320*e}function x(e){return e/16666666666666669e-22}function w(e){return e/1008}function j(e,t){return new Date().getTime()+x(t-e)}n(81395)},45932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},67531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return a}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function a(){return i?new i:new r}("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)},76923:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("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)},58710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(56428),a=n(26297),o=n(76923),s=n(33607),l=n(9424),u=n(84830),c=n(70929),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,o.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(a.SearchParamsContext);return(0,r.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,o.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(a.PathnameContext)}function v(){(0,o.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,o.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(a.PathParamsContext);return(0,r.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),a=i?t[1]:t;!a||a.startsWith("__PAGE__")||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function y(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let a;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)a=t[1][n];else{var o;let e=t[1];a=null!=(o=e.children)?o:Object.values(e)[0]}if(!a)return i;let l=a[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(a,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("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)},70929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===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)},32254:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("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)},84830:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return h},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return m}});let a=n(37449),o=n(45932),s=n(32254),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=a.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4),a=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(a)&&a in s.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("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)},37449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},33607:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return 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)},40413:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",a="navigate",o="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("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)},41275:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(60261),("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)},84589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let r=n(43219),i=n(16794)._(n(2784)),a=r._(n(28316)),o=r._(n(70666)),s=n(35022),l=n(59595),u=n(22530);n(85667);let c=n(14442),d=r._(n(1071)),f={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:!0};function h(e,t,n,r,i,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function p(e){let[t,n]=i.version.split(".",2),r=parseInt(t,10),a=parseInt(n,10);return r>18||18===r&&a>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:a,height:o,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:m,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:j,onError:k,...E}=e;return i.default.createElement("img",{...E,...p(d),loading:m,width:s,height:o,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:a,srcSet:r,src:n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&h(e,f,y,b,x,v))},[n,f,y,b,x,k,v,t]),onLoad:e=>{h(e.currentTarget,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),k&&k(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...p(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):i.default.createElement(o.default,null,i.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let g=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(c.RouterContext),r=(0,i.useContext)(u.ImageConfigContext),a=(0,i.useMemo)(()=>{let e=f||r||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:o,onLoadingComplete:h}=e,p=(0,i.useRef)(o);(0,i.useEffect)(()=>{p.current=o},[o]);let g=(0,i.useRef)(h);(0,i.useEffect)(()=>{g.current=h},[h]);let[y,b]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),{props:j,meta:k}=(0,s.getImgProps)(e,{defaultLoader:d.default,imgConf:a,blurComplete:y,showAltText:x});return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:t}),k.priority?i.default.createElement(v,{isAppRouter:!n,imgAttributes:j}):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)},7117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(43219)._(n(2784)),i=n(86338),a=n(25863),o=n(6408),s=n(20654),l=n(41127),u=n(14442),c=n(56428),d=n(54746),f=n(41275),h=n(35722),p=n(40413),m=new Set;function v(e,t,n,r,i,o){if(o||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let n,o;let{href:m,as:y,children:b,prefetch:x=null,passHref:w,replace:j,shallow:k,scroll:E,locale:S,onClick:C,onMouseEnter:_,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let A=r.default.useContext(u.RouterContext),P=r.default.useContext(c.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==x,L=null===x?p.PrefetchKind.AUTO:p.PrefetchKind.FULL,{href:Z,as:F}=r.default.useMemo(()=>{if(!A){let e=g(m);return{href:e,as:y?g(y):e}}let[e,t]=(0,i.resolveHref)(A,m,!0);return{href:e,as:y?(0,i.resolveHref)(A,y):t||e}},[A,m,y]),z=r.default.useRef(Z),V=r.default.useRef(F);M&&(o=r.default.Children.only(n));let I=M?o&&"object"==typeof o&&o.ref:t,[B,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(e=>{(V.current!==F||z.current!==Z)&&(U(),V.current=F,z.current=Z),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[F,I,Z,U,B]);r.default.useEffect(()=>{N&&H&&D&&v(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof C||C(e),M&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,i,o,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,i,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](i||n,{scroll:e})};c?r.default.startTransition(f):f()}(e,N,Z,F,j,k,E,S,R)},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,s.isAbsoluteUrl)(F))q.href=F;else if(!M||w||"a"===o.type&&!("href"in o.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,h.addBasePath)((0,l.addLocale)(F,e,null==A?void 0:A.defaultLocale))}return M?r.default.cloneElement(o,q):r.default.createElement("a",{...T,...q},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)},54746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(27155),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},24167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return o},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(9034)));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(n,r))}("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)},35022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(85667);let r=n(48026),i=n(59595);function a(e){return void 0!==e.default}function o(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 n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:j,placeholder:k="empty",blurDataURL:E,fetchPriority:S,layout:C,objectFit:_,objectPosition:O,lazyBoundary:M,lazyRoot:T,...A}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let Z=A.loader||D;delete A.loader,delete A.srcSet;let F="__next_img_default"in Z;if(F){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=Z;Z=t=>{let{config:n,...r}=t;return e(r)}}if(C){"fill"===C&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!d&&(d=t)}let z="",V=o(g),I=o(y);if("object"==typeof(n=c)&&(a(n)||void 0!==n.src)){let e=a(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,E=E||e.blurDataURL,z=e.src,!b){if(V||I){if(V&&!I){let t=V/e.width;I=Math.round(e.height*t)}else if(!V&&I){let t=I/e.height;V=Math.round(e.width*t)}}else V=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=o(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:O}:{},N?{}:{color:"transparent"},x),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:U.objectFit})+'")':'url("'+k+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:a,width:l[c]})}}({config:s,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:Z});return{props:{...A,loading:B?"lazy":p,fetchPriority:S,width:V,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:b}}}},48026:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,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"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},84420:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return l},default:function(){return u}});let r=n(43219),i=n(35022),a=n(85667),o=n(84589),s=r._(n(1071)),l=e=>{(0,a.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.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:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=o.Image},1071:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},6730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(43219)._(n(2784)).default.createContext(null)},9034:function(e,t,n){"use strict";/** +Defaulting to \`null\`.`)}};let dG=(0,eo.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,a=dY("ProgressIndicator",r);return(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":dQ(a.value,a.max),"data-value":null!==(n=a.value)&&void 0!==n?n:void 0,"data-max":a.max},i,{ref:t}))});function dJ(e,t){return`${Math.round(e/t*100)}%`}function dQ(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function d0(e){return"number"==typeof e}function d1(e){return d0(e)&&!isNaN(e)&&e>0}function d2(e,t){return d0(e)&&!isNaN(e)&&e<=t&&e>=0}let d4=(0,eW.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),d3=eo.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:a,max:o=100,...s}=e,l=null!=a?Math.round(a/o*100):null;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,ea.jsx)(dX,{...s,ref:t,value:a,max:o,className:d4({variant:r,className:i}),children:(0,ea.jsx)(dG,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,ea.jsx)(nw,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function d5(e){let t=(0,eo.useRef)({value:e,previous:e});return(0,eo.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let d6="Radio",[d8,d7]=(0,eu.b)(d6),[d9,fe]=d8(d6),ft=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:a=!1,required:o,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,eo.useState)(null),h=(0,ec.e)(t,e=>f(e)),p=dm(d),m=(0,eo.useRef)(!1),v=!d||!!d.closest("form");return(0,eo.createElement)(d9,{scope:n,checked:a,disabled:s},(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",role:"radio","aria-checked":a,"aria-labelledby":r||p,"data-state":fi(a),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,eh.M)(e.onClick,e=>{a||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,eo.createElement)(fr,{control:d,bubbles:!m.current,name:i,value:l,checked:a,required:o,disabled:s,style:{transform:"translateX(-100%)"}}))}),fn=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=fe("RadioIndicator",n);return(0,eo.createElement)(eg.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,el.Z)({"data-state":fi(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),fr=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),s=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,el.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fi(e){return e?"checked":"unchecked"}let fa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fo="RadioGroup",[fs,fl]=(0,eu.b)(fo,[uU,d7]),fu=uU(),fc=d7(),[fd,ff]=fs(fo),fh=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:a,value:o,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=dm(),p=fu(n),m=l2(u),[v,g]=(0,ep.T)({prop:o,defaultProp:a,onChange:d});return(0,eo.createElement)(fd,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,eo.createElement)(u$,(0,el.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fp=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=ff("RadioGroupItem",n),o=fu(n),s=fc(n),l=(0,eo.useRef)(null),u=(0,ec.e)(t,l),c=a.value===i.value,d=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{fa.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,eo.createElement)(uY,(0,el.Z)({asChild:!0},o,{focusable:!r,active:c}),(0,eo.createElement)(ft,(0,el.Z)({disabled:r,required:a.required,checked:c},s,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:(0,eh.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,eh.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),fm=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fc(n);return(0,eo.createElement)(fn,(0,el.Z)({},i,r,{ref:t}))}),fv=(0,eW.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fg=(0,eW.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fy=eo.forwardRef((e,t)=>{let{size:n,className:r,children:i,...a}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(fp,{...a,className:fg({size:n,className:r}),ref:t,children:(0,ea.jsx)(fm,{className:fv({size:n})})}),(0,ea.jsx)(nw,{size:"14",className:"relative top-px flex items-center",color:a.disabled?"verySubtle":"subtle",children:i})]})}),fb=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fh,{...r,className:(0,eW.cx)("flex gap-2",n),ref:t})}),fx="Tabs",[fw,fj]=(0,eu.b)(fx,[uU]),fk=uU(),[fE,fS]=fw(fx),fC=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=l2(s),[d,f]=(0,ep.T)({prop:r,onChange:i,defaultProp:a});return(0,eo.createElement)(fE,{scope:n,baseId:(0,ey.M)(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:l},(0,eo.createElement)(em.WV.div,(0,el.Z)({dir:c,"data-orientation":o},u,{ref:t})))}),f_=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=fS("TabsList",n),o=fk(n);return(0,eo.createElement)(u$,(0,el.Z)({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),(0,eo.createElement)(em.WV.div,(0,el.Z)({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),fO=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=fS("TabsTrigger",n),s=fk(n),l=fT(o.baseId,r),u=fA(o.baseId,r),c=r===o.value;return(0,eo.createElement)(uY,(0,el.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:(0,eh.M)(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(r)})})))}),fM=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=fS("TabsContent",n),l=fT(s.baseId,r),u=fA(s.baseId,r),c=r===s.value,d=(0,eo.useRef)(c);return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eo.createElement)(eg.z,{present:i||c},({present:n})=>(0,eo.createElement)(em.WV.div,(0,el.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a))});function fT(e,t){return`${e}-trigger-${t}`}function fA(e,t){return`${e}-content-${t}`}let fP=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fC,{ref:t,className:(0,eW.cx)("flex flex-col",n),...r})}),fN=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(f_,{ref:t,className:(0,eW.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fR=eo.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:a,...o}=e;return(0,ea.jsx)(fO,{ref:t,type:"button",className:(0,eW.cx)("px-10 h-12","flex-1 flex items-center justify-center","outline-none","select-none cursor-pointer","border-b-3","text-gray-1000 dark:text-graydark-1000","hover:text-gray-1100 hover:dark:text-white","border-transparent","data-[state=active]:text-accent-1100 data-[state=active]:dark:text-accentdark-1100","data-[state=active]:border-green-600 data-[state=active]:dark:border-green-500",nx({font:n,size:r,weight:i,ellipsis:!0}),a),...o})}),fD=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fM,{ref:t,className:(0,eW.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,eW.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nx(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fL=(0,eW.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fZ=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l,...u}=e;return(0,ea.jsx)("input",{ref:t,className:fL({variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l}),...u})});function fF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function fz(){}function fV(e){return!!(e||"").match(/\d/)}function fI(e){return null==e}function fB(e){return fI(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function fH(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fU(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function fW(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function fq(e,t){return Array(t+1).join(e)}function f$(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(!(a=Number(a)))return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+fq("0",Math.abs(o))+i:o>=s?i+=fq("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function fK(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=fU(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=(o.length<=t?"0."+o:l.toFixed(t)).split(".");return(s?"-":"")+a.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])+(r?".":"")+fW(u[1]||"",t,n)}function fY(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(c=z||(z={})).event="event",c.props="prop";var fX=(d=function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}},h=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return f&&e.length===f.length&&e.every(function(e,t){return e===f[t]})?h:(f=e,h=d.apply(void 0,e))});function fG(e){return Math.max(e.selectionStart,e.selectionEnd)}function fJ(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function fQ(e,t,n,r){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return -1===t&&(t=i),t}function f0(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:r-gC.length-u.length||ST?M=p:p>e.length-u.length&&(M=p),e=e.substring(0,M),void 0===(r=j?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),a=/(-)/.test(r),o=i.test(r),r=r.replace(/-/g,""),a&&!o&&s&&(r="-"+r);var A=(e=((e=r).match(RegExp("(^-)|[0-9]|"+fH(g),"g"))||[]).join("")).indexOf(g),P=fU(e=e.replace(RegExp(fH(g),"g"),function(e,t){return t===A?".":""}),s),N=P.beforeDecimal,R=P.afterDecimal,D=P.addNegation;return f.end-f.start=l.start&&i{h(navigator.language);let e=()=>{h(navigator.language)};return h(navigator.language),window.addEventListener("languagechange",e),()=>{window.removeEventListener("languagechange",e)}},[]);let p=(0,eo.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:v}=(0,eo.useMemo)(()=>(function(e,t){if("none"===t)return{groupingSeparator:"",groupingStyle:"none"};let n=new Intl.NumberFormat(e).format(123456789),r=n.replace(/[0-9]/g,"")[0],i=n.split(r).map(e=>e.length);return t?{groupingSeparator:r,groupingStyle:t}:{groupingSeparator:r,groupingStyle:i.every(e=>3===e)?"thousand":i.length>=2&&i.slice(1).every(e=>2===e)&&3===i[0]?"lakh":i.every(e=>4===e)?"wan":"thousand"}})(f,o),[f,o]);return(0,ea.jsxs)("div",{className:"relative",children:[(0,ea.jsx)(f8,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:v,thousandSeparator:m,className:(0,eW.cx)(fL({variant:n,size:r,state:i,focus:s,noSpin:a,cursor:l,className:u}),t?"pr-9":"")}),t&&(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,ea.jsx)(nw,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var f9=n(6391),he=n.n(f9);function ht(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function hn(e){let{value:t,placeholder:n=new(he())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:a,onChange:o,size:s="small",units:l,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,eo.useMemo)(()=>new(he())(t),[t]),[m,v]=(0,eo.useState)(""),g=(0,eo.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(he())(e):void 0)},[o]),y=(0,eo.useCallback)(e=>{v(e),g(e)},[v,g]);return(0,eo.useEffect)(()=>{p.isEqualTo(m)||v(ht(p,r))},[p]),(0,ea.jsx)(f7,{...h,thousandsGroupStyle:a?"none":void 0,"data-testid":"numberfield",size:s,placeholder:n.isNaN()?"":ht(n,r),units:l,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var hr=n(67108),hi=n(85375);let ha=new(he())(0);function ho(e){let{sc:t,placeholder:n=new(he())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:a,size:o="medium",units:s="SC",showFiat:l=!0,error:u,changed:c,prefix:d,onBlur:f,onFocus:h,name:p,...m}=e,v=(0,eo.useMemo)(()=>new(he())(void 0===t?NaN:t),[t]),{settings:g}=(0,hr.Hv)(),y=(0,hi.BW)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,eo.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(he())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||ha):ha},[y.data,g]),[x,w]=(0,eo.useState)(),[j,k]=(0,eo.useState)(""),[E,S]=(0,eo.useState)(""),C=(0,eo.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(he())(e):void 0)},[a]),_=(0,eo.useCallback)(e=>{S(ht(e,r))},[S,r]),O=(0,eo.useCallback)(e=>{let t=ht(e,i);return k(t),C(t),t},[k,i,C]),M=(0,eo.useCallback)(e=>{k(e),C(e)},[k,C]),T=(0,eo.useCallback)(e=>{_(new(he())(e).times(b))},[_,b]),A=(0,eo.useCallback)(e=>{O(new(he())(e).dividedBy(b))},[O,b]),[P,N]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{if(!v.isEqualTo(j)){let e=ht(v,i);k(e),"fiat"!==x&&T(e)}P||N(!0)},[v]),(0,eo.useEffect)(()=>{P&&T(j)},[b]),(0,eo.useEffect)(()=>{"sc"===x&&T(j)},[j]),(0,eo.useEffect)(()=>{"fiat"===x&&A(E)},[E]),(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",u?"border-red-500 dark:border-red-400":c?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ea.jsx)(f7,{...m,name:p,"data-testid":"scInput",size:o,variant:"ghost",focus:"none",placeholder:ht(n,i),units:s,value:"NaN"!==j?j:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{M(e.value||"")},onBlur:e=>{w(void 0),f&&f(e)},onFocus:e=>{w("sc"),h&&h(e)}}),l&&g.siaCentral&&(0,ea.jsx)(f7,{...m,"data-testid":"fiatInput",name:"".concat(p,"-fiat"),size:o,variant:"ghost",focus:"none",value:"NaN"!==E?E:"",units:g.currency.label,decimalScale:i,allowNegative:!1,onValueChange:e=>{S(e.value||"")},placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(r):"0.42"),prefix:d||g.currency.prefix,onFocus:e=>{w("fiat"),h&&h(e)},onBlur:e=>{w(void 0),f&&f(e)}})]})}function hs(e){let{children:t}=e;return(0,ea.jsx)(l_,{content:t,children:(0,ea.jsx)("div",{className:"relative items-center inline mx-1",children:(0,ea.jsx)(nw,{color:"subtle",children:(0,ea.jsx)(lT.RdX,{className:"scale-75"})})})})}function hl(e){let{values:t,options:n,onChange:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,ea.jsx)(lM,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function hu(e){let{options:t,onClick:n,onRemove:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,ea.jsx)(lM,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,ea.jsx)(lT.PcV,{})})]},e.value))})}let hc=(0,eW.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),hd=eo.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:a,...o}=e;return(0,ea.jsxs)("div",{className:hc({size:n,state:r,className:a}),children:[i,(0,ea.jsx)("select",{ref:t,...o,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,ea.jsx)(lT.Cp0,{className:"pointer-events-none scale-75"})]})}),hf=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("option",{ref:t,...r,className:(0,eW.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),hh=(0,eW.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hp(e){let{className:t}=e;return(0,ea.jsx)("div",{className:hh({className:t})})}let hm=(0,eW.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),hv=eo.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:hm({size:n,className:r}),...i})}),hg="Switch",[hy,hb]=(0,eu.b)(hg),[hx,hw]=hy(hg),hj=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:a,defaultChecked:o,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,eo.useState)(null),p=(0,ec.e)(t,e=>h(e)),m=dm(f),v=(0,eo.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,ep.T)({prop:a,defaultProp:o,onChange:c});return(0,eo.createElement)(hx,{scope:n,checked:y,disabled:l},(0,eo.createElement)(em.WV.button,(0,el.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hS(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,eh.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,eo.createElement)(hE,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hk=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hw("SwitchThumb",n);return(0,eo.createElement)(em.WV.span,(0,el.Z)({"data-state":hS(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hE=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),s=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,el.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hS(e){return e?"checked":"unchecked"}let hC=(0,eW.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),h_=(0,eW.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hO=(0,eo.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:a,...o}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(hj,{className:h_({size:n,state:r,className:i}),...o,ref:t,children:(0,ea.jsx)(hk,{className:hC({size:n})})}),a&&(0,ea.jsx)(nw,{color:o.disabled?"subtle":"contrast",children:a})]})}),hM=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(hP);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(hT,(0,el.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(hT,(0,el.Z)({},r,{ref:t}),n)});hM.displayName="Slot";let hT=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,ec.F)(t,n.ref)}):eo.Children.count(n)>1?eo.Children.only(null):null});hT.displayName="SlotClone";let hA=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function hP(e){return(0,eo.isValidElement)(e)&&e.type===hA}let hN=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?hM:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,el.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hR=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(hN.svg,(0,el.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hD="Popper",[hL,hZ]=(0,eu.b)(hD),[hF,hz]=hL(hD),hV=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=hz("PopperAnchor",n),o=(0,eo.useRef)(null),s=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(hN.div,(0,el.Z)({},i,{ref:s}))}),hI="PopperContent",[hB,hH]=hL(hI),[hU,hW]=hL(hI,{hasParent:!1,positionUpdateFns:new Set}),hq=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:j,...k}=e,E=hz(hI,d),[S,C]=(0,eo.useState)(null),_=(0,ec.e)(t,e=>C(e)),[O,M]=(0,eo.useState)(null),T=tV(O),A=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,P=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(g)?g:[g],D=R.length>0,L={padding:N,boundary:R.filter(hY),altBoundary:D},{reference:Z,floating:F,strategy:z,x:V,y:I,placement:B,middlewareData:H,update:U}=tZ({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tN,middleware:[hX(),ti({mainAxis:h+P,alignmentAxis:m}),w?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?ts():void 0,...L}):void 0,O?tF({element:O,padding:v}):void 0,w?te({...L}):void 0,{name:"size",options:c={...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:a,elements:o}=e,{apply:s,...l}=c,u=await e1(e,l),d=e$(r),f=eK(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=e4(u.left,0),p=e4(u.right,0),m=e4(u.top,0),v=e4(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:e4(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:e4(u.left,u.right)):u[n])},y=await a.getDimensions(o.floating);null==s||s({...e,...g});let b=await a.getDimensions(o.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hG({arrowWidth:A,arrowHeight:P}),x?tr({strategy:"referenceHidden"}):void 0].filter(hK)});(0,ev.b)(()=>{Z(E.anchor)},[Z,E.anchor]);let W=null!==V&&null!==I,[q,$]=hJ(B),K=(0,lN.W)(j);(0,ev.b)(()=>{W&&(null==K||K())},[W,K]);let Y=null===(i=H.arrow)||void 0===i?void 0:i.x,X=null===(a=H.arrow)||void 0===a?void 0:a.y,G=(null===(o=H.arrow)||void 0===o?void 0:o.centerOffset)!==0,[J,Q]=(0,eo.useState)();(0,ev.b)(()=>{S&&Q(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:ee,positionUpdateFns:et}=hW(hI,d),en=!ee;(0,eo.useLayoutEffect)(()=>{if(!en)return et.add(U),()=>{et.delete(U)}},[en,et,U]),(0,ev.b)(()=>{en&&W&&Array.from(et).reverse().forEach(e=>requestAnimationFrame(e))},[en,W,et]);let er={"data-side":q,"data-align":$,...k,ref:_,style:{...k.style,animation:W?void 0:"none",opacity:null!==(s=H.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:W?`translate3d(${Math.round(V)}px, ${Math.round(I)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=H.transformOrigin)||void 0===l?void 0:l.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,eo.createElement)(hB,{scope:d,placedSide:q,onArrowChange:M,arrowX:Y,arrowY:X,shouldHideArrow:G},en?(0,eo.createElement)(hU,{scope:d,hasParent:!0,positionUpdateFns:et},(0,eo.createElement)(hN.div,er)):(0,eo.createElement)(hN.div,er)))}),h$={top:"bottom",right:"left",bottom:"top",left:"right"};function hK(e){return void 0!==e}function hY(e){return null!==e}let hX=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hG=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hJ(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hJ(e){let[t,n="center"]=e.split("-");return[t,n]}let hQ=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(hF,{scope:t,anchor:r,onAnchorChange:i},n)},h0=(0,eo.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?tD.createPortal((0,eo.createElement)(hN.div,(0,el.Z)({},i,{ref:t})),r):null}),h1="dismissableLayer.update",h2=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h4=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,eo.useContext)(h2),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),v=(0,ec.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lN.W)(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){h5("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lN.W)(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h5("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lN.W)(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),h3(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h3())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(h1,e),()=>document.removeEventListener(h1,e)},[]),(0,eo.createElement)(hN.div,(0,el.Z)({},c,{ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,eh.M)(e.onFocusCapture,E.onFocusCapture),onBlurCapture:(0,eh.M)(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,k.onPointerDownCapture)}))});function h3(){let e=new CustomEvent(h1);document.dispatchEvent(e)}function h5(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tD.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let h6="HoverCard",[h8,h7]=(0,eu.b)(h6,[hZ]),h9=hZ(),[pe,pt]=h8(h6),pn=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=pt("HoverCardTrigger",n),a=h9(n);return(0,eo.createElement)(hV,(0,el.Z)({asChild:!0},a),(0,eo.createElement)(hN.a,(0,el.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,pu(i.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pu(i.onClose)),onFocus:(0,eh.M)(e.onFocus,i.onOpen),onBlur:(0,eh.M)(e.onBlur,i.onClose),onTouchStart:(0,eh.M)(e.onTouchStart,e=>e.preventDefault())})))}),pr="HoverCardPortal",[pi,pa]=h8(pr,{forceMount:void 0}),po="HoverCardContent",ps=(0,eo.forwardRef)((e,t)=>{let n=pa(po,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=pt(po,e.__scopeHoverCard);return(0,eo.createElement)(eg.z,{present:r||a.open},(0,eo.createElement)(pl,(0,el.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:(0,eh.M)(e.onPointerEnter,pu(a.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pu(a.onClose)),ref:t})))}),pl=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,...l}=e,u=pt(po,n),c=h9(n),d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),[h,p]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,eo.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,eo.useEffect)(()=>{d.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(d.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,eo.createElement)(h4,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:(0,eh.M)(o,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,eo.createElement)(hq,(0,el.Z)({},c,l,{onPointerDown:(0,eh.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function pu(e){return t=>"touch"===t.pointerType?void 0:e()}let pc=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:s=300}=e,l=h9(t),u=(0,eo.useRef)(0),c=(0,eo.useRef)(0),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(!1),[h=!1,p]=(0,ep.T)({prop:r,defaultProp:i,onChange:a}),m=(0,eo.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),o)},[o,p]),v=(0,eo.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,eo.useCallback)(()=>p(!1),[p]);return(0,eo.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,eo.createElement)(pe,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,eo.createElement)(hQ,l,n))},pd=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=pt(pr,t);return(0,eo.createElement)(pi,{scope:t,forceMount:n},(0,eo.createElement)(eg.z,{present:n||a.open},(0,eo.createElement)(h0,{asChild:!0,container:i},r)))},pf=(0,eW.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),ph=(0,eW.cx)(nk(),"max-w-sm","py-0.5","px-1"),pp={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pm=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{className:o,...s}=a||{},{open:l,onOpenChange:u}=lS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(pc,{open:l,onOpenChange:u,...i,children:[n&&(0,ea.jsx)(pn,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:l?(0,ea.jsx)(pd,{forceMount:!0,children:(0,ea.jsx)(ps,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,ea.jsx)(lE.div,{variants:pp,initial:"init",animate:"show",exit:"exit",className:pf(),children:(0,ea.jsx)("div",{className:(0,eW.cx)(ph,o),children:r})})})}):null})]})});function pv(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,eo.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,eo.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,eo.createContext)(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=(null==n?void 0:n[e][a])||i,l=(0,eo.useMemo)(()=>o,Object.values(o));return(0,eo.createElement)(s.Provider,{value:l},r)}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=(null==o?void 0:o[e][a])||i,l=(0,eo.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,eo.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function py(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pb(...e){return(0,eo.useCallback)(py(...e),e)}let px=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(pk);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(pw,(0,el.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(pw,(0,el.Z)({},r,{ref:t}),n)});px.displayName="Slot";let pw=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?py(t,n.ref):n.ref}):eo.Children.count(n)>1?eo.Children.only(null):null});pw.displayName="SlotClone";let pj=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function pk(e){return(0,eo.isValidElement)(e)&&e.type===pj}let pE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?px:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,el.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pS(e){let t=(0,eo.useRef)(e);return(0,eo.useEffect)(()=>{t.current=e}),(0,eo.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pC=(null==globalThis?void 0:globalThis.document)?eo.useLayoutEffect:()=>{},p_=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,eo.useState)(),a=(0,eo.useRef)({}),o=(0,eo.useRef)(e),s=(0,eo.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,eo.useEffect)(()=>{let e=pO(a.current);s.current="mounted"===l?e:"none"},[l]),pC(()=>{let t=a.current,n=o.current;if(n!==e){let r=s.current,i=pO(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pC(()=>{if(r){let e=e=>{let t=pO(a.current).includes(e.animationName);e.target===r&&t&&(0,tD.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=pO(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,eo.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):eo.Children.only(n),a=pb(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,eo.cloneElement)(i,{ref:a}):null};function pO(e){return(null==e?void 0:e.animationName)||"none"}p_.displayName="Presence";let pM=es["useId".toString()]||(()=>void 0),pT=0;function pA(e){let t=e+"CollectionProvider",[n,r]=pv(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",s=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=pb(t,a(o,n).collectionRef);return eo.createElement(px,{ref:i},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:s,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),s=pb(t,o),c=a(l,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(px,{[u]:"",ref:s},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}let pP="dismissableLayer.update",pN=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pR=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,eo.useContext)(pN),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),v=pb(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=pS(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){pL("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=pS(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pL("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pS(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{x!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pD(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,r,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pD())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pP,e),()=>document.removeEventListener(pP,e)},[]),(0,eo.createElement)(pE.div,(0,el.Z)({},c,{ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:pg(e.onFocusCapture,E.onFocusCapture),onBlurCapture:pg(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:pg(e.onPointerDownCapture,k.onPointerDownCapture)}))});function pD(){let e=new CustomEvent(pP);document.dispatchEvent(e)}function pL(e,t,n,{discrete:r}){var i,a;let o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(i=o,a=s,i&&(0,tD.flushSync)(()=>i.dispatchEvent(a))):o.dispatchEvent(s)}(e,t)=>(0,eo.createElement)(pE.span,(0,el.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}}));let pZ="NavigationMenu",[pF,pz,pV]=pA(pZ),[pI,pB,pH]=pA(pZ),[pU,pW]=pv(pZ,[pV,pH]),[pq,p$]=pU(pZ),[pK,pY]=pU(pZ),[pX,pG]=pU("NavigationMenuItem"),pJ=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=p$("NavigationMenuIndicator",n),a=pz(n),[o,s]=(0,eo.useState)(null),[l,u]=(0,eo.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,eo.useEffect)(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&s(t)},[a,i.value]);let f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return p3(o,f),p3(i.indicatorTrack,f),l?(0,eo.createElement)(pE.div,(0,el.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pQ=((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=p$(pJ,e.__scopeNavigationMenu);return pC(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pC(()=>()=>r(e.value),[e.value,r]),null},"navigationMenu.rootContentDismiss"),p0=(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=p$(pJ,n),d=(0,eo.useRef)(null),f=pb(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=pz(n),v=(0,eo.useRef)(null),{onItemDismiss:g}=c;(0,eo.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pQ,t),()=>e.removeEventListener(pQ,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,eo.useMemo)(()=>{let e=m().map(e=>e.value);"rtl"===c.dir&&e.reverse();let t=e.indexOf(c.value),n=e.indexOf(c.previousValue),i=r===c.value,a=n===e.indexOf(r);if(!i&&!a)return v.current;let o=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return v.current=o,o},[c.previousValue,c.value,c.dir,m,r]);return(0,eo.createElement)(p1,{asChild:!0},(0,eo.createElement)(pR,(0,el.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pQ,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pg(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:pg(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pg(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=function(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);if(p4(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=a.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:pg(e.onEscapeKeyDown,e=>{o.current=!0})})))}),p1=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=p$("NavigationMenuViewport",n),o=pb(t,a.onViewportChange),s=pY(pJ,e.__scopeNavigationMenu),[l,u]=(0,eo.useState)(null),[c,d]=(0,eo.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!a.value,m=p?a.value:a.previousValue;return p3(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,eo.createElement)(pE.div,(0,el.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":a.orientation},i,{ref:o,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:pg(e.onPointerEnter,a.onContentEnter),onPointerLeave:pg(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(a.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,eo.createElement)(p_,{key:e,present:n||i},(0,eo.createElement)(p0,(0,el.Z)({},r,{ref:py(t,e=>{i&&e&&d(e)})})))}))},(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=p$("FocusGroup",n);return(0,eo.createElement)(pI.Provider,{scope:n},(0,eo.createElement)(pI.Slot,{scope:n},(0,eo.createElement)(pE.div,(0,el.Z)({dir:i.dir},r,{ref:t}))))})),p2=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pB(n),a=p$("FocusGroupItem",n);return(0,eo.createElement)(pI.ItemSlot,{scope:n},(0,eo.createElement)(pE.button,(0,el.Z)({},r,{ref:t,onKeyDown:pg(e.onKeyDown,e=>{if(["Home","End",...p2].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),p2.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>p4(t)),e.preventDefault()}})})))};function p4(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function p3(e,t){let n=pS(t);pC(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var p5=n(38617);let p6=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fp,{...r,ref:t,className:(0,eW.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function p8(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:a}=(0,p5.F)();return(0,ea.jsxs)(fh,{value:i,tabIndex:r,className:(0,eW.cx)("flex gap-4",t),onValueChange:e=>a(e),children:[(0,ea.jsx)(p6,{value:"system",children:(0,ea.jsx)(l_,{className:n,sideOffset:16,content:"System",children:(0,ea.jsx)(lT.$Iz,{})})}),(0,ea.jsx)(p6,{value:"light",children:(0,ea.jsx)(l_,{className:n,sideOffset:16,content:"Light",children:(0,ea.jsx)(lT.JaG,{})})}),(0,ea.jsx)(p6,{value:"dark",children:(0,ea.jsx)(l_,{className:n,sideOffset:16,content:"Dark",children:(0,ea.jsx)(lT.osk,{})})})]})}let{useDropzone:p7}=n(74424);function p9(e){let{title:t,children:n,rootClassName:r,className:i,message:a,showBorderInactive:o,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=p7(s);return(0,ea.jsxs)("div",{...l(),className:(0,eW.cx)("outline-none",r),children:[(0,ea.jsxs)("div",{className:(0,eW.cx)(c?"z-20":"","absolute","top-0","left-0","w-full","h-full","pointer-events-none","rounded","p-4","flex justify-center items-center text-center","border-2 border-dashed",o?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",c?["border-green-500 dark:border-green-600 bg-green-100/20 dark:bg-green-100/20","hover:border-green-500 hover:dark:border-green-600 hover:bg-green-100/20 hover:dark:bg-green-100/20"]:"",i),children:[(0,ea.jsx)("input",{...u()}),a&&(0,ea.jsx)(nj,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var me=n(14582),mt=n(63739),mn=n(13980),mr=n.n(mn),mi=n(72779),ma=n.n(mi),mo=n(47440),ms=n(59309),ml=n(19067),mu=n(71220),mc=n(28142);function md(e){return"bandwidth"in e?e.bandwidth():0}var mf=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mh(){return(mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mf),g=null!=m?m:(0,mu.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+md(r)/2,b=g.map(function(e,t){var n,a=(null!=(n=(0,mc.Z)(r(e)))?n:0)+y;return{index:t,from:new ml.Z({x:0,y:a}),to:new ml.Z({x:i,y:a})}});return eo.createElement(ms.Z,{className:ma()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return eo.createElement(mo.default,mh({key:"row-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:h},v))}))}mp.propTypes={tickValues:mr().array,width:mr().number.isRequired};var mm=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mv(){return(mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mm),g=null!=p?p:(0,mu.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+md(r)/2,b=g.map(function(e,t){var n,a=(null!=(n=(0,mc.Z)(r(e)))?n:0)+y;return{index:t,from:new ml.Z({x:a,y:0}),to:new ml.Z({x:a,y:i})}});return eo.createElement(ms.Z,{className:ma()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return eo.createElement(mo.default,mv({key:"column-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:f},v))}))}mg.propTypes={tickValues:mr().array,height:mr().number.isRequired};var my=n(64183),mb=n(8597);function mx(e){var t=e.id,n=e.width,r=e.height,i=e.children;return eo.createElement("defs",null,eo.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mx.propTypes={id:mr().string.isRequired,width:mr().number.isRequired,height:mr().number.isRequired,children:mr().node.isRequired};var mw={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mj(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,a=e.strokeWidth,o=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return eo.createElement(mx,{id:t,width:n,height:r},!!h&&eo.createElement("rect",{className:ma()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return eo.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:ma()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mw.horizontal:return"M 0,"+t/2+" l "+t+",0";case mw.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case mw.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case mw.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:a,strokeDasharray:o,strokeLinecap:l,shapeRendering:c})}))}mj.propTypes={id:mr().string.isRequired,width:mr().number.isRequired,height:mr().number.isRequired,className:mr().string,background:mr().string,stroke:mr().string,strokeWidth:mr().oneOfType([mr().number,mr().string]),strokeDasharray:mr().oneOfType([mr().string,mr().number]),strokeLinecap:mr().oneOf(["square","butt","round","inherit"]),shapeRendering:mr().oneOfType([mr().string,mr().number]),orientation:mr().array};var mk=["tooltipOpen"];function mE(){return(mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mS);return eo.createElement("div",mC({ref:t,className:ma()("visx-tooltip",n),style:mC({top:null==r||null==l?r:r+l,left:null==i||null==o?i:i+o},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function mM(){return(mM=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mR),v=!1,g=!1;if(u&&l){var y=void 0===r?0:r,b=void 0===f?0:f;if(l.width){var x=y+a+u.width-l.width,w=u.width-y-a;v=x>0&&x>w}else{var j=y+a+u.width-window.innerWidth,k=u.width-y-a;v=j>0&&j>k}if(l.height){var E=b+s+u.height-l.height,S=u.height-b-s;g=E>0&&E>S}else g=b+s+u.height>window.innerHeight;y=v?y-u.width-a:y+a,b=g?b-u.height-s:b+s,t="translate("+(y=Math.round(y))+"px, "+(b=Math.round(b))+"px)"}return eo.createElement(mO,mD({ref:p,style:mD({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),eo.createElement(mN,{value:{isFlippedVertically:!g,isFlippedHorizontally:!v}},n))}mL.propTypes={nodeRef:mr().oneOfType([mr().string,mr().func,mr().object])};var mZ=((p=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=eo.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mT(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:tD.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():mA,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mA}},n.render=function(){return eo.createElement(mL,mM({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(eo.PureComponent)).displayName="withBoundingRects("+(mL.displayName||"")+")",p),mF=n(99985);function mz(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],a=0,o=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(o>0)for(;t>r+o*(a+1);)a+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-o):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return mK({},t,{isBrushing:!0,extent:mK({},t.extent,{x0:r+l,x1:o+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mK({},e,{isBrushing:!1,start:mK({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mK({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mY(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,a=e.brush,o=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return eo.createElement(mF.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return eo.createElement("g",null,h&&eo.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mX}),eo.createElement("rect",mK({x:Math.min(a.extent.x0,a.extent.x1),y:Math.min(a.extent.y0,a.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:o?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:a.isBrushing||a.activeHandle?"none":"all",cursor:o?void 0:"move"}},d)))})},t}(eo.Component);function mJ(){return(mJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-a):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-o):Math.max(u,e.bounds.y0-r);return mJ({},e,{isBrushing:!0,extent:mJ({},e.extent,{x0:n+s,y0:r+c,x1:a+s,y1:o+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,a={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},o=n.getExtent(s,a);return mJ({},e,{end:a,extent:o})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,a=r.width,o=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?a:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?o:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=o&&o.left?o.left:0,u=null!=o&&o.top?o.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-a-u},d=mJ({},c);r&&r(c),n.updateBrush(function(t){return mJ({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mI(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin;if(r){var s=null!=o&&o.left?o.left:0,l=null!=o&&o.top?o.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-a-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,a=t.inheritedMargin,o=t.useWindowMoveEvents;if(e.isDragging&&!o){var s=(null==a?void 0:a.left)||0,l=(null==a?void 0:a.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mJ({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,a=mJ({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(a),r&&n.reset(),a})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,a=t.y0,o=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:a-s,height:e,width:l+e},bottom:{x:r-s,y:o-s,height:e,width:l+e},right:{x:i-s,y:a-s,height:u+e,width:e},left:{x:r-s,y:a-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,a=t.y0,o=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(a,o)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(a,o)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mJ({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mQ(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,a=n.extent;if(!(-1===a.x0&&-1===a.x1&&-1===a.y0&&-1===a.y1)){var o=t.props.width/e.width,s=t.props.height/e.height;r={x:o*a.x0,y:s*a.y0},i={x:o*a.x1,y:s*a.y1},a=t.getExtent(r,i)}return{start:r,end:i,extent:a,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,a=i.top,o=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),S=new Set(p);return eo.createElement(ms.Z,{className:"visx-brush",top:a,left:o},eo.createElement(mF.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,a=t.dragEnd;return eo.createElement(me.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,m6),g=a,y=s,b=o,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),eo.createElement("defs",null,eo.createElement("linearGradient",m8({id:n,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&eo.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&eo.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}m7.propTypes={id:mr().string.isRequired,from:mr().string,to:mr().string,x1:mr().oneOfType([mr().string,mr().number]),x2:mr().oneOfType([mr().string,mr().number]),y1:mr().oneOfType([mr().string,mr().number]),y2:mr().oneOfType([mr().string,mr().number]),fromOffset:mr().oneOfType([mr().string,mr().number]),fromOpacity:mr().oneOfType([mr().string,mr().number]),toOffset:mr().oneOfType([mr().string,mr().number]),toOpacity:mr().oneOfType([mr().string,mr().number]),rotate:mr().oneOfType([mr().string,mr().number]),transform:mr().string,children:mr().node,vertical:mr().bool};var m9=n(78307),ve=n(74747);function vt(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}var vn=n(88744),vr=n(55746),vi=n(45742),va=n(27266),vo=["id","markerWidth","markerHeight","markerUnits","children"];function vs(){return(vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vo);return eo.createElement("defs",null,eo.createElement("marker",vs({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},o),a))}vl.propTypes={id:mr().string.isRequired,size:mr().number,markerWidth:mr().oneOfType([mr().string,mr().number]),markerHeight:mr().oneOfType([mr().string,mr().number]),markerUnits:mr().string,refX:mr().oneOfType([mr().string,mr().number]),refY:mr().oneOfType([mr().string,mr().number]),strokeWidth:mr().number,children:mr().node.isRequired};var vu=["id","size","strokeWidth"];function vc(){return(vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vu),s=2*r+a,l=s/2;return eo.createElement(vl,vc({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},o),eo.createElement("circle",{r:r,cx:l,cy:l}))}var vf=n(64170),vh={top:"top",left:"left",bottom:"bottom"};function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vx),j=null!=v?v:"tickFormat"in m?m.tickFormat():vg.Z,k=f===vh.left,E=f===vh.top,S=E||f===vh.bottom,C=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(m),_=k||E?-1:1,O=m.range(),M=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:vb({start:0,end:0},t)),T=vy({x:Number(O[0])+.5-M.start,y:0},S),A=vy({x:Number(O[O.length-1])+.5+M.end,y:0},S),P=(null!=b?b:(0,mu.Z)(m,c)).filter(function(e){return!s||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=P.map(function(e){var t=e.value,n=e.index,r=(0,mc.Z)(C(t));return{value:t,index:n,from:vy({x:r,y:0},S),to:vy({x:r,y:y*_},S),formattedValue:j(t,n,P)}});return eo.createElement(ms.Z,{className:ma()("visx-axis",r),top:void 0===x?0:x,left:void 0===l?0:l},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,a=e.hideTicks,o=e.horizontal,s=e.label,l=void 0===s?"":s,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?vv:d,h=e.orientation,p=void 0===h?vh.bottom:h,m=e.scale,v=e.stroke,g=e.strokeDasharray,y=e.strokeWidth,b=void 0===y?1:y,x=e.tickClassName,w=e.tickComponent,j=e.tickLineProps,k=e.tickLabelProps,E=void 0===k?function(){return vv}:k,S=e.tickLength,C=e.tickStroke,_=e.tickTransform,O=e.ticks,M=e.ticksComponent,T=O.map(function(e){return E(e.value,e.index,O)}),A=Math.max.apply(Math,[10].concat(T.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return eo.createElement(eo.Fragment,null,(void 0===M?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,a=e.tickComponent,o=e.tickLabelProps,s=e.tickStroke,l=void 0===s?"#222":s,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var s,c=e.value,h=e.index,p=e.from,m=e.to,v=e.formattedValue,g=null!=(s=o[h])?s:{},y=Math.max(10,"number"==typeof g.fontSize&&g.fontSize||0),b=m.y+(n&&r!==vh.top?y:0);return eo.createElement(ms.Z,{key:"visx-tick-"+c+"-"+h,className:ma()("visx-axis-tick",i),transform:u},!t&&eo.createElement(mt.Z,vp({from:p,to:m,stroke:l,strokeWidth:d,strokeLinecap:"square"},f)),a?a(vp({},g,{x:m.x,y:b,formattedValue:v})):eo.createElement(vf.Z,vp({x:m.x,y:b},g),v))})}:M)({hideTicks:a,horizontal:o,orientation:p,scale:m,tickClassName:x,tickComponent:w,tickLabelProps:T,tickStroke:void 0===C?"#222":C,tickTransform:_,ticks:O,strokeWidth:b,tickLineProps:j}),!i&&eo.createElement(mt.Z,{className:ma()("visx-axis-line",n),from:t,to:r,stroke:void 0===v?"#222":v,strokeWidth:b,strokeDasharray:g}),l&&eo.createElement(vf.Z,vm({className:ma()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,o=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=o===vh.left||o===vh.top?-1:1;if(o===vh.top||o===vh.bottom){var d=o===vh.bottom&&"number"==typeof a.fontSize?a.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(u+i+l+d)}else t=(Number(s[0])+Number(s[s.length-1]))/2*c,n=-(u+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===c?14:c,labelProps:f,orientation:p,range:m.range(),tickLabelFontSize:A,tickLength:void 0===S?8:S}),f),l))}:n)(vw({},w,{axisFromPoint:T,axisToPoint:A,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==a&&a,hideZero:s,horizontal:S,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:j,tickLength:y,tickPosition:C,tickSign:_,ticks:N})))}var vk=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vE(){return(vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vk);return eo.createElement(vj,vE({axisClassName:ma()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:vh.bottom,tickLabelProps:void 0===r?vS:r,tickLength:void 0===i?8:i},a))}var v_=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vO(){return(vO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v_);return eo.createElement(vj,vO({axisClassName:ma()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:vh.left,tickLabelProps:void 0===r?vM:r,tickLength:void 0===i?8:i},a))}let vA=e=>new Date((null==e?void 0:e.timestamp)||0),vP=e=>(null==e?void 0:e.value)||0,vN="var(--colors-hiContrast)",vR={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vN},vD={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vN};function vL(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:a,xScale:o,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,ea.jsxs)(ms.Z,{left:d||a.left,top:c||a.top,children:[(0,ea.jsx)(vd,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,ea.jsx)(m7,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,ea.jsx)(vr.Z,{data:t,x:e=>o(vA(e))||0,y:e=>s(vP(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?vi.ZP:va.Z}),!l&&(0,ea.jsx)(vC,{top:i,scale:o,numTicks:r>520?10:5,stroke:vN,tickStroke:vN,tickLabelProps:()=>vR}),!u&&(0,ea.jsx)(vT,{scale:s,numTicks:5,stroke:vN,tickStroke:vN,tickLabelProps:()=>vD}),h]})}let{inherit:vZ,current:vF,transparent:vz,black:vV,white:vI,slate:vB,zinc:vH,neutral:vU,stone:vW,red:vq,orange:v$,amber:vK,yellow:vY,lime:vX,green:vG,emerald:vJ,teal:vQ,cyan:v0,sky:v1,blue:v2,indigo:v4,violet:v3,purple:v5,fuchsia:v6,pink:v8,rose:v7}=n(6692),v9={inherit:vZ,current:vF,transparent:vz,black:vV,white:vI,slate:vB,zinc:vH,neutral:vU,stone:vW,red:vq,orange:v$,amber:vK,yellow:vY,lime:vX,green:vG,emerald:vJ,teal:vQ,cyan:v0,sky:v1,blue:v2,indigo:v4,violet:v3,purple:v5,fuchsia:v6,pink:v8,rose:v7,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var ge=n(21487);let gt={top:10,bottom:15,left:10,right:10},gn="brush_pattern",gr="brush_gradient",gi=(0,vn.Z)(e=>e(),15),ga=(0,m9.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===m&&(m={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===v&&(v=function(e,t){return eo.createElement("div",t,e)});var go=n(54073),gs=n.n(go),gl=n(44711),gu=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function gc(){return(gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gu),d=(0,eo.useRef)(null),f=(0,eo.useRef)(0),h=(0,eo.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],v=(0,eo.useMemo)(function(){var e=Array.isArray(o)?o:[o];return gs()(function(t){m(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:u})},[i,u,o]);return(0,eo.useEffect)(function(){var e=new gl.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;f.current=window.requestAnimationFrame(function(){v({width:i,height:a,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),eo.createElement("div",gc({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(gc({},p,{ref:d.current,resize:v})))}gf.propTypes={className:mr().string,debounceTime:mr().number,enableDebounceLeadingCall:mr().bool,ignoreDimensions:mr().oneOfType([mr().any,mr().arrayOf(mr().any)]),children:mr().func.isRequired};var gh=n(52058);function gp(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:a,curve:o,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:b,renderTooltipGlyph:x,renderLineSeries:w,sharedTooltip:j,showHorizontalCrosshair:k,showTooltip:E,showVerticalCrosshair:S,snapTooltipToDatum:C,stackOffset:_,margin:O,theme:M,xAxisOrientation:T,yAxisOrientation:A,AreaSeries:P,AreaStack:N,Axis:R,BarGroup:D,BarSeries:L,BarStack:Z,Grid:F,LineSeries:z,Tooltip:V,XYChart:I}=e;return(0,ea.jsxs)(I,{theme:M.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:O,captureEvents:!0,children:[(0,ea.jsx)("g",{children:(0,ea.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,ea.jsx)(m7,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(mj,{id:"pattern-".concat(gm(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,ea.jsx)(m7,{id:"gradient-".concat(gm(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,ea.jsx)(F,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:a,numTicks:p},"grid-".concat(a)),y&&(0,ea.jsx)(Z,{offset:l.stackOffset,children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gv(t,e,l)},e))}),g&&(0,ea.jsx)(D,{children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gv(t,e,l)},e))}),m&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>(0,ea.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gv(t,e,l),fill:gv(t,e,l),curve:o},e))}),v&&(0,ea.jsx)(N,{curve:o,offset:l.stackOffset,renderLine:"wiggle"!==_,children:c.map(e=>(0,ea.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gv(t,e,l),fill:gv(t,e,l)},e))}),w&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>{var t,n;return(0,ea.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:o},e)})}),(0,ea.jsx)(R,{orientation:T,numTicks:p,animationTrajectory:a,tickFormat:e=>(0,ge.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(a)),(0,ea.jsx)(R,{label:null==_?"SC":"expand"===_?"Fraction of total":"",orientation:A,numTicks:p,tickLength:12,animationTrajectory:a,tickFormat:l.formatTickY,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(a)),E&&(0,ea.jsx)(V,{showHorizontalCrosshair:k,showVerticalCrosshair:S,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:j&&!g,renderGlyph:b?x:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,a=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,o=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=j?d:o?[o]:[],u=l.formatTimestamp||(e=>(0,ge.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,gh.Z)(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col gap-2 py-1"),children:[(0,ea.jsx)(nw,{font:"mono",size:"12",color:"contrast",className:"text-end",children:a?u(i.date(a)):"No date"}),(0,ea.jsx)(c0,{color:"panel",className:"w-full"}),(0,ea.jsx)("div",{className:(0,eW.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=a?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](a);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,ea.jsx)(nw,{weight:"semibold",children:t}),(0,ea.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=a&&i.y[c](a);return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(nw,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eW.cx)(o===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,ea.jsx)(nw,{size:"12",style:{textAlign:"end"},className:(0,eW.cx)(o===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,ea.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{className:"pt-2",children:"total"}),(0,ea.jsx)(nw,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,ea.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function gm(e,t){return"".concat(e,"-").concat(t)}function gv(e,t,n){var r;let i=gm(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var gg=n(24037),gy=n(86707);function gb(e){var t=e.top,n=e.left,r=e.className,i=e.children;return eo.createElement(ms.Z,{className:ma()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}gb.propTypes={top:mr().number,left:mr().number,className:mr().string,children:mr().node};var gx=["children","className","top","left","size"];function gw(){return(gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gx),s=(0,gg.Z)();return(s.type(gy.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?eo.createElement(eo.Fragment,null,t({path:s})):eo.createElement(gb,{top:r,left:i},eo.createElement("path",gw({className:ma()("visx-glyph-star",n),d:s()||""},o)))}gj.propTypes={children:mr().func,className:mr().string,top:mr().number,left:mr().number,size:mr().oneOfType([mr().number,mr().func])};var gk=["top","left","className"];function gE(){return(gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gk);return eo.createElement(gb,{top:void 0===t?0:t,left:void 0===n?0:n},eo.createElement("circle",gE({className:ma()("visx-glyph-dot",r)},i)))}gS.propTypes={className:mr().string,top:mr().number,left:mr().number,r:mr().number,cx:mr().number,cy:mr().number};var gC=n(9135),g_=["children","className","top","left","size"];function gO(){return(gO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g_),s=(0,gg.Z)();return(s.type(gC.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?eo.createElement(eo.Fragment,null,t({path:s})):eo.createElement(gb,{top:r,left:i},eo.createElement("path",gO({className:ma()("visx-glyph-cross",n),d:s()||""},o)))}gM.propTypes={children:mr().func,className:mr().string,top:mr().number,left:mr().number,size:mr().oneOfType([mr().number,mr().func])};var gT=n(46385),gA=n(20651),gP={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},gN=gP.gray,gR=gN[7],gD=[gP.cyan[9],gP.cyan[3],gP.yellow[5],gP.red[4],gP.grape[8],gP.grape[5],gP.pink[9]];function gL(){return(gL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)gI(e,n,{get:t[n],enumerable:!0})})(gB,{assign:()=>yc,colors:()=>ys,createStringInterpolator:()=>V,skipAnimation:()=>yl,to:()=>I,willAdvance:()=>yu});var gH=g5(),gU=e=>g1(e,gH),gW=g5();gU.write=e=>g1(e,gW);var gq=g5();gU.onStart=e=>g1(e,gq);var g$=g5();gU.onFrame=e=>g1(e,g$);var gK=g5();gU.onFinish=e=>g1(e,gK);var gY=[];gU.setTimeout=(e,t)=>{let n=gU.now()+t,r=()=>{let e=gY.findIndex(e=>e.cancel==r);~e&&gY.splice(e,1),gQ-=~e?1:0},i={time:n,handler:e,cancel:r};return gY.splice(gX(n),0,i),gQ+=1,g2(),i};var gX=e=>~(~gY.findIndex(t=>t.time>e)||~gY.length);gU.cancel=e=>{gq.delete(e),g$.delete(e),gK.delete(e),gH.delete(e),gW.delete(e)},gU.sync=e=>{g0=!0,gU.batchedUpdates(e),g0=!1},gU.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,gU.onStart(n)}return r.handler=e,r.cancel=()=>{gq.delete(n),t=null},r};var gG="undefined"!=typeof window?window.requestAnimationFrame:()=>{};gU.use=e=>gG=e,gU.now="undefined"!=typeof performance?()=>performance.now():Date.now,gU.batchedUpdates=e=>e(),gU.catch=console.error,gU.frameLoop="always",gU.advance=()=>{"demand"!==gU.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):g3()};var gJ=-1,gQ=0,g0=!1;function g1(e,t){g0?(t.delete(e),e(0)):(t.add(e),g2())}function g2(){gJ<0&&(gJ=0,"demand"!==gU.frameLoop&&gG(g4))}function g4(){~gJ&&(gG(g4),gU.batchedUpdates(g3))}function g3(){let e=gJ,t=gX(gJ=gU.now());if(t&&(g6(gY.splice(0,t),e=>e.handler()),gQ-=t),!gQ){gJ=-1;return}gq.flush(),gH.flush(e?Math.min(64,gJ-e):16.667),g$.flush(),gW.flush(),gK.flush()}function g5(){let e=new Set,t=e;return{add(n){gQ+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(gQ-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,gQ-=t.size,g6(t,t=>t(n)&&e.add(t)),gQ+=e.size,t=e)}}}function g6(e,t){e.forEach(e=>{try{t(e)}catch(e){gU.catch(e)}})}function g8(){}var g7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),g9={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 ye(e,t){if(g9.arr(e)){if(!g9.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yn(e,t,n){if(g9.arr(e)){for(let r=0;rg9.und(e)?[]:g9.arr(e)?e:[e];function yi(e,t){if(e.size){let n=Array.from(e);e.clear(),yt(n,t)}}var ya=(e,...t)=>yi(e,e=>e(...t)),yo=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ys=null,yl=!1,yu=g8,yc=e=>{e.to&&(I=e.to),e.now&&(gU.now=e.now),void 0!==e.colors&&(ys=e.colors),null!=e.skipAnimation&&(yl=e.skipAnimation),e.createStringInterpolator&&(V=e.createStringInterpolator),e.requestAnimationFrame&&gU.use(e.requestAnimationFrame),e.batchedUpdates&&(gU.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yu=e.willAdvance),e.frameLoop&&(gU.frameLoop=e.frameLoop)},yd=new Set,yf=[],yh=[],yp=0,ym={get idle(){return!yd.size&&!yf.length},start(e){yp>e.priority?(yd.add(e),gU.onStart(yv)):(yg(e),gU(yb))},advance:yb,sort(e){if(yp)gU.onFrame(()=>ym.sort(e));else{let t=yf.indexOf(e);~t&&(yf.splice(t,1),yy(e))}},clear(){yf=[],yd.clear()}};function yv(){yd.forEach(yg),yd.clear(),gU(yb)}function yg(e){yf.includes(e)||yy(e)}function yy(e){yf.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(yf,t=>t.priority>e.priority),0,e)}function yb(e){let t=yh;for(let n=0;n0}var yx="[-+]?\\d*\\.?\\d+",yw=yx+"%";function yj(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yk=RegExp("rgb"+yj(yx,yx,yx)),yE=RegExp("rgba"+yj(yx,yx,yx,yx)),yS=RegExp("hsl"+yj(yx,yw,yw)),yC=RegExp("hsla"+yj(yx,yw,yw,yx)),y_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yO=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yM=/^#([0-9a-fA-F]{6})$/,yT=/^#([0-9a-fA-F]{8})$/;function yA(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yP(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*yA(i,r,e+1/3))<<24|Math.round(255*yA(i,r,e))<<16|Math.round(255*yA(i,r,e-1/3))<<8}function yN(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function yR(e){return(parseFloat(e)%360+360)%360/360}function yD(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yL(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function yZ(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yM.exec(e))?parseInt(t[1]+"ff",16)>>>0:ys&&void 0!==ys[e]?ys[e]:(t=yk.exec(e))?(yN(t[1])<<24|yN(t[2])<<16|yN(t[3])<<8|255)>>>0:(t=yE.exec(e))?(yN(t[1])<<24|yN(t[2])<<16|yN(t[3])<<8|yD(t[4]))>>>0:(t=y_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yT.exec(e))?parseInt(t[1],16)>>>0:(t=yO.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yS.exec(e))?(255|yP(yR(t[1]),yL(t[2]),yL(t[3])))>>>0:(t=yC.exec(e))?(yP(yR(t[1]),yL(t[2]),yL(t[3]))|yD(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var yF=(e,t,n)=>{if(g9.fun(e))return e;if(g9.arr(e))return yF({range:e,output:t,extrapolate:n});if(g9.str(e.output[0]))return V(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=a(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,a,o,e.map)}},yz=Symbol.for("FluidValue.get"),yV=Symbol.for("FluidValue.observers"),yI=e=>!!(e&&e[yz]),yB=e=>e&&e[yz]?e[yz]():e,yH=e=>e[yV]||null;function yU(e,t){let n=e[yV];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yW=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");yq(this,e)}},yq=(e,t)=>yY(e,yz,t);function y$(e,t){if(e[yz]){let n=e[yV];n||yY(e,yV,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yK(e,t){let n=e[yV];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[yV]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yY=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yX=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yJ=RegExp(`(${yX.source})(%|[a-z]+)`,"i"),yQ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,y0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,y1=e=>{let[t,n]=y2(e);if(!t||yo())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&y0.test(n))return y1(n);else if(n)return n;return e},y2=e=>{let t=y0.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},y4=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,y3=e=>{B||(B=ys?RegExp(`(${Object.keys(ys).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>yB(e).replace(y0,y1).replace(yG,yZ).replace(B,yZ)),n=t.map(e=>e.match(yX).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>yF({...e,output:t}));return e=>{let n=!yJ.test(t[0])&&t.find(e=>yJ.test(e))?.replace(yX,""),i=0;return t[0].replace(yX,()=>`${r[i++](e)}${n||""}`).replace(yQ,y4)}},y5="react-spring: ",y6=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${y5}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},y8=y6(console.warn),y7=y6(console.warn);function y9(e){return g9.str(e)&&("#"==e[0]||/\d/.test(e)||!yo()&&y0.test(e)||e in(ys||{}))}var be=yo()?eo.useEffect:eo.useLayoutEffect,bt=()=>{let e=(0,eo.useRef)(!1);return be(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function bn(){let e=(0,eo.useState)()[1],t=bt();return()=>{t.current&&e(Math.random())}}var br=e=>(0,eo.useEffect)(e,bi),bi=[];function ba(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e}),t.current}var bo=Symbol.for("Animated:node"),bs=e=>!!e&&e[bo]===e,bl=e=>e&&e[bo],bu=(e,t)=>g7(e,bo,t),bc=e=>e&&e[bo]&&e[bo].getPayload(),bd=class{constructor(){bu(this,this)}getPayload(){return this.payload||[]}},bf=class extends bd{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,g9.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new bf(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return g9.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,g9.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bh=class extends bf{constructor(e){super(0),this._string=null,this._toString=yF({output:[e,e]})}static create(e){return new bh(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(g9.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=yF({output:[this.getValue(),e]})),this._value=0,super.reset()}},bp={dependencies:null},bm=class extends bd{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yn(this.source,(n,r)=>{bs(n)?t[r]=n.getValue(e):yI(n)?t[r]=yB(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yt(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){bp.dependencies&&yI(e)&&bp.dependencies.add(e);let t=bc(e);t&&yt(t,e=>this.add(e))}},bv=class extends bm{constructor(e){super(e)}static create(e){return new bv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(bg)),!0)}};function bg(e){return(y9(e)?bh:bf).create(e)}function by(e){let t=bl(e);return t?t.constructor:g9.arr(e)?bv:y9(e)?bh:bf}var bb=(e,t)=>{let n=!g9.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,eo.forwardRef)((r,i)=>{let a=(0,eo.useRef)(null),o=n&&(0,eo.useCallback)(e=>{a.current=(i&&(g9.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return bp.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new bm(e),bp.dependencies=null,[e,n]}(r,t),u=bn(),c=()=>{let e=a.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new bx(c,l),f=(0,eo.useRef)();be(()=>(f.current=d,yt(l,e=>y$(e,d)),()=>{f.current&&(yt(f.current.deps,e=>yK(e,f.current)),gU.cancel(f.current.update))})),(0,eo.useEffect)(c,[]),br(()=>()=>{let e=f.current;yt(e.deps,t=>yK(t,e))});let h=t.getComponentProps(s.getValue());return eo.createElement(e,{...h,ref:o})})},bx=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&gU.write(this.update)}},bw=Symbol.for("AnimatedComponent"),bj=e=>g9.str(e)?e:e&&g9.str(e.displayName)?e.displayName:g9.fun(e)&&e.name||null;function bk(e,...t){return g9.fun(e)?e(...t):e}var bE=(e,t)=>!0===e||!!(t&&e&&(g9.fun(e)?e(t):yr(e).includes(t))),bS=(e,t)=>g9.obj(e)?t&&e[t]:e,bC=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b_=e=>e,bO=(e,t=b_)=>{let n=bM;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);g9.und(n)||(r[i]=n)}return r},bM=["config","onProps","onStart","onChange","onPause","onResume","onRest"],bT={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 bA(e){let t=function(e){let t={},n=0;if(yn(e,(e,r)=>{!bT[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yn(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function bP(e){return e=yB(e),g9.arr(e)?e.map(bP):y9(e)?gB.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function bN(e){for(let t in e)return!0;return!1}function bR(e){return g9.fun(e)||g9.arr(e)&&g9.obj(e[0])}function bD(e,t){e.ref?.delete(e),t?.delete(e)}function bL(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var bZ={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},bF=class{constructor(){this.velocity=0,Object.assign(this,bZ)}};function bz(e,t){if(g9.und(t.decay)){let n=!g9.und(t.tension)||!g9.und(t.friction);!n&&g9.und(t.frequency)&&g9.und(t.damping)&&g9.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var bV=[],bI=class{constructor(){this.changed=!1,this.values=bV,this.toValues=null,this.fromValues=bV,this.config=new bF,this.immediate=!1}};function bB(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u;let c=bE(n.cancel??r?.cancel,t);if(c)h();else{g9.und(n.pause)||(i.paused=bE(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||bE(e,t)),l=bk(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-gU.now()}function f(){l>0&&!gB.skipAnimation?(i.delayed=!0,u=gU.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var bH=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?bq(e.get()):t.every(e=>e.noop)?bU(e.get()):bW(e.get(),t.every(e=>e.finished)),bU=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bW=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),bq=e=>({value:e,cancelled:!0,finished:!1});function b$(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=bO(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&bq(r)||i!==n.asyncId&&bW(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let a=new bY,o=new bX;return(async()=>{if(gB.skipAnimation)throw bK(n),o.result=bW(r,!1),c(o),o;p(a);let s=g9.obj(e)?{...e}:{...t,to:e};s.parentId=i,yn(f,(e,t)=>{g9.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(gB.skipAnimation)return bK(n),bW(r,!1);try{let t;t=g9.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=bW(r.get(),!0,!1)}catch(e){if(e instanceof bY)d=e.result;else if(e instanceof bX)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return g9.fun(o)&&gU.batchedUpdates(()=>{o(d,r,r.item)}),d})():l}function bK(e,t){yi(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var bY=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.")}},bX=class extends Error{constructor(){super("SkipAnimationSignal")}},bG=e=>e instanceof bQ,bJ=1,bQ=class extends yW{constructor(){super(...arguments),this.id=bJ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=bl(this);return e&&e.getValue()}to(...e){return gB.to(this,e)}interpolate(...e){return y8(`${y5}The "interpolate" function is deprecated in v9 (use "to" instead)`),gB.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){yU(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ym.sort(this),yU(this,{type:"priority",parent:this,priority:e})}},b0=Symbol.for("SpringPhase"),b1=e=>(1&e[b0])>0,b2=e=>(2&e[b0])>0,b4=e=>(4&e[b0])>0,b3=(e,t)=>t?e[b0]|=3:e[b0]&=-3,b5=(e,t)=>t?e[b0]|=4:e[b0]&=-5,b6=class extends bQ{constructor(e,t){if(super(),this.animation=new bI,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,!g9.und(e)||!g9.und(t)){let n=g9.obj(e)?{...e}:{...t,from:e};g9.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(b2(this)||this._state.asyncTo)||b4(this)}get goal(){return yB(this.animation.to)}get velocity(){let e=bl(this);return e instanceof bf?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return b1(this)}get isAnimating(){return b2(this)}get isPaused(){return b4(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=bc(r.to);!o&&yI(r.to)&&(i=yr(yB(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==bh?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=g9.arr(a.velocity)?a.velocity[l]:a.velocity,f=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(g9.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*n);d=i+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=o*r}else{t=null==s.lastVelocity?o:s.lastVelocity;let n=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!g9.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*t)/a.mass;t+=1*e,d+=1*t}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(a.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+a.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=bl(this),l=s.getValue();if(t){let e=yB(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return gU.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(b2(this)){let{to:e,config:t}=this.animation;gU.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 n;return g9.und(e)?(n=this.queue||[],this.queue=[]):n=[g9.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>bH(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),bK(this._state,e&&this._lastCallId),gU.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:n,from:r}=e;(null==(n=g9.obj(n)?n[t]:n)||bR(n))&&(n=void 0),null==(r=g9.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return b1(this)||(e.reverse&&([n,r]=[r,n]),r=yB(r),g9.und(r)?bl(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bO(e,(e,t)=>/^on/.test(t)?bS(e,n):e)),xn(this,e,"onProps"),xr(this,"onProps",e,this);let i=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 a=this._state;return bB(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{b4(this)||(b5(this,!0),ya(a.pauseQueue),xr(this,"onPause",bW(this,b8(this,this.animation.to)),this))},resume:()=>{b4(this)&&(b5(this,!1),b2(this)&&this._resume(),ya(a.resumeQueue),xr(this,"onResume",bW(this,b8(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=b7(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(bq(this));let r=!g9.und(e.to),i=!g9.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(bq(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||g9.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!ye(d,u);f&&(s.from=d),d=yB(d);let h=!ye(c,l);h&&this._focus(c);let p=bR(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(bz(n={...n},t),t={...n,...t}),bz(e,t),Object.assign(e,t),bZ)null==e[r]&&(e[r]=bZ[r]);let{frequency:r,damping:i}=e,{mass:a}=e;g9.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,bk(t.config,a),t.config!==o.config?bk(o.config,a):void 0);let y=bl(this);if(!y||g9.und(c))return n(bW(this,!0));let b=g9.und(t.reset)?i&&!t.default:!g9.und(d)&&bE(t.reset,a),x=b?d:this.get(),w=bP(c),j=g9.num(w)||g9.arr(w)||y9(w),k=!p&&(!j||bE(o.immediate||t.immediate,a));if(h){let e=by(c);if(e!==y.constructor){if(k)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let E=y.constructor,S=yI(c),C=!1;if(!S){let e=b||!b1(this)&&f;(h||e)&&(S=!(C=ye(bP(x),w))),(ye(s.immediate,k)||k)&&ye(m.decay,v)&&ye(m.velocity,g)||(S=!0)}if(C&&b2(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||yI(l))&&(s.values=y.getPayload(),s.toValues=yI(c)?null:E==bh?[1]:yr(w)),s.immediate==k||(s.immediate=k,k||b||this._set(l)),S)){let{onRest:e}=s;yt(xt,e=>xn(this,t,e));let r=bW(this,b8(this,l));ya(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&gU.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?bk(o.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(b$(t.to,t,this._state,this)):S?this._start():b2(this)&&!h?this._pendingCalls.add(n):n(bU(x))}_focus(e){let t=this.animation;e!==t.to&&(yH(this)&&this._detach(),t.to=e,yH(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;yI(t)&&(y$(t,this),bG(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;yI(e)&&yK(e,this)}_set(e,t=!0){let n=yB(e);if(!g9.und(n)){let e=bl(this);if(!e||!ye(n,e.getValue())){let r=by(n);e&&e.constructor==r?e.setValue(n):bu(this,r.create(n)),e&&gU.batchedUpdates(()=>{this._onChange(n,t)})}}return bl(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xr(this,"onStart",bW(this,b8(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bk(this.animation.onChange,e,this)),bk(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;bl(this).reset(yB(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),b2(this)||(b3(this,!0),b4(this)||this._resume())}_resume(){gB.skipAnimation?this.finish():ym.start(this)}_stop(e,t){if(b2(this)){b3(this,!1);let n=this.animation;yt(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yU(this,{type:"idle",parent:this});let r=t?bq(this.get()):bW(this.get(),b8(this,e??n.to));ya(this._pendingCalls,r),n.changed&&(n.changed=!1,xr(this,"onRest",r,this))}}};function b8(e,t){let n=bP(t);return ye(bP(e.get()),n)}function b7(e,t=e.loop,n=e.to){let r=bk(t);if(r){let i=!0!==r&&bA(r),a=(i||e).reverse,o=!i||i.reset;return b9({...e,loop:t,default:!1,pause:void 0,to:!a||bR(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function b9(e){let{to:t,from:n}=e=bA(e),r=new Set;return g9.obj(t)&&xe(t,r),g9.obj(n)&&xe(n,r),e.keys=r.size?Array.from(r):null,e}function xe(e,t){yn(e,(e,n)=>null!=e&&t.add(n))}var xt=["onStart","onRest","onChange","onPause","onResume"];function xn(e,t,n){e.animation[n]=t[n]!==bC(t,n)?bS(t[n],e.key):void 0}function xr(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xi=["onStart","onChange","onRest"],xa=1,xo=class{constructor(e,t){this.id=xa++,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,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];g9.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(b9(e)),this}start(e){let{queue:t}=this;return(e?t=yr(e).map(b9):this.queue=[],this._flush)?this._flush(this,t):(xh(this,t),xs(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yt(yr(t),t=>n[t].stop(!!e))}else bK(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(g9.und(e))this.start({pause:!0});else{let t=this.springs;yt(yr(e),e=>t[e].pause())}return this}resume(e){if(g9.und(e))this.start({pause:!1});else{let t=this.springs;yt(yr(e),e=>t[e].resume())}return this}each(e){yn(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,yi(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&yi(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,yi(n,([e,t])=>{t.value=o,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)}gU.onFrame(this._onFrame)}};function xs(e,t){return Promise.all(t.map(t=>xl(e,t))).then(t=>bH(e,t))}async function xl(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=g9.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=g9.arr(i)||g9.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yt(xi,n=>{let r=t[n];if(g9.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,ya(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===bC(t,"cancel");(c||h&&d.asyncId)&&f.push(bB(++e._lastAsyncId,{props:t,state:d,actions:{pause:g8,resume:g8,start(t,n){h?(bK(d,e._lastAsyncId),n(bq(e))):(t.onRest=s,n(b$(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=bH(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=b7(t,o,i);if(n)return xh(e,[n]),xl(e,n,!0)}return l&&gU.batchedUpdates(()=>l(p,e,e.item)),p}function xu(e,t){let n={...e.springs};return t&&yt(yr(t),e=>{g9.und(e.keys)&&(e=b9(e)),g9.obj(e.to)||(e={...e,to:void 0}),xf(n,e,e=>xd(e))}),xc(e,n),n}function xc(e,t){yn(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,y$(t,e))})}function xd(e,t){let n=new b6;return n.key=e,t&&y$(n,t),n}function xf(e,t,n){t.keys&&yt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function xh(e,t){yt(t,t=>{xf(e.springs,t,t=>xd(t,e))})}var xp=({children:e,...t})=>{let n=(0,eo.useContext)(xm),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,eo.useState)(()=>({inputs:t,result:e()})),r=(0,eo.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=xm;return eo.createElement(a,{value:t},e)},xm=(Object.assign(xp,eo.createContext({})),xp.Provider._context=xp,xp.Consumer._context=xp,xp);xp.Provider=xm.Provider,xp.Consumer=xm.Consumer;var xv=()=>{let e=[],t=function(t){y7(`${y5}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 r=[];return yt(e,(e,i)=>{if(g9.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return yt(e,e=>e.pause(...arguments)),this},t.resume=function(){return yt(e,e=>e.resume(...arguments)),this},t.set=function(t){yt(e,(e,n)=>{let r=g9.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yt(e,(e,r)=>{if(g9.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return yt(e,e=>e.stop(...arguments)),this},t.update=function(t){return yt(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return g9.fun(e)?e(n,t):e};return t._getProps=n,t};function xg(e,t){let n=g9.fun(e),[[r],i]=function(e,t,n){let r=g9.fun(t)&&t;r&&!n&&(n=[]);let i=(0,eo.useMemo)(()=>r||3==arguments.length?xv():void 0,[]),a=(0,eo.useRef)(0),o=bn(),s=(0,eo.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=xu(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{xc(e,n),s.queue.push(()=>{r(xs(e,t))}),o()}):xs(e,t)}}),[]),l=(0,eo.useRef)([...s.ctrls]),u=[],c=ba(e)||0;function d(e,n){for(let i=e;i{yt(l.current.slice(e,c),e=>{bD(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,eo.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>xu(e,u[t])),h=(0,eo.useContext)(xp),p=ba(h),m=h!==p&&bN(h);be(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],yt(e,e=>e())),yt(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(bL(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),br(()=>()=>{yt(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xy(e,t,n){let r=g9.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,eo.useMemo)(()=>r||3==arguments.length?xv():void 0,[]),h=yr(e),p=[],m=(0,eo.useRef)(null),v=i?null:m.current;be(()=>{m.current=p}),br(()=>(yt(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yt(m.current,e=>{e.expired&&clearTimeout(e.expirationId),bD(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xb++})}return g9.und(n)?e:g9.fun(n)?e.map(n):yr(n)}(h,r?r():t,v),y=i&&m.current||[];be(()=>yt(y,({ctrl:e,item:t,key:n})=>{bD(e,f),bk(u,t,n)}));let b=[];if(v&&yt(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),yt(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new xo},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;yt(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}g9.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let x=-o,w=bn(),j=bO(t),k=new Map,E=(0,eo.useRef)(new Map),S=(0,eo.useRef)(!1);yt(p,(e,n)=>{let i,a;let u=e.key,f=e.phase,h=r?r():t,p=bk(h.delay||0,u);if("mount"==f)i=h.enter,a="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,a="leave";else{if(!(i=h.update))return;a="update"}}else{if(e)return;i=h.enter,a="enter"}}if(i=bk(i,e.item,n),!(i=g9.obj(i)?bA(i):{to:i}).config){let t=d||j.config;i.config=bk(t,e.item,n,a)}x+=o;let y={...j,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==a&&g9.und(y.from)){let i=r?r():t,a=g9.und(i.initial)||v?i.from:i.initial;y.from=bk(a,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{bk(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=bk(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(E.current.delete(n),l&&(S.current=!0),w())}}};let C=xu(e.ctrl,y);"leave"===a&&l?E.current.set(e,{phase:a,springs:C,payload:y}):k.set(e,{phase:a,springs:C,payload:y})});let C=(0,eo.useContext)(xp),_=ba(C),O=C!==_&&bN(C);be(()=>{O&&yt(p,e=>{e.ctrl.start({default:C})})},[C]),yt(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),be(()=>{yt(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&"enter"==e&&r.start({default:C}),t&&(bL(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let M=e=>eo.createElement(eo.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eo.createElement(i.type,{...i.props,key:g9.str(t.key)||g9.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var xb=1,xx=class extends bQ{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yF(...t);let n=this._get();bu(this,by(n).create(n))}advance(e){let t=this._get();ye(t,this.get())||(bl(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xj(this._active)&&xk(this)}_get(){let e=g9.arr(this.source)?this.source.map(yB):yr(yB(this.source));return this.calc(...e)}_start(){this.idle&&!xj(this._active)&&(this.idle=!1,yt(bc(this),e=>{e.done=!1}),gB.skipAnimation?(gU.batchedUpdates(()=>this.advance()),xk(this)):ym.start(this))}_attach(){let e=1;yt(yr(this.source),t=>{yI(t)&&y$(t,this),bG(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yt(yr(this.source),e=>{yI(e)&&yK(e,this)}),this._active.clear(),xk(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=yr(this.source).reduce((e,t)=>Math.max(e,(bG(t)?t.priority:0)+1),0))}};function xw(e){return!1!==e.idle}function xj(e){return!e.size||Array.from(e).every(xw)}function xk(e){e.idle||(e.idle=!0,yt(bc(e),e=>{e.done=!0}),yU(e,{type:"idle",parent:e}))}var xE=(e,...t)=>new xx(e,t);gB.assign({createStringInterpolator:y3,to:(e,t)=>new xx(e,t)}),ym.advance;var xS=/^--/,xC={},x_={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},xO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xM=["Webkit","Ms","Moz","O"];x_=Object.keys(x_).reduce((e,t)=>(xM.forEach(n=>e[xO(n,t)]=e[t]),e),x_);var xT=/^(matrix|translate|scale|rotate|skew)/,xA=/^(translate)/,xP=/^(rotate|skew)/,xN=(e,t)=>g9.num(e)&&0!==e?e+t:e,xR=(e,t)=>g9.arr(e)?e.every(e=>xR(e,t)):g9.num(e)?e===t:parseFloat(e)===t,xD=class extends bm{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>xN(e,"px")).join(",")})`,xR(e,0)])),yn(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(xT.test(t)){if(delete r[t],g9.und(e))return;let n=xA.test(t)?"px":xP.test(t)?"deg":"";i.push(yr(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xN(i,n)})`,xR(i,0)]:e=>[`${t}(${e.map(e=>xN(e,n)).join(",")})`,xR(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xL(i,a)),super(r)}},xL=class extends yW{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 yt(this.inputs,(n,r)=>{let i=yB(n[0]),[a,o]=this.transforms[r](g9.arr(i)?i:n.map(yB));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&yt(this.inputs,e=>yt(e,e=>yI(e)&&y$(e,this)))}observerRemoved(e){0==e&&yt(this.inputs,e=>yt(e,e=>yI(e)&&yK(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),yU(this,e)}};gB.assign({batchedUpdates:tD.unstable_batchedUpdates,createStringInterpolator:y3,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 xZ=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new bm(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=bj(e)||"Anonymous";return(e=g9.str(e)?a[e]||(a[e]=bb(e,i)):e[bw]||(e[bw]=bb(e,i))).displayName=`Animated(${t})`,e};return yn(e,(t,n)=>{g9.arr(e)&&(n=bj(t)),a[n]=a(t)}),{animated:a}})(["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 n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xC[t]||(xC[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xS.test(t)||x_.hasOwnProperty(t)&&x_[t]?(""+d).trim():d+"px";xS.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new xD(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xF=n(23442),xz=(0,eo.createContext)({});function xV(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,a=e.children,o=(0,eo.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return eo.createElement(xz.Provider,{value:o},a)}function xI(){return(xI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x$),p=(0,eo.useContext)(xU)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,eo.useMemo)(function(){return y?xW(y):0},[y]),j=(0,eo.useMemo)(function(){return b?xW(b):0},[b]);if((!s||!l)&&!o)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==o?null:null==x?void 0:x.get(o),E=s||(null==k?void 0:k.xAccessor),S=l||(null==k?void 0:k.yAccessor);if(!y||!b||!v||!m||!E||!S||!g)return null;var C=(null!=(t=(0,mc.Z)(y(E(a))))?t:NaN)+w/2,_=(null!=(n=(0,mc.Z)(b(S(a))))?n:NaN)+j/2,O=C+c+16>g.left+v?-c:c,M=_+f+16>g.top+m?-f:f;return xq(C)&&xq(_)?eo.createElement(r,xK({width:v,height:m},h,{x:C,y:_,dx:O,dy:M}),i):null}xY.propTypes={dataKey:mr().string,xAccessor:mr().func,yAccessor:mr().func};var xX=["x","y","AnnotationComponent"],xG=["editable"];function xJ(){return(xJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function x0(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.AnnotationComponent,o=xQ(e,xX),s=(0,eo.useRef)({x:n,y:i}),l=xg({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,eo.useEffect)(function(){s.current={x:n,y:i}},[n,i]),eo.createElement(xZ.g,{transform:xE([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},eo.createElement(a,xJ({x:n,y:i},o)))}function x1(e){var t=e.editable,n=xQ(e,xG),r=(0,eo.useCallback)(function(e){return eo.createElement(x0,xJ({AnnotationComponent:t?xH:xV},e))},[t]);return eo.createElement(xY,xJ({AnnotationComponent:r},n))}x1.propTypes={editable:mr().bool};var x2=n(12766),x4=["d","stroke","fill"];function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x4),a=(0,eo.useRef)(t),o=(0,eo.useCallback)(gs()(function(e){a.current=e},50),[]),s=(0,x2.interpolatePath)(a.current,t);o(t);var l=xg({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xg({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return eo.createElement(xZ.path,x3({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var x6=n(12935),x8=n(12151);function x7(){return(x7=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function wu(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>wl(e(t),n)),{left:r,center:function(e,n,i,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}let wc=wu(wl);wc.right;let wd=wc.left;function wf(e){var t,n,r=e.scale,i=e.accessor,a=e.scaledValue,o=e.data;if("invert"in r&&"function"==typeof r.invert){var s=wu(i).left,l=Number(r.invert(a)),u=s(o,l),c=o[u-1],d=o[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=wd(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r=0||(i[n]=e[n]);return i}(e,wE),S=(0,eo.useContext)(xU),C=S.colorScale,_=S.theme,O=S.horizontal,M=(0,eo.useMemo)(function(){return b?we(x,b):void 0},[x,b]),T=(0,eo.useMemo)(function(){return we(x,y)},[x,y]),A=(0,eo.useMemo)(function(){return j?we(k,j):void 0},[k,j]),P=(0,eo.useMemo)(function(){return we(k,w)},[k,w]),N=(0,eo.useCallback)(function(e){return xq(x(y(e)))&&xq(k(w(e)))},[x,y,k,w]),R=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+l,L=wb({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[wn,D]}),Z=(0,eo.useMemo)(function(){var e=wt(O?x:k);return O?{x0:null!=M?M:e,x1:T,y:P}:{x:T,y0:null!=A?A:e,y1:P}},[x,k,O,T,P,M,A]),F=!!(d||c),z=(0,eo.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wk(wS({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(x6.Z,wS({},Z,E,{curve:o,defined:N}),function(e){var t=e.path;return eo.createElement(a,wS({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},E,{d:t(s)||""},L))}),(void 0===g||g)&&eo.createElement(x8.Z,wS({x:T,y:P,defined:N,curve:o},u),function(e){var t=e.path;return eo.createElement(a,wS({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),F&&eo.createElement(ww,{dataKey:l,data:s,xAccessor:y,yAccessor:w,xScale:x,yScale:k,renderGlyphs:z}))}wC.propTypes={renderLine:mr().bool};var w_=x9(wC);function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n}function wD(e,t){return e[t]}function wL(e){let t=[];return t.key=e,t}Array.prototype.slice;var wZ=n(74322),wF=n(58543);function wz(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=a&&(n=r=a):(n>a&&(n=a),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[a,l]),d=(0,eo.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=wP([]),t=wR,n=wN,r=wD;function i(i){var a,o,s,l=Array.from(e.apply(this,arguments),wL),u=l.length,c=-1;for(let e of i)for(o=0,++c;o0&&0===r&&(a?i.xScale=function(e){return e.domain(wz(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(wz(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,a,d,o,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function wW(e,t,n){var r,i,a,o,s=e.xScale,l=e.yScale,u=e.point,c=(n?wp:wh)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,wA.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,wA.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(a=l((0,wA.l8)(c.datum)))?a:-1/0)&&u.y>=(null!=(o=l((0,wA.xf)(c.datum)))?o:1/0)?0:c.distanceY}:null}var wq=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function w$(){return(w$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(o,wq)),u=w$({fill:null!=(n=null!=(r=null==v?void 0:v(e.key))?r:null==w?void 0:null==(i=w.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[S,C,v,E,w]),O=(0,eo.useCallback)(function(e){var t,n,r=null==(t=E.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wW(e,r,y):null},[E,y]),M="AREASTACK_EVENT_SOURCE-"+k.join("-"),T=wb({dataKey:k,enableEvents:void 0===a||a,findNearestDatum:O,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:M,allowedSources:[wn,M]}),A=!!(l||s),P=(0,eo.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wk(w$({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[A,T.onFocus,T.onBlur]);return!k.some(function(e){return null==g.get(e)})&&b&&x&&v?eo.createElement("g",{className:"visx-area-stack"},_.map(function(e){return eo.createElement(x6.Z,w$({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return eo.createElement(n,w$({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),(void 0===p||p)&&_.map(function(e){return eo.createElement(wT.Z,w$({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return eo.createElement(n,w$({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),A&&_.map(function(e,t){var n=_[_.length-t-1];return eo.createElement(ww,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:wK,yScale:wK,renderGlyphs:P})})):null}function wX(){return(wX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wQ),c=(0,eo.useContext)(xU),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,eo.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,x=(0,eo.useMemo)(function(){return b||y?function(e,t,n){return w0({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),w="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?eo.createElement(l,w0({top:w,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(a=y.axisLine)?void 0:a.stroke,strokeWidth:null==y?void 0:null==(o=y.axisLine)?void 0:o.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:k})):null}function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return w5({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=o(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return w5({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",C=wb({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:o,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wn,S]}),_=(0,eo.useMemo)(function(){return b?wt(b):0},[b]),O=(0,eo.useMemo)(function(){return x?wt(x):0},[x]),M=j.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var T=xW(k),A=M.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,a=e.key,o=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-_:(null!=(i=x(r(e)))?i:NaN)-O},s=v?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(a))?t:0,u=v?function(e){return _+Math.min(0,o(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return O+Math.min(0,o(e))},d=v?function(e){return Math.abs(o(e))}:function(){return T},f=v?function(){return T}:function(e){return Math.abs(o(e))},h=w.find(function(e){return e.props.dataKey===a}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:a,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!xq(r))return null;var i=c(e);if(!xq(i))return null;var o=d(e);if(!xq(o))return null;var s=f(e);return xq(s)?{key:a+"-"+t,x:r,y:i,width:o,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(a)}:null}).filter(function(e){return e})}});return eo.createElement("g",{className:"visx-bar-group"},A.map(function(e){return e&&eo.createElement(a,w6({horizontal:v,xScale:b,yScale:x},e,C,{key:e.key}))}))}w8.propTypes={children:mr().node.isRequired,padding:mr().number,sortBars:mr().func};var w7=n(10897),w9=function(e){return!!(null==e?void 0:e.includes("url("))},je=function(e){return w9(e)?"rgba(0,0,0,0.1)":e},jt=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],jn=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function jr(){return(jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function ja(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:je(e.fill),opacity:1}}function jo(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,s=e.radiusLeft,l=ji(e,jt);return eo.createElement(eo.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return eo.createElement(w7.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:a,bottom:o,left:s},function(e){var t=e.path;return eo.createElement(x5,jr({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function js(e){var t,n,r,i=e.bars,a=e.xScale,o=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,ji(e,jn)),u=xy(i,jr({},(n=(t={horizontal:s,scale:s?a:o}).scale,r=!!t.horizontal,(0,eo.useMemo)(function(){var e=wt(n);function t(t){var n=t.x,i=t.y,a=t.width,o=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:a,height:r?o:0,fill:je(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:ja,update:ja,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return eo.createElement(eo.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,a=e.width,o=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:eo.createElement(xZ.rect,jr({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:a,height:o,fill:w9(t.fill)?t.fill:s,opacity:u},l))}))}function jl(e){return null==e.radius?eo.createElement(js,e):eo.createElement(jo,jr({},e,{radius:e.radius}))}function ju(){return(ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jd),w=(0,eo.useContext)(xU),j=w.colorScale,k=w.horizontal,E=w.theme,S=w.innerWidth,C=w.innerHeight,_=(0,eo.useMemo)(function(){return we(g,v)},[g,v]),O=(0,eo.useMemo)(function(){return we(b,y)},[b,y]),M=xW(k?b:g)||(k?void 0===C?0:C:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===a?.1:a))),T=(0,eo.useMemo)(function(){return g?wt(g):0},[g]),A=(0,eo.useMemo)(function(){return b?wt(b):0},[b]),P=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",N=(0,eo.useMemo)(function(){var e=k?0:-M/2,t=k?-M/2:0;return s.map(function(n,r){var i,a=_(n)+e;if(!xq(a))return null;var s=O(n)+t;if(!xq(s))return null;var l=k?a-T:s-A;return xq(l)?{key:""+r,x:k?T+Math.min(0,l):a,y:k?s:A+Math.min(0,l),width:k?Math.abs(l):M,height:k?M:Math.abs(l),fill:null!=(i=null==o?void 0:o(n,r))?i:P}:null}).filter(function(e){return e})},[M,P,o,s,_,O,k,T,A]),R="BARSERIES_EVENT_SOURCE-"+l,D=wb({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wn,R]});return eo.createElement("g",{className:"vx-bar-series"},eo.createElement(i,jf({bars:N,horizontal:k,xScale:g,yScale:b},D,x)))}jh.propTypes={barPadding:mr().number,colorAccessor:mr().func};var jp=x9(jh),jm=["colorAccessor"];function jv(){return(jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jm);return eo.createElement(jp,jv({},n,{colorAccessor:t,BarsComponent:jl}))}var jy=n(15590);function jb(){return(jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jS),i=(0,eo.useCallback)(function(e){return eo.createElement(jE,jC({},e,{renderGlyph:n}))},[n]);return eo.createElement(wj,jC({},r,{renderGlyphs:i}))}var jO=n(93353),jM=n(63962),jT=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jA(){return(jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jT),o=(0,eo.useContext)(xU),s=o.theme,l=o.xScale,u=o.yScale,c=o.margin,d=o.innerWidth,f=o.innerHeight,h=null==s?void 0:s.gridStyles;return eo.createElement(eo.Fragment,null,(void 0===t||t)&&u&&null!=d&&eo.createElement(r,jA({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},a)),(void 0===n||n)&&l&&null!=f&&eo.createElement(i,jA({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:l},a)))}jP.propTypes={rows:mr().bool,columns:mr().bool};var jN=["animationTrajectory"];function jR(){return(jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jN),r=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jO.Z,jR({},e,{animationTrajectory:t}))}},[t]),i=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jM.Z,jR({},e,{animationTrajectory:t}))}},[t]);return eo.createElement(jP,jR({GridRowsComponent:r,GridColumnsComponent:i},n))}var jL=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jZ(){return(jZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jL),j=(0,eo.useContext)(xU),k=j.colorScale,E=j.theme,S=(0,eo.useMemo)(function(){return we(v,m)},[v,m]),C=(0,eo.useMemo)(function(){return we(y,g)},[y,g]),_=(0,eo.useCallback)(function(e){return xq(v(m(e)))&&xq(y(g(e)))},[v,m,y,g]),O=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,T=wb({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[wn,M]}),A=!!(u||l),P=(0,eo.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wk(jZ({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[A,T.onFocus,T.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(x8.Z,jZ({x:S,y:C,defined:_,curve:a},w),function(e){var t,n=e.path;return eo.createElement(x,jZ({stroke:null!=(t=null==i?void 0:i(s))?t:O,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(o)||""},T))}),A&&eo.createElement(ww,{dataKey:s,data:o,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:P}))}jF.propTypes={colorAccessor:mr().func};var jz=x9(jF);function jV(){return(jV=Object.assign?Object.assign.bind():function(e){for(var t=1;tjU.every(n=>e[n]===t[n]);function jq(e,t){return(jq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var j$=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jq(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?tD.createPortal(this.props.children,this.node):null},t}(eo.PureComponent);j$.propTypes={zIndex:mr().oneOfType([mr().number,mr().string])};var jK=["detectBounds","zIndex"],jY=["left","top","detectBounds","zIndex"];function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jJ=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jQ=["x","y"];function j0(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function j1(){return(j1=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,eo.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,y:c};u.current.element instanceof HTMLElement&&a&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jW(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jH()(e,d):e,c?jH()(e,c):e]},[l,a,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new o(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,eo.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,eo.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,eo.useEffect)(()=>{v(),g()},[r,m,p]),(0,eo.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:a}=window.getComputedStyle(t);return[r,i,a].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(jG(et,jK)))[0],el=ea[1],eu=ea[2],ec=(0,eo.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,a=jG(e,jY),o=null==i?ei:i,s=(null==r?er:r)?mZ:mO,l=(void 0===t?0:t)+(el.left||0)+window.scrollX,u=(void 0===n?0:n)+(el.top||0)+window.scrollY;return eo.createElement(j$,{zIndex:o},eo.createElement(s,jX({left:l,top:u},a)))}},[er,ei,el.left,el.top]),{containerRef:es,containerBounds:el,forceRefreshBounds:eu,TooltipInPortal:ec}),N=P.containerRef,R=P.TooltipInPortal,D=P.forceRefreshBounds,L=(0,eo.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),Z=null!=A&&A.tooltipOpen?a(j1({},A,{colorScale:k})):null,F=(null==A?void 0:A.tooltipOpen)&&null!=Z,z=(0,eo.useRef)(!1);(0,eo.useEffect)(function(){F&&!z.current&&D(),z.current=F},[F,D]);var V=null==A?void 0:A.tooltipLeft,I=null==A?void 0:A.tooltipTop,B=O?xW(O):0,H=M?xW(M):0,U=(0,eo.useCallback)(function(e,t){var n,r,i=null==T?void 0:T.get(e),a=null==i?void 0:i.xAccessor,o=null==i?void 0:i.yAccessor;return{left:O&&a?null!=(n=Number(O(a(t)))+B/2)?n:0:void 0,top:M&&o?null!=(r=Number(M(o(t)))+H/2)?r:0:void 0}},[T,B,H,O,M]),W=null==A?void 0:null==(ed=A.tooltipData)?void 0:ed.nearestDatum,q=null!=(ef=null==W?void 0:W.key)?ef:"";if(F&&W&&(v||y)){var $=U(q,W.datum),K=$.left,Y=$.top;V=v&&xq(K)?K:V,I=y&&xq(Y)?Y:I}var X=[];if(F&&(void 0!==c&&c||h)){var G=Number(null!=(eE=null==i?void 0:i.radius)?eE:4);if(h)Object.values(null!=(eS=null==A?void 0:null==(eC=A.tooltipData)?void 0:eC.datumByKey)?eS:{}).forEach(function(e){var t,n,r,a=e.key,o=e.datum,s=e.index,l=null!=(t=null!=(n=null==k?void 0:k(a))?n:null==E?void 0:null==(r=E.htmlLabel)?void 0:r.color)?t:"#222",u=U(a,o),c=u.left,d=u.top;xq(c)&&xq(d)&&X.push({key:a,color:l,datum:o,index:s,size:G,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===a})});else if(W){var J=U(q,W.datum),Q=J.left,ee=J.top;if(xq(Q)&&xq(ee)){var et,en,er,ei,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,ek,eE,eS,eC,e_,eO,eM,eT,eA,eP,eN=null!=(e_=null!=(eO=null!=(eM=null!=(eT=q&&(null==k?void 0:k(q)))?eT:null)?eM:null==E?void 0:null==(eA=E.gridStyles)?void 0:eA.stroke)?eO:null==E?void 0:null==(eP=E.htmlLabel)?void 0:eP.color)?e_:"#222";X.push({key:q,color:eN,datum:W.datum,index:W.index,size:G,x:Q,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return eo.createElement(eo.Fragment,null,eo.createElement("svg",{ref:L,style:j4}),F&&eo.createElement(eo.Fragment,null,void 0!==p&&p&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:V,top:null==_?void 0:_.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j2},eo.createElement("svg",{width:"1",height:S,overflow:"visible"},eo.createElement("line",j1({x1:0,x2:0,y1:0,y2:S,strokeWidth:1.5,stroke:null!=(eh=null!=(ep=null==E?void 0:null==(em=E.gridStyles)?void 0:em.stroke)?ep:null==E?void 0:null==(ev=E.htmlLabel)?void 0:ev.color)?eh:"#222"},b)))),void 0!==d&&d&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==_?void 0:_.left,top:I,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j2},eo.createElement("svg",{width:C,height:"1",overflow:"visible"},eo.createElement("line",j1({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eg=null!=(ey=null==E?void 0:null==(eb=E.gridStyles)?void 0:eb.stroke)?ey:null==E?void 0:null==(ex=E.htmlLabel)?void 0:ex.color)?eg:"#222"},r)))),X.map(function(e,t){var n=e.x,r=e.y,i=j0(e,jQ);return eo.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j2},eo.createElement("svg",{overflow:"visible"},s(j1({x:0,y:0},i))))}),eo.createElement(R,j1({left:V,top:I,style:j1({},m_,{background:null!=(ew=null==E?void 0:E.backgroundColor)?ew:"white",boxShadow:"0 1px 2px "+(null!=E&&null!=(ej=E.htmlLabel)&&ej.color?(null==E?void 0:null==(ek=E.htmlLabel)?void 0:ek.color)+"55":"#22222255")},null==E?void 0:E.htmlLabel)},w),Z)))}function j8(e){var t=(0,eo.useContext)(wr);return null!=t&&t.tooltipOpen?eo.createElement(j6,e):null}j3.propTypes={isNearestDatum:mr().bool.isRequired},j6.propTypes={renderTooltip:mr().func.isRequired,renderGlyph:mr().func,snapTooltipToDatumX:mr().bool,snapTooltipToDatumY:mr().bool,showVerticalCrosshair:mr().bool,showHorizontalCrosshair:mr().bool,showDatumGlyph:mr().bool,showSeriesGlyphs:mr().bool},j8.propTypes={renderTooltip:mr().func.isRequired,renderGlyph:mr().func,snapTooltipToDatumX:mr().bool,snapTooltipToDatumY:mr().bool,showVerticalCrosshair:mr().bool,showHorizontalCrosshair:mr().bool,showDatumGlyph:mr().bool,showSeriesGlyphs:mr().bool};var j7=n(70390);function j9(e){var t=e.children,n=(0,eo.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return eo.createElement(wi.Provider,{value:n},t)}function ke(){return(ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mk);return mE({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),a=(0,eo.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:a}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,eo.useRef)(null),g=(0,eo.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,a=e.distanceX,o=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(xq(a)?a:1/0,2)+Math.pow(xq(o)?o:1/0,2));p(function(e){var a,o,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xq(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(a=null==u?void 0:null==(o=u.nearestDatum)?void 0:o.key)?a:"")!==r&&c0&&i>0&&g({width:p,height:i,margin:s})},[g,p,i,s]);var x=wo({source:wn});return(wy({dataKey:"nearest"===(void 0===f?"nearest":f)?wg:wv,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:kp}),g)?null==p||null==i?eo.createElement(j7.Z,null,function(t){return eo.createElement(km,kf({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?eo.createElement(kt,null,eo.createElement(km,e)):null==b?eo.createElement(j9,null,eo.createElement(km,e)):p>0&&i>0?eo.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&eo.createElement("rect",kf({x:s.left,y:s.top,width:p-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},x))):null:m&&v?eo.createElement(kd,{xScale:m,yScale:v,theme:h,initialDimensions:{width:p,height:i,margin:s},horizontal:a},eo.createElement(km,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function kv(e){return eo.createElement(w_,e)}function kg(e){return eo.createElement(wY,e)}function ky(){return(ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kE(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,s=e.radiusLeft,l=kk(e,kx),u=!!(l.onFocus||l.onBlur);return eo.createElement(eo.Fragment,null,t.map(function(e){var t=e.key,c=kk(e,kw);return null==n?eo.createElement("rect",kj({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):eo.createElement(w7.Z,kj({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:a,bottom:o,left:s},c,l))}))}function kS(){return(kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k_);return eo.createElement(jp,kO({},n,{colorAccessor:t,BarsComponent:kE}))};function kT(){return(kT=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"line",children:"Line"}),(0,ea.jsx)(fy,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,ea.jsx)(fy,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,ea.jsx)(fy,{disabled:p,value:"area",children:"Area"}),(0,ea.jsx)(fy,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Stack series offset"}),(0,ea.jsxs)(fb,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,ea.jsxs)(fy,{disabled:!s,value:"none",children:["None",(0,ea.jsx)(hs,{children:"zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!s,value:"diverging",children:["Diverging",(0,ea.jsx)(hs,{children:"non zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!s,value:"expand",children:["Expand",(0,ea.jsx)(hs,{children:"values sum to 1"})]}),(0,ea.jsxs)(fy,{disabled:!s,value:"wiggle",children:["Wiggle",(0,ea.jsx)(hs,{children:"stream graph"})]})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Curve shape"}),(0,ea.jsxs)(fb,{value:i,onValueChange:e=>a(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{disabled:!o,value:"linear",children:"Linear"}),(0,ea.jsx)(fy,{disabled:!o,value:"cardinal",children:"Cardinal"}),(0,ea.jsx)(fy,{disabled:!o,value:"step",children:"Step"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Axes"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,ea.jsxs)(fb,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"bottom",children:"Bottom"}),(0,ea.jsx)(fy,{value:"top",children:"Top"})]}),(0,ea.jsxs)(fb,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,ea.jsx)(fy,{value:"left",children:"Left"}),(0,ea.jsx)(fy,{value:"right",children:"Right"})]})]})]})]})})}let kJ=(0,eo.forwardRef)((e,t)=>{let{className:n}=e;return(0,ea.jsxs)("div",{ref:t,className:(0,eW.cx)("flex gap-1 items-center",n),children:[(0,ea.jsx)(kQ,{}),(0,ea.jsx)(kQ,{}),(0,ea.jsx)(kQ,{})]})});function kQ(){return(0,ea.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function k0(e){let{id:t,height:n,data:r,config:i,actionsLeft:a,isLoading:o,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,eo.useState)(!(0,hr.Tb)()&&!n.disableAnimations),{resolvedTheme:a}=(0,p5.F)(),o=(0,eo.useMemo)(()=>"dark"===a?gV:gz,[a]),[s,l]=(0,eo.useState)("center"),[u,c]=(0,eo.useState)([!1,!1]),[d,f]=u,[h,p]=(0,kX.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,v]=(0,kX.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[g,y]=(0,eo.useState)(!0),[b,x]=(0,eo.useState)(!0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!0),[S,C]=(0,eo.useState)(!0),[_,O]=(0,kX.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[M,T]=(0,kX.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[A,P]=(0,kX.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,eo.useMemo)(()=>n.chartType,[]),R=(0,eo.useMemo)(()=>n.curveType,[]),D=(0,eo.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(_),Z=["barstack","areastack"].includes(_),F=o.xyChartTheme.gridStyles.stroke,[z,V]=(0,eo.useState)(!1),[I,B]=(0,eo.useState)("star"),H=(0,eo.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:a,onPointerOut:o,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:a,onPointerOut:o,onPointerUp:s};return"star"===I?(0,ea.jsx)(gj,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===I?(0,ea.jsx)(gS,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===I?(0,ea.jsx)(gM,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,ea.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[I,F]),U=(0,eo.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==_&&"bargroup"!==_?[...t,{...e,timestamp:e.timestamp+kz(1)}]:t},[_,t]),W=(0,eo.useMemo)(()=>{if(U.length<2)return 0;let e=[U[0].timestamp,U[U.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys((0,kZ.Z)(t[0],"timestamp")),[t]),$=(0,eo.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,eo.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,eo.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]);return{id:e,accessors:Y,animationTrajectory:s,config:n,scales:(0,eo.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:U,curve:(0,eo.useMemo)(()=>"cardinal"===M&&gT.ZP||"step"===M&&vi.ZP||gA.Z,[M]),chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:_,curveType:M,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===_,renderBarStack:"barstack"===_,enableTooltipGlyph:z,renderTooltipGlyph:H,renderAreaSeries:"area"===_,renderAreaStack:"areastack"===_,renderLineSeries:"line"===_,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:g,showVerticalCrosshair:b,snapTooltipToDatum:!Z&&k,stackOffset:A,theme:o,margin:(0,eo.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]),xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:C,setChartType:O,setCurveType:T,setStackOffset:P,setEnableTooltipGlyph:V,setTooltipGlyphComponent:B,...r?{Annotation:x1,AreaSeries:wM,AreaStack:wG,Axis:w4,BarGroup:jc,BarSeries:jg,BarStack:jj,GlyphSeries:j_,Grid:jD,LineSeries:jI,Tooltip:j8,XYChart:km}:{AreaSeries:kv,AreaStack:kg,Axis:kb,BarGroup:kC,BarSeries:kM,BarStack:kA,Grid:kD,LineSeries:kL,Tooltip:j8,XYChart:km}}}(t,r,i),f=(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,ea.jsx)(kG,{...d})]}),(0,ea.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:a}),(0,ea.jsx)(gf,{children:e=>{let{width:t,height:n}=e;return o?(0,ea.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,ea.jsx)(kJ,{className:"scale-150"})}):0===r.length&&l?l:(0,ea.jsx)(gp,{...d,width:t,height:n})}})]});return"panel"===u?(0,ea.jsx)(nE,{className:"relative p-px",style:{height:n},children:f}):(0,ea.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var k1="text/plain",k2=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var k4="undefined"==typeof window?void 0:window,k3="undefined"==typeof globalThis?void 0:globalThis,k5=null!=(H=null==k4?void 0:k4.Promise)?H:null==k3?void 0:k3.Promise,k6="undefined"==typeof navigator?void 0:navigator,k8=null==k6?void 0:k6.clipboard;null==(U=null==k8?void 0:k8.read)||U.bind(k8),null==(W=null==k8?void 0:k8.readText)||W.bind(k8);var k7=null==(q=null==k8?void 0:k8.write)?void 0:q.bind(k8),k9=null==($=null==k8?void 0:k8.writeText)?void 0:$.bind(k8),Ee=null==k4?void 0:k4.ClipboardItem,Et=function(){if(!k5)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return k5}();function En(e,t,n){for(var r in k2("listener called"),e.success=!0,t){var i=t[r],a=n.clipboardData;a.setData(r,i),r===k1&&a.getData(r)!==i&&(k2("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Er(e){var t={success:!1},n=En.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function Ei(e,t){Ea(e);var n=Er(t);return Eo(),n}function Ea(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function Eo(){var e=document.getSelection();e&&e.removeAllRanges()}function Es(e){var t,n,r,i,a,o,s,l=k1 in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==k4?void 0:k4.clipboardData)&&void 0!==(null==k4?void 0:k4.clipboardData.setData)){if(!l)throw Error("No `text/plain` value was specified.");if(function(e){if(!k4.clipboardData)return!1;var t=k4.clipboardData.setData("Text",e);return t&&k2("writeTextIE worked"),t}(e[k1]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return Er(e)?(k2("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(k2('UA "Edge" => assuming success'),!0):Ei(document.body,e)?(k2("copyUsingTempSelection worked"),!0):((o=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),o.textContent="temporary element",document.body.appendChild(o),s=Ei(o,e),document.body.removeChild(o),s)?(k2("copyUsingTempElem worked"),!0):(t=e[k1],k2("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(k2("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),Ea(i),a=document.execCommand("copy"),Eo(),document.body.removeChild(n),!!a&&(k2("copyTextUsingDOM worked"),!0))}function El(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return Et.all(n).then(t=>{for(var n={},r=0;rEt.resolve(!0),Ed=Et.resolve(!1);function Ef(e){return new Et((t,n)=>{try{t(e())}catch(e){n(e)}})}function Eh(e){return Ef(()=>k9?(k2("Using `navigator.clipboard.writeText()`."),k9(e).catch(Ep)):Et.resolve(Ep(e)))}function Ep(e){var t;if(!Es(((t={})[k1]=e,t)))throw Error("writeText() failed")}function Em(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function Ev(e){return El(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),Ee?n(new Ee(t,i)):r("window.ClipboardItem is not defined")}))}let Eg={data:""},Ey=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Eg,Eb=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ex=/\/\*[^]*?\*\/|\s\s+|\n/g,Ew=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+o+";":r+="f"==a[1]?Ew(o,a):a+"{"+Ew(o,"k"==a[1]?"":t)+"}":"object"==typeof o?r+=Ew(o,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ew.p?Ew.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ej={},Ek=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Ek(e[n]);return t}return e},EE=(e,t,n,r,i)=>{var a;let o=Ek(e),s=Ej[o]||(Ej[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Ej[s]){let t=o!==e?e:(e=>{let t,n=[{}];for(;t=Eb.exec(e.replace(Ex,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);Ej[s]=Ew(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return a=Ej[s],-1==t.data.indexOf(a)&&(t.data=r?a+t.data:t.data+a),s},ES=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Ew(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function EC(e){let t=this||{},n=e.call?e(t.p):e;return EE(n.unshift?n.raw?ES(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Ey(t.target),t.g,t.o,t.k)}EC.bind({g:1});let E_,EO,EM,ET=EC.bind({k:1});function EA(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:EO&&EO()},s),n.o=/ *go\d+/.test(l),s.className=EC.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let u=e;return e[0]&&(u=s.as||e,delete s.as),EM&&u[0]&&EM(s),E_(u,s)}return t?t(i):i}}function EP(){return(EP=Object.assign||function(e){for(var t=1;t-1&&EI.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return EP({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||EU[t.type],style:EP({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return EP({},n,{toasts:i})},Eq=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),EP({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||ED()}));return EH({type:K.UPSERT_TOAST,toast:i}),i.id}},E$=function(e,t){return Eq("blank")(e,t)};E$.error=Eq("error"),E$.success=Eq("success"),E$.loading=Eq("loading"),E$.custom=Eq("custom"),E$.dismiss=function(e){EH({type:K.DISMISS_TOAST,toastId:e})},E$.remove=function(e){return EH({type:K.REMOVE_TOAST,toastId:e})},E$.promise=function(e,t,n){var r=E$.loading(t.loading,EP({},n,null==n?void 0:n.loading));return e.then(function(e){return E$.success(ER(t.success,e),EP({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){E$.error(ER(t.error,e),EP({id:r},n,null==n?void 0:n.error))}),e};var EK=function(e){var t=EW(e),n=t.toasts,r=t.pausedAt;(0,eo.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&E$.dismiss(t.id);return}return setTimeout(function(){return E$.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,eo.useMemo)(function(){return{startPause:function(){EH({type:K.START_PAUSE,time:Date.now()})},endPause:function(){r&&EH({type:K.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EH({type:K.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},a=i.reverseOrder,o=i.gutter,s=void 0===o?8:o,l=i.defaultPosition,u=n.filter(function(t){return(t.position||l)===(e.position||l)&&t.height}),c=u.findIndex(function(t){return t.id===e.id}),d=u.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Sy=function(){return e},e}x=eo.createElement,Ew.p=void 0,E_=x,EO=void 0,EM=void 0;var Sb=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return EP({left:0,right:0,display:"flex",position:"absolute",transition:EL()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},Sx=EC(Sy()),Sw=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,a=e.gutter,o=e.children,s=e.containerStyle,l=e.containerClassName,u=EK(i),c=u.toasts,d=u.handlers;return(0,eo.createElement)("div",{style:EP({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=Sb(i,d.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,eo.createElement)("div",{ref:l,className:e.visible?Sx:"",key:e.id,style:s},"custom"===e.type?ER(e.message,e):o?o(e):(0,eo.createElement)(Sg,{toast:e,position:i}))}))};function Sj(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,ea.jsx)(nw,{className:"flex items-center",color:"subtle",children:t}),(0,ea.jsx)(l_,{content:n,children:(0,ea.jsx)(nw,{ellipsis:!0,className:"flex-1",children:n})}),(0,ea.jsx)("div",{className:"flex items-center pl-1",children:(0,ea.jsx)(lM,{icon:"hover",size:"none",onClick:e=>{E$.dismiss(i)},children:(0,ea.jsx)(lT.PcV,{})})})]}),r&&(0,ea.jsx)("div",{className:"pb-1",children:(0,ea.jsx)(uS,{children:(0,ea.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,ea.jsx)(nw,{color:"subtle",size:"14",children:r})})})})]})}let Sk=e=>{let{title:t,body:n,icon:r,options:i={}}=e;E$(e=>(0,ea.jsx)(Sj,{toastId:e.id,title:t,body:n,icon:r}),SC(i))};function SE(e){let{title:t,body:n,options:r}=e;Sk({title:t,body:n,icon:(0,ea.jsx)(lT.yar,{className:"text-green-600"}),options:r})}function SS(e){let{title:t,body:n,options:r}=e;Sk({title:t,body:n,icon:(0,ea.jsx)(lT.T80,{className:"text-red-600"}),options:r})}function SC(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eW.cx)(nk(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(lT.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(lT.Jsc,{className:"w-5 text-red-600"})})},...t}}function S_(){return(0,ea.jsx)(Sw,{toastOptions:SC(),containerStyle:{zIndex:20}})}let SO=(e,t)=>{Sk({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(lT.vtB,{})}),Eh(e)},SM=(e,t,n)=>{var r;Sk({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(lT.vtB,{})}),r=[new ClipboardItem({[t]:e})],Ef(()=>k7&&Ee?(k2("Using `navigator.clipboard.write()`."),Et.all(r.map(Ev)).then(e=>k7(e).then(Ec).catch(e=>{if(!Em(r,k1)&&!Em(r,"text/html"))throw e;return Ed}))):Ed).then(e=>{var t;return e?Eu:(Em(r,k1)||k2("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call suppressWarnings() to suppress this warning."),El((t=r[0]).types,function(e){return t.getType(e).then(e=>new Et((t,n)=>{var r=new FileReader;r.addEventListener("load",()=>{var e=r.result;"string"==typeof e?t(e):n("could not convert blob to string")}),r.readAsText(e)}))}).then(e=>{if(!Es(e))throw Error("write() failed")}))})},ST=e=>{let{text:t,title:n,body:r,icon:i,options:a}=e;Sk({title:n,body:r,icon:i||(0,ea.jsx)(lT.vtB,{}),options:a}),Eh(t)};function SA(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function SP(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function SN(e,t,n){return t?"".concat(e," ").concat(SA(t,n)):"".concat(e)}function SR(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let SD={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},SL={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},SZ={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function SF(e){return e?SD[e]:void 0}function Sz(e){return e?SZ[e]:void 0}function SV(e){return e&&["ip","hostIp"].includes(e)?20:12}function SI(e){let{value:t,displayValue:n,type:r,label:i,href:a,maxLength:o,size:s,scaleSize:l,weight:u,font:c,color:d="contrast",className:f,siascanUrl:h,contextMenu:p}=e,m=i||(r?SL[r]:void 0),v=o||SV(r),g=SP(t),y=n||g,b="".concat(null==y?void 0:y.slice(0,v)).concat(((null==y?void 0:y.length)||0)>v?"...":"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",f),children:[a?(0,ea.jsx)(db,{href:a,underline:"hover",size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}):(0,ea.jsx)(nw,{size:s,scaleSize:l,color:d,weight:u,font:c,ellipsis:!0,children:b}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:p||(0,ea.jsx)(SB,{cleanValue:g,label:m,size:s,siascanUrl:h,type:r})})]})}function SB(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:a,type:o}=e;return(0,ea.jsxs)(dt,{trigger:(0,ea.jsx)(lM,{size:"none",variant:"ghost",children:(0,ea.jsx)(lT.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,ea.jsxs)(dn,{onSelect:e=>{SO(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(lT.olJ,{})}),"Copy to clipboard"]}),a&&o&&(t=o)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,ea.jsx)(db,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(a,o,r),className:"block w-full",underline:"none",children:(0,ea.jsxs)(dn,{onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(lT.V8Q,{})}),"View on Siascan"]})})]})}function SH(e){let{value:t,displayValue:n,type:r,href:i,maxLength:a,size:o,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=a||SV(r),f=SP(t),h=n||f,p="".concat(null==h?void 0:h.slice(0,d)).concat(((null==h?void 0:h.length)||0)>d?"...":"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",c),children:[i?(0,ea.jsx)(db,{href:i,underline:"hover",size:o,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,ea.jsx)(nw,{size:o,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function SU(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change"}=e,o=(0,ge.yF)(String(t),{units:"SF"});return(0,ea.jsx)(l_,{content:(i?"".concat(i," "):"")+o,children:(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===a?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===a&&t>0?"+":"",o]})})}function SW(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",color:o,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=o||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===a?"".concat(f).concat((0,ge.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,ge.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,ea.jsx)(nw,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,ea.jsx)(l_,{content:(i?"".concat(i," "):"")+(0,ge.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function Sq(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:a="",variant:o="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,hi.BW)(),{settings:{currency:d}}=(0,hr.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===o?"+":t.isLessThan(0)?"-":"",h=i||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(he())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,ea.jsx)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(S$(p.absoluteValue(),m))});return u?(0,ea.jsx)(l_,{content:(a?"".concat(a," "):"")+"".concat(f).concat(d.prefix).concat(S$(p.absoluteValue(),l)),children:v}):v}function S$(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function SK(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",fixed:o=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,hr.Hv)(),v=(0,hi.BW)(),g=(0,eo.useMemo)(()=>(0,ea.jsx)(SW,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:o,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,a,o,u,c,d,f,m,h,p]),y=(0,eo.useMemo)(()=>(0,ea.jsx)(Sq,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,a,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,ea.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,ea.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function SY(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:a="change",color:o,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,ea.jsx)(l_,{content:(i?"".concat(i," "):"")+s(t),children:(0,ea.jsx)(nw,{size:n,weight:r,font:"mono",ellipsis:!0,color:o||u,children:"change"===a?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var SX=n(19510),SG=n(89930),SJ=n(62875),SQ=1/0,S0=function(e){var t,n=(t=e)?(t=(0,SJ.Z)(t))===SQ||t===-SQ?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},S1=Math.min,S2=function(e,t){if((e=S0(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=S1(e,4294967295);t="function"==typeof(n=t)?n:SG.Z,e-=4294967295;for(var a=(0,SX.Z)(i,t);++r(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex gap-4 p-3.5",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,ea.jsx)(hp,{className:"w-[60px] h-[50px]"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ea.jsx)(hp,{className:"w-[90%] h-[20px]"}),(0,ea.jsx)(hp,{className:"w-[140px] h-[14px]"})]})]},e))})}var S3=n(29193),S5=n(34864);function S6(e){let{type:t,label:n,initials:r,href:i,src:a,shape:o}=e,s=(0,ea.jsx)(lU,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:a,shape:o||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,ea.jsx)(db,{href:i,underline:"none",children:s})||s;return t?(0,ea.jsx)(l_,{content:n||SF(t),children:(0,ea.jsx)("div",{className:"",children:l})}):l}function S8(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:a,href:o,onClick:s,children:l}=e;return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex gap-4 p-4",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,ea.jsx)(S6,{label:t,type:n,shape:i,src:r,initials:a||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:o}),l]})}function S7(e){let t=e.sc,n=e.sf,r=e.hash&&(0,ea.jsx)(SI,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&Sz(e.txType)||SF(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?(0,S5.Z)(i):i;return(0,ea.jsx)(S8,{...e,children:(0,ea.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,ea.jsx)(nw,{color:"subtle",weight:"semibold",children:(0,ea.jsx)(db,{href:e.blockHref,underline:"none",children:(0,ge.yF)(e.height)})}),a?(0,ea.jsx)(l_,{content:a,children:(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:a})}):(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:r})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,ea.jsx)(SK,{variant:e.scVariant,value:t}),!!n&&(0,ea.jsx)(SU,{variant:e.sfVariant,value:n})]})]}),(0,ea.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ea.jsx)("div",{className:"flex gap-1",children:!!a&&r}),(0,ea.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(lT.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,ea.jsx)(nw,{color:"subtle",children:(0,S3.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function S9(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:a,emptyMessage:o,skeletonCount:s=10,children:l}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||l||(c="skeleton"),((null==r?void 0:r.length)||l)&&(c="currentData"),(0,ea.jsx)(nE,{children:(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,ea.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,ea.jsx)("div",{className:"flex-1"}),n]}),(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(a||(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center justify-center h-[84px]",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,ea.jsx)(nw,{size:"18",color:"subtle",children:o||"No results"})})),"currentData"===c&&(l||(null==r?void 0:r.map((e,t)=>(0,ea.jsx)(S7,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,ea.jsx)(S4,{skeletonCount:s})]})]})})}function Ce(e){let{label:t,entityType:n,entityValue:r,actions:i,href:a,value:o,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:v}=e,g=(0,ea.jsx)(nw,{color:"subtle",size:"12",className:"h-6",children:f});return(0,ea.jsx)(nE,{children:(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",v?"cursor-pointer":""),onClick:v,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,ea.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?(0,S5.Z)(t):t}),i]}),(0,ea.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,ea.jsx)(hp,{className:"h-12 w-[150px]"}):(0,ea.jsxs)(ea.Fragment,{children:[void 0!==u&&(0,ea.jsx)(SK,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,ea.jsx)(SU,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,ea.jsx)(SI,{scaleSize:p,label:SF(n),href:a,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,ea.jsx)(SI,{scaleSize:p,label:"hash",value:l}),void 0!==o&&(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:o})]}),g?(0,ea.jsx)("div",{className:"mt-1",children:m?(0,ea.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,ea.jsx)(hp,{className:"h-4 w-[100px]"})}):h?(0,ea.jsx)(l_,{content:h,children:g}):g}):null]})]})})})}function Ct(e){let{title:t,actions:n,name:r}=e;return(0,ea.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,ea.jsx)(dv,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Cn(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],a=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,ea.jsx)(nw,{size:"14",color:"red",children:a}):null}function Cr(e){let{form:t,title:n,actions:r,name:i,className:a,wrap:o}=e,s=t.formState.errors[i];return n||s?(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-x-4 overflow-hidden",o?"flex-wrap":"",a),children:[(0,ea.jsx)(Ct,{name:i,title:n,actions:r}),(0,ea.jsx)(Cn,{form:t,name:i})]}):null}function Ci(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(Cr,{...n}),t]})}function Ca(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,ea.jsx)(ea.Fragment,{children:(0,ea.jsx)(lM,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,ea.jsx)(kJ,{}):i})})}function Co(e){let{formik:t,title:n,name:r,placeholder:i,disabled:a,readOnly:o,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,ea.jsx)(Cd,{formik:t,title:n,name:r,children:"number"===g?(0,ea.jsx)(Cl,{formik:t,name:r,units:v,disabled:a,readOnly:o,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,ea.jsx)(Cu,{formik:t,name:r,disabled:a,readOnly:o,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,ea.jsx)(Cs,{formik:t,name:r,autoComplete:s,disabled:a,readOnly:o,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function Cs(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:a,readOnly:o,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,ea.jsx)(fZ,{id:n,name:n,autoComplete:i,disabled:a,spellCheck:l,placeholder:r,tabIndex:s,readOnly:o||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function Cl(e){let{formik:t,name:n,units:r,disabled:i,readOnly:a,tabIndex:o,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,ea.jsx)(hn,{id:n,units:r,name:n,placeholder:new(he())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:a||t.isSubmitting,tabIndex:o,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function Cu(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:a,placeholder:o,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,ea.jsx)(ho,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:a,onFocus:()=>t.setFieldTouched(n),sc:new(he())(t.values[n]),placeholder:new(he())(o),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Cc(e){var t,n;let{formik:r,title:i,name:a,withStatusError:o=!1,className:s}=e,l=r.errors[a]&&r.touched[a]||o&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[a]||o&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-4",s),children:[i?(0,ea.jsx)(dv,{htmlFor:a,children:i}):(0,ea.jsx)("div",{}),l&&(0,ea.jsx)(nw,{size:"14",color:"red",children:u})]})}function Cd(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(Cc,{...n}),t]})}function Cf(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:a=!0,children:o}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,ea.jsx)(nw,{color:"red",children:n.status.error}),(0,ea.jsx)(lM,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,ea.jsx)(kJ,{}):o})]})}let Ch="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Cp(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Cm(e){return"nodeType"in e}function Cv(e){var t,n;return e?Cp(e)?e:Cm(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Cg(e){let{Document:t}=Cv(e);return e instanceof t}function Cy(e){return!Cp(e)&&e instanceof Cv(e).HTMLElement}function Cb(e){return e instanceof Cv(e).SVGElement}function Cx(e){return e?Cp(e)?e.document:Cm(e)?Cg(e)?e:Cy(e)||Cb(e)?e.ownerDocument:document:document:document}let Cw=Ch?eo.useLayoutEffect:eo.useEffect;function Cj(e){let t=(0,eo.useRef)(e);return Cw(()=>{t.current=e}),(0,eo.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function CE(e,t){let n=(0,eo.useRef)();return(0,eo.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function CS(e){let t=Cj(e),n=(0,eo.useRef)(null),r=(0,eo.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function CC(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e},[e]),t.current}let C_={};function CO(e,t){return(0,eo.useMemo)(()=>{if(t)return t;let n=null==C_[e]?0:C_[e]+1;return C_[e]=n,e+"-"+n},[e,t])}function CM(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let CT=CM(1),CA=CM(-1);function CP(e){if(!e)return!1;let{KeyboardEvent:t}=Cv(e.target);return t&&e instanceof t}function CN(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=Cv(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let CR=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[CR.Translate.toString(e),CR.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),CD="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",CL={display:"none"};function CZ(e){let{id:t,value:n}=e;return eo.createElement("div",{id:t,style:CL},n)}function CF(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return eo.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let Cz=(0,eo.createContext)(null),CV={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},CI={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CB(e){let{announcements:t=CI,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=CV}=e,{announce:a,announcement:o}=function(){let[e,t]=(0,eo.useState)("");return{announce:(0,eo.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=CO("DndLiveRegion"),[l,u]=(0,eo.useState)(!1);if((0,eo.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,eo.useContext)(Cz);(0,eo.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,eo.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!l)return null;let c=eo.createElement(eo.Fragment,null,eo.createElement(CZ,{id:r,value:i.draggable}),eo.createElement(CF,{id:s,announcement:o}));return n?(0,tD.createPortal)(c,n):c}function CH(){}function CU(e,t){return(0,eo.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(w=Y||(Y={})).DragStart="dragStart",w.DragMove="dragMove",w.DragEnd="dragEnd",w.DragCancel="dragCancel",w.DragOver="dragOver",w.RegisterDroppable="registerDroppable",w.SetDroppableDisabled="setDroppableDisabled",w.UnregisterDroppable="unregisterDroppable";let CW=Object.freeze({x:0,y:0});function Cq(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let C$=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(r0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Cq)};function CK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:CW}let CY=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function CX(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let CG={ignoreTransform:!1};function CJ(e,t){void 0===t&&(t=CG);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=Cv(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=CX(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),u=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function CQ(e){return CJ(e,{ignoreTransform:!0})}function C0(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if(Cg(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Cy(i)||Cb(i)||n.includes(i))return n;let o=Cv(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=Cv(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,o)&&n.push(i),void 0===(a=o)&&(a=Cv(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function C1(e){let[t]=C0(e,1);return null!=t?t:null}function C2(e){return Ch&&e?Cp(e)?e:Cm(e)?Cg(e)||e===Cx(e).scrollingElement?window:Cy(e)?e:null:null:null}function C4(e){return Cp(e)?e.scrollX:e.scrollLeft}function C3(e){return Cp(e)?e.scrollY:e.scrollTop}function C5(e){return{x:C4(e),y:C3(e)}}function C6(e){return!!Ch&&!!e&&e===document.scrollingElement}function C8(e){let t={x:0,y:0},n=C6(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(j=X||(X={}))[j.Forward=1]="Forward",j[j.Backward=-1]="Backward";let C7={x:.2,y:.2};function C9(e){return e.reduce((e,t)=>CT(e,C5(t)),CW)}function _e(e,t){if(void 0===t&&(t=CJ),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);C1(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let _t=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+C4(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+C3(t),0)}]];class _n{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=C0(t),r=C9(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,_t))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),o=r[t]-i;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class _r{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function _i(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function _a(e){e.preventDefault()}function _o(e){e.stopPropagation()}(k=G||(G={})).Click="click",k.DragStart="dragstart",k.Keydown="keydown",k.ContextMenu="contextmenu",k.Resize="resize",k.SelectionChange="selectionchange",k.VisibilityChange="visibilitychange",(E=J||(J={})).Space="Space",E.Down="ArrowDown",E.Right="ArrowRight",E.Left="ArrowLeft",E.Up="ArrowUp",E.Esc="Escape",E.Enter="Enter";let _s={start:[J.Space,J.Enter],cancel:[J.Esc],end:[J.Space,J.Enter]},_l=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case J.Right:return{...n,x:n.x+25};case J.Left:return{...n,x:n.x-25};case J.Down:return{...n,y:n.y+25};case J.Up:return{...n,y:n.y-25}}};class _u{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new _r(Cx(t)),this.windowListeners=new _r(Cv(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(G.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&_e(n),t(CW)}handleKeyDown(e){if(CP(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=_s,coordinateGetter:a=_l,scrollBehavior:o="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:CW;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=CA(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=C8(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===J.Right?h.right-h.width/2:h.right,Math.max(i===J.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===J.Down?h.bottom-h.height/2:h.bottom,Math.max(i===J.Down?h.top:h.top+h.height/2,c.y))},m=i===J.Right&&!s||i===J.Left&&!l,v=i===J.Down&&!u||i===J.Up&&!a;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,a=i===J.Right&&e<=d.x||i===J.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===J.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(v&&p.y!==c.y){let e=n.scrollTop+t.y,a=i===J.Down&&e<=d.y||i===J.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===J.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,CT(CA(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function _c(e){return!!(e&&"distance"in e)}function _d(e){return!!(e&&"delay"in e)}_u.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=_s,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class _f{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=Cv(e);return e instanceof t?e:Cx(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=Cx(a),this.documentListeners=new _r(this.document),this.listeners=new _r(n),this.windowListeners=new _r(Cv(a)),this.initialCoordinates=null!=(r=CN(i))?r:CW,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.DragStart,_a),this.windowListeners.add(G.VisibilityChange,this.handleCancel),this.windowListeners.add(G.ContextMenu,_a),this.documentListeners.add(G.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_d(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(_c(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(G.Click,_o,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(G.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!r)return;let s=null!=(t=CN(e))?t:CW,l=CA(r,s);if(!n&&o){if(_c(o)){if(null!=o.tolerance&&_i(l,o.tolerance))return this.handleCancel();if(_i(l,o.distance))return this.handleStart()}return _d(o)&&_i(l,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===J.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let _h={move:{name:"pointermove"},end:{name:"pointerup"}};class _p extends _f{constructor(e){let{event:t}=e;super(e,_h,Cx(t.target))}}_p.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let _m={move:{name:"mousemove"},end:{name:"mouseup"}};(S=Q||(Q={}))[S.RightClick=2]="RightClick";class _v extends _f{constructor(e){super(e,_m,Cx(e.event.target))}}_v.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Q.RightClick&&(null==r||r({event:n}),!0)}}];let _g={move:{name:"touchmove"},end:{name:"touchend"}};class _y extends _f{constructor(e){super(e,_g)}static setup(){return window.addEventListener(_g.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(_g.move.name,e)};function e(){}}}_y.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(C=ee||(ee={}))[C.Pointer=0]="Pointer",C[C.DraggableRect=1]="DraggableRect",(_=et||(et={}))[_.TreeOrder=0]="TreeOrder",_[_.ReversedTreeOrder=1]="ReversedTreeOrder";let _b={x:{[X.Backward]:!1,[X.Forward]:!1},y:{[X.Backward]:!1,[X.Forward]:!1}};(O=en||(en={}))[O.Always=0]="Always",O[O.BeforeDragging=1]="BeforeDragging",O[O.WhileDragging=2]="WhileDragging",(er||(er={})).Optimized="optimized";let _x=new Map;function _w(e,t){return CE(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function _j(e){let{callback:t,disabled:n}=e,r=Cj(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function _k(e){return new _n(CJ(e),e)}function _E(e,t,n){void 0===t&&(t=_k);let[r,i]=(0,eo.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a},null),a=function(e){let{callback:t,disabled:n}=e,r=Cj(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=_j({callback:i});return Cw(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let _S=[];function _C(e,t){void 0===t&&(t=[]);let n=(0,eo.useRef)(null);return(0,eo.useEffect)(()=>{n.current=null},t),(0,eo.useEffect)(()=>{let t=e!==CW;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?CA(e,n.current):CW}function __(e){return(0,eo.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let _O=[];function _M(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Cy(t)?t:e}let _T=[{sensor:_p,options:{}},{sensor:_u,options:{}}],_A={current:{}},_P={draggable:{measure:CQ},droppable:{measure:CQ,strategy:en.WhileDragging,frequency:er.Optimized},dragOverlay:{measure:CJ}};class _N extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let _R={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _N,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CH},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_P,measureDroppableContainers:CH,windowRect:null,measuringScheduled:!1},_D={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CH,draggableNodes:new Map,over:null,measureDroppableContainers:CH},_L=(0,eo.createContext)(_D),_Z=(0,eo.createContext)(_R);function _F(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _N}}}function _z(e,t){switch(t.type){case Y.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Y.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Y.DragEnd:case Y.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Y.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new _N(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Y.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new _N(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Y.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new _N(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function _V(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,eo.useContext)(_L),a=CC(r),o=CC(null==n?void 0:n.id);return(0,eo.useEffect)(()=>{if(!t&&!r&&a&&null!=o){if(!CP(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=e.matches(CD)?e:e.querySelector(CD);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function _I(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let _B=(0,eo.createContext)({...CW,scaleX:1,scaleY:1});(M=ei||(ei={}))[M.Uninitialized=0]="Uninitialized",M[M.Initializing=1]="Initializing",M[M.Initialized=2]="Initialized";let _H=(0,eo.memo)(function(e){var t,n,r,i,a,o;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=_T,collisionDetection:f=C$,measuring:h,modifiers:p,...m}=e,[v,g]=(0,eo.useReducer)(_z,void 0,_F),[y,b]=function(){let[e]=(0,eo.useState)(()=>new Set),t=(0,eo.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,eo.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[x,w]=(0,eo.useState)(ei.Uninitialized),j=x===ei.Initialized,{draggable:{active:k,nodes:E,translate:S},droppable:{containers:C}}=v,_=k?E.get(k):null,O=(0,eo.useRef)({initial:null,translated:null}),M=(0,eo.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==_?void 0:_.data)?e:_A,rect:O}:null},[k,_]),T=(0,eo.useRef)(null),[A,P]=(0,eo.useState)(null),[N,R]=(0,eo.useState)(null),D=Ck(m,Object.values(m)),L=CO("DndDescribedBy",s),Z=(0,eo.useMemo)(()=>C.getEnabled(),[C]),F=(0,eo.useMemo)(()=>({draggable:{..._P.draggable,...null==h?void 0:h.draggable},droppable:{..._P.droppable,...null==h?void 0:h.droppable},dragOverlay:{..._P.dragOverlay,...null==h?void 0:h.dragOverlay}}),[null==h?void 0:h.draggable,null==h?void 0:h.droppable,null==h?void 0:h.dragOverlay]),{droppableRects:z,measureDroppableContainers:V,measuringScheduled:I}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,eo.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,eo.useRef)(e),d=function(){switch(u){case en.Always:return!1;case en.BeforeDragging:return n;default:return!n}}(),f=Ck(d),h=(0,eo.useCallback)(function(e){void 0===e&&(e=[]),f.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,eo.useRef)(null),m=CE(t=>{if(d&&!n)return _x;if(!t||t===_x||c.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new _n(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,l]);return(0,eo.useEffect)(()=>{c.current=e},[e]),(0,eo.useEffect)(()=>{d||h()},[n,d]),(0,eo.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,eo.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(Z,{dragging:j,dependencies:[S.x,S.y],config:F.droppable}),B=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return CE(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),H=(0,eo.useMemo)(()=>N?CN(N):null,[N]),U=function(){let e=(null==A?void 0:A.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,n=j&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),W=_w(B,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,eo.useRef)(!1),{x:o,y:s}="boolean"==typeof i?{x:i,y:i}:i;Cw(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=CK(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=C1(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}({activeNode:k?E.get(k):null,config:U.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let q=_E(B,F.draggable.measure,W),$=_E(B?B.parentElement:null),K=(0,eo.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=C.getNodeFor(null==(t=K.current.over)?void 0:t.id),J=function(e){let{measure:t}=e,[n,r]=(0,eo.useState)(null),i=_j({callback:(0,eo.useCallback)(e=>{for(let{target:n}of e)if(Cy(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=CS((0,eo.useCallback)(e=>{let n=_M(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,eo.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:F.dragOverlay.measure}),Q=null!=(n=J.nodeRef.current)?n:B,er=j?null!=(r=J.rect)?r:q:null,ea=!!(J.nodeRef.current&&J.rect),es=function(e){let t=_w(e);return CK(e,t)}(ea?null:q),el=__(Q?Cv(Q):null),eu=function(e){let t=(0,eo.useRef)(e),n=CE(n=>e?n&&n!==_S&&e&&t.current&&e.parentNode===t.current.parentNode?n:C0(e):_S,[e]);return(0,eo.useEffect)(()=>{t.current=e},[e]),n}(j?null!=G?G:B:null),ec=function(e,t){void 0===t&&(t=CJ);let[n]=e,r=__(n?Cv(n):null),[i,a]=(0,eo.useReducer)(function(){return e.length?e.map(e=>C6(e)?r:new _n(t(e),e)):_O},_O),o=_j({callback:a});return e.length>0&&i===_O&&a(),Cw(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),a())},[e]),i}(eu),ed=_I(p,{transform:{x:S.x-es.x,y:S.y-es.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:q,containerNodeRect:$,draggingNodeRect:er,over:K.current.over,overlayNodeRect:J.rect,scrollableAncestors:eu,scrollableAncestorRects:ec,windowRect:el}),ef=H?CT(H,S):null,eh=function(e){let[t,n]=(0,eo.useState)(null),r=(0,eo.useRef)(e),i=(0,eo.useCallback)(e=>{let t=C2(e.target);t&&n(e=>e?(e.set(t,C5(t)),new Map(e)):null)},[]);return(0,eo.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=C2(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,C5(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=C2(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,eo.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>CT(e,t),CW):C9(e):CW,[e,t])}(eu),ep=_C(eh),em=_C(eh,[q]),ev=CT(ed,ep),eg=er?CY(er,ed):null,ey=M&&eg?f({active:M,collisionRect:eg,droppableRects:z,droppableContainers:Z,pointerCoordinates:ef}):null,eb=function(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}(ey,"id"),[ex,ew]=(0,eo.useState)(null),ej=(a=ea?ed:CT(ed,em),o=null!=(i=null==ex?void 0:ex.rect)?i:null,{...a,scaleX:o&&q?o.width/q.width:1,scaleY:o&&q?o.height/q.height:1}),ek=(0,eo.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==T.current)return;let i=E.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:K,onStart(e){let t=T.current;if(null==t)return;let n=E.get(t);if(!n)return;let{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:O}};(0,tD.unstable_batchedUpdates)(()=>{null==r||r(i),w(ei.Initializing),g({type:Y.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){g({type:Y.DragMove,coordinates:e})},onEnd:s(Y.DragEnd),onCancel:s(Y.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=K.current,o=null;if(t&&i){let{cancelDrop:s}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===Y.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(e=Y.DragCancel)}T.current=null,(0,tD.unstable_batchedUpdates)(()=>{g({type:e}),w(ei.Uninitialized),ew(null),P(null),R(null);let t=e===Y.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=D.current[t];null==e||e(o),y({type:t,event:o})}})}}(0,tD.unstable_batchedUpdates)(()=>{P(o),R(e.nativeEvent)})},[E]),eE=(0,eo.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=E.get(r);null!==T.current||!a||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:a})||(i.dndKit={capturedBy:t.sensor},T.current=r,ek(n,t))},[E,ek]),eS=(0,eo.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:eE(e.handler,t)}))]},[]),[d,eE]);(0,eo.useEffect)(()=>{if(!Ch)return;let e=d.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},d.map(e=>{let{sensor:t}=e;return t})),Cw(()=>{q&&x===ei.Initializing&&w(ei.Initialized)},[q,x]),(0,eo.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=K.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ev.x,y:ev.y},over:i};(0,tD.unstable_batchedUpdates)(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[ev.x,ev.y]),(0,eo.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=K.current;if(!e||null==T.current||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(eb),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,tD.unstable_batchedUpdates)(()=>{ew(s),null==a||a(l),y({type:"onDragOver",event:l})})},[eb]),Cw(()=>{K.current={activatorEvent:N,active:M,activeNode:B,collisionRect:eg,collisions:ey,droppableRects:z,draggableNodes:E,draggingNode:Q,draggingNodeRect:er,droppableContainers:C,over:ex,scrollableAncestors:eu,scrollAdjustedTranslate:ev},O.current={initial:er,translated:eg}},[M,B,ey,eg,E,Q,er,z,C,ex,eu,ev]),function(e){let{acceleration:t,activator:n=ee.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=et.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=CC(t);return CE(e=>{if(n||!r||!e)return _b;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[X.Backward]:e.x[X.Backward]||-1===i.x,[X.Forward]:e.x[X.Forward]||1===i.x},y:{[X.Backward]:e.y[X.Backward]||-1===i.y,[X.Forward]:e.y[X.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!a}),[p,m]=function(){let e=(0,eo.useRef)(null);return[(0,eo.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,eo.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,eo.useRef)({x:0,y:0}),g=(0,eo.useRef)({x:0,y:0}),y=(0,eo.useMemo)(()=>{switch(n){case ee.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ee.DraggableRect:return i}},[n,i,l]),b=(0,eo.useRef)(null),x=(0,eo.useCallback)(()=>{let e=b.current;if(!e)return;let t=v.current.x*g.current.x,n=v.current.y*g.current.y;e.scrollBy(t,n)},[]),w=(0,eo.useMemo)(()=>s===et.TreeOrder?[...u].reverse():u,[s,u]);(0,eo.useEffect)(()=>{if(!a||!u.length||!y){m();return}for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=C7);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=C8(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&a<=t.top+m.height?(h.y=X.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=X.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=X.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(h.x=X.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}(e,n,y,t,f);for(let e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){m(),b.current=e,p(x,o),v.current=a,g.current=i;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,x,r,m,a,o,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:S,draggingRect:eg,pointerCoordinates:ef,scrollableAncestors:eu,scrollableAncestorRects:ec});let eC=(0,eo.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:q,activatorEvent:N,collisions:ey,containerNodeRect:$,dragOverlay:J,draggableNodes:E,droppableContainers:C,droppableRects:z,over:ex,measureDroppableContainers:V,scrollableAncestors:eu,scrollableAncestorRects:ec,measuringConfiguration:F,measuringScheduled:I,windowRect:el}),[M,B,q,N,ey,$,J,E,C,z,ex,V,eu,ec,F,I,el]),e_=(0,eo.useMemo)(()=>({activatorEvent:N,activators:eS,active:M,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:E,over:ex,measureDroppableContainers:V}),[N,eS,M,q,g,L,E,ex,V]);return eo.createElement(Cz.Provider,{value:b},eo.createElement(_L.Provider,{value:e_},eo.createElement(_Z.Provider,{value:eC},eo.createElement(_B.Provider,{value:ej},c)),eo.createElement(_V,{disabled:(null==l?void 0:l.restoreFocus)===!1})),eo.createElement(CB,{...l,hiddenTextDescribedById:L}))}),_U=(0,eo.createContext)(null),_W="button",_q={timeout:25};function _$(e){let{animation:t,children:n}=e,[r,i]=(0,eo.useState)(null),[a,o]=(0,eo.useState)(null),s=CC(n);return n||r||!s||i(s),Cw(()=>{if(!a)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),eo.createElement(eo.Fragment,null,n,r?(0,eo.cloneElement)(r,{ref:o}):null)}let _K={x:0,y:0,scaleX:1,scaleY:1};function _Y(e){let{children:t}=e;return eo.createElement(_L.Provider,{value:_D},eo.createElement(_B.Provider,{value:_K},t))}let _X={position:"fixed",touchAction:"none"},_G=e=>CP(e)?"transform 250ms ease":void 0,_J=(0,eo.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:l,transform:u,transition:c=_G}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={..._X,width:s.width,height:s.height,top:s.top,left:s.left,transform:CR.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=CN(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,s):void 0,transition:"function"==typeof c?c(r):c,...l};return eo.createElement(n,{className:o,style:f,ref:t},a)}),_Q={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:CR.Transform.toString(t)},{transform:CR.Transform.toString(n)}]},sideEffects:(T={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,r={},{styles:i,className:a}=T;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&n.node.classList.add(a.dragOverlay),function(){for(let[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}})},_0=0,_1=eo.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:j}=(0,eo.useContext)(_Z),k=(0,eo.useContext)(_B),E=(t=null==f?void 0:f.id,(0,eo.useMemo)(()=>{if(null!=t)return++_0},[t])),S=_I(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:k,windowRect:j}),C=_w(h),_=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Cj((e,a)=>{if(null===t)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let l=_M(a);if(!l)return;let{transform:u}=Cv(a).getComputedStyle(a),c=CX(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={..._Q,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...l}=e;if(!t)return;let u={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},c={scaleX:1!==s.scaleX?a.rect.width*s.scaleX/o.rect.width:1,scaleY:1!==s.scaleY?a.rect.height*s.scaleY/o.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==r?void 0:r({active:a,dragOverlay:o,...l}),v=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==m||m(),e()}})}}(t);return _e(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:b}),O=C?g.setRef:void 0;return eo.createElement(_Y,null,eo.createElement(_$,{animation:_},f&&E?eo.createElement(_J,{key:E,id:f.id,ref:O,as:l,activatorEvent:d,adjustScale:n,className:u,transition:o,rect:C,style:{zIndex:c,...a},transform:S},r):null))});function _2(){return(0,eo.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:a,context:o,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,ea.jsx)("tr",{ref:t,...i,...a,style:r,id:n.id,onClick:n.onClick,className:(0,eW.cx)("border-b border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",h),children:s.map((e,t)=>{let{id:r,render:i,contentClassName:a,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,ea.jsx)("td",{className:(0,eW.cx)(d(t,(0,eW.cx)(s,h),!1),u&&u===n.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===c?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===c?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===c?"!shadow-red-500 dark:!shadow-red-400":"","amber"===c?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===c?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,ea.jsx)("div",{className:(0,eW.cx)(f(t,(0,eW.cx)(a,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,ea.jsx)(i,{data:n,context:o})})},"".concat(r,"/").concat(n.id))})},n.id)})}function _4(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=CO("Droppable"),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,eo.useContext)(_L),{role:h=_W,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,g=(0,eo.useContext)(v?_B:_U),[y,b]=CS(),[x,w]=CS(),j=(0,eo.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[o,t]),k=Ck(n);return Cw(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:k}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,eo.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!v&&h===_W||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]),isDragging:v,listeners:r?void 0:j,node:y,over:f,setNodeRef:b,setActivatorNodeRef:w,transform:g}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,eo.useMemo)(()=>_2(),[]);return(0,ea.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:s,getContentClassNames:l})}function _3(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=CO("Droppable"),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=(0,eo.useContext)(_L),c=(0,eo.useRef)({disabled:n}),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(null),h=(0,eo.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={..._q,...i},g=Ck(null!=m?m:r),y=_j({callback:(0,eo.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),disabled:p||!o}),[b,x]=CS((0,eo.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=Ck(t);return(0,eo.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),Cw(()=>(s({type:Y.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:w}}),()=>s({type:Y.UnregisterDroppable,key:a,id:r})),[r]),(0,eo.useEffect)(()=>{n!==c.current.disabled&&(s({type:Y.SetDroppableDisabled,id:r,key:a,disabled:n}),c.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:x}}({id:t.id}),d=(0,eo.useMemo)(()=>_2(),[]);return(0,ea.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:s,getContentClassNames:l})}function _5(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:a,sortableColumns:o,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,draggingDatum:b}=e,x="emptyState";!c||(null==n?void 0:n.length)||(x="skeleton"),(null==n?void 0:n.length)&&(x="currentData");let w=(0,eo.useCallback)((e,n,r)=>(0,eW.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),j=(0,eo.useCallback)((e,t)=>(0,eW.cx)("flex items-center",t),[]),k=(0,eo.useMemo)(()=>_2(),[]),E=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(CU(_v,{activationConstraint:{distance:10}}),CU(_y,{activationConstraint:{delay:250,tolerance:5}}));return(0,ea.jsxs)(_H,{sensors:E,onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,children:[(0,ea.jsx)(_1,{children:b&&(0,ea.jsx)(nE,{className:"inline-block",children:(0,ea.jsx)("table",{children:(0,ea.jsx)(k,{className:"pointer-events-none",data:b,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},b.id)})})}),(0,ea.jsxs)(nE,{children:[(0,ea.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,ea.jsx)("thead",{className:(0,eW.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,ea.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==o?void 0:o.includes(n))&&!!s,h=i===n;return(0,ea.jsx)("th",{className:(0,eW.cx)(w(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,ea.jsx)("div",{className:(0,eW.cx)("overflow-hidden","py-3"),children:(0,ea.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,eW.cx)(j(t,d),f?"cursor-pointer":""),children:[(0,ea.jsx)(l_,{content:u,children:(0,ea.jsxs)(nw,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,ea.jsx)("div",{children:r}):null,(0,ea.jsx)(nw,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,ea.jsx)(nw,{color:"contrast",children:"asc"===a?(0,ea.jsx)(lT.kqg,{className:"scale-75"}):(0,ea.jsx)(lT.EMN,{className:"scale-75"})}),f&&!h&&(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(lT.kqg,{className:"scale-75"})})]})})},n)})})}),(0,ea.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===x&&(null==n?void 0:n.map(e=>(null==b?void 0:b.id)===e.id?null:e.isDraggable?(0,ea.jsx)(_4,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},e.id):e.isDroppable?(0,ea.jsx)(_3,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},e.id):(0,ea.jsx)(k,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:w,getContentClassNames:j},e.id))),"skeleton"===x&&S2(u).map(e=>(0,ea.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,ea.jsx)("td",{className:w(t,i,!1),children:(0,ea.jsx)("div",{className:(0,eW.cx)(j(t,r),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===x&&d]})]})}function _6(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(lT.XJM,{})})}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(lT.bdU,{})}),(0,ea.jsx)(lM,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,ea.jsx)(kJ,{className:"px-2"}):"No results"}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.min(t+n,r)}}),children:(0,ea.jsx)(lT.VUy,{})}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>a.push({query:{...a.query,offset:Math.floor(r/n)*n}}),children:(0,ea.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,ea.jsx)(lT.RRj,{})})})]})}function _8(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(lT.XJM,{})})}),(0,ea.jsx)(lM,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(lT.bdU,{})}),i?(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kJ,{className:"px-2"})}):r?(0,ea.jsxs)(lM,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(lM,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:t+n}}),children:(0,ea.jsx)(lT.VUy,{})})]})}function _7(e){let{marker:t,isMore:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(lM,{icon:"contrast",size:"small",variant:"gray",className:"rounded-r-none",disabled:!t,onClick:()=>a.push({query:{...a.query,marker:""}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(lT.XJM,{})})}),i?(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kJ,{className:"px-2"})}):r?(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",children:r}):(0,ea.jsx)(lM,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(lM,{icon:"contrast",disabled:!n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,marker:t}}),children:(0,ea.jsx)(lT.VUy,{})})]})}function _9(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,ea.jsx)(nw,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,ea.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,ea.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:n}),(0,ea.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,ea.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let Oe=("string"==typeof(A={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:A}:A).src;function Ot(e){let{children:t}=e;return(0,ea.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,ea.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,ea.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(Oe,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,ea.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function On(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,ea.jsxs)(da.Fb,{children:[(0,ea.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,ea.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,ea.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,ea.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,ea.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,ea.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,ea.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,ea.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,ea.jsx)("title",{children:i})]})}function Or(e){let{appName:t,title:n,children:r}=e;return(0,ea.jsxs)("div",{className:"h-screen",children:[(0,ea.jsx)(On,{appName:t,title:n}),r]})}function Oi(e){let{appName:t,title:n,children:r,filters:i,actions:a}=e;return(0,ea.jsxs)(Or,{appName:t,title:n,children:[(0,ea.jsx)(Ot,{}),(0,ea.jsx)("div",{className:"flex h-full",children:(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(_9,{nav:i,actions:a}),(0,ea.jsx)("div",{className:"flex-1",children:(0,ea.jsx)(lQ,{className:"h-full",children:r})})]})})]})}function Oa(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,ea.jsx)(l_,{side:t,content:(0,ea.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(nw,{children:"spendable"}),(0,ea.jsx)(nw,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,ea.jsx)("div",{className:"flex justify-end",children:(0,ea.jsx)(SK,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(nw,{children:"confirmed"}),(0,ea.jsx)(nw,{color:"subtle",children:"All confirmed outputs."})]}),(0,ea.jsx)("div",{className:"flex justify-end",children:(0,ea.jsx)(SK,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,ea.jsx)(nw,{children:"unconfirmed"}),(0,ea.jsx)(nw,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,ea.jsx)("div",{className:"flex justify-end",children:(0,ea.jsx)(SK,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,ea.jsx)("div",{children:r})}):null}function Oo(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,ea.jsx)(SK,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,ea.jsx)(Oa,{side:"right",balanceSc:t,children:i}):(0,ea.jsx)(l_,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ea.jsx)("div",{children:i})})}function Os(e){let{title:t,children:n,route:r,onClick:i}=e,a=(0,da.jD)(),o=r&&("/"===r?a===r:null==a?void 0:a.startsWith(r));return r?(0,ea.jsx)(db,{href:r,className:"no-underline",children:(0,ea.jsx)(l_,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ea.jsx)(lM,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":o?"open":"closed",onClick:i,children:n})})}):(0,ea.jsx)(l_,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,ea.jsx)(lM,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":o?"open":"closed",onClick:i,children:n})})}function Ol(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,ea.jsx)(Os,{title:"Wallet",route:r.wallet.view,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,ea.jsx)(lT.oaN,{}),n&&t&&(0,ea.jsx)(Oo,{isSynced:n,balanceSc:t})]})})}function Ou(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:a,lock:o,openSettings:s,children:l}=e;return(0,ea.jsx)(nE,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,ea.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,ea.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,ea.jsx)(dj,{size:30})}),(0,ea.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,ea.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsx)(c0,{className:"w-full"}),i&&(0,ea.jsx)(Ol,{routes:t,isSynced:r,walletBalanceSc:a}),(0,ea.jsx)(Os,{title:"Blockchain node",route:t.node.index,children:(0,ea.jsx)(lT.kBK,{})}),(0,ea.jsx)(Os,{title:"App preferences",onClick:()=>s(),children:(0,ea.jsx)(lT.UG6,{})}),(0,ea.jsx)(Os,{title:"Lock app",onClick:o,children:(0,ea.jsx)(lT.mBM,{})})]})]})})}var Oc=Object.create,Od=Object.defineProperty,Of=Object.getOwnPropertyDescriptor,Oh=Object.getOwnPropertyNames,Op=Object.getPrototypeOf,Om=Object.prototype.hasOwnProperty,Ov=(D=null!=(R=(P=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,a=(t=function(e,t){return i.set(e,t),t},function(e){var a=i.get(e),o=void 0===a?e.size:an)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*n);return t(e,o)});e.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},e.generateUniqueNumber=a},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(N||P((N={exports:{}}).exports,N),N.exports))())?Oc(Op(R)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Oh(t))Om.call(e,n)||void 0===n||Od(e,n,{get:()=>t[n],enumerable:!(r=Of(t,n))||r.enumerable});return e})(R&&R.__esModule?D:Od(D,"default",{value:R,enumerable:!0}),R)),Og=e=>void 0!==e.method&&"call"===e.method,Oy=e=>null===e.error&&"number"==typeof e.id;L=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(Og(e)){let{params:{timerId:i,timerType:a}}=e;if("interval"===a){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===a){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(Oy(e)){let{id:i}=e,a=r.get(i);if(void 0===a)throw Error("The timer is in an undefined state.");let{timerId:o,timerType:s}=a;r.delete(i),"interval"===s?t.delete(o):n.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,Ov.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,Ov.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,Ov.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,Ov.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},o=null,()=>{if(null!==o)return o;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return o=L(t),setTimeout(()=>URL.revokeObjectURL(t)),o};var Ob=(typeof window>"u"?"undefined":typeof window)=="object",Ox={setTimeout:Ob?setTimeout.bind(window):setTimeout,clearTimeout:Ob?clearTimeout.bind(window):clearTimeout,setInterval:Ob?setInterval.bind(window):setInterval,clearInterval:Ob?clearInterval.bind(window):clearInterval},Ow={},Oj=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Ow[e]=Ow[e]||[],Ow[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),Ox.setTimeout(()=>{window.localStorage.removeItem(n)},500),Ow[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=Ow[this.name].indexOf(this);Ow[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},Ok=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Oj;function OE(){return Math.random().toString(36).substring(2)}var OS=class{options;channel;token=OE();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>Ox.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{Ox.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=Ox.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>Ox.clearInterval(e))}catch{}}}},OC=class{channel;options;elector;token=OE();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new Ok(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new OS(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},O_=Ob?document:null,OO=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function OM(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function OA(e){let{route:t}=e,n=(0,hr.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function OP(e){let{appName:t,title:n,navTitle:r,profile:i,size:a="4",banner:o,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:x}=(0,hr.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:a}=OA({route:n}),{settings:o}=(0,hr.Hv)(),s=(0,da.j0)();(0,eo.useEffect)(()=>{if(a)return;let e=!s.asPath.startsWith(r.login),n=!o.password||!i;if(e&&n){t();return}},[s,o.password,i,a])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=O_,events:i=OO,timers:a,immediateEvents:o=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,eo.useRef)(OT()),S=(0,eo.useRef)(OT()),C=(0,eo.useRef)(null),_=(0,eo.useRef)(null),O=(0,eo.useRef)(0),M=(0,eo.useRef)(0),T=(0,eo.useRef)(0),A=(0,eo.useRef)(0),P=(0,eo.useRef)(!1),N=(0,eo.useRef)(!1),R=(0,eo.useRef)(!1),D=(0,eo.useRef)(!0),L=(0,eo.useRef)(!1),Z=(0,eo.useRef)(null),F=(0,eo.useRef)(null),z=(0,eo.useRef)(e),V=(0,eo.useRef)(0);(0,eo.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(z.current=e-n,V.current=n):(z.current=e,V.current=t),!D.current){if(g||k)return;P.current&&(Y.current(null,eA),F.current&&F.current.active()),ed()}},[e,t,n,g,k]);let I=(0,eo.useRef)(y);(0,eo.useEffect)(()=>{I.current=y},[y]);let B=(0,eo.useRef)(o),H=(0,eo.useRef)(r),U=(0,eo.useRef)([...new Set([...i,...o]).values()]),W=(0,eo.useRef)(k);(0,eo.useEffect)(()=>{W.current=k,!D.current&&(k?ep():g||ed())},[k]);let q=(0,eo.useRef)(s);(0,eo.useEffect)(()=>{q.current=s},[s]);let $=(0,eo.useRef)(l);(0,eo.useEffect)(()=>{$.current=l},[l]);let K=(0,eo.useRef)(u);(0,eo.useEffect)(()=>{K.current=u},[u]);let Y=(0,eo.useRef)(c);(0,eo.useEffect)(()=>{Y.current=c},[c]);let X=(0,eo.useRef)(d);(0,eo.useEffect)(()=>{X.current=d},[d]);let G=(0,eo.useRef)(f);(0,eo.useEffect)(()=>{G.current=f},[f]);let J=(0,eo.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?OM(e,p):e},[p,h]),Q=(0,eo.useRef)();(0,eo.useEffect)(()=>{b&&w&&(Q.current=OM(()=>{F.current.active()},w))},[b,w]);let ee=()=>{null!==Z.current&&(Ox.clearTimeout(Z.current),Z.current=null)},et=(e,t=!0)=>{ee(),Z.current=Ox.setTimeout(ea,e||z.current),t&&(_.current=OT())},en=e=>{N.current||P.current||($.current(e,eA),q.current({type:"active",prompted:!0},eA)),A.current=0,T.current=OT(),N.current=!0,et(V.current,!1)},er=()=>{ee(),P.current||(K.current(null,eA),q.current({type:"idle"},eA)),P.current=!0,C.current=OT(),I.current?ec():N.current&&(T.current=0,N.current=!1)},ei=e=>{ee(),(P.current||N.current)&&(Y.current(e,eA),q.current({type:"active",prompted:!1},eA)),N.current=!1,T.current=0,P.current=!1,O.current+=OT()-C.current,M.current+=OT()-C.current,eu(),et()},ea=e=>{if(!P.current){J.cancel&&J.cancel();let t=OT()-_.current;if(!(z.current+V.current0&&!N.current){F.current?F.current.prompt():en(e);return}F.current?F.current.idle():er();return}F.current?F.current.active():ei(e)},es=e=>{if(v||_.current||(_.current=OT(),Y.current(null,eA)),J(e,eA),N.current)return;if(ee(),!P.current&&B.current.includes(e.type)){ea(e);return}let t=OT()-_.current;if(P.current&&!y||!P.current&&t>=z.current){ea(e);return}R.current=!1,A.current=0,T.current=0,et(),b&&w&&Q.current()},el=(0,eo.useRef)(es);(0,eo.useEffect)(()=>{let e=L.current;e&&ec(),m>0?el.current=OM(es,m):el.current=es,e&&eu()},[m,p,h,X,b,w]);let eu=()=>{Ob&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{Ob&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,el.current,{capture:!0})}),L.current=!1)},ed=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),P.current=!1,N.current=!1,R.current=!1,A.current=0,T.current=0,F.current&&!e&&F.current.start(),et(),!0),[Z,P,W,z,F]),ef=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),S.current=OT(),O.current+=OT()-C.current,M.current+=OT()-C.current,O.current=0,P.current=!1,N.current=!1,R.current=!1,A.current=0,T.current=0,F.current&&!e&&F.current.reset(),g||et(),!0),[Z,P,z,g,W,F]),eh=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),(P.current||N.current)&&ei(),P.current=!1,N.current=!1,R.current=!1,A.current=0,T.current=0,S.current=OT(),F.current&&!e&&F.current.activate(),et(),!0),[Z,P,N,W,z,F]),ep=(0,eo.useCallback)((e=!1)=>!W.current&&!R.current&&(A.current=ej(),R.current=!0,ec(),ee(),F.current&&!e&&F.current.pause(),!0),[Z,W,F]),em=(0,eo.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||eu(),P.current||et(A.current),T.current&&(T.current=OT()),F.current&&!e&&F.current.resume(),!0),[Z,z,W,A,F]),ev=(0,eo.useCallback)((e,t)=>(F.current?(t&&G.current(e,eA),F.current.message(e)):t&&G.current(e,eA),!0),[f]),eg=(0,eo.useCallback)(()=>P.current,[P]),ey=(0,eo.useCallback)(()=>N.current,[N]),eb=(0,eo.useCallback)(()=>F.current?F.current.isLeader:null,[F]),ex=(0,eo.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,eo.useCallback)(()=>F.current?F.current.token:null,[F]),ej=(0,eo.useCallback)(()=>{if(R.current)return A.current;let e=Math.floor((A.current?A.current:V.current+z.current)-(_.current?OT()-_.current:0));return e<0?0:Math.abs(e)},[z,V,N,A,_]),ek=(0,eo.useCallback)(()=>Math.round(OT()-S.current),[S]),eE=(0,eo.useCallback)(()=>Math.round(OT()-E.current),[E]),eS=(0,eo.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,eo.useCallback)(()=>_.current?new Date(_.current):null,[_]),e_=(0,eo.useCallback)(()=>P.current?Math.round(OT()-C.current+O.current):Math.round(O.current),[C,O]),eO=(0,eo.useCallback)(()=>P.current?Math.round(OT()-C.current+M.current):Math.round(M.current),[C,M]),eM=(0,eo.useCallback)(()=>{let e=Math.round(ek()-e_());return e>=0?e:0},[C,O]),eT=(0,eo.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[C,O]);(0,eo.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(Ox.setTimeout=a.setTimeout,Ox.clearTimeout=a.clearTimeout,Ox.setInterval=a.setInterval,Ox.clearInterval=a.clearInterval);let e=()=>{F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)};return Ob&&window.addEventListener("beforeunload",e),()=>{Ob&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)}},[]),(0,eo.useEffect)(()=>{F.current&&F.current.close(),b?F.current=new OC({channelName:x,leaderElection:j,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{G.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):F.current=null},[b,x,j,$,K,Y,G,ed,ef,ep,em]),(0,eo.useEffect)(()=>{D.current||(ee(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,D]),(0,eo.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...o]).values()];ec(),U.current=e,H.current=r,B.current=o,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(o),D,k,g,v]),(0,eo.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:eS,getLastActiveTime:eC,getIdleTime:e_,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,q.current=e},setOnPrompt:e=>{l=e,$.current=e},setOnIdle:e=>{u=e,K.current=e},setOnActive:e=>{c=e,Y.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,G.current=e}}}({disabled:!t,onIdle:(0,eo.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!x.autoLock,lockTimeout:x.autoLockTimeout,lock:b}),(0,ea.jsxs)(Or,{appName:t,title:n,children:[(0,ea.jsx)(Ot,{}),(0,ea.jsxs)("div",{className:"flex flex-col h-full w-full",children:[o,(0,ea.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,ea.jsx)(Ou,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,ea.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,ea.jsx)(_9,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,ea.jsx)(uS,{className:"z-0",children:(0,ea.jsx)(lQ,{size:a,pad:!1,children:(0,ea.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,ea.jsx)(lQ,{size:a,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function ON(e,t,n,r){let[i,a]=(0,eo.useState)();return(0,eo.useEffect)(()=>{!t&&e&&a(e.length)},[t,e,a]),(0,eo.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}(0,eo.createContext)(null).Consumer;var OR=n(89644),OD=n.n(OR),OL=n(63955),OZ=n(69046);function OF(e){let{form:t,field:n,name:r}=e,i=t.watch(r),a=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:o,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,eo.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,eo.useCallback)((e,i)=>{var a;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(a=n.trigger)||void 0===a||a.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:o,name:r,value:i,error:a,onBlur:l,onChange:u,setValue:c}}function Oz(e){return(0,eo.useCallback)(t=>{SS({title:"Error",body:(0,OZ.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function OV(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:a,spellCheck:o,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=OF({name:t,form:n,field:u}),p=(0,ea.jsx)(fZ,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:a,type:u.type,readOnly:u.readOnly,spellCheck:o,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,ea.jsx)(Ci,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var OI=n(67693);async function OB(e){let{api:t,route:n,password:r}=e;try{return await OD().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function OH(e){let{appName:t,route:n,routes:r}=e,i=(0,da.j0)(),{settings:a,setSettings:o}=(0,hr.Hv)(),{allowCustomApi:s}=a,l=(0,eo.useMemo)(()=>({api:a.api,password:""}),[a.api]),u=(0,OL.cI)({mode:"onBlur",defaultValues:l});(0,eo.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,eo.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await OB({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(o({api:t,password:e.password,recentApis:{...a.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,a,o,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=Oz(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,OI.Z)(Object.entries(a.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,ea.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,ea.jsx)(nE,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsx)(dt,{label:"login settings",trigger:(0,ea.jsx)(lM,{icon:"hover",variant:"ghost",children:(0,ea.jsx)(lT.shL,{})}),children:(0,ea.jsx)(dn,{onSelect:()=>o({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,ea.jsx)(c0,{className:"w-full mt-2 mb-3"}),(0,ea.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,ea.jsxs)(lG,{children:[(0,ea.jsx)(OV,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,ea.jsx)(dt,{trigger:(0,ea.jsx)(lM,{type:"button",children:(0,ea.jsx)(lT.wGX,{})}),children:p.map(e=>(0,ea.jsx)(dn,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,ea.jsx)(OV,{name:"password",form:u,fields:d,group:!1}),h&&(0,ea.jsx)(nw,{size:"14",color:"red",children:h.message}),(0,ea.jsx)(Ca,{size:"small",form:u,children:"Unlock"})]})})]})})})}var OU=n(7114),OW=n(24511);let Oq={address:"",siacoin:void 0,includeFee:!1},O$=OW.Ry().shape({address:OW.Z_().required("Required"),siacoin:OW.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(he())(e||0).isZero())});function OK(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,a=n.plus(r);return(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,ea.jsx)(SI,{value:t,type:"address"})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:a,variant:"value",dynamicUnits:!1})})]}),i&&(0,ea.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,ea.jsx)(SI,{value:i,type:"transaction"})]})]})}function OY(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),a=n.length-1;return(0,ea.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,ea.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,ea.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/a*100,"%")}}),n.map((e,n)=>{let{id:o,label:s}=e,l=t===o,u=i>=n,c=n===a,d=0===n,f=u&&i!==a;return(0,ea.jsxs)("div",{className:(0,eW.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/a*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(o)},children:[(0,ea.jsx)(nw,{color:l?"contrast":"verySubtle",className:(0,eW.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,ea.jsx)("div",{className:(0,eW.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,ea.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},o)})]})}function OX(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(OK,{address:t,siacoin:n,fee:r,transactionId:i}),(0,ea.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.Z$8,{})}),(0,ea.jsx)(nw,{children:"Transaction successfully broadcasted."})]})]})}let OG=(0,ge.qN)(.00393),OJ={address:"",siacoin:new(he())(0),includeFee:!1};function OQ(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:a}=e,[o,s]=(0,eo.useState)("setup"),[l,u]=(0,eo.useState)(),[c,d]=(0,eo.useState)(OJ),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,OU.TA)({initialValues:Oq,validationSchema:O$,onSubmit:async e=>{if(!e.siacoin)return;let a=e.includeFee?(0,ge.qN)(e.siacoin).minus(n):(0,ge.qN)(e.siacoin);if(t){if(t.isLessThan((0,ge.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:a})}}}),a=(0,ge.qN)(i.values.siacoin||0),o=(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(Co,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,ea.jsx)(Co,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[(0,ea.jsx)(hO,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,ea.jsx)(hs,{children:"Include or exclude the network fee from the above transaction value."}),(0,ea.jsx)("div",{className:"flex flex-1"})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(SW,{size:"14",value:i.values.includeFee?a:a.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:o}}({balance:i,fee:OG,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:a,siacoin:o}=n||{},s=(0,OU.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:a,sc:o});if(n){s.setStatus({error:n});return}i({transactionId:e})}});return{form:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsx)(OK,{address:a,siacoin:o,fee:r})}),formik:s}}({fee:OG,formData:c,send:a,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,eo.useMemo)(()=>"setup"===o?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===o?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[o,f,h]);return(0,ea.jsx)(uO,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,ea.jsx)("div",{className:"flex flex-col gap-1",children:(0,ea.jsx)(Cf,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(OY,{onChange:e=>s(e),activeStep:o,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,ea.jsx)(c0,{className:"w-full mt-4"}),"setup"===o&&f.form,"confirm"===o&&h.form,"done"===o&&(0,ea.jsx)(OX,{data:c,fee:OG,transactionId:l})]})})}let O0=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),O1={port:9981,ip:""},O2=OW.Ry().shape({port:OW.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:OW.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>O0().test(e||""))});function O4(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,a=(0,OU.TA)({initialValues:O1,validationSchema:O2,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),a=await r(n);if(a.error){let e=a.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else SE({title:"Connected to peer"}),t.resetForm(),i(!1)}});return(0,ea.jsx)(uO,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||a.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Connect to a peer by IP address."}),(0,ea.jsx)("form",{onSubmit:a.handleSubmit,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(Co,{formik:a,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,ea.jsx)(Co,{formik:a,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,ea.jsx)(Cf,{formik:a,size:"medium",children:"Connect"})]})})]})})}function O3(e){var t,n;let{id:r,transaction:i,trigger:a,open:o,onOpenChange:s}=e;return(0,ea.jsx)(uO,{title:SN((null==i?void 0:i.txType)?(0,S5.Z)(Sz(i.txType)):"Transaction",r,16),trigger:a,open:o,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,ea.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Inflow"}),(0,ea.jsx)(SW,{value:new(he())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Outflow"}),(0,ea.jsx)(SW,{value:new(he())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Miner fee"}),(0,ea.jsx)(SW,{value:new(he())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(he())(0)))||0)})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Timestamp"}),(0,ea.jsx)(nw,{children:(null==i?void 0:i.timestamp)?(0,ge.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,ea.jsx)(l$,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,ea.jsx)(nw,{children:"Could not find transaction in wallet"})})}OW.Ry().shape({address:OW.Z_().required("Required"),description:OW.Z_().required("Required"),index:OW.Rx().integer().required("Required")});var O5=n(38001);function O6(e){let{title:t,description:n,address:r}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",children:t}),n&&(0,ea.jsx)(nw,{children:n}),(0,ea.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,ea.jsx)("div",{className:"absolute",children:(0,ea.jsx)(O5.Z,{size:200,value:r})})}),(0,ea.jsx)(SI,{type:"address",value:r})]})}function O8(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:a}=e;return(0,ea.jsx)(uO,{title:SN("Address",SP(t)||"",16),trigger:r,open:i,onOpenChange:a,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,ea.jsx)(O6,{address:t||""}):(0,ea.jsx)(nw,{children:"Could not retreive wallet address"})})})}function O7(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(lT.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(lT.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let O9={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function Me(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,hr.Hv)();return(0,ea.jsx)(hd,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,ea.jsx)(hf,{value:t,children:n},t)})})}let Mt=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function Mn(){let{settings:e,setSettings:t}=(0,hr.Hv)();return(0,ea.jsx)(hd,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:Mt.map(e=>{let{id:t,label:n}=e;return(0,ea.jsx)(hf,{value:t,children:n},t)})})}function Mr(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:a,setSettings:o,gpu:s}=(0,hr.Hv)();return(0,ea.jsx)(uO,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Display"}),(0,ea.jsx)(nj,{size:"14",children:"Configure visual and locale display preferences."}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Currency display"}),(0,ea.jsx)(Mn,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Fiat"}),(0,ea.jsx)(Me,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Theme"}),(0,ea.jsx)(p8,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"GPU"}),(0,ea.jsx)(hO,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,ea.jsxs)(nj,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Security"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Configure security preferences."}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Lock app"}),(0,ea.jsx)(hO,{size:"medium",checked:a.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,ea.jsxs)(hd,{disabled:!a.autoLock,value:String(a.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,ea.jsx)(hf,{value:kF(5),children:"5 minutes"}),(0,ea.jsx)(hf,{value:kF(10),children:"10 minutes"}),(0,ea.jsx)(hf,{value:kF(20),children:"20 minutes"}),(0,ea.jsx)(hf,{value:kF(30),children:"30 minutes"}),(0,ea.jsx)(hf,{value:kF(60),children:"1 hour"})]})]}),(0,ea.jsx)(nj,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Privacy"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,ea.jsx)(lP,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Sia Central"}),(0,ea.jsx)(hO,{size:"medium",checked:a.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,ea.jsx)(nj,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Help"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)(db,{href:O9.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.lq1,{}),"Website"]}),(0,ea.jsxs)(db,{href:O9.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.RdX,{}),"Docs"]}),(0,ea.jsxs)(db,{href:O9.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.Sfn,{}),"About"]}),(0,ea.jsxs)(db,{href:O9.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(lT.b47,{}),"Discord"]})]})]})]})]})})}function Mi(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,ea.jsx)(Oa,{side:"bottom",balanceSc:t,children:(0,ea.jsx)(nE,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,ea.jsx)(SK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,ea.jsx)(l_,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ea.jsxs)(nE,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(lT.qdM,{})}),(0,ea.jsx)(SK,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function Ma(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:a,sendSiacoin:o,receiveSiacoin:s}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(0,ea.jsx)(Mi,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:a}),s&&(0,ea.jsxs)(lM,{size:"small",onClick:s,children:[(0,ea.jsx)(lT.xHM,{}),"Receive"]}),(0,ea.jsxs)(lM,{size:"small",variant:"accent",onClick:o,children:[(0,ea.jsx)(lT.rW0,{}),"Send"]})]})}function Mo(e,t){if(!e||!e.length)return[];let n=Object.keys((0,kZ.Z)(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let a={...t};0!==i&&(n.forEach(n=>{let r=t[n],o=e[i-1][n];a[n]=r-o}),r.push(a))}):r=e,r}let Ms={"5m":e=>{let t=e+kF(5);return"5m interval from ".concat((0,ge.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,ge.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kF(15);return"15m interval from ".concat((0,ge.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,ge.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>"Hour interval from ".concat((0,ge.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,ge.rN)(e+36e5,{timeStyle:"short",hour12:!1})),daily:e=>"Day interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(e+864e5)),weekly:e=>{let t=e+kz(7);return"Week interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(t))},monthly:e=>{let t=e+kz(30);return"Month interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(t))},yearly:e=>{let t=e+kz(365);return"Year interval from ".concat((0,ge.rN)(e)," to ").concat((0,ge.rN)(t))},default:e=>"".concat((0,ge.rN)(e))};function Ml(e){return Ms[e]||Ms.default}function Mu(e){if(!e||!e.length)return{};let t=Object.keys((0,kZ.Z)(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,a=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0;return Mc({total:t.reduce((t,n)=>t+(n[e]||0),0),start:i,end:a,count:t.length})}(n,e)}),{}),total:function(e,t){let n=Md(e,t[0]),r=Md(e,t[t.length-1]);return Mc({total:t.reduce((t,n)=>t+Md(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function Mc(e){let{total:t,start:n,end:r,count:i}=e,a=r-n;return{total:t,diff:a,change:0===n?void 0:a/n*100,latest:r,average:t/i}}function Md(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function Mf(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,p5.F)(),a=(0,eo.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:v9.accent[800]}}:{sc:{label:"siacoin",color:v9.accentdark[800]}},[i]),o=(0,eo.useMemo)(()=>({data:Mo(t,"none"),stats:Mu(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:a.sc},format:e=>(0,ge.Vz)(e),formatTimestamp:Ml("default"),formatTickY:e=>(0,ge.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,a,r]);return(0,ea.jsx)("div",{className:"relative",children:(0,ea.jsx)(k0,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:o.data,config:o.config})})}function Mh(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,ea.jsx)(S9,{title:"Peers",actions:(0,ea.jsx)(lM,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Mp(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:a}=e;return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[a&&(0,ea.jsx)("div",{className:"relative top-px",children:(0,ea.jsx)(hv,{style:{backgroundColor:a}})}),(0,ea.jsx)(nw,{size:t,children:n})]})}function Mm(e){let{children:t,variant:n,align:r}=e;return(0,ea.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,ea.jsx)(nw,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Mv(e){let{date:t,align:n,variant:r}=e;return t?(0,ea.jsx)(Mm,{variant:r,align:n,children:(0,ge.rN)(t)}):null}function Mg(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,ea.jsx)(Mm,{variant:r,align:n,children:t.toLocaleString()}):null}function My(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:a,color:o,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!a)return null;let d=r.endHeight-r.startHeight,f=(0,ge.pp)(d),h=(0,ge.jr)(n,r.startHeight),p=(0,ge.jr)(n,i),m=(0,ge.jr)(n,a),v=(p-h)/f,g=(m-h)/f;return(0,ea.jsxs)("div",{className:(0,eW.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Mb(v),width:Mb(g-v)},children:[(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,ea.jsx)("div",{className:(0,eW.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===o?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===o?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===o?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Mb(1-g)}:{left:Mb(v)},children:[(0,ea.jsx)(Mg,{blockHeight:i,align:"start",variant:"primary"}),(0,ea.jsx)(Mm,{variant:"primary",children:t}),(0,ea.jsx)(Mg,{blockHeight:a,align:"end",variant:"primary"})]}),c&&(0,ea.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Mb(1-g)}:{left:Mb(v)},children:[(0,ea.jsx)(Mv,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(Mv,{date:m,align:"start",variant:"secondary"})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Mb(1-g)}:{left:Mb(v)},children:[(0,ea.jsx)(Mv,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(Mv,{date:m,align:"start",variant:"secondary"})]})]})}function Mb(e){return"".concat(100*e,"%")}function Mx(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:a,bottomLabel:o,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,ge.pp)(f),p=(0,ge.jr)(n,i.startHeight),m=r?(0,ge.jr)(n,r):0;return r?(0,ea.jsx)("div",{className:(0,eW.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,ea.jsxs)("div",{className:(0,eW.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,ea.jsx)("div",{className:(0,eW.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,ea.jsx)(Mg,{blockHeight:r,align:"start",variant:"primary"}),(0,ea.jsx)(Mm,{variant:"primary",children:a})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,ea.jsx)(Mv,{date:m,align:"start",variant:"secondary"}),o&&(0,ea.jsx)(Mm,{variant:"secondary",children:o})]})]})}):null}function Mw(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:a,revisionHeight:o,proofHeight:s,range:l}=e,u=t-n<6;return(0,ea.jsx)("div",{className:"group/main relative w-full",children:(0,ea.jsx)("div",{className:"relative py-6",children:(0,ea.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,ea.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,ea.jsxs)("div",{className:"group/segments",children:[(0,ea.jsx)(My,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,ea.jsx)(My,{label:"proof window",currentHeight:t,startHeight:i,endHeight:a,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,ea.jsx)(Mx,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,ea.jsx)(Mx,{label:"last revision",currentHeight:t,eventHeight:o,range:l,color:"green",className:"z-20"}),(0,ea.jsx)(Mx,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,ea.jsx)(Mx,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Mj=n(90463),Mk=n(58527),ME=n(40704),MS=n(95598),MC=n(93225),M_=n(11749),MO=function(e,t,n,r){var i=-1,a=Mk.Z,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=(0,MS.Z)(t,(0,MC.Z)(n))),r?(a=ME.Z,o=!1):t.length>=200&&(a=M_.Z,o=!1,t=new Mj.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,ea.jsx)(lT.xVB,{})}),(0,ea.jsx)(lM,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),a(n)},children:(0,ea.jsx)(lT.pHg,{})})]})]})}function ML(e){let{title:t,children:n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,ea.jsx)(du,{anchorLink:!0,size:"24",children:t}),(0,ea.jsx)(nE,{className:"p-6",children:(0,ea.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function MZ(e){let{title:t,description:n,control:r}=e;return(0,ea.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,ea.jsx)(du,{size:"20",children:t}),(0,ea.jsx)(nj,{size:"14",children:n})]}),(0,ea.jsx)("div",{className:"",children:r})]})}function MF(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:a,title:o,variant:s,action:l,onConfirm:u}=n||{},c=(0,OL.cI)(),d=(0,eo.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,ea.jsx)(uO,{title:o,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[a,(0,ea.jsx)("div",{className:"flex gap-1 justify-end",children:(0,ea.jsx)(Ca,{variant:s,form:c,size:"small",children:l})})]})})})}function Mz(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsxs)("div",{className:"flex items-center",children:[n?(0,ea.jsxs)(lM,{className:"relative left-2 only:left-0",variant:"ghost",onClick:a,tip:"".concat(n," connected peers"),children:[(0,ea.jsx)(nw,{color:"subtle",children:n.toLocaleString()}),(0,ea.jsx)(lT.RK4,{})]}):null,i&&r?(0,ea.jsx)(l_,{content:"Blockchain is synced",children:(0,ea.jsx)("div",{className:"relative left-2",children:(0,ea.jsxs)(lM,{variant:"ghost",state:"waiting",children:[(0,ea.jsx)(nw,{color:"subtle",children:i.toLocaleString()}),(0,ea.jsx)(nw,{color:"green",children:(0,ea.jsx)(lT.Y3p,{})})]})})}):null]})]})}function MV(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,ea.jsx)(d3,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,ea.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function MI(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:a,nodeBlockHeight:o,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,ea.jsx)(pm,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,ea.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===a||0===a?null:(0,ea.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,ea.jsxs)(nw,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[a,"%"]})}),(0,ea.jsx)(dj,{size:30})]}),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,ea.jsx)(Mz,{nodeBlockHeight:o,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,ea.jsx)(c0,{className:"w-full mb-0.5"}):(0,ea.jsx)(MV,{percent:a,nodeBlockHeight:o,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,ea.jsx)(c0,{className:"w-full mb-1"})]}),c]})})}function MB(e){let{testnetName:t}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,ea.jsx)(nw,{color:"lo",children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsxs)(nw,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function MH(e){let{type:t,label:n,link:r,tip:i,icon:a,value:o,onClick:s,decimalsLimit:l,units:u}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(l_,{align:"start",side:"bottom",content:i,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:a||(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(nw,{size:"12",ellipsis:!0,children:r?(0,ea.jsx)(db,{href:r,target:"_blank",children:n}):n})]})}),(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(o)},children:"siacoin"===t?(0,ea.jsx)(SW,{value:o,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,ea.jsx)(SY,{value:o,variant:"value",size:"12",format:e=>"".concat(ht(e,l)," ").concat(u)})})]})}function MU(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:a,suggestion:o,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=OF({name:t,field:i,form:n}),y=(0,eo.useMemo)(()=>s?new(he())(s):o&&"boolean"!=typeof o?new(he())(o):void 0,[s,o]);return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)(ho,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:y,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),a&&(0,ea.jsx)(MH,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,ge.qN)(a),onClick:()=>{m(a,!0)}}),o&&u&&(0,ea.jsx)(MH,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,ge.qN)(o),onClick:()=>{m(o,!0)}}),(0,ea.jsx)(d||(()=>null),{name:t,form:n,fields:r})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MW(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:a,averageTip:o,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=OF({form:n,field:i,name:t}),m=(0,eo.useMemo)(()=>c?new(he())(c):s&&"boolean"!=typeof s?new(he())(s):void 0,[c,s]);return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)(hn,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{f(void 0!==e?new(he())(e):void 0,!0)},onBlur:()=>{f(h,!0)}}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[a&&(0,ea.jsx)(MH,{type:"number",label:"Network average",tip:o||"Averages provided by Sia Central.",decimalsLimit:u,value:a,units:d,onClick:()=>{f(a,!0)}}),s&&l&&(0,ea.jsx)(MH,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function Mq(e){let{label:t,link:n,tip:r,value:i,onClick:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(l_,{align:"start",side:"bottom",content:r,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:(0,ea.jsx)(lT.RdX,{})}),(0,ea.jsx)(nw,{size:"12",children:n?(0,ea.jsx)(db,{href:n,target:"_blank",children:t}):t})]})}),(0,ea.jsx)("div",{className:"flex cursor-pointer items-center",onClick:a,children:(0,ea.jsx)(nw,{size:"12",children:(0,ea.jsx)(lY,{children:i})})})]})}function M$(e){let{name:t,form:n,fields:r,type:i}=e,a=r[t],{placeholder:o,suggestion:s,suggestionTip:l}=a,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=OF({name:t,form:n,field:a});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)(fZ,{ref:u,name:t,placeholder:o,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,ea.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,ea.jsx)(Mq,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MK(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:a,suggestionTip:o}=i,{setValue:s,value:l,error:u}=OF({name:t,field:i,form:n});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(hO,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,ea.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&o&&(0,ea.jsx)(Mq,{label:"Suggestion",tip:o,value:a?"on":"off",onClick:()=>{s(a,!0)}})})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MY(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:a,suggestion:o,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=OF({name:t,form:n,field:i});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[250px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(hd,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==a?void 0:a.map(e=>(0,ea.jsx)(hf,{value:e.value,children:e.label},e.value))})}),(0,ea.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&s&&(0,ea.jsx)(Mq,{label:"Suggestion",tip:s,value:o?"on":"off",onClick:()=>{c(o,!0)}})})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(Cr,{form:n,name:t})})]})}function MX(e){let{title:t,category:n,form:r,fields:i}=e,a=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===a.length?null:(0,ea.jsx)(ML,{title:t,children:a.map((e,t)=>{let[n,o]=e;return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(MZ,{title:o.title,description:o.description,control:"number"===o.type?(0,ea.jsx)(MW,{form:r,name:n,fields:i}):"siacoin"===o.type?(0,ea.jsx)(MU,{form:r,name:n,fields:i}):"text"===o.type?(0,ea.jsx)(M$,{form:r,name:n,fields:i}):"password"===o.type?(0,ea.jsx)(M$,{form:r,type:"password",fields:i,name:n}):"boolean"===o.type?(0,ea.jsx)(MK,{form:r,name:n,fields:i}):"select"===o.type?(0,ea.jsx)(MY,{form:r,name:n,fields:i}):null}),t(0,ea.jsx)(hf,{value:e.value,children:e.label},e.value))});return a?(0,ea.jsx)(Ci,{title:o.title,name:t,form:n,children:f}):f}function MJ(e){let{form:t,remoteValues:n}=e,r=(0,eo.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,n]);(0,eo.useEffect)(()=>{r()},[n])}function MQ(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function M0(e){let{form:t,remoteValues:n}=e,[r,i]=(0,eo.useState)(!1),{isUnlockedAndAuthedRoute:a}=(0,hr.Hv)();(0,eo.useEffect)(()=>{a||i(!1)},[a]),(0,eo.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}function M1(e){let{form:t,onOpenChange:n,defaultValues:r,initKey:i}=e,a=(0,eo.useCallback)(()=>{t.reset(r)},[t,r]),o=(0,eo.useCallback)(()=>{n(!1),t.reset(r)},[t,n,r]),s=(0,eo.useCallback)(e=>{e?(n(!0),setTimeout(()=>{a()},0)):o()},[o,a,n]),l=function(e){let[t,n]=(0,eo.useState)(e);return(0,eo.useEffect)(()=>{if(!e||!e.length)return;let r=!1;for(let n=0;n{l&&l.length&&l.every(e=>!!e)&&a()},[l]),{reset:a,closeAndReset:o,handleOpenChange:s}}lT.lg1,lT.eHR,lT.I$H,lT.KiD,lT.P5r,lT.CCF,lT.w9S,lT.EL$,lT.aPl,lT.wEY,lT.EOT,lT.kSc,lT.W$S,lT.lJ7,lT.ORH,lT.ka0,lT.BdP,lT.d19,lT.Mes,lT.VUg,lT.U_S,lT.T85;let M2=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[o,s]=(0,eo.useState)(!0),l=(0,eo.useRef)(!1),u=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,eo.createElement)(nn,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,eo.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},a)};function M4(e){let{children:t}=e,[n,r]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{r(!0)},[]),(0,ea.jsx)("div",{children:n?t:null})}function M3(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:a}=e;return(0,ea.jsx)(M4,{children:(0,ea.jsx)(hr.kl,{fallback:r,children:(0,ea.jsx)(p5.f,{attribute:"class",children:(0,ea.jsx)(M2,{children:(0,ea.jsx)(hr.bW,{lockRoutes:a,passwordProtectRequestHooks:n,children:(0,ea.jsxs)("div",{id:"root",className:t,children:[(0,ea.jsx)(S_,{}),i]})})})})})})}var M5=n(28356),M6=Math.min,M8=function(e,t,n){for(var r=n?ME.Z:Mk.Z,i=e[0].length,a=e.length,o=a,s=Array(a),l=1/0,u=[];o--;){var c=e[o];o&&t&&(c=(0,MS.Z)(c,(0,MC.Z)(t))),l=M6(c.length,l),s[o]=!n&&(t||i>=120&&c.length>=120)?new Mj.Z(o&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,eo.useCallback)(e=>{l(t=>(0,M5.Z)([...t,...e]))},[l]),d=(0,eo.useCallback)(e=>{l(t=>MR(t,e))},[l]),f=(0,eo.useCallback)(()=>{l(r)},[l,r]),h=(0,eo.useMemo)(()=>n.filter(e=>{let t=null==o?void 0:o.includes(e.category||"");return!e.fixed&&!t}),[n,o]),p=(0,eo.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==o?void 0:o.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,o]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[a,o]=(0,kX.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,kX.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,eo.useCallback)(e=>{if(a!==e){o(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[a,o,l]),setSortDirection:l,setSortField:o,sortableColumns:(0,eo.useMemo)(()=>r?M9(r.map(e=>e.id),i):[],[r,i]),sortField:a,sortDirection:s}}(e,{defaultSortField:i,sortOptions:a,enabledColumns:p}),x=(0,eo.useMemo)(()=>a?M9(a.map(e=>e.id),p):[],[a,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function Tn(){let e=(0,da.xj)(),t=(0,da.jD)(),n=(0,da.lr)();return(0,eo.useCallback)(()=>{if(!e||!t)return;let r=new URLSearchParams(n),i=r.toString();r.delete("limit"),r.delete("offset"),r.delete("marker");let a=r.toString(),o=i?"".concat(t,"?").concat(i):t,s=a?"".concat(t,"?").concat(a):t;s!==o&&e.replace(s)},[e,n,t])}function Tr(){let[e,t]=(0,eo.useState)([]),n=Tn(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[t,e,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}function Ti(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,eo.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),a=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...a=a.sort((e,t)=>{let n=e[r],a=t[r];return"desc"===i?n instanceof he()&&a instanceof he()?n.lte(a)?1:-1:n<=a?1:-1:n instanceof he()&&a instanceof he()?n.gte(a)?1:-1:n>=a?1:-1})]},[t,n,r,i])}function Ta(){let[e,t]=(0,eo.useState)([]),n=Tn(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}let To=new(he())(0);function Ts(e){let{sc:t}=e,{settings:n}=(0,hr.Hv)(),r=(0,hi.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,eo.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(he())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||To):To},[r.data,n]),a=(0,eo.useMemo)(()=>new(he())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:a,currency:n.currency}}function Tl(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,ge.gU)(5),n.startHeight=n.startHeight-(0,ge.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=kz(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}let Tu=/^[a-z]{2}$/i;function Tc(e){if(!Tu.test(e)){let t=typeof e;throw TypeError("cc argument must be an ISO 3166-1 alpha-2 string, but got '".concat("string"===t?e:t,"' instead."))}return String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt()+127397))}let Td=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Tf(e){let t=[];for(let n=0,r=e.length;n{let r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Tv(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tg(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),Tv(i)}let Ty=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||Ty(n,t))};function Tb(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let a=Td();try{t.className=`${t.className} ${a}`}catch(e){return}let o=document.createElement("style");o.appendChild(function(e,t,n){let r=`.${e}:${t}`,i=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):Tf(n).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${i}}`)}(a,n,r)),t.appendChild(o)}let Tx="application/font-woff",Tw="image/jpeg",Tj={woff:Tx,woff2:Tx,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Tw,jpeg:Tw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Tk(e){return Tj[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function TE(e){return -1!==e.search(/^(data:)/)}function TS(e,t){return`data:${t};base64,${e}`}async function TC(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}let T_={};async function TO(e,t,n){var r,i,a;let o,s;let l=(r=e,i=t,a=n.includeQueryParams,s=r.replace(/\?.*/,""),a&&(s=r),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=T_[l])return T_[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await TC(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));o=TS(r,t)}catch(r){o=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return T_[l]=o,o}async function TM(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Tm(t)}async function TT(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),Tm(t.toDataURL())}let n=e.poster,r=Tk(n);return Tm(await TO(n,r,t))}async function TA(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await TL(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function TP(e,t){return Ty(e,HTMLCanvasElement)?TM(e):Ty(e,HTMLVideoElement)?TT(e,t):Ty(e,HTMLIFrameElement)?TA(e):e.cloneNode(!1)}let TN=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function TR(e,t,n){var r,i;let a=[];return 0===(a=TN(e)&&e.assignedNodes?Tf(e.assignedNodes()):Ty(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Tf(e.contentDocument.body.childNodes):Tf((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes)).length||Ty(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>TL(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function TD(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iTP(e,t)).then(n=>TR(e,n,t)).then(t=>{var n,r;return n=e,Ty(r=t,Element)&&(!function(e,t){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Tf(r).forEach(i=>{let a=r.getPropertyValue(i);if("font-size"===i&&a.endsWith("px")){let e=Math.floor(parseFloat(a.substring(0,a.length-2)))-.1;a=`${e}px`}Ty(e,HTMLIFrameElement)&&"display"===i&&"inline"===a&&(a="block"),"d"===i&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}(n,r),Tb(n,r,":before"),Tb(n,r,":after"),Ty(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),Ty(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(Ty(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>TD(e,t)):null}let TZ=/url\((['"]?)([^'"]+?)\1\)/g,TF=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Tz=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function TV(e,t,n,r,i){try{let a;let o=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,s=Tk(t);if(i){let e=await i(o);a=TS(e,s)}else a=await TO(o,s,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}function TI(e){return -1!==e.search(TZ)}async function TB(e,t,n){if(!TI(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(Tz,e=>{for(;;){let[n,,r]=TF.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(TZ,(e,n,r)=>(t.push(r),e)),t.filter(e=>!TE(e))})(r).reduce((e,r)=>e.then(e=>TV(e,r,t,n)),Promise.resolve(r))}async function TH(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await TB(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function TU(e,t){await TH("background",e,t)||await TH("background-image",e,t),await TH("mask",e,t)||await TH("mask-image",e,t)}async function TW(e,t){let n=Ty(e,HTMLImageElement);if(!(n&&!TE(e.src))&&!(Ty(e,SVGImageElement)&&!TE(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await TO(r,Tk(r),t);await new Promise((t,r)=>{e.onload=t,e.onerror=r,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function Tq(e,t){let n=Tf(e.childNodes).map(e=>T$(e,t));await Promise.all(n).then(()=>e)}async function T$(e,t){Ty(e,Element)&&(await TU(e,t),await TW(e,t),await Tq(e,t))}let TK={};async function TY(e){let t=TK[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},TK[e]=t,t}async function TX(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),TC(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function TG(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=a.exec(n)))break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function TJ(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{Tf(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,s=TY(o).then(e=>TX(e,t)).then(e=>TG(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?a+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(s)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(TY(n.href).then(e=>TX(e,t)).then(e=>TG(e).forEach(e=>{i.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{Tf(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function TQ(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=Tf(e.ownerDocument.styleSheets);return(await TJ(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>TI(e.style.getPropertyValue("src")))}async function T0(e,t){let n=await TQ(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return TB(e.cssText,n,t)}))).join("\n")}async function T1(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await T0(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function T2(e,t={}){let{width:n,height:r}=Tp(e,t),i=await TL(e,t,!0);return await T1(i,t),await T$(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await Tg(i,n,r)}async function T4(e,t={}){let{width:n,height:r}=Tp(e,t),i=await T2(e,t),a=await Tm(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return o.width=u*l,o.height=c*l,!t.skipAutoScale&&(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${u}`,o.style.height=`${c}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function T3(e,t={}){return(await T4(e,t)).toDataURL()}async function T5(e,t){let{name:n,quality:r,copy:i,download:a}=t;if(!e)throw Error("HTML node required");let o=await T3(e,{quality:r||.5});if(a){let e=document.createElement("a");e.download="".concat(n,".png"),e.href=o,e.click()}if(i){let e=await fetch(o);SM(await e.blob(),"image/png",n)}}},99605:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.a},Fb:function(){return o.a},UO:function(){return u.useParams},j0:function(){return c.useRouter},jD:function(){return u.usePathname},lr:function(){return u.useSearchParams},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),a=n(97729),o=n.n(a),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},67108:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return Y},gw:function(){return a},Tc:function(){return q},du:function(){return $},Hv:function(){return Z},iv:function(){return H},rB:function(){return U},Nf:function(){return B},Tu:function(){return K},mw:function(){return V},q0:function(){return z},Tb:function(){return M},V1:function(){return I},Q5:function(){return W},D:function(){return P}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return O}});var i=n(79381);function a(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),s=n.n(o),l=n(2784);function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function h(e,t,n){var r,i;let a=function(e,t,n){var r,i,a,o;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(o=n.config)||void 0===o?void 0:null===(a=o.axios)||void 0===a?void 0:a.headers},l=f(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:a}}function p(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t)for(let n of Object.keys(t)){let r=String(t[n]);e.includes(":".concat(n))?e=e.replace(":".concat(n),r):e.includes("?")?e+="&".concat(n,"=").concat(encodeURIComponent(r)):e+="?".concat(n,"=").concat(encodeURIComponent(r))}return e}(t,i)))return null;let a=f(e,n,r);return a===e.api?"".concat(a,"/api").concat(t):"".concat(a).concat(t)}function m(e,t,n,r){let i=f(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),g=n(99605),y=n(92762);function b(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}let x=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function w(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let j="undefined"==typeof window,k=(()=>{if(j)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let S=[],C=[];function _(e){return null!=e}let O=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:a="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>b(void 0,void 0,void 0,function*(){let o={};if(j)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>b(void 0,void 0,void 0,function*(){let t=yield fetch(`${a}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=w(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=w(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let a=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(a,3,5126,!1,0,0),e.enableVertexAttribArray(a),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let o=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,o),e.deleteProgram(r),e.deleteBuffer(i),o.join("")}(e),a="801621810",o="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",o,15],["a8x",o,15],["a9",o,15],["a9x",o,15],["a10",o,15],["a10x",o,15],["a12",a,15],["a12x",a,15],["a12z",a,15],["a14",a,15],["m1",a,15]]:[["a7",s,12],["a8",o,12],["a9",o,15],["a10",o,15],["a11",a,15],["a12",a,15],["a13",a,15],["a14",a,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return b(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,a=o[i]=null!==(t=o[i])&&void 0!==t?t:c(i);try{n=yield a}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let a,o=0;for(;ou?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=Math.abs(x-t*n);re===n?t-r:e-n);if(!v.length){let e=x.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",y,g,O)});function M(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let{getGPUTier:T}=r,A=(0,l.createContext)({}),P=()=>(0,l.useContext)(A);function N(e){let{children:t}=e,n=function(){let[e,t]=(0,l.useState)({}),n=(0,l.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]);return{setWorkflow:n,removeWorkflow:(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,l.useCallback)(()=>{t({})},[t]),workflows:(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let R=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],D={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:R[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},L=(0,l.createContext)({}),Z=()=>(0,l.useContext)(L);function F(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,a=(0,l.useMemo)(()=>({...D,...r}),[r]),[o,s]=(0,y.Z)("v1/settings",{defaultValue:a});(0,l.useEffect)(()=>{s(e=>({...a,...e}))},[]);let u=(0,l.useMemo)(()=>({...a,...o}),[o,a]),{resetWorkflows:c}=P(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=R.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.xj)(),p=(0,g.jD)(),[m,v]=(0,l.useState)({}),b=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,l.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,g.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),j=(0,l.useMemo)(()=>!!u.password,[u]);return{settings:u,setSettings:d,setCurrency:f,currencyOptions:R,gpu:function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:a,hasUserSet:o},s]=(0,y.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,l.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,l.useCallback)(async()=>{let e=!1;{let t=await T();console.log("GPU",t),e=t.tier>0,!o&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,o]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:a,shouldRender:r&&a,setCanGpuRender:i,setIsGpuEnabled:u}}(),lock:x,isUnlockedAndAuthedRoute:j&&w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(n);return(0,v.jsx)(L.Provider,{value:r,children:t})}function z(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:r,passwordProtectRequestHooks:a}=Z(),o=p(r,n.route,n,void 0),u=(0,l.useMemo)(()=>{var t,i;return t=o?"".concat(o).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,i=n.disabled||a&&!r.password,!t||i?null:t},[o,e,n,a,r]);return(0,i.ZP)(u,async()=>{if(!n.route)throw Error("No route");let t=h(r,n,void 0);if(!o)throw Error("No route");try{return(await s().post(o,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function V(e,t){let{setWorkflow:n,removeWorkflow:r}=P(),{mutate:a}=(0,i.kY)(),{settings:o}=Z(),l=u(e);return{post:async e=>{let i=d(e);try{let u;let c=h(o,l,i),d=p(o,l.route,l,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(o,d,e,i);n(f,{path:v,payload:u});let g=await s().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=arguments.length>2?arguments[2]:void 0;return a(n=>{if("string"!=typeof n)return!1;let r=m(o,n,e,i);return t(r)},n,r)},i,g),r(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function I(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=Z(),{setWorkflow:a,removeWorkflow:o}=P(),l=u(e);return{put:async e=>{let i=d(e);try{let u;let c=h(r,l,i),d=p(r,l.route,l,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(r,d,e,i);a(f,{path:v,payload:u});let g=await s().put(d,u,c);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=m(r,n,e,i);return t(a)},a,o)},i,g),o(f),{status:g.status,data:g.data,headers:g.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e){var t,n,r;let a=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:u}=Z(),d=p(o,a.route,a,void 0);return(0,i.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,r=a.disabled||u&&!o.password,!n||r?null:n),async()=>{if(!a.route)throw Error("No route");let e=h(o,a,void 0);if(!d)throw Error("No route");try{return(await s().get(d,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=a.config)||void 0===t?void 0:t.swr)}function H(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=Z(),{setWorkflow:a,removeWorkflow:o}=P(),l=u(e);return{delete:async e=>{let i=d(e);try{let u=h(r,l,i),c=p(r,l.route,l,i);if(!c)throw Error("No route");let d=m(r,c,e,i);a(c,{path:d});let f=await s().delete(c,u);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=m(r,n,e,i);return t(a)},a,o)},i,f),o(c),{status:f.status,data:f.data,headers:f.headers}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function U(e){var t;let{get:n}=function(e){let{settings:t}=Z(),n=u(e);return{get:async e=>{let r=d(e);try{let e=h(t,n,r),i=p(t,n.route,n,r);if(!i)throw Error("No route");let a=await s().get(i,e);return{status:a.status,data:a.data,headers:a.headers}}catch(t){var i,a,o,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(a=t.response)||void 0===a?void 0:a.data.text()):(null===(o=t.response)||void 0===o?void 0:o.data)||t.message;return{status:null===(l=t.response)||void 0===l?void 0:l.status,error:e}}}}}({...e,config:{...e.config,axios:{...null===(t=e.config)||void 0===t?void 0:t.axios,responseType:"blob"}}});return{get:async(e,t)=>{let r=await n(t);return r.data&&function(e,t){let n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),URL.revokeObjectURL(n)},100)}(e,r.data),r}}}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function q(){return Math.round((new Date().getTime()-14336e8)/6e5)}function $(){return Math.round((new Date().getTime()-16736e8)/6e5)}function K(e){let{settings:t}=Z();return(0,l.useMemo)(()=>function(n,r,a){return(0,i.JG)(r=>"string"==typeof r&&n(m(t,r,e,void 0)),r,a)},[t,e])}function Y(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,v.jsx)(N,{children:(0,v.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},61020:function(e,t,n){"use strict";n.d(t,{aXP:function(){return tP},eHR:function(){return tz},xHM:function(){return tV},L6f:function(){return tI},rW0:function(){return tB},osk:function(){return tH},JaG:function(){return tU},wWN:function(){return iv},Dkj:function(){return iC},fi8:function(){return im},EMN:function(){return tQ},bdU:function(){return t0},VUy:function(){return t1},Cp0:function(){return t2},kqg:function(){return t4},Mes:function(){return t3},oce:function(){return t6},uTh:function(){return t5},DI$:function(){return t7},Y3p:function(){return t9.Y3p},Z$8:function(){return t9.Z$8},tEK:function(){return t9.tEK},yar:function(){return t9.yar},F3j:function(){return t9.F3j},PcV:function(){return t9.PcV},QN4:function(){return t9.QN4},Jsc:function(){return t9.Jsc},T80:function(){return t9.T80},bQp:function(){return t9.bQp},Y9T:function(){return t9.Y9T},wEY:function(){return nr},olJ:function(){return na},vtB:function(){return ni},KiD:function(){return nl},B4q:function(){return nh},_Eq:function(){return nu},VHe:function(){return ik},Jrl:function(){return np},aPl:function(){return nm},kBK:function(){return iw},c_L:function(){return nb},Bpb:function(){return nx},vzB:function(){return nw},nDH:function(){return n_},dr6:function(){return nO},_fo:function(){return nM},d19:function(){return nT},w9S:function(){return nA},VBo:function(){return ig},q0D:function(){return nL},Hb6:function(){return nD},CCF:function(){return nZ},Qbr:function(){return nI},L37:function(){return nB},ROc:function(){return iE},UG6:function(){return ij},lq1:function(){return nH},zvn:function(){return iy},EL$:function(){return nW},BdP:function(){return nq.BdP},e1T:function(){return nq.e1T},P5r:function(){return nq.P5r},RdX:function(){return nq.RdX},U_S:function(){return nq.U_S},_m8:function(){return i_},V8Q:function(){return nJ},POp:function(){return nQ},nCM:function(){return n2},kSc:function(){return n1},TtX:function(){return n0},mBM:function(){return ix},Lur:function(){return n6},b47:function(){return n8},Sfn:function(){return n7},W$S:function(){return ri},T85:function(){return ra},c6N:function(){return ro},Ckx:function(){return rs},EOT:function(){return rl},RK4:function(){return rc},jH8:function(){return rm},XJM:function(){return rv},RRj:function(){return rg},ka0:function(){return ry},hzZ:function(){return rw},n6M:function(){return rj},VUg:function(){return r_},owP:function(){return rO},Fs9:function(){return rM},wGX:function(){return rT},Wet:function(){return rA.Wet},xkX:function(){return rA.xkX},Zbu:function(){return rA.Zbu},ZEk:function(){return rA.ZEk},$Iz:function(){return rL},UBs:function(){return rZ},shL:function(){return rF},hiv:function(){return rz},eOF:function(){return rH},mli:function(){return rB},_kF:function(){return rW},lJ7:function(){return iS},ORH:function(){return rY},I98:function(){return rX},R$6:function(){return rG},JCW:function(){return r8},xVB:function(){return r7},pHg:function(){return r9},I$H:function(){return it},HCc:function(){return ie},oaN:function(){return ib},qdM:function(){return ia},KTM:function(){return ii},gFQ:function(){return ir},Gu6:function(){return io},SmH:function(){return ic},RFr:function(){return id},lg1:function(){return ih}});var r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k,E,S,C,_,O,M,T,A,P,N,R,D,L,Z,F,z,V,I,B,H,U,W,q,$,K,Y,X,G,J,Q,ee,et,en,er,ei,ea,eo,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,ek,eE,eS,eC,e_,eO,eM,eT,eA,eP,eN,eR,eD,eL,eZ,eF,ez,eV,eI,eB,eH,eU,eW,eq,e$,eK,eY,eX,eG,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,ta,to,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tj,tk,tE,tS,tC,t_,tO,tM=n(36662),tT=n(2784),tA=["children"],tP=tT.forwardRef(function(e,t){var n=e.children,i=(0,tM._)(e,tA);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=tT.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tN=["children"],tR=["children"],tD=["children"],tL=["children"],tZ=["children"],tF=["children"],tz=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tN);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=tT.createElement("path",{d:"M14 19H18V21H14z"})),a||(a=tT.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tV=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tR);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=tT.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),tI=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tD);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tT.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),tB=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tL);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=tT.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),tH=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tZ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tT.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),tU=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tF);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tT.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),d||(d=tT.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),f||(f=tT.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),h||(h=tT.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),p||(p=tT.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),m||(m=tT.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),v||(v=tT.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),g||(g=tT.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),y||(y=tT.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),tW=["children"],tq=["children"],t$=["children"],tK=["children"],tY=["children"],tX=["children"],tG=["children"],tJ=["children"],tQ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tW);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),b||(b=tT.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t0=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tq);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),x||(x=tT.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t1=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,t$);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),w||(w=tT.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),t2=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tK);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tT.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),t4=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tY);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tT.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),t3=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tX);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tT.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),t5=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tG);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tT.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),t6=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,tJ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tT.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),t8=["children"],t7=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,t8);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tT.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),O||(O=tT.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),t9=n(98358),ne=["children"],nt=["children"],nn=["children"],nr=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ne);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tT.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),T||(T=tT.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),ni=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nt);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tT.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),P||(P=tT.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),na=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nn);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tT.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),R||(R=tT.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),no=["children"],ns=["children"],nl=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,no);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tT.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),L||(L=tT.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nu=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ns);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tT.createElement("circle",{cx:"22",cy:"24",r:"2"})),F||(F=tT.createElement("path",{d:"M29.7769,23.4785A8.64,8.64,0,0,0,22,18a8.64,8.64,0,0,0-7.7769,5.4785L14,24l.2231.5215A8.64,8.64,0,0,0,22,30a8.64,8.64,0,0,0,7.7769-5.4785L30,24ZM22,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,28Z"})),z||(z=tT.createElement("circle",{cx:"8",cy:"8",r:"1"})),V||(V=tT.createElement("circle",{cx:"8",cy:"16",r:"1"})),I||(I=tT.createElement("circle",{cx:"8",cy:"24",r:"1"})),B||(B=tT.createElement("path",{d:"M5,21h7V19H5V13H21v3h2V5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2h7V27H5ZM5,5H21v6H5Z"})),n)}),nc=["children"],nd=["children"],nf=["children"],nh=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nc);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tT.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),U||(U=tT.createElement("path",{d:"M27,3H5A2.0025,2.0025,0,0,0,3,5V27a2.0025,2.0025,0,0,0,2,2H27a2.0025,2.0025,0,0,0,2-2V5A2.0025,2.0025,0,0,0,27,3Zm0,2,0,4H5V5ZM5,27V11H27l0,16Z"})),n)}),np=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nd);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tT.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),q||(q=tT.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nm=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nf);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tT.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),K||(K=tT.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nv=["children"],ng=["children"],ny=["children"],nb=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nv);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tT.createElement("path",{d:"M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"})),X||(X=tT.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),nx=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ng);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),G||(G=tT.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nw=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ny);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),J||(J=tT.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),nj=["children"],nk=["children"],nE=["children"],nS=["children"],nC=["children"],n_=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nj);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z"})),n)}),nO=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nk);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ee||(ee=tT.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),nM=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nE);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tT.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),n)}),nT=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nS);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),en||(en=tT.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),er||(er=tT.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ei||(ei=tT.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nA=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nC);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tT.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),nP=["children"],nN=["children"],nR=["children"],nD=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nP);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tT.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nL=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nN);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tT.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nZ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nR);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tT.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),nF=["children"],nz=["children"],nV=["children"],nI=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nF);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tT.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),nB=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nz);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ec||(ec=tT.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),ed||(ed=tT.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),nH=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nV);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tT.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),eh||(eh=tT.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),nU=["children"],nW=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nU);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tT.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),nq=n(315),n$=["children"],nK=["children"],nY=["children"],nX=["children"],nG=["children"],nJ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n$);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tT.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),ev||(ev=tT.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),nQ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nK);return tT.createElement(tM.I,(0,tM.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tT.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),ey||(ey=tT.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),n0=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nY);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tT.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),n1=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nX);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tT.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),n2=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,nG);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tT.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),n4=["children"],n3=["children"],n5=["children"],n6=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n4);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tT.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),n8=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n3);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tT.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eE||(eE=tT.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),n7=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n5);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tT.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),n9=["children"],re=["children"],rt=["children"],rn=["children"],rr=["children"],ri=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,n9);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tT.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),e_||(e_=tT.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),ra=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,re);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tT.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),ro=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rt);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tT.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2 l2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z"})),eT||(eT=tT.createElement("path",{d:"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8 l2.7,2.7L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),rs=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rn);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tT.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eP||(eP=tT.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rl=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rr);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=tT.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eR||(eR=tT.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),ru=["children"],rc=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,ru);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tT.createElement("circle",{cx:"21",cy:"26",r:"2"})),eL||(eL=tT.createElement("circle",{cx:"21",cy:"6",r:"2"})),eZ||(eZ=tT.createElement("circle",{cx:"4",cy:"16",r:"2"})),eF||(eF=tT.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rd);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tT.createElement("circle",{cx:"8",cy:"16",r:"2"})),eV||(eV=tT.createElement("circle",{cx:"16",cy:"16",r:"2"})),eI||(eI=tT.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),rv=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rf);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tT.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rg=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rh);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tT.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),ry=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rp);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tT.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eW||(eW=tT.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rb=["children"],rx=["children"],rw=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rb);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),e$||(e$=tT.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rj=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rx);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tT.createElement("path",{d:"M29.37,14.75,20,10V6a4,4,0,0,0-8,0v4L2.63,14.75a1,1,0,0,0-.63.93v5a1,1,0,0,0,1,1,1,1,0,0,0,.29-.05L12,18v5L8.55,24.72a1,1,0,0,0-.55.9V29a1,1,0,0,0,1,1,.9.9,0,0,0,.28,0L16,28l6.72,2A.9.9,0,0,0,23,30a1,1,0,0,0,1-1V25.62a1,1,0,0,0-.55-.9L20,23V18l8.71,3.61a1,1,0,0,0,.29.05,1,1,0,0,0,1-1v-5A1,1,0,0,0,29.37,14.75ZM28,19.15,18,15v9.24l4,2v1.43l-6-1.75-6,1.75V26.24l4-2V15L4,19.15V16.3l10-5.07V6a2,2,0,0,1,4,0v5.23L28,16.3Z"})),n)}),rk=["children"],rE=["children"],rS=["children"],rC=["children"],r_=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rk);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tT.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),eX||(eX=tT.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),rO=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rE);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tT.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),eJ||(eJ=tT.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),eQ||(eQ=tT.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),rM=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rS);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),rT=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rC);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=tT.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e2||(e2=tT.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),rA=n(55791),rP=["children"],rN=["children"],rR=["children"],rD=["children"],rL=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rP);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e4||(e4=tT.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),rZ=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rN);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=tT.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),n)}),rF=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rR);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tT.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),e6||(e6=tT.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),rz=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rD);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tT.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),rV=["children"],rI=["children"],rB=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rV);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tT.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rH=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rI);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tT.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rU=["children"],rW=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rU);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tT.createElement("path",{d:"M14 20.18L10.41 16.59 9 18 14 23 23 14 21.59 12.58 14 20.18z"})),tt||(tt=tT.createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),n)}),rq=["children"],r$=["children"],rK=["children"],rY=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rq);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tT.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),rX=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r$);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=tT.createElement("path",{d:"M29.391,14.527L17.473,2.609C17.067,2.203,16.533,2,16,2s-1.067,0.203-1.473,0.609L2.609,14.527C2.203,14.933,2,15.466,2,16 s0.203,1.067,0.609,1.473l11.917,11.917C14.933,29.797,15.467,30,16,30s1.067-0.203,1.473-0.609l11.917-11.917 C29.797,17.067,30,16.534,30,16S29.797,14.933,29.391,14.527z M21,18H11v-4h10V18z"})),ti||(ti=tT.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),rG=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rK);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tT.createElement("path",{d:"M3 9L3.7 9.7 7.5 5.9 7.5 15 8.5 15 8.5 5.9 12.3 9.7 13 9 8 4zM3 4V2h10v2h1V2c0-.6-.4-1-1-1H3C2.4 1 2 1.4 2 2v2H3z"})),n)}),rJ=["children"],rQ=["children"],r0=["children"],r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=["children"],r6=["children"],r8=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rJ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tT.createElement("path",{d:"M21,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H21a2,2,0,0,1,2,2v4.06l5.42-3.87A1,1,0,0,1,30,9V23a1,1,0,0,1-1.58.81L23,19.94V24A2,2,0,0,1,21,26ZM4,8V24H21V18a1,1,0,0,1,1.58-.81L28,21.06V10.94l-5.42,3.87A1,1,0,0,1,21,14V8Z"})),n)}),r7=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,rQ);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tT.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tl||(tl=tT.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),r9=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r0);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tT.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tc||(tc=tT.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),ie=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r1);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tT.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tT.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),it=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r2);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tT.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tT.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),ir=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r4);return tT.createElement(tM.I,(0,tM.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),tv||(tv=tT.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),ii=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r3);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),ty||(ty=tT.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),ia=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r5);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tb||(tb=tT.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tx||(tx=tT.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),io=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,r6);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tT.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),tj||(tj=tT.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}),is=["children"],il=["children"],iu=["children"],ic=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,is);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tT.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tE||(tE=tT.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),id=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,il);return tT.createElement(tM.I,(0,tM.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=tT.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM28,15H22A24.26,24.26,0,0,0,19.21,4.45,12,12,0,0,1,28,15ZM16,28a5,5,0,0,1-.67,0A21.85,21.85,0,0,1,12,17H20a21.85,21.85,0,0,1-3.3,11A5,5,0,0,1,16,28ZM12,15a21.85,21.85,0,0,1,3.3-11,6,6,0,0,1,1.34,0A21.85,21.85,0,0,1,20,15Zm.76-10.55A24.26,24.26,0,0,0,10,15h-6A12,12,0,0,1,12.79,4.45ZM4.05,17h6a24.26,24.26,0,0,0,2.75,10.55A12,12,0,0,1,4.05,17ZM19.21,27.55A24.26,24.26,0,0,0,22,17h6A12,12,0,0,1,19.21,27.55Z"})),n)}),ih=tT.forwardRef(function(e,t){var n=e.children,r=(0,tM._)(e,iu);return tT.createElement(tM.I,(0,tM.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tT.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),t_||(t_=tT.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tO||(tO=tT.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),ip=n(52322);function im(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M96 152v8H48v-8C48 68.1 116.1 0 200 0h48c83.9 0 152 68.1 152 152v8H352v-8c0-57.4-46.6-104-104-104H200C142.6 48 96 94.6 96 152zM0 224c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-5.1L388.5 469c-2.6 24.4-23.2 43-47.7 43H107.2c-24.6 0-45.2-18.5-47.7-43L37.1 256H32c-17.7 0-32-14.3-32-32z"})})}function iv(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ip.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function ig(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ip.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iy(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ip.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function ib(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ip.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function ix(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function iw(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function ij(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ip.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function ik(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,ip.jsx)("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"})})}function iE(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ip.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function iS(e){let{size:t=24}=e;return(0,ip.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,ip.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ip.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,ip.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,ip.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,ip.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iC(e){let{size:t=24}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ip.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}function i_(e){let{size:t=24,className:n}=e;return(0,ip.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ip.jsx)("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})})}},55329:function(e,t,n){"use strict";n.d(t,{cJ:function(){return C},Z7:function(){return X},Uy:function(){return G},e$:function(){return el},oe:function(){return eu},S0:function(){return ec},YX:function(){return es},Bl:function(){return ed},D5:function(){return P},oV:function(){return N},sg:function(){return D},ol:function(){return R},B$:function(){return A},d_:function(){return o},DQ:function(){return s},cq:function(){return O},IK:function(){return M},Wu:function(){return T},GP:function(){return _},nH:function(){return l},$:function(){return x},wW:function(){return S},s2:function(){return j},ni:function(){return k},uf:function(){return w},Os:function(){return E},FV:function(){return b},Yy:function(){return Q},Bi:function(){return ee},X1:function(){return et},LS:function(){return ei},_3:function(){return er},eM:function(){return en},bg:function(){return ea},Pt:function(){return ev},wy:function(){return F},xw:function(){return I},Jv:function(){return L},p$:function(){return ep},SD:function(){return Z},GD:function(){return V},Iy:function(){return z},Q5:function(){return B},ZM:function(){return em},f$:function(){return ey},M6:function(){return W},Kh:function(){return U},fz:function(){return q},FD:function(){return $},KJ:function(){return Y},au:function(){return K},og:function(){return J},Wl:function(){return c},cQ:function(){return u},ys:function(){return f},QL:function(){return d},X2:function(){return h},aO:function(){return g},gU:function(){return m},a0:function(){return y},cg:function(){return v},Qq:function(){return p}});var r=n(79381),i=n(67108),a=n(79895);function o(e){return(0,i.Nf)({...e,route:a.PS})}function s(e){return(0,i.Nf)({...e,route:a.J6})}function l(){let e=o({config:{swr:{revalidateOnFocus:!1}}});return(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function u(e){return(0,i.Nf)({...e,route:a.gl})}function c(e){return(0,i.mw)({...e,route:a.aU},async e=>{e(e=>e===a.gl)})}function d(e){return(0,i.Nf)({...e,route:a.Oj})}function f(e){return(0,i.mw)({...e,route:a.MR},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(a.Oj)||e.startsWith(a.zk))})}function h(e){return(0,i.Nf)({...e,route:a.xg})}function p(e){return(0,i.Nf)({...e,route:a.Y6})}function m(e){return(0,i.mw)({...e,route:a.hg})}function v(e){return(0,i.mw)({...e,route:a.ZQ})}function g(e){return(0,i.mw)({...e,route:a.Oy})}function y(e){return(0,i.Nf)({...e,route:a.zk})}function b(e){return(0,i.q0)({...e,route:a.Rp})}function x(e){return(0,i.Nf)({...e,route:a.rg})}function w(e){return(0,i.Nf)({...e,route:a.yu})}function j(e){return(0,i.Nf)({...e,route:a.MF})}function k(e){return(0,i.V1)({...e,route:a.MF},async e=>{e(e=>!![a.Rp,a.MF,a.FP].find(t=>e.startsWith(t)))})}function E(e){return(0,i.V1)({...e,route:a.yu},async e=>{e(e=>!![a.Rp,a.yu,a.FP].find(t=>e.startsWith(t)))})}function S(e){return(0,i.mw)({...e,route:a.KP})}function C(e){return(0,i.mw)({...e,route:a.UM})}function _(e){return(0,i.Nf)({...e,route:a.FP})}function O(e){return(0,i.Nf)({...e,route:a.J9})}function M(e){return(0,i.iv)({...e,route:a.J9},async e=>{e(e=>e.startsWith(a.ft))})}function T(e){return(0,i.Nf)({...e,route:a.E_})}function A(e){return(0,i.Nf)({...e,route:a.AJ})}function P(e){return(0,i.Nf)({...e,route:a.aq})}function N(e){return(0,i.mw)({...e,route:a.AJ},async e=>{e(e=>e.startsWith(a.AJ))})}function R(e){return(0,i.V1)({...e,route:a.mD},async e=>{e(e=>e.startsWith(a.rS))})}function D(e){return(0,i.iv)({...e,route:a.aq},async e=>{e(e=>e.startsWith(a.rS))})}function L(e){return(0,i.Nf)({...e,route:a.uT})}function Z(e){return(0,i.q0)({...e,route:a.p_})}function F(e){return(0,i.Nf)({...e,route:a.uT})}function z(e){return(0,i.Nf)({...e,route:a.O7})}function V(e){return(0,i.mw)({...e,route:a.oZ})}function I(e){return(0,i.iv)({...e,route:a.uT},async e=>{e(e=>e.startsWith(a.DL))})}function B(e){return(0,i.Nf)({...e,route:a.VJ})}function H(e){return(0,i.Nf)({...e,route:a.ww})}function U(e){return H({...e,params:{key:"gouging"}})}function W(e){return H({...e,params:{key:"contractset"}})}function q(e){return H({...e,params:{key:"redundancy"}})}function $(e){return H({...e,params:{key:"s3authentication"}})}function K(e){return H({...e,params:{key:"uploadpacking"}})}function Y(e){return(0,i.V1)({...e,route:a.ww},async(e,t)=>{e(e=>e.startsWith(a.ww.replace(":key",t.params.key)))})}function X(e){return(0,i.Nf)({...e,route:a.jL})}function G(e){return(0,i.mw)({...e,route:a.ks},async e=>{e(e=>e.startsWith(a.jL))})}function J(e){return(0,i.Nf)({...e,route:a.go})}function Q(e){return(0,i.Nf)({...e,route:a.hp})}function ee(e){return(0,i.Nf)({...e,route:a.Mj})}function et(e){return(0,i.Nf)({...e,route:a.nI})}function en(e){return(0,i.mw)({...e,route:a.sW},async e=>{e(e=>e.startsWith(a.Wy))})}function er(e){return(0,i.mw)({...e,route:a.Pw},async e=>{e(e=>e.startsWith(a.Wy))})}function ei(e){return(0,i.mw)({...e,route:a.w_},async e=>{e(e=>e.startsWith(a.Wy))})}function ea(e){return(0,i.q0)({...e,route:a.CM})}var eo=n(56922);function es(e){return(0,i.Nf)({...e,route:eo.E})}function el(e){return(0,i.Nf)({...e,route:eo.yq})}function eu(e){return(0,i.V1)({...e,route:eo.yq},async e=>{e(e=>e===eo.yq),(async()=>{await (0,i.gw)(1e3),e(e=>e===eo.E)})()})}function ec(e){return(0,i.q0)({...e,route:eo.fu})}function ed(e){return(0,i.mw)({...e,route:eo.sM})}var ef=n(1456),eh=n(8117);function ep(e){return(0,i.rB)({...e,route:eh.Hc})}function em(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:eh.Hc},async e=>{e(e=>e.startsWith(a.DL))})}function ev(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:eh.bW})}let eg=(0,ef.Z)(e=>e(),5e3);function ey(e){return(0,i.mw)({...e,route:eh.RF},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith(eo.fu),e=>null==e?void 0:e.map(e=>e.host.publicKey===r?{...e,host:{...e.host,interactions:{...e.host.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),e(e=>e.startsWith(a.Rp),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,interactions:{...e.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}:e),!1),eg(()=>{e(e=>e.startsWith(eo.fu)||e.startsWith(a.Rp),e=>e,!0)})})}},56922:function(e,t,n){"use strict";n.d(t,{E:function(){return r},fu:function(){return a},sM:function(){return o},yq:function(){return i}});let r="/autopilot/state",i="/autopilot/config",a="/autopilot/hosts",o="/autopilot/trigger"},79895:function(e,t,n){"use strict";n.d(t,{AJ:function(){return C},CM:function(){return q},DL:function(){return M},E_:function(){return E},FP:function(){return w},J6:function(){return i},J9:function(){return k},KP:function(){return b},MF:function(){return y},MR:function(){return l},Mj:function(){return V},O7:function(){return P},Oj:function(){return s},Oy:function(){return h},PS:function(){return r},Pw:function(){return U},Rp:function(){return m},UM:function(){return x},VJ:function(){return R},Wy:function(){return B},Y6:function(){return c},ZQ:function(){return f},aU:function(){return o},aq:function(){return _},ft:function(){return j},gl:function(){return a},go:function(){return F},hg:function(){return d},hp:function(){return z},jL:function(){return L},ks:function(){return Z},mD:function(){return O},nI:function(){return I},oZ:function(){return N},p_:function(){return A},rS:function(){return S},rg:function(){return v},sW:function(){return H},uT:function(){return T},w_:function(){return W},ww:function(){return D},xg:function(){return u},yu:function(){return g},zk:function(){return p}});let r="/bus/state",i="/bus/consensus/state",a="/bus/syncer/peers",o="/bus/syncer/connect",s="/bus/txpool/transactions",l="/bus/txpool/broadcast",u="/bus/wallet",c="/bus/wallet/transactions",d="/bus/wallet/fund",f="/bus/wallet/sign",h="/bus/wallet/discard",p="/bus/wallet/pending",m="/bus/search/hosts",v="/bus/host/:hostKey",g="/bus/hosts/blocklist",y="/bus/hosts/allowlist",b="/bus/host/:publicKey/resetlostsectors",x="/bus/account/:id/resetdrift",w="/bus/contracts",j="/bus/contract",k="/bus/contract/:id",E="/bus/contracts/sets",S="/bus/bucket",C="/bus/buckets",_="/bus/bucket/:name",O="/bus/bucket/:name/policy",M="/bus/objects",T="/bus/objects/:key",A="/bus/objects/list",P="/bus/search/objects",N="/bus/objects/rename",R="/bus/stats/objects",D="/bus/setting/:key",L="/bus/alerts",Z="/bus/alerts/dismiss",F="/bus/slab/:key/objects",z="/bus/metric/contract",V="/bus/metric/contractset",I="/bus/metric/wallet",B="/bus/multipart",H="/bus/multipart/create",U="/bus/multipart/complete",W="/bus/multipart/abort",q="/bus/multipart/listuploads"},8117:function(e,t,n){"use strict";n.d(t,{Hc:function(){return r},RF:function(){return a},bW:function(){return i}});let r="/worker/objects/:key",i="/worker/multipart/:key",a="/worker/rhp/scan"},85375:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return a},BF:function(){return o}});var r=n(67108);let i="https://api.siacentral.com/v2";function a(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/list?showinactive=false&sort=download_speed&dir=desc&protocol=rhp3&page=0&limit=1000",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function o(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/network/averages",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function s(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}},21487:function(e,t,n){"use strict";n.d(t,{B$:function(){return a},xf:function(){return s},jr:function(){return j},pp:function(){return x},x5:function(){return w},JW:function(){return o},gU:function(){return g},vW:function(){return h},rN:function(){return v},yF:function(){return m},Vz:function(){return f},bc:function(){return p},S5:function(){return b},qN:function(){return c},ll:function(){return u},mv:function(){return y}});var r=n(6391),i=n.n(r);function a(e){return new(i())(e).times(1024).times(1024)}function o(e){return new(i())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function s(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let l=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(l).toFixed(t)):new r.BigNumber(e).dividedBy(l)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(l).toFixed(0))}let d={fixed:3,dynamicUnits:!0,hastingUnits:!1};function f(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:a}={...d,...t},o=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),c=new r.BigNumber(e).abs(),f=l.isNegative()?"-":"";if(!i)return"".concat(f).concat(u(c).toFormat(n)," SC");if(c.dividedBy(o).isLessThan(1))return a?"".concat(f).concat(c," H"):"".concat(f,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=c.dividedBy(o.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}function h(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let a=Math.floor(Math.log10(n)/Math.log10(1e3));return(n/Math.pow(1e3,a)).toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][a]}function p(e,t){let{format:n="abbreviated"}=t||{},r="abbreviated"===n;if(e<1e3)return"".concat(e.toFixed(0)).concat(r?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(r?"s":" seconds");let a=i/60;if(a<60)return"".concat(a.toFixed(0)).concat(r?"m":" minutes");let o=a/60;return o<24?"".concat(o.toFixed(0)).concat(r?"h":" hours"):"".concat((o/24).toFixed(0)).concat(r?"d":" days")}function m(e,t){let{fixed:n=0,units:r="",abbreviated:a=!1}=t||{},o=new(i())(e||0);if(a){let e=o.toNumber();if(e<1e3)return o.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),a=e/Math.pow(1e3,i);return"".concat(a.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(o.toFormat(n)).concat(r?" ".concat(r):"")}function v(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function g(e){return 144*e}function y(e){return 1008*e}function b(e){return 4320*e}function x(e){return e/16666666666666669e-22}function w(e){return e/1008}function j(e,t){return new Date().getTime()+x(t-e)}n(81395)},45932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},67531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return a}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function a(){return i?new i:new r}("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)},76923:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("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)},58710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(56428),a=n(26297),o=n(76923),s=n(33607),l=n(9424),u=n(84830),c=n(70929),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,o.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(a.SearchParamsContext);return(0,r.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,o.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(a.PathnameContext)}function v(){(0,o.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,o.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(a.PathParamsContext);return(0,r.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),a=i?t[1]:t;!a||a.startsWith("__PAGE__")||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function y(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let a;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)a=t[1][n];else{var o;let e=t[1];a=null!=(o=e.children)?o:Object.values(e)[0]}if(!a)return i;let l=a[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(a,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("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)},70929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===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)},32254:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("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)},84830:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return h},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return m}});let a=n(37449),o=n(45932),s=n(32254),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=a.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4),a=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(a)&&a in s.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("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)},37449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).createAsyncLocalStorage)();("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)},33607:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return 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)},40413:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",a="navigate",o="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("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)},41275:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(60261),("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)},84589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let r=n(43219),i=n(16794)._(n(2784)),a=r._(n(28316)),o=r._(n(70666)),s=n(35022),l=n(59595),u=n(22530);n(85667);let c=n(14442),d=r._(n(1071)),f={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:!0};function h(e,t,n,r,i,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function p(e){let[t,n]=i.version.split(".",2),r=parseInt(t,10),a=parseInt(n,10);return r>18||18===r&&a>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:a,height:o,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:m,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:j,onError:k,...E}=e;return i.default.createElement("img",{...E,...p(d),loading:m,width:s,height:o,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:a,srcSet:r,src:n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&h(e,f,y,b,x,v))},[n,f,y,b,x,k,v,t]),onLoad:e=>{h(e.currentTarget,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),k&&k(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...p(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):i.default.createElement(o.default,null,i.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let g=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(c.RouterContext),r=(0,i.useContext)(u.ImageConfigContext),a=(0,i.useMemo)(()=>{let e=f||r||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:o,onLoadingComplete:h}=e,p=(0,i.useRef)(o);(0,i.useEffect)(()=>{p.current=o},[o]);let g=(0,i.useRef)(h);(0,i.useEffect)(()=>{g.current=h},[h]);let[y,b]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),{props:j,meta:k}=(0,s.getImgProps)(e,{defaultLoader:d.default,imgConf:a,blurComplete:y,showAltText:x});return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:t}),k.priority?i.default.createElement(v,{isAppRouter:!n,imgAttributes:j}):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)},7117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(43219)._(n(2784)),i=n(86338),a=n(25863),o=n(6408),s=n(20654),l=n(41127),u=n(14442),c=n(56428),d=n(54746),f=n(41275),h=n(35722),p=n(40413),m=new Set;function v(e,t,n,r,i,o){if(o||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let n,o;let{href:m,as:y,children:b,prefetch:x=null,passHref:w,replace:j,shallow:k,scroll:E,locale:S,onClick:C,onMouseEnter:_,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let A=r.default.useContext(u.RouterContext),P=r.default.useContext(c.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==x,L=null===x?p.PrefetchKind.AUTO:p.PrefetchKind.FULL,{href:Z,as:F}=r.default.useMemo(()=>{if(!A){let e=g(m);return{href:e,as:y?g(y):e}}let[e,t]=(0,i.resolveHref)(A,m,!0);return{href:e,as:y?(0,i.resolveHref)(A,y):t||e}},[A,m,y]),z=r.default.useRef(Z),V=r.default.useRef(F);M&&(o=r.default.Children.only(n));let I=M?o&&"object"==typeof o&&o.ref:t,[B,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(e=>{(V.current!==F||z.current!==Z)&&(U(),V.current=F,z.current=Z),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[F,I,Z,U,B]);r.default.useEffect(()=>{N&&H&&D&&v(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof C||C(e),M&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,i,o,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,i,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](i||n,{scroll:e})};c?r.default.startTransition(f):f()}(e,N,Z,F,j,k,E,S,R)},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),N&&(D||!R)&&v(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,s.isAbsoluteUrl)(F))q.href=F;else if(!M||w||"a"===o.type&&!("href"in o.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,h.addBasePath)((0,l.addLocale)(F,e,null==A?void 0:A.defaultLocale))}return M?r.default.cloneElement(o,q):r.default.createElement("a",{...T,...q},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)},54746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(27155),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},24167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return o},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(9034)));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(n,r))}("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)},35022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(85667);let r=n(48026),i=n(59595);function a(e){return void 0!==e.default}function o(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 n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:j,placeholder:k="empty",blurDataURL:E,fetchPriority:S,layout:C,objectFit:_,objectPosition:O,lazyBoundary:M,lazyRoot:T,...A}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let Z=A.loader||D;delete A.loader,delete A.srcSet;let F="__next_img_default"in Z;if(F){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=Z;Z=t=>{let{config:n,...r}=t;return e(r)}}if(C){"fill"===C&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!d&&(d=t)}let z="",V=o(g),I=o(y);if("object"==typeof(n=c)&&(a(n)||void 0!==n.src)){let e=a(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,E=E||e.blurDataURL,z=e.src,!b){if(V||I){if(V&&!I){let t=V/e.width;I=Math.round(e.height*t)}else if(!V&&I){let t=I/e.height;V=Math.round(e.width*t)}}else V=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=o(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:O}:{},N?{}:{color:"transparent"},x),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:U.objectFit})+'")':'url("'+k+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:a,width:l[c]})}}({config:s,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:Z});return{props:{...A,loading:B?"lazy":p,fetchPriority:S,width:V,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:b}}}},48026:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,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"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},84420:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return l},default:function(){return u}});let r=n(43219),i=n(35022),a=n(85667),o=n(84589),s=r._(n(1071)),l=e=>{(0,a.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.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:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=o.Image},1071:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},6730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(43219)._(n(2784)).default.createContext(null)},9034:function(e,t,n){"use strict";/** @copyright (c) 2017-present James Kyle MIT License Permission is hereby granted, free of charge, to any person obtaining @@ -50,7 +50,7 @@ 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 r=n(43219)._(n(2784)),i=n(6730),a=[],o=[],s=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}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 n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new u(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let o=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return o.loading||o.error?r.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?r.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},9424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(16794)._(n(2784)),i=r.default.createContext(null);function a(e){let t=(0,r.useContext)(i);t&&t(e)}},50521:function(){},28863:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},46058:function(e){e.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(o,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,a=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;a>>i&1)==1),o.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case o.PATTERN000:return(t+n)%2==0;case o.PATTERN001:return t%2==0;case o.PATTERN010:return n%3==0;case o.PATTERN011:return(t+n)%3==0;case o.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case o.PATTERN101:return t*n%2+t*n%3==0;case o.PATTERN110:return(t*n%2+t*n%3)%2==0;case o.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+a-5)}for(var r=0;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}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=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,C(n)];if(e.sizen)return[!1,C(n)]}return[!0,null]}function A(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(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 R(e){e.preventDefault()}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,i=Q(K(e,F)),a=i.open,o=K(i,z);return(0,r.useImperativeHandle)(t,function(){return{open:a}},[a]),r.createElement(r.Fragment,null,n(q(q({},o),{},{open:a})))});Y.displayName="Dropzone";var X={disabled:!1,getFilesFromEvent:function(e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,o.mG)(this,void 0,void 0,function(){var n;return(0,o.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,o.ev)((0,o.ev)([],(0,o.CR)(t),!1),(0,o.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.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,o.mG)(this,void 0,void 0,function(){return(0,o.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};Y.defaultProps=X,Y.propTypes={children:a().func,accept:a().objectOf(a().arrayOf(a().string)),multiple:a().bool,preventDropOnDocument:a().bool,noClick:a().bool,noKeyboard:a().bool,noDrag:a().bool,noDragEventsBubbling:a().bool,minSize:a().number,maxSize:a().number,maxFiles:a().number,disabled:a().bool,getFilesFromEvent:a().func,onFileDialogCancel:a().func,onFileDialogOpen:a().func,useFsAccessApi:a().bool,autoFocus:a().bool,onDragEnter:a().func,onDragLeave:a().func,onDragOver:a().func,onDrop:a().func,onDropAccepted:a().func,onDropRejected:a().func,onError:a().func,validator:a().func};var G={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q(q({},X),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,S=t.noClick,C=t.noKeyboard,_=t.noDrag,F=t.noDragEventsBubbling,z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||Z(e)}).join(",")}(n)},[n]),Q=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" 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.')),i=!1),Array.isArray(r)&&r.every(Z)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),ea=B((0,r.useReducer)(J,G),2),eo=ea[0],es=ea[1],el=eo.isFocused,eu=eo.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&k&&er.current&&er.current.focus(),function(){}},[er,k,i]);var ep=(0,r.useCallback)(function(e){z?z(e):console.error(e)},[z]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return U(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||H(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]),N(e)&&Promise.resolve(a(e)).then(function(t){if(!P(e)||F){var n,r,i,a,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:o,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,a=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=j(M(e,i),1)[0],n=j(T(e,a,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[a,c,ep,F,Y,s,o,l,u,W]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,F]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],a=t[1],l=B(T(e,s,o),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[a,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,o,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(a(e)).then(function(t){(!P(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[a,ey,ep,F]),ex=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:Q}).then(function(e){return a(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(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 was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,Q,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[er,ex]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),ek=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.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(ex,0):ex())},[S,ex]),eS=function(e){return i?null:e},eC=function(e){return C?null:eS(e)},e_=function(e){return _?null:eS(e)},eO=function(e){F&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=K(e,V);return q(q($({onKeyDown:eC(D(r,ew)),onFocus:eC(D(a,ej)),onBlur:eC(D(o,ek)),onClick:eS(D(s,eE)),onDragEnter:e_(D(l,em)),onDragOver:e_(D(u,ev)),onDragLeave:e_(D(c,eg)),onDrop:e_(D(d,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||C?{}:{tabIndex:0}),f)}},[er,ew,ej,ek,eE,em,ev,eg,eb,C,_,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=K(e,I);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(n,eb)),onClick:eS(D(r,eT)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,l,eb,i]);return q(q({},eo),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(ex)})}function J(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},G),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},G);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,u,c=t(a),d=t(o);if(c&&d){if((l=a.length)!=o.length)return!1;for(s=l;0!=s--;)if(!e(a[s],o[s]))return!1;return!0}if(c!=d)return!1;var f=a instanceof Date,h=o instanceof Date;if(f!=h)return!1;if(f&&h)return a.getTime()==o.getTime();var p=a instanceof RegExp,m=o instanceof RegExp;if(p!=m)return!1;if(p&&m)return a.toString()==o.toString();var v=n(a);if((l=v.length)!==n(o).length)return!1;for(s=l;0!=s--;)if(!r.call(o,v[s]))return!1;if(i&&a instanceof Element&&o instanceof Element)return a===o;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!a.$$typeof)&&!e(a[u],o[u]))return!1;return!0}return a!=a&&o!=o}(e,a)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},72660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(13980)),i=a(n(2784));function a(e){return e&&e.__esModule?e:{default:e}}var o={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,a=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,a]+")"})};s.propTypes=o,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return a.default.createElement("svg",r({},s,{height:n,width:n,xmlns:o}),i?a.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,a.default[o]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var a=Math.round(i*m),o=Math.round(r*m),s=Math.round((i+1)*m)-a,c=Math.round((r+1)*m)-o;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:a,transformY:o})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,a,o,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),a=[],o=!1,s={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,o);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){o=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,a=c.useRef(null),o=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=o[0],l=o[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,E=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=(0,u.pi)((0,u.pi)({},E),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:a}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:S})):c.createElement(void 0===k?"div":k,(0,u.pi)({},C,{className:m,ref:S}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=b(),S=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},C=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=c.useMemo(function(){return k(i)},[i]);return c.createElement(E,{styles:S(a,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){_=!1}var M=!!_&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?T(t):A(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-o*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},z=0,V=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(z++)[0],a=c.useState(function(){return b()})[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var i,a=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[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=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(V.length&&V[V.length-1]===a){var n="deltaY"in e?Z(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,Z(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return V.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){V=V.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(C,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),a=n(41964),o=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),a(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,a,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(a+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,a="",o=t;r=s.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var l=i("(",")",o.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);a+=l.pre+u,o=l.post}return a+o}(n,l));if(c.length>1||n.indexOf("var(")>-1)return a+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=o.eval(f)}catch(e){return a+"("+n+")"}return"%"===d&&(u*=100),(a.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,a,o,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var a=i.exec(e);if(!a)break;if(void 0===a[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=a[1],s=a.index,l=r("(",")",e.substring(s));if(!l||l.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:o}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,a){var o,s;return r.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,s=a.functionIdentifier,i(e(o,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>o});let i=(r=n(37540))&&r.__esModule?r:{default:r};function a({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let o={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(93542);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let a=(r=n(24470))&&r.__esModule?r:{default:r},o=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&o.has(n)||(n&&o.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return a.default.dim(e)}let u={info(e,t){s(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(a.default.bold(a.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n=t||n<0||v&&e-o.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var s=t-(i-a.current);n(e,v?Math.min(s,g-(i-o.current)):s)}},x=function(){var d=Date.now(),h=r(d);if(l.current=[].slice.call(arguments),u.current=i,a.current=d,h){if(!s.current&&f.current)return o.current=a.current,n(b,t),p?e(a.current):c.current;if(v)return n(b,t),e(a.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,l.current=a.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return l(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);let i=new Map,a=new Set;function o(e){for(let t of[...a])t(e)}function s(e){try{return e()}catch(e){return}}var l=function(e,t){if(void 0===r.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[n]=(0,r.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return a.add(n),()=>{a.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}o(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&o(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),o(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** +*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=n(43219)._(n(2784)),i=n(6730),a=[],o=[],s=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}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 n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new u(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let o=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return o.loading||o.error?r.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?r.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},9424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(16794)._(n(2784)),i=r.default.createContext(null);function a(e){let t=(0,r.useContext)(i);t&&t(e)}},50521:function(){},28863:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},46058:function(e){e.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(o,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,a=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;a>>i&1)==1),o.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case o.PATTERN000:return(t+n)%2==0;case o.PATTERN001:return t%2==0;case o.PATTERN010:return n%3==0;case o.PATTERN011:return(t+n)%3==0;case o.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case o.PATTERN101:return t*n%2+t*n%3==0;case o.PATTERN110:return(t*n%2+t*n%3)%2==0;case o.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+a-5)}for(var r=0;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}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=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,C(n)];if(e.sizen)return[!1,C(n)]}return[!0,null]}function A(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(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 R(e){e.preventDefault()}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,i=J(K(e,F)),a=i.open,o=K(i,z);return(0,r.useImperativeHandle)(t,function(){return{open:a}},[a]),r.createElement(r.Fragment,null,n(q(q({},o),{},{open:a})))});Y.displayName="Dropzone";var X={disabled:!1,getFilesFromEvent:function(e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,o.mG)(this,void 0,void 0,function(){var n;return(0,o.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,o.ev)((0,o.ev)([],(0,o.CR)(t),!1),(0,o.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.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,o.mG)(this,void 0,void 0,function(){return(0,o.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};Y.defaultProps=X,Y.propTypes={children:a().func,accept:a().objectOf(a().arrayOf(a().string)),multiple:a().bool,preventDropOnDocument:a().bool,noClick:a().bool,noKeyboard:a().bool,noDrag:a().bool,noDragEventsBubbling:a().bool,minSize:a().number,maxSize:a().number,maxFiles:a().number,disabled:a().bool,getFilesFromEvent:a().func,onFileDialogCancel:a().func,onFileDialogOpen:a().func,useFsAccessApi:a().bool,autoFocus:a().bool,onDragEnter:a().func,onDragLeave:a().func,onDragOver:a().func,onDrop:a().func,onDropAccepted:a().func,onDropRejected:a().func,onError:a().func,validator:a().func};var G={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=q(q({},X),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,S=t.noClick,C=t.noKeyboard,_=t.noDrag,F=t.noDragEventsBubbling,z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||Z(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" 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.')),i=!1),Array.isArray(r)&&r.every(Z)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),ea=B((0,r.useReducer)(Q,G),2),eo=ea[0],es=ea[1],el=eo.isFocused,eu=eo.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&k&&er.current&&er.current.focus(),function(){}},[er,k,i]);var ep=(0,r.useCallback)(function(e){z?z(e):console.error(e)},[z]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return U(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||H(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]),N(e)&&Promise.resolve(a(e)).then(function(t){if(!P(e)||F){var n,r,i,a,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:o,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,a=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=j(M(e,i),1)[0],n=j(T(e,a,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[a,c,ep,F,Y,s,o,l,u,W]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,F]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],a=t[1],l=B(T(e,s,o),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[a,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,o,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(a(e)).then(function(t){(!P(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[a,ey,ep,F]),ex=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return a(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(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 was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,J,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[er,ex]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),ek=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.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(ex,0):ex())},[S,ex]),eS=function(e){return i?null:e},eC=function(e){return C?null:eS(e)},e_=function(e){return _?null:eS(e)},eO=function(e){F&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=K(e,V);return q(q($({onKeyDown:eC(D(r,ew)),onFocus:eC(D(a,ej)),onBlur:eC(D(o,ek)),onClick:eS(D(s,eE)),onDragEnter:e_(D(l,em)),onDragOver:e_(D(u,ev)),onDragLeave:e_(D(c,eg)),onDrop:e_(D(d,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||C?{}:{tabIndex:0}),f)}},[er,ew,ej,ek,eE,em,ev,eg,eb,C,_,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=K(e,I);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(n,eb)),onClick:eS(D(r,eT)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,l,eb,i]);return q(q({},eo),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(ex)})}function Q(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},G),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},G);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,u,c=t(a),d=t(o);if(c&&d){if((l=a.length)!=o.length)return!1;for(s=l;0!=s--;)if(!e(a[s],o[s]))return!1;return!0}if(c!=d)return!1;var f=a instanceof Date,h=o instanceof Date;if(f!=h)return!1;if(f&&h)return a.getTime()==o.getTime();var p=a instanceof RegExp,m=o instanceof RegExp;if(p!=m)return!1;if(p&&m)return a.toString()==o.toString();var v=n(a);if((l=v.length)!==n(o).length)return!1;for(s=l;0!=s--;)if(!r.call(o,v[s]))return!1;if(i&&a instanceof Element&&o instanceof Element)return a===o;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!a.$$typeof)&&!e(a[u],o[u]))return!1;return!0}return a!=a&&o!=o}(e,a)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},72660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(13980)),i=a(n(2784));function a(e){return e&&e.__esModule?e:{default:e}}var o={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,a=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,a]+")"})};s.propTypes=o,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return a.default.createElement("svg",r({},s,{height:n,width:n,xmlns:o}),i?a.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,a.default[o]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var a=Math.round(i*m),o=Math.round(r*m),s=Math.round((i+1)*m)-a,c=Math.round((r+1)*m)-o;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:a,transformY:o})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,a,o,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),a=[],o=!1,s={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,o);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){o=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,a=c.useRef(null),o=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=o[0],l=o[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,E=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=(0,u.pi)((0,u.pi)({},E),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:a}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:S})):c.createElement(void 0===k?"div":k,(0,u.pi)({},C,{className:m,ref:S}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=b(),S=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},C=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=c.useMemo(function(){return k(i)},[i]);return c.createElement(E,{styles:S(a,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){_=!1}var M=!!_&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?T(t):A(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-o*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},z=0,V=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(z++)[0],a=c.useState(function(){return b()})[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var i,a=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[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=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(V.length&&V[V.length-1]===a){var n="deltaY"in e?Z(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,Z(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return V.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){V=V.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(C,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),a=n(41964),o=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),a(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,a,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(a+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,a="",o=t;r=s.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var l=i("(",")",o.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);a+=l.pre+u,o=l.post}return a+o}(n,l));if(c.length>1||n.indexOf("var(")>-1)return a+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=o.eval(f)}catch(e){return a+"("+n+")"}return"%"===d&&(u*=100),(a.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,a,o,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var a=i.exec(e);if(!a)break;if(void 0===a[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=a[1],s=a.index,l=r("(",")",e.substring(s));if(!l||l.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:o}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,a){var o,s;return r.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,s=a.functionIdentifier,i(e(o,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>o});let i=(r=n(37540))&&r.__esModule?r:{default:r};function a({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let o={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(93542);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let a=(r=n(24470))&&r.__esModule?r:{default:r},o=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&o.has(n)||(n&&o.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return a.default.dim(e)}let u={info(e,t){s(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(a.default.bold(a.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n=t||n<0||v&&e-o.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var s=t-(i-a.current);n(e,v?Math.min(s,g-(i-o.current)):s)}},x=function(){var d=Date.now(),h=r(d);if(l.current=[].slice.call(arguments),u.current=i,a.current=d,h){if(!s.current&&f.current)return o.current=a.current,n(b,t),p?e(a.current):c.current;if(v)return n(b,t),e(a.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,l.current=a.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return l(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);let i=new Map,a=new Set;function o(e){for(let t of[...a])t(e)}function s(e){try{return e()}catch(e){return}}var l=function(e,t){if(void 0===r.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[n]=(0,r.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return a.add(n),()=>{a.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}o(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&o(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),o(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * @@ -61,4 +61,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}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 n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return G},Ry:function(){return ey},Z_:function(){return K}});try{y=Map}catch(e){}try{b=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(y&&t instanceof y)return new Map(Array.from(t.entries()));if(b&&t instanceof b)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var a=Object.create(t);for(var o in i.push(a),t){var s=n.findIndex(function(e){return e===t[o]});a[o]=s>-1?i[s]:e(t[o],n,i)}return a}return t}(e,[],[])}let i=Object.prototype.toString,a=Error.prototype.toString,o=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+a.call(e)+"]":"RegExp"===r?o.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,a=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={isValue:"${path} field must be ${value}"},v={noUnknown:"${path} field has unspecified keys: ${unknown}"},g={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:v,array:g,boolean:m});var y,b,x=n(93352),w=n.n(x),j=e=>e&&e.__isYupSchema__;class k{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!w()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),o=a(...e)?r:i;if(o)return"function"==typeof o?o(n):n.concat(o.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!j(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}}function E(e){return null==e?[]:[].concat(e)}function S(){return(S=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{_.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,_)}}let O=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function M(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:s,path:l}=e,u=O(t),c=r.length,d=[];if(o=o||[],!c)return o.length?u(new _(o,a,l)):u(null,a);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return R.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=A()(D({value:i,originalValue:l,label:o,path:e.path||a},h,e.params),g),n=new _(_.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=D({path:a,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{_.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}_.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}R.prototype.__isYupRef=!0;let Z=e=>e.substr(0,e.length-1).substr(1);class F{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(R.isRef(n)?e(n):n),[])}add(e){R.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){R.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new F;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function z(){return(z=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=z({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=z({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(z({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=z({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(z({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),a=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". attempted value: ${i} -`+(a!==i?`result of cast: ${a}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:a=[],originalValue:o=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),M({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);M({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(z({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(z({},t,{value:e}))._validate(e,z({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(_.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(_.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=L(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=E(e).map(e=>new R(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new k(r,t)),n}typeError(e){let t=this.clone();return t._typeError=L({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=L({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=L({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec;return{meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)}}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:a,schema:o}=function(e,t,n,r=n){let i,a,o;return t?((0,P.forEach)(t,(s,l,u)=>{let c=l?Z(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}a=c,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return o[e](i&&i[a],z({},r,{parent:i,path:t}))};for(let e of["equals","is"])V.prototype[e]=V.prototype.oneOf;for(let e of["not","nope"])V.prototype[e]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired,V.prototype;var I=e=>null==e;class B extends V{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>I(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>I(e)||!1===e})}}B.prototype;let H=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,U=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,q=e=>I(e)||e===e.trim(),$=({}).toString();function K(){return new Y}class Y extends V{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===$?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return I(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return I(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>I(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(H,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(U,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(W,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:q})}lowercase(e=f.lowercase){return this.transform(e=>I(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>I(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toUpperCase()})}}K.prototype=Y.prototype;let X=e=>e!=+e;function G(){return new Q}class Q extends V{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!X(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return I(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return I(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>I(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>I(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>I(t)?t:Math[e](t))}}G.prototype=Q.prototype;var J=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ee=new Date(""),et=e=>"[object Date]"===Object.prototype.toString.call(e);function en(){return new er}class er extends V{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=J.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?ee:new Date(e)})})}_typeCheck(e){return et(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(R.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return I(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return I(e)||e<=this.resolve(n)}})}}er.INVALID_DATE=ee,en.prototype=er.prototype,en.INVALID_DATE=ee;var ei=n(57370),ea=n.n(ei),eo=n(96009),es=n.n(eo),el=n(19950),eu=n.n(el),ec=n(95159),ed=n.n(ec);function ef(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function eh(e){return(t,n)=>ef(e,t)-ef(e,n)}function ep(){return(ep=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),ev=eh([]);class eg extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ev,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return em(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ep({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of o){let n=i[e],o=w()(r,e);if(n){let i;let a=r[e];l.path=(t.path?`${t.path}.`:"")+e;let o="spec"in(n=n.resolve({value:a,context:t.context,parent:s}))?n.spec:void 0,c=null==o?void 0:o.strict;if(null==o?void 0:o.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else o&&!a&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;a=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,t.from=a,super._validate(e,t,(e,u)=>{if(e){if(!_.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!em(u)){n(r[0]||null,u);return}o=o||u,M({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ep({},t,{path:i,from:a,strict:!0,parent:u,originalValue:o[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ep({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof V&&t instanceof V&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=eh(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=(0,P.split)(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(let t in e)if(w()(e,t)){let n=e[t];r.add(t),R.isRef(n)&&n.isSibling?a(n.path,t):j(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return ed().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,P.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let a=i;return w()(i,e)&&(a=ep({},i),n||delete a[e],a[t]=r(i)),a})}noUnknown(e=!0,t=v.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=v.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&eu()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(es())}snakeCase(){return this.transformKeys(ea())}constantCase(){return this.transformKeys(e=>ea()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=A()(this.fields,e=>e.describe()),e}}function ey(e){return new eg(e)}function eb(){return(eb=Object.assign||function(e){for(var t=1;t{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1,i=n.map((e,n)=>{let i=this.innerType.cast(e,eb({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i});return r?i:n}_validate(e,t={},n){var r,i;let a=[],o=t.sync,s=t.path,l=this.innerType,u=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,r)=>{if(e){if(!_.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!l||!this._typeCheck(r)){n(a[0]||null,r);return}d=d||r;let i=Array(r.length);for(let e=0;el.validate(n,o,t)}M({sync:o,path:s,value:r,errors:a,endEarly:u,tests:i},n)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!j(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+c(e));return t.innerType=e,t}length(e,t=g.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return I(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||g.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||g.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return I(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}ex.prototype},44868:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>b,AnimatedArray:()=>O,AnimatedObject:()=>_,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(o({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),b=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},x=n(6901),w=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,x.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return x.is.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,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),k=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new k(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(j.is.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=(0,j.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},E=n(6901),S=n(6901),C={dependencies:null},_=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){C.dependencies&&(0,S.hasFluidValue)(e)&&C.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends _{constructor(e){super(e)}static create(e){return new O(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,E.isAnimatedString)(e)?k:w).create(e)}var T=n(6901);function A(e){let t=v(e);return t?t.constructor:T.is.arr(e)?O:(0,T.isAnimatedString)(e)?k:w}var P=n(6901),N=(i=null!=(r=n(2784))?a(u(r)):{},d(r&&r.__esModule?i:o(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var a;let o;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(a=r,o=new Set,C.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new _(a),C.dependencies=null,[a,o]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new Z(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},Z=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},F=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new _(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=V(e)||"Anonymous";return(e=P.is.str(e)?a[e]||(a[e]=L(e,i)):e[F]||(e[F]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=V(t)),a[n]=a(t)}),{animated:a}},V=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?a(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>Z,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>E,interpolate:()=>ts,to:()=>to,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eF,useSpringRef:()=>eI,useSpringValue:()=>eH,useSprings:()=>eZ,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(o({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x=e=>e,w=(e,t=x)=>{let n=j;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},j=["config","onProps","onStart","onChange","onPause","onResume","onRest"],k={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 E(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{k[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function C(e){for(let t in e)return!0;return!1}function _(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function O(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function T(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,p.each)(a,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var A=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),Z={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}},F={...Z.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,F)}};function V(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var I=[],B=class{constructor(){this.changed=!1,this.values=I,this.toValues=null,this.fromValues=I,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Y(e.get()):t.every(e=>e.noop)?$(e.get()):K(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Y=e=>({value:e,cancelled:!0,finished:!1});function X(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&Y(r)||i!==n.asyncId&&K(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let a=new Q,o=new J;return(async()=>{if(W.Globals.skipAnimation)throw G(n),o.result=K(r,!1),d(o),o;h(a);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return G(n),K(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=K(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof J)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return W.is.fun(o)&&W.raf.batchedUpdates(()=>{o(m,r,r.item)}),m})():l}function G(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=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.")}},J=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.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){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},ea=Symbol.for("SpringPhase"),eo=e=>(1&e[ea])>0,es=e=>(2&e[ea])>0,el=e=>(4&e[ea])>0,eu=(e,t)=>t?e[ea]|=3:e[ea]&=-3,ec=(e,t)=>t?e[ea]|=4:e[ea]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,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.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return eo(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=(0,D.getPayload)(r.to);!o&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(a.velocity)?a.velocity[l]:a.velocity,o,f=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,o=i*r}else{o=null==s.lastVelocity?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(o=-o*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*o)/a.mass;o+=1*e,d+=1*o}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),o=((d=n+a.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.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 n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),G(this._state,e&&this._lastCallId),R.raf.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:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||_(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return eo(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=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 a=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(a.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(a.resumeQueue),ey(this,"onResume",K(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Y(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Y(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=_(t.to),{config:m}=s,{decay:y,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(V(n={...n},t),t={...n,...t}),V(e,t),Object.assign(e,t),F)null==e[r]&&(e[r]=F[r]);let{frequency:r,damping:i}=e,{mass:a}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,v(t.config,a),t.config!==o.config?v(o.config,a):void 0);let x=(0,D.getAnimated)(this);if(!x||R.is.und(c))return n(K(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,a),j=w?d:this.get(),k=S(c),E=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),C=!p&&(!E||g(o.immediate||t.immediate,a));if(h){let e=(0,D.getAnimatedType)(c);if(e!==x.constructor){if(C)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=x.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!eo(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),k))),((0,R.isEqual)(s.immediate,C)||C)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,b)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(k)),s.immediate==C||(s.immediate=C,C||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=K(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(o.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(X(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(j))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",K(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?Y(this.get()):K(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&E(r),a=(i||e).reverse,o=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!a||_(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function ep(e){let{to:t,from:n}=e=E(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==b(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var eb=n(6901),ex=["onStart","onChange","onRest"],ew=1,ej=class{constructor(e,t){this.id=ew++,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,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];eb.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ek(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>n[t].stop(!!e))}else G(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,(0,eb.flush)(n,([e,t])=>{t.value=o,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)}eb.raf.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(t=>eE(e,t))).then(t=>q(e,t))}async function eE(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ex,n=>{let r=t[n];if(eb.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,n){h?(G(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(X(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=eh(t,o,i);if(n)return eM(e,[n]),eE(e,n,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=ep(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>e_(e))}),eC(e,n),n}function eC(e,t){(0,eb.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,eb.addFluidObserver)(t,e))})}function e_(e,t){let n=new ed;return n.key=e,t&&(0,eb.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,eb.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,eb.each)(t,t=>{eO(e.springs,t,t=>e_(t,e))})}var eT=f(n(2784)),eA=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eA.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eR;return eT.createElement(a,{value:t},e)},eR=(Object.assign(eN,eT.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eZ(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),a=(0,P.useRef)(0),o=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eC(e,n),s.queue.push(()=>{r(ek(e,t))}),o()}):ek(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{O(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&C(h);(0,N.useIsomorphicLayoutEffect)(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eF(e,t){let n=A.is.fun(e),[[r],i]=eZ(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eV=()=>eL(),eI=()=>(0,ez.useState)(eV)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,a,o=eZ(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(M(e,a),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=a??o[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},o}return o[0]}var eq=f(n(2784)),e$=n(2784),eK=n(6901);function eY(e,t,n){let r=eK.is.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eK.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eK.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eK.useOnce)(()=>((0,eK.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eK.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eX++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(b,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let x=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eK.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ej},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let j=-o,k=(0,eK.useForceUpdate)(),S=w(t),_=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,a=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==a)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=a){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eK.is.obj(f)?E(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=o;let b={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(b.from)){let i=r?r():t,a=eK.is.und(i.initial)||g?i.from:i.initial;b.from=v(a,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),k())}};let w=eS(e.ctrl,b);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:b}):_.set(e,{phase:h,springs:w,payload:b})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&C(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(_,(e,t)=>{if(T.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(T.current.size?T.current:_,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=_.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eK.is.str(t.key)||eK.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eG=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eF(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eG.useIsomorphicLayoutEffect)(()=>{let t=(0,eG.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eG.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eF(()=>({width:0,height:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),a=e2.is.fun(e)&&e,{to:o={},from:s={},...l}=a?a():{},u=a?t:e,[c,d]=eF(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:l="any",...c}=u??{};if(!e||a&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(o&&d.start(o),r(!0),a?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),a?[i,c]:[i,n]}function e5({children:e,...t}){return e(eF(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eY(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&ta(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),ta(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),ta(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=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function ta(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var to=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eT,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eG,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>e_,hasFluidValue:()=>eC,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>eo,hsla:()=>es,is:()=>T,isAnimatedString:()=>eQ,isEqual:()=>A,isSSR:()=>z,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>ea,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>to,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))o.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>V,createStringInterpolator:()=>L,skipAnimation:()=>I,to:()=>Z,willAdvance:()=>B});var c=C(),d=e=>j(e,c),f=C();d.write=e=>j(e,f);var h=C();d.onStart=e=>j(e,h);var p=C();d.onFrame=e=>j(e,p);var m=C();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),x-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),x+=1,k(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var b=-1,x=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){b<0&&(b=0,"demand"!==d.frameLoop&&y(E))}function E(){~b&&(y(E),d.batchedUpdates(S))}function S(){let e=b,t=g(b=d.now());if(t&&(_(v.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function C(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,_(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function _(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={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 A(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(T.arr(e)){for(let r=0;rT.und(e)?[]:T.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,Z,F=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),V=null,I=!1,B=O,H=e=>{e.to&&(Z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(V=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,K={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(Y)):(X(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),G(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(X),U.clear(),d(Q)}function X(e){W.includes(e)||G(e)}function G(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function Q(e){let t=q;for(let n=0;n0}var J=(e,t,n)=>Math.min(Math.max(n,e),t),ee={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},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),ea=RegExp("rgba"+er(et,et,et,et)),eo=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:V&&void 0!==V[e]?V[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=ea.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.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|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var eb=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return eb({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=a(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,a,o,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return J(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eE=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),eC=e=>!!(e&&e[eE]),e_=e=>e&&e[eE]?e[eE]():e,eO=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,eE,t);function eN(e,t){if(e[eE]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eZ.source})(%|[a-z]+)`,"i"),eV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eI.test(n)?eB(n):n||e},eH=e=>{let t=eI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=V?RegExp(`(${Object.keys(V).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>e_(e).replace(eI,eB).replace(eF,ey).replace(eD,ey)),n=t.map(e=>e.match(eZ).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eZ,""),i=0;return t[0].replace(eZ,()=>`${r[i++](e)}${n||""}`).replace(eV,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=e$(console.warn);function eY(){eK(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eX=e$(console.warn);function eG(){eX(`${eq}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`)}function eQ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eI.test(e)||e in(V||{}))}var eJ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eJ||"u">typeof ResizeObserver&&(eJ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eJ&&eJ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eJ&&eJ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},ta=n(2784);function to(e){let t=(0,ta.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(a,{Any:()=>o}),e.exports=((e,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let o of r(a))i.call(e,o)||void 0===o||t(e,o,{get:()=>a[o],enumerable:!(s=n(a,o))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},96721:function(e,t,n){"use strict";var r,i,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(a({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={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},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),g);var x=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,E=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,C=(e,t)=>w.is.arr(e)?e.every(e=>C(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,_=class extends x.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,C(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=k.test(t)?"px":E.test(t)?"deg":"";i.push((0,w.toArray)(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,C(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,C(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,a)),super(r)}},O=class extends w.FluidValue{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(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[a,o]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["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 n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new _(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var a;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let a=r(t)||r(i);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,l,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return T},mY:function(){return S}});var r=n(72331),i=n(2784),a=n(40844),o='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>a(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=O(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),a=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=C(e),{label:b,children:x,value:w,onValueChange:j,filter:k,shouldFilter:E,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();_(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)I(),z(),D(1,V);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(o=(a=y.current).onValueChange)||o.call(a,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),Z=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,F(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(a.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{I(),z(),r.current.value||V(),L.emit()}),()=>{v.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{I(),V(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:b||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function F(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function z(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${o}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function V(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function I(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of a.current){let n=F(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(o))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),a=r[i+e];null!=(t=y.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&L.setState("value",a.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(o),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,o):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,o))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let K=()=>W(U().length-1),Y=e=>{e.preventDefault(),e.metaKey?K():e.altKey?$(1):q(1)},X=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&Y(e);break;case"ArrowDown":Y(e);break;case"p":case"k":e.ctrlKey&&X(e);break;case"ArrowUp":X(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:Z.inputId,id:Z.labelId,style:N},b),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:Z},x)))}),b=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),a=i.useContext(g),o=p(),s=C(e);_(()=>o.item(n,a),[]);let l=A(n,r,[e.value,e.children,r]),u=v(),d=T(e=>e.value&&e.value===l.current),f=T(e=>!1===o.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:b,...x}=e;return i.createElement("div",{ref:M([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),x=i.forwardRef((e,t)=>{let{heading:n,children:r,...a}=e,o=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(o));_(()=>c.group(o),[]),A(o,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:o},r);return i.createElement("div",{ref:M([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=i.useRef(null),o=T(e=>!e.search);return n||o?i.createElement("div",{ref:M([a,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:a?e.value:s,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,a=i.useRef(null),o=i.useRef(null),s=p();return i.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([a,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:o,"cmdk-list-sizer":""},n))}),E=i.forwardRef((e,t)=>{let{open:n,onOpenChange:a,container:o,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:a},i.createElement(r.h_,{container:o},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:k,Item:b,Input:j,Group:x,Separator:w,Dialog:E,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=T(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...a}=e;return i.createElement("div",{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function C(e){let t=i.useRef(e);return _(()=>{t.current=e}),t}var _=typeof window>"u"?i.useEffect:i.useLayoutEffect;function O(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function A(e,t,n){let r=i.useRef(),a=p();return _(()=>{var i;let o=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();a.value(e,o),null==(i=t.current)||i.setAttribute(d,o),r.current=o}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return _(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86801:function(e,t,n){"use strict";function r(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},78307:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function a(e){let t,n,a;function s(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(i(0,r.Z)(e(t),n),a=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:o,n=e,a=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,r,i=0,a=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:a=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=a&&(n=r=a):(n>a&&(n=a),r-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var s=o},38896:function(e,t,n){"use strict";var r=n(62411),i=n(93221),a=(0,r.Z)(i.Z,"Map");t.Z=a},23549:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=(0,n(62411).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},40704:function(e,t){"use strict";t.Z=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r0&&i(c)?n>1?e(c,n-1,i,a,o):(0,r.Z)(o,c):a||(o[o.length]=c)}return o}},89523:function(e,t,n){"use strict";var r=n(42082),i=n(57969);t.Z=function(e,t){t=(0,r.Z)(t,e);for(var n=0,a=t.length;null!=e&&nc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new i.Z:void 0;for(l.set(e,t),l.set(t,e);++pi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:(0,r.Z)(e,t,n)}},31162:function(e,t){"use strict";t.Z=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return s.apply(void 0,arguments)})},36202:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(32690),i="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",s="[^"+i+"]",l="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+a+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[s,l,u].join("|")+")"+d+c+")*",h=RegExp(o+"(?="+o+")|(?:"+[s+a+"?",a,l,u,"["+i+"]"].join("|")+")"+(d+c+f),"g"),p=function(e){return(0,r.Z)(e)?e.match(h)||[]:e.split("")}},71354:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,a=n(23549);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(o.Cache||a.Z),n}o.Cache=a.Z;var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=(i=(r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,function(e,n,r,i){t.push(r?i.replace(l,"$1"):n||e)}),t},function(e){return 500===i.size&&i.clear(),e})).cache,r)},57969:function(e,t,n){"use strict";var r=n(22758),i=1/0;t.Z=function(e){if("string"==typeof e||(0,r.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},6682:function(e,t){"use strict";var n=Function.prototype.toString;t.Z=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1456:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93122),i=n(93221),a=function(){return i.Z.Date.now()},o=n(62875),s=Math.max,l=Math.min,u=function(e,t,n){var i,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=i,r=u;return i=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,i=a();if(b(i))return w(i);f=setTimeout(x,(e=i-h,n=i-p,r=t-e,v?l(r,c-n):r))}function w(e){return(f=void 0,g&&i)?y(e):(i=u=void 0,d)}function j(){var e,n=a(),r=b(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=(0,o.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(v="maxWait"in n)?s((0,o.Z)(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,i=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(a())},j}},78804:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},52058:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i,a=n(40905),o=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1&&e%1==0&&e<=9007199254740991}},93122:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43391:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},65255:function(e,t,n){"use strict";var r=n(98147),i=n(29552),a=n(43391),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},22758:function(e,t,n){"use strict";var r=n(98147),i=n(43391);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},48532:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(98147),i=n(61164),a=n(43391),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(93225),l=n(37755),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},6623:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(45423),i=n(15441),a=(0,n(76048).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t},l=n(63282),u=function(e){return(0,l.Z)(e)?(0,r.Z)(e):s(e)}},17816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(45423),i=n(93122),a=n(15441),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(63282),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},13762:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(95598),a=n(99625),o=n(42082),s=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},l=n(89523),u=n(82472),c=n(57969),d=function(e,t){var n,r;return t=(0,o.Z)(t,e),n=e,null==(e=(r=t).length<2?n:(0,l.Z)(n,(0,u.Z)(r,0,-1)))||delete e[c.Z(s(t))]},f=n(82436),h=n(65255),p=function(e){return(0,h.Z)(e)?void 0:e},m=n(1590),v=n(71118),g=n(20542),y=n(9878),b=(r=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,i.Z)(t,function(t){return t=(0,o.Z)(t,e),r||(r=t.length>1),t}),(0,f.Z)(e,(0,y.Z)(e),n),r&&(n=(0,a.Z)(n,7,p));for(var s=t.length;s--;)d(n,t[s]);return n},(0,g.Z)((0,v.Z)(r,void 0,function(e){return(null==e?0:e.length)?(0,m.Z)(e,1):[]}),r+""))},67693:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(1590),i=n(95598),a=n(89523),o=n(20248),s=n(50506),l=n(63282),u=function(e,t){var n=-1,r=(0,l.Z)(e)?Array(e.length):[];return(0,s.Z)(e,function(e,i,a){r[++n]=t(e,i,a)}),r},c=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},d=n(93225),f=n(22758),h=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,a=(0,f.Z)(e),o=void 0!==t,s=null===t,l=t==t,u=(0,f.Z)(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(89930),v=n(97885),g=function(e,t,n){t=t.length?(0,i.Z)(t,function(e){return(0,v.Z)(e)?function(t){return(0,a.Z)(t,1===e.length?e[0]:e)}:e}):[m.Z];var r=-1;return t=(0,i.Z)(t,(0,d.Z)(o.Z)),c(u(e,function(e,n,a){return{criteria:(0,i.Z)(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return p(e,t,n)})},y=n(56493),b=n(78804),x=n(66401),w=n(93122),j=function(e,t,n){if(!(0,w.Z)(n))return!1;var r=typeof t;return("number"==r?!!((0,l.Z)(n)&&(0,x.Z)(t,n.length)):"string"==r&&t in n)&&(0,b.Z)(n[t],e)},k=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&j(e,t[0],t[1])?t=[]:n>2&&j(t[0],t[1],t[2])&&(t=[t[0]]),g(e,(0,r.Z)(t,1),[])})},70813:function(e,t){"use strict";t.Z=function(){return[]}},88744:function(e,t,n){"use strict";var r=n(1456),i=n(93122);t.Z=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,i.Z)(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),(0,r.Z)(e,t,{leading:a,maxWait:t,trailing:o})}},62875:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=/\s/,i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},a=/^\s+/,o=n(93122),s=n(22758),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=function(e){if("number"==typeof e)return e;if((0,s.Z)(e))return l;if((0,o.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(a,""):t;var r=c.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):u.test(e)?l:+e}},69046:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=n(95598),a=n(92263),o=n(45500),s=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},l=(r=n(6623).Z,function(e){var t,n=(0,a.Z)(e);return"[object Map]"==n?(0,o.Z)(e):"[object Set]"==n?s(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},25186:function(e,t,n){"use strict";var r=n(79200);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},28356:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(90463),i=n(58527),a=n(40704),o=n(11749),s=n(87459),l=n(63249),u=s.Z&&1/(0,l.Z)(new s.Z([,-0]))[1]==1/0?function(e){return new s.Z(e)}:function(){},c=function(e,t,n){var s=-1,c=i.Z,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=a.Z;else if(d>=200){var m=t?null:u(e);if(m)return(0,l.Z)(m);f=!1,c=o.Z,p=new r.Z}else p=t?[]:h;t:for(;++s"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==b.all&&(t._proxyFormState[a]=!r||b.all),n&&(n[a]=!0),e[a])});return i},j=e=>l(e)&&!Object.keys(e).length,k=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return j(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||b.all))},E=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,C=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),_=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=_(t)?[t]:O(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let A=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&A(r,t)}}};var P=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,Z=e=>"function"==typeof e,F=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>S(e),V=e=>"radio"===e.type,I=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||D(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var K=e=>l(e)&&!I(e)?e:{value:e,message:""},Y=async(e,t,n,r,a)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:k,disabled:E}=e._f,C=g(t,b);if(!k||E)return{};let _=u?u[0]:s,O=e=>{r&&_.reportValidity&&(_.setCustomValidity(D(e)?"":e||""),_.reportValidity())},M={},A=V(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(C)||F(s)&&""===s.value||""===C||Array.isArray(C)&&!C.length,R=T.bind(null,b,n,M),B=(e,t,n,r=x.maxLength,i=x.minLength)=>{let a=e?t:n;M[b]={type:e?r:i,message:a,ref:s,...R(e?r:i,a)}};if(a?!Array.isArray(C)||!C.length:c&&(!(A||P)&&(N||o(C))||D(C)&&!C||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:K(c);if(e&&(M[b]={type:x.required,message:t,ref:_,...R(x.required,t)},!n))return O(t),M}if(!N&&(!o(h)||!o(p))){let e,t;let r=K(p),i=K(h);if(o(C)||isNaN(C)){let n=s.valueAsDate||new Date(C),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==s.type,l="week"==s.type;S(r.value)&&C&&(e=o?a(C)>a(r.value):l?C>r.value:n>new Date(r.value)),S(i.value)&&C&&(t=o?a(C)r.value),o(i.value)||(t=n+e.value,i=!o(t.value)&&C.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[b].message),M}if(m&&!N&&S(C)){let{value:e,message:t}=K(m);if(I(e)&&!C.match(e)&&(M[b]={type:x.pattern,message:t,ref:s,...R(x.pattern,t)},!n))return O(t),M}if(y){if(Z(y)){let e=$(await y(C,t),_);if(e&&(M[b]={...e,...R(x.validate,e.message)},!n))return O(e.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](C,t),_,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[b]=e))}if(!j(e)&&(M[b]={ref:_,...e},!n))return M}}return O(!0),M};function X(e,t){let n=Array.isArray(t)?t:_(t)?[t]:O(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>o(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(n)&&a(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!J(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>V(e)||i(e),en=e=>F(e)&&e.isConnected,er=e=>{for(let t in e)if(Z(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ea=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],o(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),eo=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:V(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:eo(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:I(e)?e.source:l(e)?I(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||_(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),a=g(t,r),o=g(e,r);if(a&&!Array.isArray(a)&&n!==r)break;if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&X(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:Z(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},x=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:G(),array:G(),state:G()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,V=P(r.mode),I=P(r.reValidateMode),B=r.criteriaMode===b.all,H=e=>t=>{clearTimeout(_),_=setTimeout(e,t)},U=async e=>{if(O.isValid||e){let e=r.resolver?j((await ei()).errors):await ev(c,!0);e!==s.isValid&&T.state.next({isValid:e})}},W=e=>O.isValidating&&T.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),T.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let a=g(x,e,v(n)?g(f,e):n);v(a)||r&&r.defaultChecked||t?M(x,e,t?a:es(i._f)):eb(e,a),w.mount&&U()}},K=(e,t,n,r,i)=>{let a=!1,o=!1,l={name:e};if(!n||r){O.isDirty&&(o=s.isDirty,s.isDirty=l.isDirty=eg(),a=o!==l.isDirty);let n=J(g(f,e),t);o=g(s.dirtyFields,e),n?X(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,a=a||O.dirtyFields&&!n!==o}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,a=a||O.touchedFields&&t!==n)}return a&&i&&T.state.next(l),a?l:{}},er=(t,r,i,a)=>{let o=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(_),n=null,i?M(s.errors,t,i):X(s.errors,t)),(i?!J(o,i):o)||!j(a)||l){let e={...a,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(x,r.context,el(e||k.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):X(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let a=e[i];if(a){let{_f:e,...i}=a;if(e){let i=k.array.has(e.name),o=await Y(a,x,B,r.shouldUseNativeValidation&&!t,i);if(o[e.name]&&(n.valid=!1,t))break;t||(g(o,e.name)?i?R(s.errors,o,e.name):M(s.errors,e.name,o[e.name]):X(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(x,e,t),!J(eE(),f)),ey=(e,t,n)=>C(e,k,{...w.mount?x:v(t)?f:S(e)?{[e]:t}:t},n,t),eb=(e,t,n={})=>{let r=g(c,e),a=t;if(r){let n=r._f;n&&(n.disabled||M(x,e,eo(t,n)),a=F(n.ref)&&o(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=a.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach(e=>e.checked=e.value===a):L(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||T.values.next({name:e,values:{...x}})))}(n.shouldDirty||n.shouldTouch)&&K(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ek(e)},ex=(e,t,n)=>{for(let r in t){let i=t[r],o=`${e}.${r}`,s=g(c,o);!k.array.has(e)&&Q(i)&&(!s||s._f)||a(i)?eb(o,i,n):ex(o,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),a=k.array.has(e),l=p(n);M(x,e,l),a?(T.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:ea(f,x),isDirty:eg(e,l)})):!i||i._f||o(l)?eb(e,l,r):ex(e,l,r),N(e,k)&&T.state.next({...s}),T.values.next({name:e,values:{...x}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,a=!0,o=g(c,i);if(o){let l,d;let f=t.type?es(o._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(o._f)&&!r.resolver&&!g(s.errors,i)&&!o._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,I,V),m=N(i,k,h);M(x,i,f),h?(o._f.onBlur&&o._f.onBlur(e),n&&n(0)):o._f.onChange&&o._f.onChange(e);let v=K(i,f,h,!1),b=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&U(),b&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=j(e)}else l=(await Y(o,x,B,r.shouldUseNativeValidation))[i],(a=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));a&&(o._f.deps&&ek(o._f.deps),er(i,d,l,v))}},ek=async(e,t={})=>{let n,i;let a=E(e);if(W(!0),r.resolver){let t=await em(v(e)?e:a);n=j(t),i=e?!a.some(e=>g(t,e)):n}else e?((i=(await Promise.all(a.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return T.state.next({...!S(e)||O.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&A(c,e=>e&&g(s.errors,e),e?a:k.mount),i},eE=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),eC=(e,t={})=>{for(let n of e?E(e):k.mount)k.mount.delete(n),k.array.delete(n),t.keepValue||(X(c,n),X(x,n)),t.keepError||X(s.errors,n),t.keepDirty||X(s.dirtyFields,n),t.keepTouched||X(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||X(f,n);T.values.next({values:{...x}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},e_=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),n?i&&M(x,e,t.disabled?void 0:g(x,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ej,onBlur:ej,ref:i=>{if(i){e_(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=et(r),o=n._f.refs||[];(a?o.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...a?{refs:[...o.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(k.array,e)&&w.action)&&k.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),k.mount),eM=(n,r={})=>{let i=n||f,a=p(i),o=n&&!j(n)?a:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of k.mount)g(s.dirtyFields,e)?M(o,e,g(x,e)):ew(e,g(o,e));else{if(h&&v(n))for(let e of k.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?r.keepDefaultValues?p(f):{}:a,T.array.next({values:{...o}}),T.values.next({values:{...o}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!J(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?ea(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(Z(e)?e(x):e,t);return{control:{register:e_,unregister:eC,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of k.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eC(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,a=!0)=>{if(r&&n){if(w.action=!0,a&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(a&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&a&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=ea(f,x)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>Z(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),T.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:T,_proxyFormState:O,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ek,register:e_,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(x);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);X(s.errors,"root"),j(s.errors)?(T.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>Z(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:eE,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||X(s.touchedFields,e),t.keepDirty||(X(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(X(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&E(e).forEach(e=>X(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:eC,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),T.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{k(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!J(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return Q},ZP:function(){return J},JG:function(){return I},kY:function(){return K}});var r,i=n(2784),a=n(43100);let o=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=o.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,a=i==Date;if(d(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return E("online",t),E("offline",n),()=>{S("online",t),S("offline",n)}}},_=!i.useId,O=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,P=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function Z(...e){let[t,n,r,i]=e,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=a.populateCache,l=a.rollbackOnError,u=a.optimisticData,d=!1!==a.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=a.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[a]=N(n);if(!a)return;let[l,p]=b(t,a),[g,y,x]=o.get(t),w=g[a],j=()=>d&&(delete x[a],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let k=r,E=D();y[a]=[E,0];let S=!f(u),C=l(),_=C.data,O=C._c,M=f(O)?_:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[a][0]){if(i)throw i;return k}i&&S&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[a][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:k}}let F=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!o.has(e)){let n=p(C,t),r={},i=Z.bind(c,e),a=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!o.has(e)&&(o.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[V,I]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:V,mutate:I,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=p(i,o))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=o.get(V),a=i[r];return a?(delete i[r],a):n(...e)});return e(t,i,r)}),X=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let G={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:H(n,a),[r,n,a]),s=a&&a.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(o.cache||V),a));let u=l.current;return u&&(o.cache=u[0],o.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:o}))},"defaultValue",{value:B});var J=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=n,[w,j,k]=o.get(r),[E,S]=N(e),C=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),z=()=>F.current,V=()=>z().isVisible()&&z().isOnline(),[I,B,H,U]=b(r,E),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[E]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!E&&!!t&&(f(d)?!z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=I(),i=U(),a=n(r),o=r===i?a:n(i),s=a;return[()=>{let e=n(I());return $(e,s)?s:s=e},()=>o]},[r,E]),Y=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>H(E,(t,n)=>{$(n,t)||e()}),[r,E]),K[0],K[1]),Q=!C.current,J=w[E]&&w[E].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,ea=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),eo=!!(E&&t&&Q&&ea),es=f(Y.isValidating)?eo:Y.isValidating,el=f(Y.isLoading)?eo:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||A.current||z().isPaused())return!1;let a=!0,o=e||{},l=!k[E]||!o.dedupe,u=()=>_?!A.current&&E===P.current&&C.current:E===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(I().data)&&setTimeout(()=>{a&&u()&&z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(S),D()]),[t,r]=k[E],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return l&&u()&&z().onDiscarded(E),!1;d.error=c;let e=j[E];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(E),!1;let o=I().data;d.data=s(o,t)?o:t,l&&u()&&z().onSuccess(t,E,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,E,e),(!0===t||h(t)&&t(n))&&V()&&e.onErrorRetry(n,E,e,e=>{let t=w[E];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0},[E,r]),ec=(0,i.useCallback)((...e)=>Z(r,P.current,...e),[]);if(T(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!E)return;let e=eu.bind(c,G),t=0,n=X(E,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&V()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&V()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,P.current=E,C.current=!0,B({_k:S}),ea&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[E]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(G).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,E]),(0,i.useDebugValue)(ei),l&&f(et)&&E){if(!_&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,A.current=!1,f(en)?eu(G):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,a]=$(e),o=H(t,a),s=r,{use:l}=o,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||o.fetcher||null,o)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return o},_T:function(){return i},ev:function(){return l},mG:function(){return a},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;in.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:a=[],originalValue:o=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),M({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);M({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(z({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(z({},t,{value:e}))._validate(e,z({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(_.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(_.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=L(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=E(e).map(e=>new R(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new k(r,t)),n}typeError(e){let t=this.clone();return t._typeError=L({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=L({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=L({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec;return{meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)}}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:a,schema:o}=function(e,t,n,r=n){let i,a,o;return t?((0,P.forEach)(t,(s,l,u)=>{let c=l?Z(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}a=c,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return o[e](i&&i[a],z({},r,{parent:i,path:t}))};for(let e of["equals","is"])V.prototype[e]=V.prototype.oneOf;for(let e of["not","nope"])V.prototype[e]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired,V.prototype;var I=e=>null==e;class B extends V{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>I(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>I(e)||!1===e})}}B.prototype;let H=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,U=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,q=e=>I(e)||e===e.trim(),$=({}).toString();function K(){return new Y}class Y extends V{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===$?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return I(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return I(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>I(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(H,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(U,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(W,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:q})}lowercase(e=f.lowercase){return this.transform(e=>I(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>I(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toUpperCase()})}}K.prototype=Y.prototype;let X=e=>e!=+e;function G(){return new J}class J extends V{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!X(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return I(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return I(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>I(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>I(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>I(t)?t:Math[e](t))}}G.prototype=J.prototype;var Q=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ee=new Date(""),et=e=>"[object Date]"===Object.prototype.toString.call(e);function en(){return new er}class er extends V{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=Q.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?ee:new Date(e)})})}_typeCheck(e){return et(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(R.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return I(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return I(e)||e<=this.resolve(n)}})}}er.INVALID_DATE=ee,en.prototype=er.prototype,en.INVALID_DATE=ee;var ei=n(57370),ea=n.n(ei),eo=n(96009),es=n.n(eo),el=n(19950),eu=n.n(el),ec=n(95159),ed=n.n(ec);function ef(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function eh(e){return(t,n)=>ef(e,t)-ef(e,n)}function ep(){return(ep=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),ev=eh([]);class eg extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ev,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return em(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ep({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of o){let n=i[e],o=w()(r,e);if(n){let i;let a=r[e];l.path=(t.path?`${t.path}.`:"")+e;let o="spec"in(n=n.resolve({value:a,context:t.context,parent:s}))?n.spec:void 0,c=null==o?void 0:o.strict;if(null==o?void 0:o.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else o&&!a&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;a=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,t.from=a,super._validate(e,t,(e,u)=>{if(e){if(!_.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!em(u)){n(r[0]||null,u);return}o=o||u,M({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ep({},t,{path:i,from:a,strict:!0,parent:u,originalValue:o[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ep({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof V&&t instanceof V&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=eh(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=(0,P.split)(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(let t in e)if(w()(e,t)){let n=e[t];r.add(t),R.isRef(n)&&n.isSibling?a(n.path,t):j(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return ed().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,P.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let a=i;return w()(i,e)&&(a=ep({},i),n||delete a[e],a[t]=r(i)),a})}noUnknown(e=!0,t=v.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=v.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&eu()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(es())}snakeCase(){return this.transformKeys(ea())}constantCase(){return this.transformKeys(e=>ea()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=A()(this.fields,e=>e.describe()),e}}function ey(e){return new eg(e)}function eb(){return(eb=Object.assign||function(e){for(var t=1;t{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1,i=n.map((e,n)=>{let i=this.innerType.cast(e,eb({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i});return r?i:n}_validate(e,t={},n){var r,i;let a=[],o=t.sync,s=t.path,l=this.innerType,u=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,r)=>{if(e){if(!_.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!l||!this._typeCheck(r)){n(a[0]||null,r);return}d=d||r;let i=Array(r.length);for(let e=0;el.validate(n,o,t)}M({sync:o,path:s,value:r,errors:a,endEarly:u,tests:i},n)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!j(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+c(e));return t.innerType=e,t}length(e,t=g.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return I(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||g.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||g.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return I(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}ex.prototype},44868:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>b,AnimatedArray:()=>O,AnimatedObject:()=>_,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(o({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),b=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},x=n(6901),w=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,x.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return x.is.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,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),k=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new k(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(j.is.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=(0,j.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},E=n(6901),S=n(6901),C={dependencies:null},_=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){C.dependencies&&(0,S.hasFluidValue)(e)&&C.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends _{constructor(e){super(e)}static create(e){return new O(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,E.isAnimatedString)(e)?k:w).create(e)}var T=n(6901);function A(e){let t=v(e);return t?t.constructor:T.is.arr(e)?O:(0,T.isAnimatedString)(e)?k:w}var P=n(6901),N=(i=null!=(r=n(2784))?a(u(r)):{},d(r&&r.__esModule?i:o(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var a;let o;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(a=r,o=new Set,C.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new _(a),C.dependencies=null,[a,o]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new Z(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},Z=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},F=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new _(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=V(e)||"Anonymous";return(e=P.is.str(e)?a[e]||(a[e]=L(e,i)):e[F]||(e[F]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=V(t)),a[n]=a(t)}),{animated:a}},V=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?a(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>J,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>Z,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>E,interpolate:()=>ts,to:()=>to,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>eF,useSpringRef:()=>eI,useSpringValue:()=>eH,useSprings:()=>eZ,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(o({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x=e=>e,w=(e,t=x)=>{let n=j;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},j=["config","onProps","onStart","onChange","onPause","onResume","onRest"],k={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 E(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{k[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function C(e){for(let t in e)return!0;return!1}function _(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function O(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function T(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,p.each)(a,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var A=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),Z={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}},F={...Z.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,F)}};function V(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var I=[],B=class{constructor(){this.changed=!1,this.values=I,this.toValues=null,this.fromValues=I,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Y(e.get()):t.every(e=>e.noop)?$(e.get()):K(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Y=e=>({value:e,cancelled:!0,finished:!1});function X(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&Y(r)||i!==n.asyncId&&K(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let a=new J,o=new Q;return(async()=>{if(W.Globals.skipAnimation)throw G(n),o.result=K(r,!1),d(o),o;h(a);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return G(n),K(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=K(r.get(),!0,!1)}catch(e){if(e instanceof J)m=e.result;else if(e instanceof Q)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return W.is.fun(o)&&W.raf.batchedUpdates(()=>{o(m,r,r.item)}),m})():l}function G(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var J=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.")}},Q=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.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){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},ea=Symbol.for("SpringPhase"),eo=e=>(1&e[ea])>0,es=e=>(2&e[ea])>0,el=e=>(4&e[ea])>0,eu=(e,t)=>t?e[ea]|=3:e[ea]&=-3,ec=(e,t)=>t?e[ea]|=4:e[ea]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,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.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return eo(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=(0,D.getPayload)(r.to);!o&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(a.velocity)?a.velocity[l]:a.velocity,o,f=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,o=i*r}else{o=null==s.lastVelocity?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(o=-o*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*o)/a.mass;o+=1*e,d+=1*o}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),o=((d=n+a.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.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 n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),G(this._state,e&&this._lastCallId),R.raf.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:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||_(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return eo(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=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 a=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(a.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(a.resumeQueue),ey(this,"onResume",K(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Y(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Y(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=_(t.to),{config:m}=s,{decay:y,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(V(n={...n},t),t={...n,...t}),V(e,t),Object.assign(e,t),F)null==e[r]&&(e[r]=F[r]);let{frequency:r,damping:i}=e,{mass:a}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,v(t.config,a),t.config!==o.config?v(o.config,a):void 0);let x=(0,D.getAnimated)(this);if(!x||R.is.und(c))return n(K(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,a),j=w?d:this.get(),k=S(c),E=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),C=!p&&(!E||g(o.immediate||t.immediate,a));if(h){let e=(0,D.getAnimatedType)(c);if(e!==x.constructor){if(C)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=x.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!eo(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),k))),((0,R.isEqual)(s.immediate,C)||C)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,b)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(k)),s.immediate==C||(s.immediate=C,C||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=K(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(o.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(X(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(j))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",K(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?Y(this.get()):K(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&E(r),a=(i||e).reverse,o=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!a||_(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function ep(e){let{to:t,from:n}=e=E(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==b(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var eb=n(6901),ex=["onStart","onChange","onRest"],ew=1,ej=class{constructor(e,t){this.id=ew++,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,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];eb.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ek(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>n[t].stop(!!e))}else G(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,(0,eb.flush)(n,([e,t])=>{t.value=o,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)}eb.raf.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(t=>eE(e,t))).then(t=>q(e,t))}async function eE(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ex,n=>{let r=t[n];if(eb.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,n){h?(G(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(X(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=eh(t,o,i);if(n)return eM(e,[n]),eE(e,n,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=ep(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>e_(e))}),eC(e,n),n}function eC(e,t){(0,eb.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,eb.addFluidObserver)(t,e))})}function e_(e,t){let n=new ed;return n.key=e,t&&(0,eb.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,eb.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,eb.each)(t,t=>{eO(e.springs,t,t=>e_(t,e))})}var eT=f(n(2784)),eA=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eA.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eR;return eT.createElement(a,{value:t},e)},eR=(Object.assign(eN,eT.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eZ(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),a=(0,P.useRef)(0),o=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eC(e,n),s.queue.push(()=>{r(ek(e,t))}),o()}):ek(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{O(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&C(h);(0,N.useIsomorphicLayoutEffect)(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eF(e,t){let n=A.is.fun(e),[[r],i]=eZ(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eV=()=>eL(),eI=()=>(0,ez.useState)(eV)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,a,o=eZ(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(M(e,a),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=a??o[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},o}return o[0]}var eq=f(n(2784)),e$=n(2784),eK=n(6901);function eY(e,t,n){let r=eK.is.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eK.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eK.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eK.useOnce)(()=>((0,eK.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eK.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eX++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(b,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let x=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eK.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ej},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let j=-o,k=(0,eK.useForceUpdate)(),S=w(t),_=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,a=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==a)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=a){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eK.is.obj(f)?E(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=o;let b={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(b.from)){let i=r?r():t,a=eK.is.und(i.initial)||g?i.from:i.initial;b.from=v(a,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),k())}};let w=eS(e.ctrl,b);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:b}):_.set(e,{phase:h,springs:w,payload:b})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&C(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(_,(e,t)=>{if(T.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(T.current.size?T.current:_,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=_.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eK.is.str(t.key)||eK.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eG=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=eF(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eG.useIsomorphicLayoutEffect)(()=>{let t=(0,eG.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eG.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=eF(()=>({width:0,height:0,...t}),[]);return(0,eQ.useIsomorphicLayoutEffect)(()=>{let t=(0,eQ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eQ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),a=e2.is.fun(e)&&e,{to:o={},from:s={},...l}=a?a():{},u=a?t:e,[c,d]=eF(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:l="any",...c}=u??{};if(!e||a&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(o&&d.start(o),r(!0),a?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),a?[i,c]:[i,n]}function e5({children:e,...t}){return e(eF(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eY(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&ta(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),ta(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),ta(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=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function ta(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var to=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eT,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eG,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>e_,hasFluidValue:()=>eC,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>eo,hsla:()=>es,is:()=>T,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>z,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>ea,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>to,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))o.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>V,createStringInterpolator:()=>L,skipAnimation:()=>I,to:()=>Z,willAdvance:()=>B});var c=C(),d=e=>j(e,c),f=C();d.write=e=>j(e,f);var h=C();d.onStart=e=>j(e,h);var p=C();d.onFrame=e=>j(e,p);var m=C();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),x-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),x+=1,k(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var b=-1,x=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){b<0&&(b=0,"demand"!==d.frameLoop&&y(E))}function E(){~b&&(y(E),d.batchedUpdates(S))}function S(){let e=b,t=g(b=d.now());if(t&&(_(v.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function C(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,_(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function _(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={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 A(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(T.arr(e)){for(let r=0;rT.und(e)?[]:T.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,Z,F=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),V=null,I=!1,B=O,H=e=>{e.to&&(Z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(V=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,K={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(Y)):(X(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),G(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(X),U.clear(),d(J)}function X(e){W.includes(e)||G(e)}function G(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function J(e){let t=q;for(let n=0;n0}var Q=(e,t,n)=>Math.min(Math.max(n,e),t),ee={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},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),ea=RegExp("rgba"+er(et,et,et,et)),eo=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:V&&void 0!==V[e]?V[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=ea.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.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|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var eb=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return eb({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=a(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,a,o,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return Q(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eE=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),eC=e=>!!(e&&e[eE]),e_=e=>e&&e[eE]?e[eE]():e,eO=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,eE,t);function eN(e,t){if(e[eE]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eZ.source})(%|[a-z]+)`,"i"),eV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eI.test(n)?eB(n):n||e},eH=e=>{let t=eI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=V?RegExp(`(${Object.keys(V).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>e_(e).replace(eI,eB).replace(eF,ey).replace(eD,ey)),n=t.map(e=>e.match(eZ).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eZ,""),i=0;return t[0].replace(eZ,()=>`${r[i++](e)}${n||""}`).replace(eV,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=e$(console.warn);function eY(){eK(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eX=e$(console.warn);function eG(){eX(`${eq}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`)}function eJ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eI.test(e)||e in(V||{}))}var eQ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eQ||"u">typeof ResizeObserver&&(eQ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eQ&&eQ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eQ&&eQ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},ta=n(2784);function to(e){let t=(0,ta.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(a,{Any:()=>o}),e.exports=((e,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let o of r(a))i.call(e,o)||void 0===o||t(e,o,{get:()=>a[o],enumerable:!(s=n(a,o))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},96721:function(e,t,n){"use strict";var r,i,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(a({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={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},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),g);var x=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,E=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,C=(e,t)=>w.is.arr(e)?e.every(e=>C(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,_=class extends x.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,C(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=k.test(t)?"px":E.test(t)?"deg":"";i.push((0,w.toArray)(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,C(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,C(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,a)),super(r)}},O=class extends w.FluidValue{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(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[a,o]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["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 n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new _(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var a;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let a=r(t)||r(i);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,l,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return T},mY:function(){return S}});var r=n(72331),i=n(2784),a=n(40844),o='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>a(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=O(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),a=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=C(e),{label:b,children:x,value:w,onValueChange:j,filter:k,shouldFilter:E,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();_(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)I(),z(),D(1,V);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(o=(a=y.current).onValueChange)||o.call(a,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),Z=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,F(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(a.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{I(),z(),r.current.value||V(),L.emit()}),()=>{v.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{I(),V(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:b||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function F(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function z(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${o}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function V(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function I(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of a.current){let n=F(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(o))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),a=r[i+e];null!=(t=y.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&L.setState("value",a.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(o),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,o):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,o))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let K=()=>W(U().length-1),Y=e=>{e.preventDefault(),e.metaKey?K():e.altKey?$(1):q(1)},X=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&Y(e);break;case"ArrowDown":Y(e);break;case"p":case"k":e.ctrlKey&&X(e);break;case"ArrowUp":X(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:Z.inputId,id:Z.labelId,style:N},b),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:Z},x)))}),b=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),a=i.useContext(g),o=p(),s=C(e);_(()=>o.item(n,a),[]);let l=A(n,r,[e.value,e.children,r]),u=v(),d=T(e=>e.value&&e.value===l.current),f=T(e=>!1===o.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:b,...x}=e;return i.createElement("div",{ref:M([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),x=i.forwardRef((e,t)=>{let{heading:n,children:r,...a}=e,o=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(o));_(()=>c.group(o),[]),A(o,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:o},r);return i.createElement("div",{ref:M([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=i.useRef(null),o=T(e=>!e.search);return n||o?i.createElement("div",{ref:M([a,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:a?e.value:s,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,a=i.useRef(null),o=i.useRef(null),s=p();return i.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([a,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:o,"cmdk-list-sizer":""},n))}),E=i.forwardRef((e,t)=>{let{open:n,onOpenChange:a,container:o,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:a},i.createElement(r.h_,{container:o},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:k,Item:b,Input:j,Group:x,Separator:w,Dialog:E,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=T(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...a}=e;return i.createElement("div",{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function C(e){let t=i.useRef(e);return _(()=>{t.current=e}),t}var _=typeof window>"u"?i.useEffect:i.useLayoutEffect;function O(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function A(e,t,n){let r=i.useRef(),a=p();return _(()=>{var i;let o=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();a.value(e,o),null==(i=t.current)||i.setAttribute(d,o),r.current=o}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return _(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86801:function(e,t,n){"use strict";function r(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},78307:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function a(e){let t,n,a;function s(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(i(0,r.Z)(e(t),n),a=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:o,n=e,a=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,r,i=0,a=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:a=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=a&&(n=r=a):(n>a&&(n=a),r-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var s=o},38896:function(e,t,n){"use strict";var r=n(62411),i=n(93221),a=(0,r.Z)(i.Z,"Map");t.Z=a},23549:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=(0,n(62411).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},40704:function(e,t){"use strict";t.Z=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r0&&i(c)?n>1?e(c,n-1,i,a,o):(0,r.Z)(o,c):a||(o[o.length]=c)}return o}},89523:function(e,t,n){"use strict";var r=n(42082),i=n(57969);t.Z=function(e,t){t=(0,r.Z)(t,e);for(var n=0,a=t.length;null!=e&&nc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new i.Z:void 0;for(l.set(e,t),l.set(t,e);++pi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:(0,r.Z)(e,t,n)}},31162:function(e,t){"use strict";t.Z=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return s.apply(void 0,arguments)})},36202:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(32690),i="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",s="[^"+i+"]",l="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+a+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[s,l,u].join("|")+")"+d+c+")*",h=RegExp(o+"(?="+o+")|(?:"+[s+a+"?",a,l,u,"["+i+"]"].join("|")+")"+(d+c+f),"g"),p=function(e){return(0,r.Z)(e)?e.match(h)||[]:e.split("")}},71354:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,a=n(23549);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(o.Cache||a.Z),n}o.Cache=a.Z;var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=(i=(r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,function(e,n,r,i){t.push(r?i.replace(l,"$1"):n||e)}),t},function(e){return 500===i.size&&i.clear(),e})).cache,r)},57969:function(e,t,n){"use strict";var r=n(22758),i=1/0;t.Z=function(e){if("string"==typeof e||(0,r.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},6682:function(e,t){"use strict";var n=Function.prototype.toString;t.Z=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1456:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93122),i=n(93221),a=function(){return i.Z.Date.now()},o=n(62875),s=Math.max,l=Math.min,u=function(e,t,n){var i,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=i,r=u;return i=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,i=a();if(b(i))return w(i);f=setTimeout(x,(e=i-h,n=i-p,r=t-e,v?l(r,c-n):r))}function w(e){return(f=void 0,g&&i)?y(e):(i=u=void 0,d)}function j(){var e,n=a(),r=b(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=(0,o.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(v="maxWait"in n)?s((0,o.Z)(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,i=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(a())},j}},78804:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},52058:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i,a=n(40905),o=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1&&e%1==0&&e<=9007199254740991}},93122:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43391:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},65255:function(e,t,n){"use strict";var r=n(98147),i=n(29552),a=n(43391),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},22758:function(e,t,n){"use strict";var r=n(98147),i=n(43391);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},48532:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(98147),i=n(61164),a=n(43391),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(93225),l=n(37755),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},6623:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(45423),i=n(15441),a=(0,n(76048).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t},l=n(63282),u=function(e){return(0,l.Z)(e)?(0,r.Z)(e):s(e)}},17816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(45423),i=n(93122),a=n(15441),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(63282),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},13762:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(95598),a=n(99625),o=n(42082),s=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},l=n(89523),u=n(82472),c=n(57969),d=function(e,t){var n,r;return t=(0,o.Z)(t,e),n=e,null==(e=(r=t).length<2?n:(0,l.Z)(n,(0,u.Z)(r,0,-1)))||delete e[c.Z(s(t))]},f=n(82436),h=n(65255),p=function(e){return(0,h.Z)(e)?void 0:e},m=n(1590),v=n(71118),g=n(20542),y=n(9878),b=(r=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,i.Z)(t,function(t){return t=(0,o.Z)(t,e),r||(r=t.length>1),t}),(0,f.Z)(e,(0,y.Z)(e),n),r&&(n=(0,a.Z)(n,7,p));for(var s=t.length;s--;)d(n,t[s]);return n},(0,g.Z)((0,v.Z)(r,void 0,function(e){return(null==e?0:e.length)?(0,m.Z)(e,1):[]}),r+""))},67693:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(1590),i=n(95598),a=n(89523),o=n(20248),s=n(50506),l=n(63282),u=function(e,t){var n=-1,r=(0,l.Z)(e)?Array(e.length):[];return(0,s.Z)(e,function(e,i,a){r[++n]=t(e,i,a)}),r},c=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},d=n(93225),f=n(22758),h=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,a=(0,f.Z)(e),o=void 0!==t,s=null===t,l=t==t,u=(0,f.Z)(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(89930),v=n(97885),g=function(e,t,n){t=t.length?(0,i.Z)(t,function(e){return(0,v.Z)(e)?function(t){return(0,a.Z)(t,1===e.length?e[0]:e)}:e}):[m.Z];var r=-1;return t=(0,i.Z)(t,(0,d.Z)(o.Z)),c(u(e,function(e,n,a){return{criteria:(0,i.Z)(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return p(e,t,n)})},y=n(56493),b=n(78804),x=n(66401),w=n(93122),j=function(e,t,n){if(!(0,w.Z)(n))return!1;var r=typeof t;return("number"==r?!!((0,l.Z)(n)&&(0,x.Z)(t,n.length)):"string"==r&&t in n)&&(0,b.Z)(n[t],e)},k=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&j(e,t[0],t[1])?t=[]:n>2&&j(t[0],t[1],t[2])&&(t=[t[0]]),g(e,(0,r.Z)(t,1),[])})},70813:function(e,t){"use strict";t.Z=function(){return[]}},88744:function(e,t,n){"use strict";var r=n(1456),i=n(93122);t.Z=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,i.Z)(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),(0,r.Z)(e,t,{leading:a,maxWait:t,trailing:o})}},62875:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=/\s/,i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},a=/^\s+/,o=n(93122),s=n(22758),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=function(e){if("number"==typeof e)return e;if((0,s.Z)(e))return l;if((0,o.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(a,""):t;var r=c.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):u.test(e)?l:+e}},69046:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=n(95598),a=n(92263),o=n(45500),s=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},l=(r=n(6623).Z,function(e){var t,n=(0,a.Z)(e);return"[object Map]"==n?(0,o.Z)(e):"[object Set]"==n?s(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},25186:function(e,t,n){"use strict";var r=n(79200);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},28356:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(90463),i=n(58527),a=n(40704),o=n(11749),s=n(87459),l=n(63249),u=s.Z&&1/(0,l.Z)(new s.Z([,-0]))[1]==1/0?function(e){return new s.Z(e)}:function(){},c=function(e,t,n){var s=-1,c=i.Z,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=a.Z;else if(d>=200){var m=t?null:u(e);if(m)return(0,l.Z)(m);f=!1,c=o.Z,p=new r.Z}else p=t?[]:h;t:for(;++s"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==b.all&&(t._proxyFormState[a]=!r||b.all),n&&(n[a]=!0),e[a])});return i},j=e=>l(e)&&!Object.keys(e).length,k=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return j(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||b.all))},E=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,C=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),_=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=_(t)?[t]:O(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let A=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&A(r,t)}}};var P=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,Z=e=>"function"==typeof e,F=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>S(e),V=e=>"radio"===e.type,I=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||D(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var K=e=>l(e)&&!I(e)?e:{value:e,message:""},Y=async(e,t,n,r,a)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:k,disabled:E}=e._f,C=g(t,b);if(!k||E)return{};let _=u?u[0]:s,O=e=>{r&&_.reportValidity&&(_.setCustomValidity(D(e)?"":e||""),_.reportValidity())},M={},A=V(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(C)||F(s)&&""===s.value||""===C||Array.isArray(C)&&!C.length,R=T.bind(null,b,n,M),B=(e,t,n,r=x.maxLength,i=x.minLength)=>{let a=e?t:n;M[b]={type:e?r:i,message:a,ref:s,...R(e?r:i,a)}};if(a?!Array.isArray(C)||!C.length:c&&(!(A||P)&&(N||o(C))||D(C)&&!C||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:K(c);if(e&&(M[b]={type:x.required,message:t,ref:_,...R(x.required,t)},!n))return O(t),M}if(!N&&(!o(h)||!o(p))){let e,t;let r=K(p),i=K(h);if(o(C)||isNaN(C)){let n=s.valueAsDate||new Date(C),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==s.type,l="week"==s.type;S(r.value)&&C&&(e=o?a(C)>a(r.value):l?C>r.value:n>new Date(r.value)),S(i.value)&&C&&(t=o?a(C)r.value),o(i.value)||(t=n+e.value,i=!o(t.value)&&C.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[b].message),M}if(m&&!N&&S(C)){let{value:e,message:t}=K(m);if(I(e)&&!C.match(e)&&(M[b]={type:x.pattern,message:t,ref:s,...R(x.pattern,t)},!n))return O(t),M}if(y){if(Z(y)){let e=$(await y(C,t),_);if(e&&(M[b]={...e,...R(x.validate,e.message)},!n))return O(e.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](C,t),_,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[b]=e))}if(!j(e)&&(M[b]={ref:_,...e},!n))return M}}return O(!0),M};function X(e,t){let n=Array.isArray(t)?t:_(t)?[t]:O(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>o(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(n)&&a(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!Q(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>V(e)||i(e),en=e=>F(e)&&e.isConnected,er=e=>{for(let t in e)if(Z(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ea=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||J(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],o(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),eo=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:V(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:eo(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:I(e)?e.source:l(e)?I(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||_(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),a=g(t,r),o=g(e,r);if(a&&!Array.isArray(a)&&n!==r)break;if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&X(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:Z(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},x=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:G(),array:G(),state:G()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,V=P(r.mode),I=P(r.reValidateMode),B=r.criteriaMode===b.all,H=e=>t=>{clearTimeout(_),_=setTimeout(e,t)},U=async e=>{if(O.isValid||e){let e=r.resolver?j((await ei()).errors):await ev(c,!0);e!==s.isValid&&T.state.next({isValid:e})}},W=e=>O.isValidating&&T.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),T.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let a=g(x,e,v(n)?g(f,e):n);v(a)||r&&r.defaultChecked||t?M(x,e,t?a:es(i._f)):eb(e,a),w.mount&&U()}},K=(e,t,n,r,i)=>{let a=!1,o=!1,l={name:e};if(!n||r){O.isDirty&&(o=s.isDirty,s.isDirty=l.isDirty=eg(),a=o!==l.isDirty);let n=Q(g(f,e),t);o=g(s.dirtyFields,e),n?X(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,a=a||O.dirtyFields&&!n!==o}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,a=a||O.touchedFields&&t!==n)}return a&&i&&T.state.next(l),a?l:{}},er=(t,r,i,a)=>{let o=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(_),n=null,i?M(s.errors,t,i):X(s.errors,t)),(i?!Q(o,i):o)||!j(a)||l){let e={...a,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(x,r.context,el(e||k.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):X(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let a=e[i];if(a){let{_f:e,...i}=a;if(e){let i=k.array.has(e.name),o=await Y(a,x,B,r.shouldUseNativeValidation&&!t,i);if(o[e.name]&&(n.valid=!1,t))break;t||(g(o,e.name)?i?R(s.errors,o,e.name):M(s.errors,e.name,o[e.name]):X(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(x,e,t),!Q(eE(),f)),ey=(e,t,n)=>C(e,k,{...w.mount?x:v(t)?f:S(e)?{[e]:t}:t},n,t),eb=(e,t,n={})=>{let r=g(c,e),a=t;if(r){let n=r._f;n&&(n.disabled||M(x,e,eo(t,n)),a=F(n.ref)&&o(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=a.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach(e=>e.checked=e.value===a):L(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||T.values.next({name:e,values:{...x}})))}(n.shouldDirty||n.shouldTouch)&&K(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ek(e)},ex=(e,t,n)=>{for(let r in t){let i=t[r],o=`${e}.${r}`,s=g(c,o);!k.array.has(e)&&J(i)&&(!s||s._f)||a(i)?eb(o,i,n):ex(o,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),a=k.array.has(e),l=p(n);M(x,e,l),a?(T.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:ea(f,x),isDirty:eg(e,l)})):!i||i._f||o(l)?eb(e,l,r):ex(e,l,r),N(e,k)&&T.state.next({...s}),T.values.next({name:e,values:{...x}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,a=!0,o=g(c,i);if(o){let l,d;let f=t.type?es(o._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(o._f)&&!r.resolver&&!g(s.errors,i)&&!o._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,I,V),m=N(i,k,h);M(x,i,f),h?(o._f.onBlur&&o._f.onBlur(e),n&&n(0)):o._f.onChange&&o._f.onChange(e);let v=K(i,f,h,!1),b=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&U(),b&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=j(e)}else l=(await Y(o,x,B,r.shouldUseNativeValidation))[i],(a=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));a&&(o._f.deps&&ek(o._f.deps),er(i,d,l,v))}},ek=async(e,t={})=>{let n,i;let a=E(e);if(W(!0),r.resolver){let t=await em(v(e)?e:a);n=j(t),i=e?!a.some(e=>g(t,e)):n}else e?((i=(await Promise.all(a.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return T.state.next({...!S(e)||O.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&A(c,e=>e&&g(s.errors,e),e?a:k.mount),i},eE=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),eC=(e,t={})=>{for(let n of e?E(e):k.mount)k.mount.delete(n),k.array.delete(n),t.keepValue||(X(c,n),X(x,n)),t.keepError||X(s.errors,n),t.keepDirty||X(s.dirtyFields,n),t.keepTouched||X(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||X(f,n);T.values.next({values:{...x}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},e_=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),n?i&&M(x,e,t.disabled?void 0:g(x,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ej,onBlur:ej,ref:i=>{if(i){e_(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=et(r),o=n._f.refs||[];(a?o.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...a?{refs:[...o.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(k.array,e)&&w.action)&&k.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),k.mount),eM=(n,r={})=>{let i=n||f,a=p(i),o=n&&!j(n)?a:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of k.mount)g(s.dirtyFields,e)?M(o,e,g(x,e)):ew(e,g(o,e));else{if(h&&v(n))for(let e of k.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?r.keepDefaultValues?p(f):{}:a,T.array.next({values:{...o}}),T.values.next({values:{...o}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!Q(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?ea(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(Z(e)?e(x):e,t);return{control:{register:e_,unregister:eC,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of k.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eC(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,a=!0)=>{if(r&&n){if(w.action=!0,a&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(a&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&a&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=ea(f,x)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>Z(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),T.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:T,_proxyFormState:O,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ek,register:e_,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(x);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);X(s.errors,"root"),j(s.errors)?(T.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>Z(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:eE,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||X(s.touchedFields,e),t.keepDirty||(X(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(X(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&E(e).forEach(e=>X(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:eC,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),T.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{k(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return I},kY:function(){return K}});var r,i=n(2784),a=n(43100);let o=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=o.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,a=i==Date;if(d(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return E("online",t),E("offline",n),()=>{S("online",t),S("offline",n)}}},_=!i.useId,O=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,P=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function Z(...e){let[t,n,r,i]=e,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=a.populateCache,l=a.rollbackOnError,u=a.optimisticData,d=!1!==a.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=a.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[a]=N(n);if(!a)return;let[l,p]=b(t,a),[g,y,x]=o.get(t),w=g[a],j=()=>d&&(delete x[a],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let k=r,E=D();y[a]=[E,0];let S=!f(u),C=l(),_=C.data,O=C._c,M=f(O)?_:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[a][0]){if(i)throw i;return k}i&&S&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[a][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:k}}let F=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!o.has(e)){let n=p(C,t),r={},i=Z.bind(c,e),a=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!o.has(e)&&(o.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[V,I]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:V,mutate:I,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=p(i,o))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=o.get(V),a=i[r];return a?(delete i[r],a):n(...e)});return e(t,i,r)}),X=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let G={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:H(n,a),[r,n,a]),s=a&&a.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(o.cache||V),a));let u=l.current;return u&&(o.cache=u[0],o.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:o}))},"defaultValue",{value:B});var Q=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=n,[w,j,k]=o.get(r),[E,S]=N(e),C=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),z=()=>F.current,V=()=>z().isVisible()&&z().isOnline(),[I,B,H,U]=b(r,E),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[E]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!E&&!!t&&(f(d)?!z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=I(),i=U(),a=n(r),o=r===i?a:n(i),s=a;return[()=>{let e=n(I());return $(e,s)?s:s=e},()=>o]},[r,E]),Y=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>H(E,(t,n)=>{$(n,t)||e()}),[r,E]),K[0],K[1]),J=!C.current,Q=w[E]&&w[E].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,ea=(!Q||!!f(en))&&(J&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),eo=!!(E&&t&&J&&ea),es=f(Y.isValidating)?eo:Y.isValidating,el=f(Y.isLoading)?eo:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||A.current||z().isPaused())return!1;let a=!0,o=e||{},l=!k[E]||!o.dedupe,u=()=>_?!A.current&&E===P.current&&C.current:E===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(I().data)&&setTimeout(()=>{a&&u()&&z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(S),D()]),[t,r]=k[E],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return l&&u()&&z().onDiscarded(E),!1;d.error=c;let e=j[E];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(E),!1;let o=I().data;d.data=s(o,t)?o:t,l&&u()&&z().onSuccess(t,E,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,E,e),(!0===t||h(t)&&t(n))&&V()&&e.onErrorRetry(n,E,e,e=>{let t=w[E];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0},[E,r]),ec=(0,i.useCallback)((...e)=>Z(r,P.current,...e),[]);if(T(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!E)return;let e=eu.bind(c,G),t=0,n=X(E,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&V()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&V()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,P.current=E,C.current=!0,B({_k:S}),ea&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[E]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(G).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,E]),(0,i.useDebugValue)(ei),l&&f(et)&&E){if(!_&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,A.current=!1,f(en)?eu(G):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,a]=$(e),o=H(t,a),s=r,{use:l}=o,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||o.fetcher||null,o)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return o},_T:function(){return i},ev:function(){return l},mG:function(){return a},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;iu("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(l=j.data)||void 0===l?void 0:l.address,type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(s.t6k,{testnetName:e.data.network}):null}function j(e){let n=(0,r.X2)(),{isSynced:i}=(0,o.n)();return(0,t.jsx)(s.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),connectivityRoute:c.h,isSynced:i,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},97992:function(e,n,i){"use strict";i.d(n,{e:function(){return o}});var t=i(52322),s=i(97479),r=i(61020),l=i(82851),a=i(98334),c=i(88385);function o(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.KJW,{title:"Files",route:a._.buckets.index,children:(0,t.jsx)(r.ROc,{})}),(0,t.jsx)(s.KJW,{title:"Configuration",route:a._.config.index,children:(0,t.jsx)(r.wWN,{})}),(0,t.jsx)(s.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,t.jsx)(r.VBo,{})}),(0,t.jsx)(s.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,t.jsx)(r.VHe,{})}),(0,t.jsx)(s.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,t.jsx)(r._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?n?(0,t.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(s.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(s.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,t.jsx)(r.Dkj,{})})]})]})}},19814:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=i(52322),s=i(97992),r=i(98334),l=i(97479),a=i(97112),c=i(91362),o=i(61020);function d(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No alerts matching filters."})]})}function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o._kF,{className:"scale-[2]"})}),(0,t.jsx)("div",{className:"flex flex-col gap-3 items-center",children:(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no alerts."})})]})}var u=i(88385);function h(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:i,setColumnsVisible:s,setColumnsHidden:r,enabledColumns:a}=(0,u.Z)(),c=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(l.J2e,{trigger:(0,t.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Display properties"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),i()},children:(0,t.jsx)(o.Wet,{})})})]}),(0,t.jsx)(l.FzK,{label:"General",columns:c.map(e=>e.value),enabled:a,setColumnsVisible:s,setColumnsHidden:r}),(0,t.jsx)(l.WVB,{children:(0,t.jsx)(l.j4H,{options:c,values:a,onChange:e=>n(e)})})]})}function j(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(h,{})})}function m(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching alerts."})]})}var f=i(98358);function v(){let{severityFilter:e,setSeverityFilter:n,offset:i,limit:s,totals:r,pageCount:a,dataState:c,datasetPage:o,dismissMany:d}=(0,u.Z)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full items-center",children:[(0,t.jsx)(l.xvT,{weight:"medium",children:"Filter"}),(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsxs)(l.zxk,{variant:void 0===e?"active":"inactive",onClick:()=>n(void 0),children:["all (",r.all,")"]}),(0,t.jsxs)(l.zxk,{variant:"info"===e?"active":"inactive",onClick:()=>n("info"),children:["info (",r.info,")"]}),(0,t.jsxs)(l.zxk,{variant:"warning"===e?"active":"inactive",onClick:()=>n("warning"),children:["warning (",r.warning,")"]}),(0,t.jsxs)(l.zxk,{variant:"error"===e?"active":"inactive",onClick:()=>n("error"),children:["error (",r.error,")"]}),(0,t.jsxs)(l.zxk,{variant:"critical"===e?"active":"inactive",onClick:()=>n("critical"),children:["critical (",r.critical,")"]})]}),(0,t.jsx)("div",{className:"flex-1"}),!c&&!!a&&(0,t.jsxs)(l.zxk,{tip:e?"dismiss ".concat(a):"dismiss all",onClick:()=>d(o.map(e=>e.id)),children:[(0,t.jsx)(f.NlZ,{}),"Dismiss (",a,")"]}),(0,t.jsx)(l.uDJ,{offset:i,limit:s,isLoading:"loading"===c,datasetTotal:r.all,pageTotal:a})]})}function p(){let{openDialog:e}=(0,a.Rh)(),{columns:n,datasetPage:i,sortField:o,sortDirection:h,sortableColumns:f,toggleSort:p,limit:g,dataState:w,cellContext:N}=(0,u.Z)();return(0,t.jsx)(c.J,{title:"Alerts",routes:r._,sidenav:(0,t.jsx)(s.e,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(j,{}),stats:(0,t.jsx)(v,{}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(l.iA_,{context:N,isLoading:"loading"===w,emptyState:"noneMatchingFilters"===w?(0,t.jsx)(d,{}):"noneYet"===w?(0,t.jsx)(x,{}):"error"===w?(0,t.jsx)(m,{}):null,sortableColumns:f,pageSize:g,data:i,columns:n,sortDirection:h,sortField:o,toggleSort:p,rowSize:"auto"})})})}function g(){return(0,t.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=28240)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[233],{28240:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/alerts",function(){return i(19814)}])},91362:function(e,n,i){"use strict";i.d(n,{J:function(){return j}});var t=i(52322),s=i(97479),r=i(55329),l=i(6391),a=i.n(l),c=i(98334),o=i(38855),d=i(97112),x=i(21487);function u(){var e,n,i,l,a,c;let{openDialog:u}=(0,d.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.cQ)(),f=(0,o.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(s.HfT,{name:"renterd",peerCount:null===(i=m.data)||void 0===i?void 0:i.length,connectPeer:()=>u("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(l=j.data)||void 0===l?void 0:l.address,type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(s.t6k,{testnetName:e.data.network}):null}function j(e){let n=(0,r.X2)(),{isSynced:i}=(0,o.n)();return(0,t.jsx)(s.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),connectivityRoute:c.h,isSynced:i,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},97992:function(e,n,i){"use strict";i.d(n,{e:function(){return o}});var t=i(52322),s=i(97479),r=i(61020),l=i(82851),a=i(98334),c=i(88385);function o(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.KJW,{title:"Files",route:a._.buckets.index,children:(0,t.jsx)(r.ROc,{})}),(0,t.jsx)(s.KJW,{title:"Configuration",route:a._.config.index,children:(0,t.jsx)(r.wWN,{})}),(0,t.jsx)(s.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,t.jsx)(r.VBo,{})}),(0,t.jsx)(s.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,t.jsx)(r.VHe,{})}),(0,t.jsx)(s.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,t.jsx)(r._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?n?(0,t.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(s.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(s.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,t.jsx)(r.Dkj,{})})]})]})}},19814:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=i(52322),s=i(97992),r=i(98334),l=i(97479),a=i(97112),c=i(91362),o=i(61020);function d(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No alerts matching filters."})]})}function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o._kF,{className:"scale-[2]"})}),(0,t.jsx)("div",{className:"flex flex-col gap-3 items-center",children:(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no alerts."})})]})}var u=i(88385);function h(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:i,setColumnsVisible:s,setColumnsHidden:r,enabledColumns:a}=(0,u.Z)(),c=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(l.J2e,{trigger:(0,t.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Display properties"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),i()},children:(0,t.jsx)(o.Wet,{})})})]}),(0,t.jsx)(l.FzK,{label:"General",columns:c.map(e=>e.value),enabled:a,setColumnsVisible:s,setColumnsHidden:r}),(0,t.jsx)(l.WVB,{children:(0,t.jsx)(l.j4H,{options:c,values:a,onChange:e=>n(e)})})]})}function j(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(h,{})})}function m(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching alerts."})]})}var f=i(98358);function v(){let{severityFilter:e,setSeverityFilter:n,offset:i,limit:s,totals:r,pageCount:a,dataState:c,datasetPage:o,dismissMany:d}=(0,u.Z)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full items-center",children:[(0,t.jsx)(l.xvT,{weight:"medium",children:"Filter"}),(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsxs)(l.zxk,{variant:void 0===e?"active":"inactive",onClick:()=>n(void 0),children:["all (",r.all,")"]}),(0,t.jsxs)(l.zxk,{variant:"info"===e?"active":"inactive",onClick:()=>n("info"),children:["info (",r.info,")"]}),(0,t.jsxs)(l.zxk,{variant:"warning"===e?"active":"inactive",onClick:()=>n("warning"),children:["warning (",r.warning,")"]}),(0,t.jsxs)(l.zxk,{variant:"error"===e?"active":"inactive",onClick:()=>n("error"),children:["error (",r.error,")"]}),(0,t.jsxs)(l.zxk,{variant:"critical"===e?"active":"inactive",onClick:()=>n("critical"),children:["critical (",r.critical,")"]})]}),(0,t.jsx)("div",{className:"flex-1"}),!c&&!!a&&(0,t.jsxs)(l.zxk,{tip:e?"dismiss ".concat(a):"dismiss all",onClick:()=>d(o.map(e=>e.id)),children:[(0,t.jsx)(f.NlZ,{}),"Dismiss (",a,")"]}),(0,t.jsx)(l.uDJ,{offset:i,limit:s,isLoading:"loading"===c,datasetTotal:r.all,pageTotal:a})]})}function p(){let{openDialog:e}=(0,a.Rh)(),{columns:n,datasetPage:i,sortField:o,sortDirection:h,sortableColumns:f,toggleSort:p,limit:g,dataState:w,cellContext:N}=(0,u.Z)();return(0,t.jsx)(c.J,{title:"Alerts",routes:r._,sidenav:(0,t.jsx)(s.e,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(j,{}),stats:(0,t.jsx)(v,{}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(l.iA_,{context:N,isLoading:"loading"===w,emptyState:"noneMatchingFilters"===w?(0,t.jsx)(d,{}):"noneYet"===w?(0,t.jsx)(x,{}):"error"===w?(0,t.jsx)(m,{}):null,sortableColumns:f,pageSize:g,data:i,columns:n,sortDirection:h,sortField:o,toggleSort:p,rowSize:"auto"})})})}function g(){return(0,t.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=28240)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-17b60daececb10e8.js b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-d6c43599e6026d3f.js similarity index 98% rename from renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-17b60daececb10e8.js rename to renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-d6c43599e6026d3f.js index 00b3340fa..c2ed414ac 100644 --- a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-17b60daececb10e8.js +++ b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-d6c43599e6026d3f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{56592:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets/[bucket]/uploads",function(){return n(44111)}])},17398:function(e,s,n){"use strict";n.d(s,{C:function(){return a}});var t=n(52322),i=n(97479),l=n(61020),r=n(41736);function c(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:n,isViewingUploads:c,navigateToUploads:a}=(0,r.b)();return(0,t.jsxs)(i.h_2,{trigger:(0,t.jsx)(i.zxk,{tipSide:"bottom",tip:c?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:c?(0,t.jsx)(l.bQp,{}):"directory"===e?(0,t.jsx)(l.Qbr,{}):(0,t.jsx)(l.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.Xiv,{onSelect:s,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(l.Qbr,{})}),"Directory"]}),(0,t.jsxs)(i.Xiv,{onSelect:n,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(l.nDH,{})}),"All files"]}),(0,t.jsxs)(i.Xiv,{onSelect:a,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(l.bQp,{})}),"Uploads"]})]})}function a(){let{isViewingBuckets:e}=(0,r.b)();return e?(0,t.jsx)(i.ua7,{content:"Viewing all buckets",children:(0,t.jsx)("div",{children:(0,t.jsx)(i.zxk,{state:"waiting",children:(0,t.jsx)(l.fi8,{size:16})})})}):(0,t.jsx)(c,{})}},91362:function(e,s,n){"use strict";n.d(s,{J:function(){return h}});var t=n(52322),i=n(97479),l=n(57016),r=n(6391),c=n.n(r),a=n(98334),o=n(38855),d=n(97112),x=n(21487);function u(){var e,s,n,r,c,a;let{openDialog:u}=(0,d.Rh)(),j=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,l.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,l.cQ)(),m=(0,o.n)(),p=null===(e=j.data)||void 0===e?void 0:e.version,v="?"===p?"https://github.com/SiaFoundation/renterd/commits/":(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(p):"https://github.com/SiaFoundation/renterd/tree/".concat(p),g=j.data?new Date().getTime()-new Date(null===(s=j.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.address,type:"address"})})]}),j.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=j.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=j.data)||void 0===a?void 0:a.version})]})]})}function j(){let e=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,l.X2)(),{isSynced:n}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(j,{}),connectivityRoute:a.h,isSynced:n,walletBalanceSc:s.data&&{spendable:new(c())(s.data.spendable),confirmed:new(c())(s.data.confirmed),unconfirmed:new(c())(s.data.unconfirmed)},...e})}},97992:function(e,s,n){"use strict";n.d(s,{e:function(){return o}});var t=n(52322),i=n(97479),l=n(61020),r=n(82851),c=n(98334),a=n(88385);function o(){let{totals:e}=(0,a.Z)(),s=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Files",route:c._.buckets.index,children:(0,t.jsx)(l.ROc,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,t.jsx)(l.VHe,{})}),(0,t.jsx)(i.KJW,{title:"S3 authentication keypairs",route:c._.keys.index,children:(0,t.jsx)(l._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?s?(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(i.KJW,{title:"Alerts",route:c._.alerts.index,children:(0,t.jsx)(l.Dkj,{})})]})]})}},44111:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var t=n(52322),i=n(97992),l=n(98334),r=n(97112),c=n(91362),a=n(97479),o=n(61020),d=n(73076);function x(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,enabledColumns:i}=(0,d.x)();return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{onClick:e=>{e.stopPropagation(),n()},children:"Reset default"})})]}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:i,onChange:e=>s(e)})})]})}function u(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(x,{})})}function j(){let{abortAll:e,limit:s,pageCount:n,dataState:i,nextMarker:l,hasMore:r}=(0,d.x)();return(0,t.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,t.jsx)("div",{className:"flex-1"}),n>0&&(0,t.jsxs)(a.zxk,{onClick:e,children:["Abort (",n,")"]}),(0,t.jsx)(a._5,{marker:l,isMore:r,limit:s,pageTotal:n,isLoading:"loading"===i})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching uploads."})]})}var f=n(41736);function m(){let{filters:e,resetFilters:s}=(0,f.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No uploads matching filters."}),!!e.length&&(0,t.jsx)(a.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function p(){let{activeBucketName:e}=(0,f.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,t.jsx)(a.EKh,{children:e})," bucket does not have any active uploads."]}),(0,t.jsx)(a.Qjf,{href:l._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function v(){let{dataState:e}=(0,d.x)();return"noneMatchingFilters"===e?(0,t.jsx)(m,{}):"error"===e?(0,t.jsx)(h,{}):"noneYet"===e?(0,t.jsx)(p,{}):null}var g=n(88778);function b(){let{sortableColumns:e,toggleSort:s,datasetPage:n,dataState:i,sortField:l,sortDirection:r}=(0,d.x)();return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(a.iA_,{isLoading:"loading"===i,emptyState:(0,t.jsx)(v,{}),pageSize:10,data:n,columns:g.z,sortableColumns:e,sortField:l,sortDirection:r,toggleSort:s,rowSize:"dense"})})}var w=n(17398);function N(){let{activeBucketName:e,setActiveDirectory:s}=(0,f.b)();return(0,t.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,t.jsx)(w.C,{}),(0,t.jsx)(a.xrM,{children:(0,t.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,t.jsx)(a.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{onClick:()=>s(()=>[e]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Uploads"})]})})]})}function k(){let{openDialog:e}=(0,r.Rh)();return(0,t.jsx)(c.J,{title:"Uploads",navTitle:null,routes:l._,sidenav:(0,t.jsx)(i.e,{}),nav:(0,t.jsx)(N,{}),stats:(0,t.jsx)(j,{}),actions:(0,t.jsx)(u,{}),openSettings:()=>e("settings"),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(b,{})})})}function _(){return(0,t.jsx)(k,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=56592)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{56592:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets/[bucket]/uploads",function(){return n(44111)}])},17398:function(e,s,n){"use strict";n.d(s,{C:function(){return a}});var t=n(52322),i=n(97479),l=n(61020),r=n(41736);function c(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:n,isViewingUploads:c,navigateToUploads:a}=(0,r.b)();return(0,t.jsxs)(i.h_2,{trigger:(0,t.jsx)(i.zxk,{tipSide:"bottom",tip:c?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:c?(0,t.jsx)(l.bQp,{}):"directory"===e?(0,t.jsx)(l.Qbr,{}):(0,t.jsx)(l.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.Xiv,{onSelect:s,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(l.Qbr,{})}),"Directory"]}),(0,t.jsxs)(i.Xiv,{onSelect:n,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(l.nDH,{})}),"All files"]}),(0,t.jsxs)(i.Xiv,{onSelect:a,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(l.bQp,{})}),"Uploads"]})]})}function a(){let{isViewingBuckets:e}=(0,r.b)();return e?(0,t.jsx)(i.ua7,{content:"Viewing all buckets",children:(0,t.jsx)("div",{children:(0,t.jsx)(i.zxk,{state:"waiting",children:(0,t.jsx)(l.fi8,{size:16})})})}):(0,t.jsx)(c,{})}},91362:function(e,s,n){"use strict";n.d(s,{J:function(){return h}});var t=n(52322),i=n(97479),l=n(55329),r=n(6391),c=n.n(r),a=n(98334),o=n(38855),d=n(97112),x=n(21487);function u(){var e,s,n,r,c,a;let{openDialog:u}=(0,d.Rh)(),j=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,l.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,l.cQ)(),m=(0,o.n)(),p=null===(e=j.data)||void 0===e?void 0:e.version,v="?"===p?"https://github.com/SiaFoundation/renterd/commits/":(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(p):"https://github.com/SiaFoundation/renterd/tree/".concat(p),g=j.data?new Date().getTime()-new Date(null===(s=j.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.address,type:"address"})})]}),j.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=j.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=j.data)||void 0===a?void 0:a.version})]})]})}function j(){let e=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,l.X2)(),{isSynced:n}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(j,{}),connectivityRoute:a.h,isSynced:n,walletBalanceSc:s.data&&{spendable:new(c())(s.data.spendable),confirmed:new(c())(s.data.confirmed),unconfirmed:new(c())(s.data.unconfirmed)},...e})}},97992:function(e,s,n){"use strict";n.d(s,{e:function(){return o}});var t=n(52322),i=n(97479),l=n(61020),r=n(82851),c=n(98334),a=n(88385);function o(){let{totals:e}=(0,a.Z)(),s=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Files",route:c._.buckets.index,children:(0,t.jsx)(l.ROc,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,t.jsx)(l.VHe,{})}),(0,t.jsx)(i.KJW,{title:"S3 authentication keypairs",route:c._.keys.index,children:(0,t.jsx)(l._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?s?(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(i.KJW,{title:"Alerts",route:c._.alerts.index,children:(0,t.jsx)(l.Dkj,{})})]})]})}},44111:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var t=n(52322),i=n(97992),l=n(98334),r=n(97112),c=n(91362),a=n(97479),o=n(61020),d=n(73076);function x(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,enabledColumns:i}=(0,d.x)();return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{onClick:e=>{e.stopPropagation(),n()},children:"Reset default"})})]}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:i,onChange:e=>s(e)})})]})}function u(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(x,{})})}function j(){let{abortAll:e,limit:s,pageCount:n,dataState:i,nextMarker:l,hasMore:r}=(0,d.x)();return(0,t.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,t.jsx)("div",{className:"flex-1"}),n>0&&(0,t.jsxs)(a.zxk,{onClick:e,children:["Abort (",n,")"]}),(0,t.jsx)(a._5,{marker:l,isMore:r,limit:s,pageTotal:n,isLoading:"loading"===i})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching uploads."})]})}var f=n(41736);function m(){let{filters:e,resetFilters:s}=(0,f.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No uploads matching filters."}),!!e.length&&(0,t.jsx)(a.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function p(){let{activeBucketName:e}=(0,f.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,t.jsx)(a.EKh,{children:e})," bucket does not have any active uploads."]}),(0,t.jsx)(a.Qjf,{href:l._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function v(){let{dataState:e}=(0,d.x)();return"noneMatchingFilters"===e?(0,t.jsx)(m,{}):"error"===e?(0,t.jsx)(h,{}):"noneYet"===e?(0,t.jsx)(p,{}):null}var g=n(88778);function b(){let{sortableColumns:e,toggleSort:s,datasetPage:n,dataState:i,sortField:l,sortDirection:r}=(0,d.x)();return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(a.iA_,{isLoading:"loading"===i,emptyState:(0,t.jsx)(v,{}),pageSize:10,data:n,columns:g.z,sortableColumns:e,sortField:l,sortDirection:r,toggleSort:s,rowSize:"dense"})})}var w=n(17398);function N(){let{activeBucketName:e,setActiveDirectory:s}=(0,f.b)();return(0,t.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,t.jsx)(w.C,{}),(0,t.jsx)(a.xrM,{children:(0,t.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,t.jsx)(a.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{onClick:()=>s(()=>[e]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Uploads"})]})})]})}function k(){let{openDialog:e}=(0,r.Rh)();return(0,t.jsx)(c.J,{title:"Uploads",navTitle:null,routes:l._,sidenav:(0,t.jsx)(i.e,{}),nav:(0,t.jsx)(N,{}),stats:(0,t.jsx)(j,{}),actions:(0,t.jsx)(u,{}),openSettings:()=>e("settings"),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(b,{})})})}function _(){return(0,t.jsx)(k,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=56592)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/config-da6499b2d958f4aa.js b/renterd/assets/_next/static/chunks/pages/config-064c32478d206ba0.js similarity index 98% rename from renterd/assets/_next/static/chunks/pages/config-da6499b2d958f4aa.js rename to renterd/assets/_next/static/chunks/pages/config-064c32478d206ba0.js index 5c0e428c2..04c579c64 100644 --- a/renterd/assets/_next/static/chunks/pages/config-da6499b2d958f4aa.js +++ b/renterd/assets/_next/static/chunks/pages/config-064c32478d206ba0.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return t(34885)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var s=t(52322),i=t(97479),a=t(57016),r=t(6391),c=t.n(r),l=t(98334),o=t(38855),d=t(97112),x=t(21487);function u(){var e,n,t,r,c,l;let{openDialog:u}=(0,d.Rh)(),h=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,g="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),p=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=m.data)||void 0===t?void 0:t.length,connectPeer:()=>u("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(r=f.data)||void 0===r?void 0:r.address,type:"address"})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:(0,x.bc)(p,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=h.data)||void 0===l?void 0:l.version})]})]})}function h(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,a.X2)(),{isSynced:t}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(h,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(c())(n.data.spendable),confirmed:new(c())(n.data.confirmed),unconfirmed:new(c())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var s=t(52322),i=t(97479),a=t(61020),r=t(82851),c=t(98334),l=t(88385);function o(){let{totals:e}=(0,l.Z)(),n=e.all===e.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.buckets.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsx)(i.KJW,{title:"S3 authentication keypairs",route:c._.keys.index,children:(0,s.jsx)(a._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[e.all?n?(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,s.jsx)(i.KJW,{title:"Alerts",route:c._.alerts.index,children:(0,s.jsx)(a.Dkj,{})})]})]})}},34885:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(97479),a=t(97992),r=t(98334),c=t(97112),l=t(91362),o=t(49889),d=t(21487),x=t(46081);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:n,estimatedSpendingPerMonth:t,estimatedSpendingPerTB:a,redundancyMultiplier:r,storageTB:c,showAdvanced:l}=(0,o.ZR)(),u=(0,i.fb0)({sc:t}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:n?(0,s.jsx)(i.xrM,{children:(0,s.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),h.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:h.fiat,color:"subtle",variant:"value",format:e=>"(".concat(h.currency.prefix).concat(e.toFixed(h.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["per TB/month with ",r.toFixed(1),"x redundancy"]})]}),!a.eq(t)&&(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(t),dynamicUnits:!1,fixed:0,variant:"value"}),u.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:u.fiat,color:"subtle",variant:"value",format:e=>"(".concat(u.currency.prefix).concat(e.toFixed(u.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["to store ",(0,d.vW)((0,d.xf)(c).toNumber()),"/month with"," ",r.toFixed(1),"x redundancy"]})]})]})}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:l?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=t(61020);function f(){let{takeScreenshot:e}=(0,o.ZR)();return(0,s.jsxs)(i.h_2,{trigger:(0,s.jsx)(i.zxk,{children:(0,s.jsx)(h.jH8,{})}),contentProps:{align:"end"},children:[(0,s.jsx)(i.Juw,{children:"Actions"}),(0,s.jsxs)(i.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,s.jsx)(i.KpP,{children:(0,s.jsx)(h.olJ,{})}),"Copy image of configuration"]}),(0,s.jsxs)(i.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,s.jsx)(i.KpP,{children:(0,s.jsx)(h.vzB,{})}),"Download image of configuration"]})]})}function m(){let{onSubmit:e,changeCount:n,shouldSyncDefaultContractSet:t,setShouldSyncDefaultContractSet:a,revalidateAndResetForm:r,form:c}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!n&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===n?"1 change":"".concat(n," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!n,onClick:r,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!c.formState.isDirty||c.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(h.ZEk,{}),"Save changes"]}),(0,s.jsx)(i.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(i.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(h.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(i.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.rsf,{checked:t,onCheckedChange:e=>a(e),children:"sync default contract set"}),(0,s.jsx)(i.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]}),(0,s.jsx)(f,{})]})}function j(){let{showAdvanced:e,setShowAdvanced:n}=(0,o.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function v(){let{revalidateAndResetForm:e}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(h.gFQ,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error retrieving settings from daemon. Please check your connection and try again."}),(0,s.jsx)(i.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function g(){let{openDialog:e}=(0,c.Rh)(),{form:n,fields:t,remoteError:d,configRef:x}=(0,o.ZR)();return(0,s.jsx)(l.J,{title:"Configuration",routes:r._,nav:(0,s.jsx)(j,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(m,{}),openSettings:()=>e("settings"),size:"3",children:d?(0,s.jsx)(v,{}):(0,s.jsxs)("div",{ref:x,className:"px-5 py-6 flex flex-col gap-16",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:t,form:n})]})})}function p(){return(0,s.jsx)(g,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return t(34885)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var s=t(52322),i=t(97479),a=t(55329),r=t(6391),c=t.n(r),l=t(98334),o=t(38855),d=t(97112),x=t(21487);function u(){var e,n,t,r,c,l;let{openDialog:u}=(0,d.Rh)(),h=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,g="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),p=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=m.data)||void 0===t?void 0:t.length,connectPeer:()=>u("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(r=f.data)||void 0===r?void 0:r.address,type:"address"})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:(0,x.bc)(p,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=h.data)||void 0===l?void 0:l.version})]})]})}function h(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,a.X2)(),{isSynced:t}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(h,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(c())(n.data.spendable),confirmed:new(c())(n.data.confirmed),unconfirmed:new(c())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var s=t(52322),i=t(97479),a=t(61020),r=t(82851),c=t(98334),l=t(88385);function o(){let{totals:e}=(0,l.Z)(),n=e.all===e.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.buckets.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsx)(i.KJW,{title:"S3 authentication keypairs",route:c._.keys.index,children:(0,s.jsx)(a._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[e.all?n?(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,s.jsx)(i.KJW,{title:"Alerts",route:c._.alerts.index,children:(0,s.jsx)(a.Dkj,{})})]})]})}},34885:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(97479),a=t(97992),r=t(98334),c=t(97112),l=t(91362),o=t(68338),d=t(21487),x=t(46081);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:n,estimatedSpendingPerMonth:t,estimatedSpendingPerTB:a,redundancyMultiplier:r,storageTB:c,showAdvanced:l}=(0,o.ZR)(),u=(0,i.fb0)({sc:t}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:n?(0,s.jsx)(i.xrM,{children:(0,s.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),h.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:h.fiat,color:"subtle",variant:"value",format:e=>"(".concat(h.currency.prefix).concat(e.toFixed(h.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["per TB/month with ",r.toFixed(1),"x redundancy"]})]}),!a.eq(t)&&(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(t),dynamicUnits:!1,fixed:0,variant:"value"}),u.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:u.fiat,color:"subtle",variant:"value",format:e=>"(".concat(u.currency.prefix).concat(e.toFixed(u.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["to store ",(0,d.vW)((0,d.xf)(c).toNumber()),"/month with"," ",r.toFixed(1),"x redundancy"]})]})]})}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:l?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=t(61020);function f(){let{takeScreenshot:e}=(0,o.ZR)();return(0,s.jsxs)(i.h_2,{trigger:(0,s.jsx)(i.zxk,{children:(0,s.jsx)(h.jH8,{})}),contentProps:{align:"end"},children:[(0,s.jsx)(i.Juw,{children:"Actions"}),(0,s.jsxs)(i.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,s.jsx)(i.KpP,{children:(0,s.jsx)(h.olJ,{})}),"Copy image of configuration"]}),(0,s.jsxs)(i.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,s.jsx)(i.KpP,{children:(0,s.jsx)(h.vzB,{})}),"Download image of configuration"]})]})}function m(){let{onSubmit:e,changeCount:n,shouldSyncDefaultContractSet:t,setShouldSyncDefaultContractSet:a,revalidateAndResetForm:r,form:c}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!n&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===n?"1 change":"".concat(n," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!n,onClick:r,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!c.formState.isDirty||c.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(h.ZEk,{}),"Save changes"]}),(0,s.jsx)(i.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(i.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(h.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(i.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.rsf,{checked:t,onCheckedChange:e=>a(e),children:"sync default contract set"}),(0,s.jsx)(i.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]}),(0,s.jsx)(f,{})]})}function j(){let{showAdvanced:e,setShowAdvanced:n}=(0,o.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function v(){let{revalidateAndResetForm:e}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(h.gFQ,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error retrieving settings from daemon. Please check your connection and try again."}),(0,s.jsx)(i.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function g(){let{openDialog:e}=(0,c.Rh)(),{form:n,fields:t,remoteError:d,configRef:x}=(0,o.ZR)();return(0,s.jsx)(l.J,{title:"Configuration",routes:r._,nav:(0,s.jsx)(j,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(m,{}),openSettings:()=>e("settings"),size:"3",children:d?(0,s.jsx)(v,{}):(0,s.jsxs)("div",{ref:x,className:"px-5 py-6 flex flex-col gap-16",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:t,form:n}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:t,form:n})]})})}function p(){return(0,s.jsx)(g,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-8a9f443e10e3a2f2.js b/renterd/assets/_next/static/chunks/pages/contracts-ad2bde9902e2b475.js similarity index 99% rename from renterd/assets/_next/static/chunks/pages/contracts-8a9f443e10e3a2f2.js rename to renterd/assets/_next/static/chunks/pages/contracts-ad2bde9902e2b475.js index 9ce8307ed..be4a1a061 100644 --- a/renterd/assets/_next/static/chunks/pages/contracts-8a9f443e10e3a2f2.js +++ b/renterd/assets/_next/static/chunks/pages/contracts-ad2bde9902e2b475.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(4085)}])},91362:function(e,n,s){"use strict";s.d(n,{J:function(){return j}});var t=s(52322),l=s(97479),i=s(57016),a=s(6391),r=s.n(a),c=s(98334),o=s(38855),d=s(97112),x=s(21487);function u(){var e,n,s,a,r,c;let{openDialog:u}=(0,d.Rh)(),h=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,i.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.cQ)(),g=(0,o.n)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===m?"https://github.com/SiaFoundation/renterd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(m):"https://github.com/SiaFoundation/renterd/tree/".concat(m),v=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(s=f.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:g.isSynced,syncPercent:g.syncPercent,nodeBlockHeight:g.nodeBlockHeight,estimatedBlockHeight:g.estimatedBlockHeight,firstTimeSyncing:g.firstTimeSyncing,moreThan100BlocksToSync:g.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:50,value:null===(a=j.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:(0,x.bc)(v,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function j(e){let n=(0,i.X2)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),connectivityRoute:c.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},97992:function(e,n,s){"use strict";s.d(n,{e:function(){return o}});var t=s(52322),l=s(97479),i=s(61020),a=s(82851),r=s(98334),c=s(88385);function o(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:r._.buckets.index,children:(0,t.jsx)(i.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,t.jsx)(i.VHe,{})}),(0,t.jsx)(l.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,t.jsx)(i._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?n?(0,t.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(l.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(l.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,t.jsx)(i.Dkj,{})})]})]})}},4085:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return S}});var t=s(52322),l=s(97992),i=s(98334),a=s(97479),r=s(97112),c=s(76838),o=s(91362),d=s(61020);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}var h=s(75262),j=s(52058);function f(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:i,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:f}=(0,c.G)(),g=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Order by"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,j.Z)(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(a.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Direction"}),(0,t.jsx)(a.kFS,{children:(0,t.jsxs)(a.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(a.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(a.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(a.Clw,{}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(a.FzK,{label:"General",columns:g.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:g,values:f,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Time",columns:m.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:m,values:f,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:p,values:f,onChange:e=>n(e)})})]})}function g(){let{setViewMode:e}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.zxk,{tip:"Toggle graphs",onClick:()=>e(e=>"detail"===e?"list":"detail"),children:(0,t.jsx)(d.oce,{})}),(0,t.jsx)(f,{})]})}function m(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(u,{}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var p=s(99182),v=s(2784),b=s(14613);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,c.G)(),[l,i]=(0,v.useState)(!1),[r,o]=(0,v.useState)(""),[x,u]=(0,v.useState)([]),h=x[x.length-1],j=(x.length,(0,v.useRef)(null)),f=(0,v.useRef)(null),g=(0,v.useCallback)(e=>{u(n=>[...n,e])},[u]),m=(0,v.useCallback)(()=>{u([])},[u]);(0,v.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,v.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),k=(0,v.useCallback)(()=>{o(""),m()},[m]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(a.eQh,{children:[(0,t.jsx)(a.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(a.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(p.mY,{ref:j,label:"Command Menu",onFocus:()=>i(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var n;i(!1),null===(n=f.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(p.mY.Input,{ref:f,value:r,onValueChange:o,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(a.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(a.xrM,{children:[h&&(0,t.jsx)(a.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(p.mY.List,{children:(0,t.jsx)(b.F,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function k(){let{dataState:e,offset:n,limit:s,datasetFilteredCount:l,pageCount:i}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(a.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:i})]})}var N=s(82851);function y(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.uTh,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No data available."})]})}function _(){let{selectedContract:e,allContractsSpendingMetrics:n,selectedContractSpendingMetrics:s,contractSetCountMetrics:l,graphMode:i,setGraphMode:r}=(0,c.G)(),o=(0,t.jsxs)("div",{className:"flex gap-2",children:[!e&&(0,t.jsx)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>r("spending"),children:"Funding & spending: All contracts"}),e&&(0,t.jsxs)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>r("spending"),children:["Funding & spending: Contract"," ",(0,a.I13)(e.id).slice(0,6)]}),!e&&(0,t.jsx)(a.zxk,{variant:"count"===i?"accent":"gray",onClick:()=>r("count"),children:"Count"})]});return(0,t.jsxs)("div",{className:"w-full h-full",children:["spending"===i&&!e&&(0,t.jsx)(a.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:n.data,config:n.config,isLoading:n.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})}),"spending"===i&&e&&(0,t.jsx)(a.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:s.data,config:s.config,isLoading:s.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})}),"count"===i&&!e&&(0,t.jsx)(a.b0u,{id:"renterd/v0/contracts/graphs/count",height:"100%",data:l.data,config:l.config,isLoading:l.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})})]})}function C(){let{openDialog:e}=(0,r.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:f,limit:p,dataState:v,cellContext:b,error:w,viewMode:y,filters:C,selectedContract:S}=(0,c.G)(),T="detail"===y&&(!C.length||S),z=T?s&&s.length?"".concat(400-Math.max((2-s.length)*100,0),"px"):"400px":"100%";return(0,t.jsx)(o.J,{title:"Active contracts",routes:i._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(k,{}),actions:(0,t.jsx)(g,{}),size:"full",scroll:!1,children:(0,t.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,t.jsx)("div",{className:(0,N.cx)("absolute w-full",T?"block":"invisible","transition-all","p-6"),style:{height:T?"calc(100% - ".concat(z,")"):0},children:T?(0,t.jsx)(_,{}):null}),(0,t.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:z},children:(0,t.jsx)(a.xrM,{className:"z-0",id:"scroll-hosts",children:(0,t.jsx)("div",{className:(0,N.cx)(T?"pb-6 px-6":"p-6","min-w-fit"),children:(0,t.jsx)(a.iA_,{context:b,isLoading:"loading"===v,emptyState:"noneMatchingFilters"===v?(0,t.jsx)(x,{}):"noneYet"===v?(0,t.jsx)(u,{}):"error"===v?(0,t.jsx)(m,{error:w}):null,sortableColumns:j,pageSize:p,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:f,focusId:null==S?void 0:S.id,rowSize:"default"})})})})]})})}function S(){return(0,t.jsx)(C,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(4085)}])},91362:function(e,n,s){"use strict";s.d(n,{J:function(){return j}});var t=s(52322),l=s(97479),i=s(55329),a=s(6391),r=s.n(a),c=s(98334),o=s(38855),d=s(97112),x=s(21487);function u(){var e,n,s,a,r,c;let{openDialog:u}=(0,d.Rh)(),h=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,i.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.cQ)(),g=(0,o.n)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===m?"https://github.com/SiaFoundation/renterd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(m):"https://github.com/SiaFoundation/renterd/tree/".concat(m),v=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(s=f.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:g.isSynced,syncPercent:g.syncPercent,nodeBlockHeight:g.nodeBlockHeight,estimatedBlockHeight:g.estimatedBlockHeight,firstTimeSyncing:g.firstTimeSyncing,moreThan100BlocksToSync:g.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:50,value:null===(a=j.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:(0,x.bc)(v,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function j(e){let n=(0,i.X2)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),connectivityRoute:c.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},97992:function(e,n,s){"use strict";s.d(n,{e:function(){return o}});var t=s(52322),l=s(97479),i=s(61020),a=s(82851),r=s(98334),c=s(88385);function o(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:r._.buckets.index,children:(0,t.jsx)(i.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,t.jsx)(i.VHe,{})}),(0,t.jsx)(l.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,t.jsx)(i._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?n?(0,t.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(l.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(l.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,t.jsx)(i.Dkj,{})})]})]})}},4085:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return S}});var t=s(52322),l=s(97992),i=s(98334),a=s(97479),r=s(97112),c=s(76838),o=s(91362),d=s(61020);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}var h=s(75262),j=s(52058);function f(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:i,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:f}=(0,c.G)(),g=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Order by"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,j.Z)(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(a.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Direction"}),(0,t.jsx)(a.kFS,{children:(0,t.jsxs)(a.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(a.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(a.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(a.Clw,{}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(a.FzK,{label:"General",columns:g.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:g,values:f,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Time",columns:m.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:m,values:f,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:p,values:f,onChange:e=>n(e)})})]})}function g(){let{setViewMode:e}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.zxk,{tip:"Toggle graphs",onClick:()=>e(e=>"detail"===e?"list":"detail"),children:(0,t.jsx)(d.oce,{})}),(0,t.jsx)(f,{})]})}function m(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(u,{}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var p=s(99182),v=s(2784),b=s(14613);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,c.G)(),[l,i]=(0,v.useState)(!1),[r,o]=(0,v.useState)(""),[x,u]=(0,v.useState)([]),h=x[x.length-1],j=(x.length,(0,v.useRef)(null)),f=(0,v.useRef)(null),g=(0,v.useCallback)(e=>{u(n=>[...n,e])},[u]),m=(0,v.useCallback)(()=>{u([])},[u]);(0,v.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,v.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),k=(0,v.useCallback)(()=>{o(""),m()},[m]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(a.eQh,{children:[(0,t.jsx)(a.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(a.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(p.mY,{ref:j,label:"Command Menu",onFocus:()=>i(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var n;i(!1),null===(n=f.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(p.mY.Input,{ref:f,value:r,onValueChange:o,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(a.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(a.xrM,{children:[h&&(0,t.jsx)(a.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(p.mY.List,{children:(0,t.jsx)(b.F,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function k(){let{dataState:e,offset:n,limit:s,datasetFilteredCount:l,pageCount:i}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(a.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:i})]})}var N=s(82851);function y(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.uTh,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No data available."})]})}function _(){let{selectedContract:e,allContractsSpendingMetrics:n,selectedContractSpendingMetrics:s,contractSetCountMetrics:l,graphMode:i,setGraphMode:r}=(0,c.G)(),o=(0,t.jsxs)("div",{className:"flex gap-2",children:[!e&&(0,t.jsx)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>r("spending"),children:"Funding & spending: All contracts"}),e&&(0,t.jsxs)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>r("spending"),children:["Funding & spending: Contract"," ",(0,a.I13)(e.id).slice(0,6)]}),!e&&(0,t.jsx)(a.zxk,{variant:"count"===i?"accent":"gray",onClick:()=>r("count"),children:"Count"})]});return(0,t.jsxs)("div",{className:"w-full h-full",children:["spending"===i&&!e&&(0,t.jsx)(a.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:n.data,config:n.config,isLoading:n.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})}),"spending"===i&&e&&(0,t.jsx)(a.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:s.data,config:s.config,isLoading:s.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})}),"count"===i&&!e&&(0,t.jsx)(a.b0u,{id:"renterd/v0/contracts/graphs/count",height:"100%",data:l.data,config:l.config,isLoading:l.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})})]})}function C(){let{openDialog:e}=(0,r.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:f,limit:p,dataState:v,cellContext:b,error:w,viewMode:y,filters:C,selectedContract:S}=(0,c.G)(),T="detail"===y&&(!C.length||S),z=T?s&&s.length?"".concat(400-Math.max((2-s.length)*100,0),"px"):"400px":"100%";return(0,t.jsx)(o.J,{title:"Active contracts",routes:i._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(k,{}),actions:(0,t.jsx)(g,{}),size:"full",scroll:!1,children:(0,t.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,t.jsx)("div",{className:(0,N.cx)("absolute w-full",T?"block":"invisible","transition-all","p-6"),style:{height:T?"calc(100% - ".concat(z,")"):0},children:T?(0,t.jsx)(_,{}):null}),(0,t.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:z},children:(0,t.jsx)(a.xrM,{className:"z-0",id:"scroll-hosts",children:(0,t.jsx)("div",{className:(0,N.cx)(T?"pb-6 px-6":"p-6","min-w-fit"),children:(0,t.jsx)(a.iA_,{context:b,isLoading:"loading"===v,emptyState:"noneMatchingFilters"===v?(0,t.jsx)(x,{}):"noneYet"===v?(0,t.jsx)(u,{}):"error"===v?(0,t.jsx)(m,{error:w}):null,sortableColumns:j,pageSize:p,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:f,focusId:null==S?void 0:S.id,rowSize:"default"})})})})]})})}function S(){return(0,t.jsx)(C,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-7443f37b8cfffd55.js b/renterd/assets/_next/static/chunks/pages/hosts-bdd8fa60ad7fa861.js similarity index 98% rename from renterd/assets/_next/static/chunks/pages/hosts-7443f37b8cfffd55.js rename to renterd/assets/_next/static/chunks/pages/hosts-bdd8fa60ad7fa861.js index 1e6c80507..d78728a57 100644 --- a/renterd/assets/_next/static/chunks/pages/hosts-7443f37b8cfffd55.js +++ b/renterd/assets/_next/static/chunks/pages/hosts-bdd8fa60ad7fa861.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return l(3543)}])},91362:function(e,s,l){"use strict";l.d(s,{J:function(){return j}});var n=l(52322),t=l(97479),a=l(57016),i=l(6391),r=l.n(i),c=l(98334),o=l(38855),d=l(97112),x=l(21487);function u(){var e,s,l,i,r,c;let{openDialog:u}=(0,d.Rh)(),h=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),v=(0,o.n)(),f=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f),g=h.data?new Date().getTime()-new Date(null===(s=h.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(l=m.data)||void 0===l?void 0:l.length,connectPeer:()=>u("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.XxW,{size:"14",maxLength:50,value:null===(i=j.data)||void 0===i?void 0:i.address,type:"address"})})]}),h.data&&(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(t.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(t.t6k,{testnetName:e.data.network}):null}function j(e){let s=(0,a.X2)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(h,{}),connectivityRoute:c.h,isSynced:l,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},97992:function(e,s,l){"use strict";l.d(s,{e:function(){return o}});var n=l(52322),t=l(97479),a=l(61020),i=l(82851),r=l(98334),c=l(88385);function o(){let{totals:e}=(0,c.Z)(),s=e.all===e.info;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:r._.buckets.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:r._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsx)(t.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,n.jsx)(a._m8,{})}),(0,n.jsxs)("div",{className:"relative",children:[e.all?s?(0,n.jsx)("div",{className:(0,i.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,n.jsx)(t.xvT,{size:"10",className:(0,i.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,n.jsx)(t.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,n.jsx)(a.Dkj,{})})]})]})}},3543:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return _}});var n=l(52322),t=l(97992),a=l(98334),i=l(97479),r=l(97112),c=l(56328),o=l(91362),d=l(61020);function x(){let{dataState:e}=(0,c.l)();return"error"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.zvn,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,n.jsx)(i.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,n.jsx)(i.Qjf,{href:a._.node.index,children:"View peers"})]})]}):null}function u(){let{configurableColumns:e,toggleColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:t,resetDefaultColumnVisibility:a,enabledColumns:r}=(0,c.l)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),u=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(i.J2e,{trigger:(0,n.jsxs)(i.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(d.hiv,{}),"View",(0,n.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,n.jsxs)(i.WVB,{children:[(0,n.jsx)(i.__J,{children:"Display properties"}),(0,n.jsx)(i.kFS,{children:(0,n.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),a()},children:(0,n.jsx)(d.Wet,{})})})]}),(0,n.jsx)(i.FzK,{label:"General",columns:o.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:o,values:r,onChange:e=>s(e)})}),x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:x,values:r,onChange:e=>s(e)})})]}):null,u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:u,values:r,onChange:e=>s(e)})})]}):null,h.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:h,values:r,onChange:e=>s(e)})})]}):null]})}var h=l(10363);function j(){let{openDialog:e}=(0,r.Rh)(),{viewMode:s,setViewMode:l}=(0,c.l)(),{settings:t,gpu:a}=(0,h.Hv)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(i.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,n.jsx)(d.nCM,{}),"Manage lists"]}),(0,n.jsx)(i.ua7,{content:t.siaCentral?a.canGpuRender&&a.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,n.jsx)(i.zxk,{disabled:!a.canGpuRender,onClick:()=>{if(!t.siaCentral){e("settings");return}a.isGpuEnabled?l("map"===s?"list":"map"):e("settings")},children:(0,n.jsx)(d.nDH,{})})}),(0,n.jsx)(u,{})]})}var m=l(99182),v=l(2784),f=l(42213);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,v.useState)(!1),[r,o]=(0,v.useState)(""),[x,u]=(0,v.useState)([]),h=x[x.length-1],j=(0,v.useRef)(null),p=(0,v.useRef)(null),g=(0,v.useCallback)(e=>{u(s=>[...s,e])},[u]),b=(0,v.useCallback)(()=>{u([])},[u]);(0,v.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,v.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,v.useCallback)(()=>{o(""),b()},[b]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(i.eQh,{children:[(0,n.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,n.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,n.jsx)(d.PcV,{})})]},e.id)),(0,n.jsxs)(m.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||l(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=p.current)||void 0===s||s.blur()}},children:[(0,n.jsx)(m.mY.Input,{ref:p,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),t&&(0,n.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(i.xrM,{children:[h&&(0,n.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(m.mY.List,{children:(0,n.jsx)(f.L,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function g(){let{offset:e,limit:s,pageCount:l,dataState:t}=(0,c.l)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)(p,{}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(i.wFK,{offset:e,limit:s,pageTotal:l,isLoading:"loading"===t})]})}var b=l(37769),w=l(10569);function k(){let{gpu:e,settings:s}=(0,h.Hv)(),{setCmd:l,activeHost:t,onHostMapClick:a,onHostMapHover:r,hostsWithLocation:o}=(0,c.l)();return s.siaCentral&&!e.shouldRender?null:(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsx)(b.T,{activeHost:(null==t?void 0:t.location)?t:void 0,hosts:o,onHostClick:a,onHostHover:r,onMount:e=>{l(e)}}),(0,n.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,n.jsx)(i.wEc,{color:w.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var N=l(82851);function y(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:u,dataState:h,tableContext:m,viewMode:v}=(0,c.l)();return(0,n.jsx)(o.J,{title:"Hosts",routes:a._,sidenav:(0,n.jsx)(t.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,n.jsx)(j,{}),stats:(0,n.jsx)(g,{}),scroll:!1,children:(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,n.jsx)("div",{className:(0,N.cx)("absolute h-[70%] w-full","map"===v?"block":"invisible","transition-all"),children:(0,n.jsx)(k,{})}),(0,n.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===v?s&&s.length?400-Math.max((2-s.length)*100,0):400:"100%"},children:(0,n.jsx)(i.xrM,{className:"z-0",id:"scroll-hosts",children:(0,n.jsx)("div",{className:(0,N.cx)("map"===v?"pb-6 px-6":"p-6","min-w-fit"),children:(0,n.jsx)(i.iA_,{focusId:null==l?void 0:l.publicKey,focusColor:l?(0,w.Kg)(l).colorName:void 0,isLoading:"loading"===h,emptyState:(0,n.jsx)(x,{}),context:m,pageSize:u,data:s,columns:d,rowSize:"default"})})})})]})})}function _(){return(0,n.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return l(3543)}])},91362:function(e,s,l){"use strict";l.d(s,{J:function(){return j}});var n=l(52322),t=l(97479),a=l(55329),i=l(6391),r=l.n(i),c=l(98334),o=l(38855),d=l(97112),x=l(21487);function u(){var e,s,l,i,r,c;let{openDialog:u}=(0,d.Rh)(),h=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),v=(0,o.n)(),f=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f),g=h.data?new Date().getTime()-new Date(null===(s=h.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(l=m.data)||void 0===l?void 0:l.length,connectPeer:()=>u("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.XxW,{size:"14",maxLength:50,value:null===(i=j.data)||void 0===i?void 0:i.address,type:"address"})})]}),h.data&&(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(t.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(t.t6k,{testnetName:e.data.network}):null}function j(e){let s=(0,a.X2)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(h,{}),connectivityRoute:c.h,isSynced:l,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},97992:function(e,s,l){"use strict";l.d(s,{e:function(){return o}});var n=l(52322),t=l(97479),a=l(61020),i=l(82851),r=l(98334),c=l(88385);function o(){let{totals:e}=(0,c.Z)(),s=e.all===e.info;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:r._.buckets.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:r._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsx)(t.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,n.jsx)(a._m8,{})}),(0,n.jsxs)("div",{className:"relative",children:[e.all?s?(0,n.jsx)("div",{className:(0,i.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,n.jsx)(t.xvT,{size:"10",className:(0,i.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,n.jsx)(t.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,n.jsx)(a.Dkj,{})})]})]})}},3543:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return _}});var n=l(52322),t=l(97992),a=l(98334),i=l(97479),r=l(97112),c=l(56328),o=l(91362),d=l(61020);function x(){let{dataState:e}=(0,c.l)();return"error"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.zvn,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,n.jsx)(i.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,n.jsx)(i.Qjf,{href:a._.node.index,children:"View peers"})]})]}):null}function u(){let{configurableColumns:e,toggleColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:t,resetDefaultColumnVisibility:a,enabledColumns:r}=(0,c.l)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),u=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(i.J2e,{trigger:(0,n.jsxs)(i.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(d.hiv,{}),"View",(0,n.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,n.jsxs)(i.WVB,{children:[(0,n.jsx)(i.__J,{children:"Display properties"}),(0,n.jsx)(i.kFS,{children:(0,n.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),a()},children:(0,n.jsx)(d.Wet,{})})})]}),(0,n.jsx)(i.FzK,{label:"General",columns:o.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:o,values:r,onChange:e=>s(e)})}),x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:x,values:r,onChange:e=>s(e)})})]}):null,u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:u,values:r,onChange:e=>s(e)})})]}):null,h.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:h,values:r,onChange:e=>s(e)})})]}):null]})}var h=l(67108);function j(){let{openDialog:e}=(0,r.Rh)(),{viewMode:s,setViewMode:l}=(0,c.l)(),{settings:t,gpu:a}=(0,h.Hv)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(i.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,n.jsx)(d.nCM,{}),"Manage lists"]}),(0,n.jsx)(i.ua7,{content:t.siaCentral?a.canGpuRender&&a.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,n.jsx)(i.zxk,{disabled:!a.canGpuRender,onClick:()=>{if(!t.siaCentral){e("settings");return}a.isGpuEnabled?l("map"===s?"list":"map"):e("settings")},children:(0,n.jsx)(d.nDH,{})})}),(0,n.jsx)(u,{})]})}var m=l(99182),v=l(2784),f=l(42213);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,v.useState)(!1),[r,o]=(0,v.useState)(""),[x,u]=(0,v.useState)([]),h=x[x.length-1],j=(0,v.useRef)(null),p=(0,v.useRef)(null),g=(0,v.useCallback)(e=>{u(s=>[...s,e])},[u]),b=(0,v.useCallback)(()=>{u([])},[u]);(0,v.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,v.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,v.useCallback)(()=>{o(""),b()},[b]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(i.eQh,{children:[(0,n.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,n.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,n.jsx)(d.PcV,{})})]},e.id)),(0,n.jsxs)(m.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||l(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=p.current)||void 0===s||s.blur()}},children:[(0,n.jsx)(m.mY.Input,{ref:p,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),t&&(0,n.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(i.xrM,{children:[h&&(0,n.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(m.mY.List,{children:(0,n.jsx)(f.L,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function g(){let{offset:e,limit:s,pageCount:l,dataState:t}=(0,c.l)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)(p,{}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(i.wFK,{offset:e,limit:s,pageTotal:l,isLoading:"loading"===t})]})}var b=l(37769),w=l(10569);function k(){let{gpu:e,settings:s}=(0,h.Hv)(),{setCmd:l,activeHost:t,onHostMapClick:a,onHostMapHover:r,hostsWithLocation:o}=(0,c.l)();return s.siaCentral&&!e.shouldRender?null:(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsx)(b.T,{activeHost:(null==t?void 0:t.location)?t:void 0,hosts:o,onHostClick:a,onHostHover:r,onMount:e=>{l(e)}}),(0,n.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,n.jsx)(i.wEc,{color:w.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var N=l(82851);function y(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:u,dataState:h,tableContext:m,viewMode:v}=(0,c.l)();return(0,n.jsx)(o.J,{title:"Hosts",routes:a._,sidenav:(0,n.jsx)(t.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,n.jsx)(j,{}),stats:(0,n.jsx)(g,{}),scroll:!1,children:(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,n.jsx)("div",{className:(0,N.cx)("absolute h-[70%] w-full","map"===v?"block":"invisible","transition-all"),children:(0,n.jsx)(k,{})}),(0,n.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===v?s&&s.length?400-Math.max((2-s.length)*100,0):400:"100%"},children:(0,n.jsx)(i.xrM,{className:"z-0",id:"scroll-hosts",children:(0,n.jsx)("div",{className:(0,N.cx)("map"===v?"pb-6 px-6":"p-6","min-w-fit"),children:(0,n.jsx)(i.iA_,{focusId:null==l?void 0:l.publicKey,focusColor:l?(0,w.Kg)(l).colorName:void 0,isLoading:"loading"===h,emptyState:(0,n.jsx)(x,{}),context:m,pageSize:u,data:s,columns:d,rowSize:"default"})})})})]})})}function _(){return(0,n.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/index-791fba029a23de36.js b/renterd/assets/_next/static/chunks/pages/index-88cd6bfec5802418.js similarity index 98% rename from renterd/assets/_next/static/chunks/pages/index-791fba029a23de36.js rename to renterd/assets/_next/static/chunks/pages/index-88cd6bfec5802418.js index 04e5fa9c3..3bf0e28f8 100644 --- a/renterd/assets/_next/static/chunks/pages/index-791fba029a23de36.js +++ b/renterd/assets/_next/static/chunks/pages/index-88cd6bfec5802418.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(82806)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var i=t(52322),s=t(97479),r=t(57016),a=t(6391),l=t.n(a),o=t(98334),d=t(38855),c=t(97112),u=t(21487);function x(){var e,n,t,a,l,o;let{openDialog:x}=(0,c.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.cQ)(),m=(0,d.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(t=j.data)||void 0===t?void 0:t.length,connectPeer:()=>x("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(a=f.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:(0,u.bc)(g,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(l=h.data)||void 0===l?void 0:l.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,r.X2)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(x,{}),banner:(0,i.jsx)(h,{}),connectivityRoute:o.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return d}});var i=t(52322),s=t(97479),r=t(61020),a=t(82851),l=t(98334),o=t(88385);function d(){let{totals:e}=(0,o.Z)(),n=e.all===e.info;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.buckets.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsx)(s.KJW,{title:"S3 authentication keypairs",route:l._.keys.index,children:(0,i.jsx)(r._m8,{})}),(0,i.jsxs)("div",{className:"relative",children:[e.all?n?(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,i.jsx)(s.KJW,{title:"Alerts",route:l._.alerts.index,children:(0,i.jsx)(r.Dkj,{})})]})]})}},82806:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(91362),r=t(97992),a=t(98334),l=t(97112),o=t(2784),d=t(5632);function c(){let e=(0,d.useRouter)(),{openDialog:n}=(0,l.Rh)();return(0,o.useEffect)(()=>{e.replace(a._.buckets.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:a._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings"),children:(0,i.jsx)("div",{})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(82806)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var i=t(52322),s=t(97479),r=t(55329),a=t(6391),l=t.n(a),o=t(98334),d=t(38855),c=t(97112),u=t(21487);function x(){var e,n,t,a,l,o;let{openDialog:x}=(0,c.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.cQ)(),m=(0,d.n)(),v=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(t=j.data)||void 0===t?void 0:t.length,connectPeer:()=>x("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(a=f.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:(0,u.bc)(g,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(l=h.data)||void 0===l?void 0:l.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,r.X2)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(x,{}),banner:(0,i.jsx)(h,{}),connectivityRoute:o.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return d}});var i=t(52322),s=t(97479),r=t(61020),a=t(82851),l=t(98334),o=t(88385);function d(){let{totals:e}=(0,o.Z)(),n=e.all===e.info;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.buckets.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsx)(s.KJW,{title:"S3 authentication keypairs",route:l._.keys.index,children:(0,i.jsx)(r._m8,{})}),(0,i.jsxs)("div",{className:"relative",children:[e.all?n?(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,i.jsx)(s.KJW,{title:"Alerts",route:l._.alerts.index,children:(0,i.jsx)(r.Dkj,{})})]})]})}},82806:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(91362),r=t(97992),a=t(98334),l=t(97112),o=t(2784),d=t(5632);function c(){let e=(0,d.useRouter)(),{openDialog:n}=(0,l.Rh)();return(0,o.useEffect)(()=>{e.replace(a._.buckets.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:a._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings"),children:(0,i.jsx)("div",{})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/keys-db3c3ac4fd520775.js b/renterd/assets/_next/static/chunks/pages/keys-cecf09c8a465c6eb.js similarity index 99% rename from renterd/assets/_next/static/chunks/pages/keys-db3c3ac4fd520775.js rename to renterd/assets/_next/static/chunks/pages/keys-cecf09c8a465c6eb.js index 4ff8a2eba..b816111c5 100644 --- a/renterd/assets/_next/static/chunks/pages/keys-db3c3ac4fd520775.js +++ b/renterd/assets/_next/static/chunks/pages/keys-cecf09c8a465c6eb.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{87111:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/keys",function(){return s(81856)}])},91362:function(e,n,s){"use strict";s.d(n,{J:function(){return j}});var t=s(52322),i=s(97479),r=s(57016),l=s(6391),a=s.n(l),c=s(98334),o=s(38855),d=s(97112),x=s(21487);function u(){var e,n,s,l,a,c;let{openDialog:u}=(0,d.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.cQ)(),p=(0,o.n)(),f=null===(e=h.data)||void 0===e?void 0:e.version,v="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"renterd",peerCount:null===(s=m.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(l=j.data)||void 0===l?void 0:l.address,type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}function j(e){let n=(0,r.X2)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),connectivityRoute:c.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},97992:function(e,n,s){"use strict";s.d(n,{e:function(){return o}});var t=s(52322),i=s(97479),r=s(61020),l=s(82851),a=s(98334),c=s(88385);function o(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Files",route:a._.buckets.index,children:(0,t.jsx)(r.ROc,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:a._.config.index,children:(0,t.jsx)(r.wWN,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,t.jsx)(r.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,t.jsx)(r.VHe,{})}),(0,t.jsx)(i.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,t.jsx)(r._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?n?(0,t.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(i.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,t.jsx)(r.Dkj,{})})]})]})}},81856:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return g}});var t=s(52322),i=s(97992),r=s(98334),l=s(97479),a=s(97112),c=s(91362),o=s(61020);function d(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No keys matching filters."})]})}function x(){let{openDialog:e}=(0,a.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o._m8,{size:64})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are no S3 authentication keypairs yet. Create one to get started."}),(0,t.jsx)(l.zxk,{onClick:()=>{e("keysCreate")},children:"Create keypair"})]})]})}var u=s(33962),h=s(52058),j=s(71367);function m(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:i,setColumnsHidden:r,sortField:a,setSortField:c,sortDirection:d,setSortDirection:x,enabledColumns:m}=(0,j.E)(),p=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(l.J2e,{trigger:(0,t.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Order by"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.PhF,{value:a,onChange:e=>{c(e.currentTarget.value)},children:Object.entries((0,h.Z)(u.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Direction"}),(0,t.jsx)(l.kFS,{children:(0,t.jsxs)(l.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,t.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(l.Clw,{}),(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Display properties"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(o.Wet,{})})})]}),(0,t.jsx)(l.FzK,{label:"General",columns:p.map(e=>e.value),enabled:m,setColumnsVisible:i,setColumnsHidden:r}),(0,t.jsx)(l.WVB,{children:(0,t.jsx)(l.j4H,{options:p,values:m,onChange:e=>n(e)})})]})}function p(){let{openDialog:e}=(0,a.Rh)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(l.zxk,{onClick:()=>e("keysCreate"),children:[(0,t.jsx)(o.aXP,{}),"Create keypair"]}),(0,t.jsx)(m,{})]})}function f(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching keys."})]})}function v(){let{openDialog:e}=(0,a.Rh)(),{columns:n,datasetPage:s,sortField:o,sortDirection:u,sortableColumns:h,toggleSort:m,limit:v,dataState:g,cellContext:w}=(0,j.E)();return(0,t.jsx)(c.J,{title:"Keys",routes:r._,sidenav:(0,t.jsx)(i.e,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(p,{}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(l.iA_,{context:w,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(d,{}):"noneYet"===g?(0,t.jsx)(x,{}):"error"===g?(0,t.jsx)(f,{}):null,sortableColumns:h,pageSize:v,data:s,columns:n,sortDirection:u,sortField:o,toggleSort:m,rowSize:"default"})})})}function g(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87111)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{87111:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/keys",function(){return s(81856)}])},91362:function(e,n,s){"use strict";s.d(n,{J:function(){return j}});var t=s(52322),i=s(97479),r=s(55329),l=s(6391),a=s.n(l),c=s(98334),o=s(38855),d=s(97112),x=s(21487);function u(){var e,n,s,l,a,c;let{openDialog:u}=(0,d.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,r.cQ)(),p=(0,o.n)(),f=null===(e=h.data)||void 0===e?void 0:e.version,v="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,t.jsxs)(i.HfT,{name:"renterd",peerCount:null===(s=m.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(l=j.data)||void 0===l?void 0:l.address,type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}function j(e){let n=(0,r.X2)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),connectivityRoute:c.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},97992:function(e,n,s){"use strict";s.d(n,{e:function(){return o}});var t=s(52322),i=s(97479),r=s(61020),l=s(82851),a=s(98334),c=s(88385);function o(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Files",route:a._.buckets.index,children:(0,t.jsx)(r.ROc,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:a._.config.index,children:(0,t.jsx)(r.wWN,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,t.jsx)(r.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,t.jsx)(r.VHe,{})}),(0,t.jsx)(i.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,t.jsx)(r._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[e.all?n?(0,t.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,t.jsx)(i.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,t.jsx)(r.Dkj,{})})]})]})}},81856:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return g}});var t=s(52322),i=s(97992),r=s(98334),l=s(97479),a=s(97112),c=s(91362),o=s(61020);function d(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No keys matching filters."})]})}function x(){let{openDialog:e}=(0,a.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o._m8,{size:64})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are no S3 authentication keypairs yet. Create one to get started."}),(0,t.jsx)(l.zxk,{onClick:()=>{e("keysCreate")},children:"Create keypair"})]})]})}var u=s(33962),h=s(52058),j=s(71367);function m(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:i,setColumnsHidden:r,sortField:a,setSortField:c,sortDirection:d,setSortDirection:x,enabledColumns:m}=(0,j.E)(),p=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(l.J2e,{trigger:(0,t.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Order by"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.PhF,{value:a,onChange:e=>{c(e.currentTarget.value)},children:Object.entries((0,h.Z)(u.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Direction"}),(0,t.jsx)(l.kFS,{children:(0,t.jsxs)(l.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,t.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(l.Clw,{}),(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Display properties"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(o.Wet,{})})})]}),(0,t.jsx)(l.FzK,{label:"General",columns:p.map(e=>e.value),enabled:m,setColumnsVisible:i,setColumnsHidden:r}),(0,t.jsx)(l.WVB,{children:(0,t.jsx)(l.j4H,{options:p,values:m,onChange:e=>n(e)})})]})}function p(){let{openDialog:e}=(0,a.Rh)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(l.zxk,{onClick:()=>e("keysCreate"),children:[(0,t.jsx)(o.aXP,{}),"Create keypair"]}),(0,t.jsx)(m,{})]})}function f(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching keys."})]})}function v(){let{openDialog:e}=(0,a.Rh)(),{columns:n,datasetPage:s,sortField:o,sortDirection:u,sortableColumns:h,toggleSort:m,limit:v,dataState:g,cellContext:w}=(0,j.E)();return(0,t.jsx)(c.J,{title:"Keys",routes:r._,sidenav:(0,t.jsx)(i.e,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(p,{}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(l.iA_,{context:w,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(d,{}):"noneYet"===g?(0,t.jsx)(x,{}):"error"===g?(0,t.jsx)(f,{}):null,sortableColumns:h,pageSize:v,data:s,columns:n,sortDirection:u,sortField:o,toggleSort:m,rowSize:"default"})})})}function g(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87111)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/node-63109534182b1e5b.js b/renterd/assets/_next/static/chunks/pages/node-8aca6bd8901401f4.js similarity index 97% rename from renterd/assets/_next/static/chunks/pages/node-63109534182b1e5b.js rename to renterd/assets/_next/static/chunks/pages/node-8aca6bd8901401f4.js index b27751fb5..bc7052947 100644 --- a/renterd/assets/_next/static/chunks/pages/node-63109534182b1e5b.js +++ b/renterd/assets/_next/static/chunks/pages/node-8aca6bd8901401f4.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(57335)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var i=t(52322),s=t(97479),r=t(57016),a=t(6391),l=t.n(a),o=t(98334),d=t(38855),c=t(97112),u=t(21487);function x(){var e,n,t,a,l,o;let{openDialog:x}=(0,c.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,r.cQ)(),j=(0,d.n)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===m?"https://github.com/SiaFoundation/renterd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(m):"https://github.com/SiaFoundation/renterd/tree/".concat(m),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(t=v.data)||void 0===t?void 0:t.length,connectPeer:()=>x("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(a=f.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:(0,u.bc)(g,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(l=h.data)||void 0===l?void 0:l.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,r.X2)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(x,{}),banner:(0,i.jsx)(h,{}),connectivityRoute:o.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return d}});var i=t(52322),s=t(97479),r=t(61020),a=t(82851),l=t(98334),o=t(88385);function d(){let{totals:e}=(0,o.Z)(),n=e.all===e.info;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.buckets.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsx)(s.KJW,{title:"S3 authentication keypairs",route:l._.keys.index,children:(0,i.jsx)(r._m8,{})}),(0,i.jsxs)("div",{className:"relative",children:[e.all?n?(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,i.jsx)(s.KJW,{title:"Alerts",route:l._.alerts.index,children:(0,i.jsx)(r.Dkj,{})})]})]})}},57335:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(97479),r=t(57016),a=t(98334),l=t(97112),o=t(97992),d=t(91362);function c(){var e,n,t;let c=(0,r.cQ)(),u=(0,r.QL)({config:{swr:{refreshInterval:3e4}}}),x=(0,r.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,l.Rh)();return(0,i.jsx)(d.J,{routes:a._,sidenav:(0,i.jsx)(o.e,{}),openSettings:()=>h("settings"),title:"Node",children:(0,i.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,i.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,i.jsx)(s.ncR,{label:"Height",value:x.data?Number(x.data.blockHeight).toLocaleString():void 0,comment:(null===(e=x.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,i.jsx)(s.ncR,{label:"Connected peers",value:null===(n=c.data)||void 0===n?void 0:n.length}),(0,i.jsx)(s.ncR,{label:"Transactions in pool",value:null===(t=u.data)||void 0===t?void 0:t.length})]}),(0,i.jsx)(s.u5Q,{peers:c.data,isLoading:c.isValidating,connectPeer:()=>h("connectPeer")})]})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(57335)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var i=t(52322),s=t(97479),r=t(55329),a=t(6391),l=t.n(a),o=t(98334),d=t(38855),c=t(97112),u=t(21487);function x(){var e,n,t,a,l,o;let{openDialog:x}=(0,c.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,r.cQ)(),j=(0,d.n)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p="?"===m?"https://github.com/SiaFoundation/renterd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(m):"https://github.com/SiaFoundation/renterd/tree/".concat(m),g=h.data?new Date().getTime()-new Date(null===(n=h.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(t=v.data)||void 0===t?void 0:t.length,connectPeer:()=>x("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(a=f.data)||void 0===a?void 0:a.address,type:"address"})})]}),h.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:(0,u.bc)(g,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(l=h.data)||void 0===l?void 0:l.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,r.X2)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(x,{}),banner:(0,i.jsx)(h,{}),connectivityRoute:o.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return d}});var i=t(52322),s=t(97479),r=t(61020),a=t(82851),l=t(98334),o=t(88385);function d(){let{totals:e}=(0,o.Z)(),n=e.all===e.info;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.buckets.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsx)(s.KJW,{title:"S3 authentication keypairs",route:l._.keys.index,children:(0,i.jsx)(r._m8,{})}),(0,i.jsxs)("div",{className:"relative",children:[e.all?n?(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,i.jsx)(s.KJW,{title:"Alerts",route:l._.alerts.index,children:(0,i.jsx)(r.Dkj,{})})]})]})}},57335:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(97479),r=t(55329),a=t(98334),l=t(97112),o=t(97992),d=t(91362);function c(){var e,n,t;let c=(0,r.cQ)(),u=(0,r.QL)({config:{swr:{refreshInterval:3e4}}}),x=(0,r.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,l.Rh)();return(0,i.jsx)(d.J,{routes:a._,sidenav:(0,i.jsx)(o.e,{}),openSettings:()=>h("settings"),title:"Node",children:(0,i.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,i.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,i.jsx)(s.ncR,{label:"Height",value:x.data?Number(x.data.blockHeight).toLocaleString():void 0,comment:(null===(e=x.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,i.jsx)(s.ncR,{label:"Connected peers",value:null===(n=c.data)||void 0===n?void 0:n.length}),(0,i.jsx)(s.ncR,{label:"Transactions in pool",value:null===(t=u.data)||void 0===t?void 0:t.length})]}),(0,i.jsx)(s.u5Q,{peers:c.data,isLoading:c.isValidating,connectPeer:()=>h("connectPeer")})]})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/wallet-017c45406eaf5306.js b/renterd/assets/_next/static/chunks/pages/wallet-9079f8c8c2976484.js similarity index 98% rename from renterd/assets/_next/static/chunks/pages/wallet-017c45406eaf5306.js rename to renterd/assets/_next/static/chunks/pages/wallet-9079f8c8c2976484.js index f26faaa33..15aad77d3 100644 --- a/renterd/assets/_next/static/chunks/pages/wallet-017c45406eaf5306.js +++ b/renterd/assets/_next/static/chunks/pages/wallet-9079f8c8c2976484.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(74273)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var s=t(52322),i=t(97479),a=t(57016),l=t(6391),r=t.n(l),c=t(98334),d=t(38855),o=t(97112),x=t(21487);function u(){var e,n,t,l,r,c;let{openDialog:u}=(0,o.Rh)(),f=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.cQ)(),m=(0,d.n)(),p=null===(e=f.data)||void 0===e?void 0:e.version,v="?"===p?"https://github.com/SiaFoundation/renterd/commits/":(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(p):"https://github.com/SiaFoundation/renterd/tree/".concat(p),g=f.data?new Date().getTime()-new Date(null===(n=f.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=j.data)||void 0===t?void 0:t.length,connectPeer:()=>u("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(l=h.data)||void 0===l?void 0:l.address,type:"address"})})]}),f.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=f.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=f.data)||void 0===c?void 0:c.version})]})]})}function f(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,a.X2)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(f,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return d}});var s=t(52322),i=t(97479),a=t(61020),l=t(82851),r=t(98334),c=t(88385);function d(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:r._.buckets.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsx)(i.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,s.jsx)(a._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[e.all?n?(0,s.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,s.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,s.jsx)(i.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,s.jsx)(a.Dkj,{})})]})]})}},74273:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return v}});var s=t(52322),i=t(97479),a=t(57016),l=t(97112),r=t(98334),c=t(6391),d=t.n(c),o=t(97992),x=t(91362),u=t(38855),f=t(61020);function h(){let{openDialog:e}=(0,l.Rh)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,s.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,s.jsx)(i.EKh,{children:"renterd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var j=t(40730);function m(){let{isSynced:e,syncPercent:n,isWalletSynced:t,walletScanPercent:a}=(0,u.n)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(i.DmW,{isSynced:e,isWalletSynced:t,syncPercent:n,walletScanPercent:a}),(0,s.jsx)("div",{className:"flex-1"})]})}function p(){let{openDialog:e}=(0,l.Rh)(),n=(0,a.X2)(),{dataset:t,offset:c,limit:f,pageCount:p,dataState:v,balances:g,metrics:w}=(0,j.n)(),{isSynced:y,syncPercent:_,isWalletSynced:b,walletScanPercent:N}=(0,u.n)();return(0,s.jsx)(x.J,{routes:r._,sidenav:(0,s.jsx)(o.e,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:y,isWalletSynced:b,syncPercent:_,walletScanPercent:N,balanceSc:n.data?{spendable:new(d())(n.data.spendable),unconfirmed:new(d())(n.data.unconfirmed),confirmed:new(d())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,s.jsx)(m,{}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==g?void 0:g.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:g,isLoading:w.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",isLoading:"loading"===v,dataset:t,emptyState:(0,s.jsx)(h,{}),actions:(0,s.jsx)(i.wFK,{offset:c,limit:f,pageTotal:p,isLoading:"loading"===v})})]})})}function v(){return(0,s.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(74273)}])},91362:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var s=t(52322),i=t(97479),a=t(55329),l=t(6391),r=t.n(l),c=t(98334),d=t(38855),o=t(97112),x=t(21487);function u(){var e,n,t,l,r,c;let{openDialog:u}=(0,o.Rh)(),f=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.cQ)(),m=(0,d.n)(),p=null===(e=f.data)||void 0===e?void 0:e.version,v="?"===p?"https://github.com/SiaFoundation/renterd/commits/":(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(p):"https://github.com/SiaFoundation/renterd/tree/".concat(p),g=f.data?new Date().getTime()-new Date(null===(n=f.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=j.data)||void 0===t?void 0:t.length,connectPeer:()=>u("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(l=h.data)||void 0===l?void 0:l.address,type:"address"})})]}),f.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=f.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=f.data)||void 0===c?void 0:c.version})]})]})}function f(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,a.X2)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(f,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},97992:function(e,n,t){"use strict";t.d(n,{e:function(){return d}});var s=t(52322),i=t(97479),a=t(61020),l=t(82851),r=t(98334),c=t(88385);function d(){let{totals:e}=(0,c.Z)(),n=e.all===e.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:r._.buckets.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsx)(i.KJW,{title:"S3 authentication keypairs",route:r._.keys.index,children:(0,s.jsx)(a._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[e.all?n?(0,s.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,s.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:e.all.toLocaleString()}):null,(0,s.jsx)(i.KJW,{title:"Alerts",route:r._.alerts.index,children:(0,s.jsx)(a.Dkj,{})})]})]})}},74273:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return v}});var s=t(52322),i=t(97479),a=t(55329),l=t(97112),r=t(98334),c=t(6391),d=t.n(c),o=t(97992),x=t(91362),u=t(38855),f=t(61020);function h(){let{openDialog:e}=(0,l.Rh)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,s.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,s.jsx)(i.EKh,{children:"renterd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var j=t(40730);function m(){let{isSynced:e,syncPercent:n,isWalletSynced:t,walletScanPercent:a}=(0,u.n)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(i.DmW,{isSynced:e,isWalletSynced:t,syncPercent:n,walletScanPercent:a}),(0,s.jsx)("div",{className:"flex-1"})]})}function p(){let{openDialog:e}=(0,l.Rh)(),n=(0,a.X2)(),{dataset:t,offset:c,limit:f,pageCount:p,dataState:v,balances:g,metrics:w}=(0,j.n)(),{isSynced:y,syncPercent:_,isWalletSynced:b,walletScanPercent:N}=(0,u.n)();return(0,s.jsx)(x.J,{routes:r._,sidenav:(0,s.jsx)(o.e,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:y,isWalletSynced:b,syncPercent:_,walletScanPercent:N,balanceSc:n.data?{spendable:new(d())(n.data.spendable),unconfirmed:new(d())(n.data.unconfirmed),confirmed:new(d())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,s.jsx)(m,{}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==g?void 0:g.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:g,isLoading:w.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",isLoading:"loading"===v,dataset:t,emptyState:(0,s.jsx)(h,{}),actions:(0,s.jsx)(i.wFK,{offset:c,limit:f,pageTotal:p,isLoading:"loading"===v})})]})})}function v(){return(0,s.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/webpack-fe496caddd4f36d5.js b/renterd/assets/_next/static/chunks/webpack-a41247bd930b1039.js similarity index 96% rename from renterd/assets/_next/static/chunks/webpack-fe496caddd4f36d5.js rename to renterd/assets/_next/static/chunks/webpack-a41247bd930b1039.js index e413c2517..36401603e 100644 --- a/renterd/assets/_next/static/chunks/webpack-fe496caddd4f36d5.js +++ b/renterd/assets/_next/static/chunks/webpack-a41247bd930b1039.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},d={};function l(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,l),r=!1}finally{r&&delete d[e]}return n.loaded=!0,n.exports}l.m=a,l.amdO={},e=[],l.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__sans_315985;src:url(/_next/static/media/cd124faa19a7ef9a-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/8fed4885c1998d22-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/fdd3a36928f25e30-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/a0ff83e86182150e-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/91e452a6ea0c2132-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/75bdf6088f33f6b5-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/c7dc84d05cfe8080-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9d81b3b04eda94e0-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/b57725b8c3470143-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/1f006d314a98579d-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9617e7fa3dc6e5c9-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/821657fca713650c-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/efb590a61a6e0af3-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/3b9fc75b5e4edbe8-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__sans_Fallback_315985;src:local("Arial");ascent-override:101.35%;descent-override:27.19%;line-gap-override:0.00%;size-adjust:101.13%}.__className_315985{font-family:__sans_315985,__sans_Fallback_315985}.__variable_315985{--font-sans:"__sans_315985","__sans_Fallback_315985"}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/eaf5386fcb6f48b8-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/95d3796716a13c75-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/ff2e3c2bdfe56465-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/c29124625443164b-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/0080c7cc0358560d-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9e96e104b3eba4d3-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/b01b725c4365f934-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9a27e3caec76e96d-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2a9c8cd1557dff1f-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/f3f50cbb62517d96-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/5e23ff29335edf6f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/92fb447c05bf9b9f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/7c138e5a79adee83-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2eb2520448311ef1-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__mono_Fallback_59b18b;src:local("Arial");ascent-override:102.50%;descent-override:27.50%;line-gap-override:0.00%;size-adjust:100.00%}.__className_59b18b{font-family:__mono_59b18b,__mono_Fallback_59b18b}.__variable_59b18b{--font-mono:"__mono_59b18b","__mono_Fallback_59b18b"} \ No newline at end of file diff --git a/renterd/assets/_next/static/css/bc44790ae6d1e9f2.css b/renterd/assets/_next/static/css/bc44790ae6d1e9f2.css deleted file mode 100644 index 789f3bb2a..000000000 --- a/renterd/assets/_next/static/css/bc44790ae6d1e9f2.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-6{left:1.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-5{top:1.25rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.\!-m-2{margin:-.5rem!important}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mr-0{margin-right:0}.-mr-0\.5{margin-right:-.125rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-\[5px\]{margin-top:5px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.\!h-\[400px\]{height:400px!important}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[70\%\]{height:70%}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-20{max-height:5rem}.max-h-\[100px\]{max-height:100px}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.min-h-full{min-height:100%}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-\[800px\]{max-width:800px!important}.\!max-w-md{max-width:28rem!important}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[300px\]{max-width:300px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-\[2\]{flex:2}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.scale-\[2\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[2\]{--tw-scale-x:2;--tw-scale-y:2}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-\[3px\]{gap:3px}.gap-px{gap:1px}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-200\/20{background-color:rgba(191,219,254,.2)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-400\/20{background-color:rgba(74,222,128,.2)}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-400\/20{background-color:hsla(0,91%,71%,.2)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[3px\]{padding-left:3px;padding-right:3px}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-2{padding-right:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pb-px{padding-bottom:1px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-px{padding-left:1px}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.pt-\[19px\]{padding-top:19px}.pt-\[26px\]{padding-top:26px}.pt-\[5px\]{padding-top:5px}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300\/20{background-color:rgba(147,197,253,.2)}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__sans_315985;src:url(/_next/static/media/cd124faa19a7ef9a-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/8fed4885c1998d22-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/fdd3a36928f25e30-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/a0ff83e86182150e-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/91e452a6ea0c2132-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/75bdf6088f33f6b5-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/c7dc84d05cfe8080-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9d81b3b04eda94e0-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/b57725b8c3470143-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/1f006d314a98579d-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/9617e7fa3dc6e5c9-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/821657fca713650c-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__sans_315985;src:url(/_next/static/media/efb590a61a6e0af3-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__sans_315985;src:url(/_next/static/media/3b9fc75b5e4edbe8-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__sans_Fallback_315985;src:local("Arial");ascent-override:101.35%;descent-override:27.19%;line-gap-override:0.00%;size-adjust:101.13%}.__className_315985{font-family:__sans_315985,__sans_Fallback_315985}.__variable_315985{--font-sans:"__sans_315985","__sans_Fallback_315985"}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/eaf5386fcb6f48b8-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/95d3796716a13c75-s.p.ttf) format("truetype");font-display:swap;font-weight:100;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/ff2e3c2bdfe56465-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/c29124625443164b-s.p.ttf) format("truetype");font-display:swap;font-weight:200;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/0080c7cc0358560d-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9e96e104b3eba4d3-s.p.ttf) format("truetype");font-display:swap;font-weight:300;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/b01b725c4365f934-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/9a27e3caec76e96d-s.p.ttf) format("truetype");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2a9c8cd1557dff1f-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/f3f50cbb62517d96-s.p.ttf) format("truetype");font-display:swap;font-weight:500;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/5e23ff29335edf6f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/92fb447c05bf9b9f-s.p.ttf) format("truetype");font-display:swap;font-weight:600;font-style:italic}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/7c138e5a79adee83-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:__mono_59b18b;src:url(/_next/static/media/2eb2520448311ef1-s.p.ttf) format("truetype");font-display:swap;font-weight:700;font-style:italic}@font-face{font-family:__mono_Fallback_59b18b;src:local("Arial");ascent-override:102.50%;descent-override:27.50%;line-gap-override:0.00%;size-adjust:100.00%}.__className_59b18b{font-family:__mono_59b18b,__mono_Fallback_59b18b}.__variable_59b18b{--font-mono:"__mono_59b18b","__mono_Fallback_59b18b"} \ No newline at end of file diff --git a/renterd/assets/_next/static/dovIvywOm1pCv3L2MqPQN/_buildManifest.js b/renterd/assets/_next/static/dovIvywOm1pCv3L2MqPQN/_buildManifest.js new file mode 100644 index 000000000..2fa575c63 --- /dev/null +++ b/renterd/assets/_next/static/dovIvywOm1pCv3L2MqPQN/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-88cd6bfec5802418.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/alerts":["static/chunks/pages/alerts-d6524b058d088c63.js"],"/buckets":[s,"static/chunks/pages/buckets-8030b904192e6bd3.js"],"/buckets/[bucket]/files/[[...path]]":[s,"static/chunks/pages/buckets/[bucket]/files/[[...path]]-0b6c7fddc068f7a4.js"],"/buckets/[bucket]/uploads":["static/chunks/pages/buckets/[bucket]/uploads-d6c43599e6026d3f.js"],"/config":["static/chunks/pages/config-064c32478d206ba0.js"],"/contracts":["static/chunks/pages/contracts-ad2bde9902e2b475.js"],"/hosts":["static/chunks/pages/hosts-bdd8fa60ad7fa861.js"],"/keys":["static/chunks/pages/keys-cecf09c8a465c6eb.js"],"/login":["static/chunks/pages/login-bc04295c62f872b0.js"],"/node":["static/chunks/pages/node-8aca6bd8901401f4.js"],"/wallet":["static/chunks/pages/wallet-9079f8c8c2976484.js"],sortedPages:["/","/_app","/_error","/alerts","/buckets","/buckets/[bucket]/files/[[...path]]","/buckets/[bucket]/uploads","/config","/contracts","/hosts","/keys","/login","/node","/wallet"]}}("static/chunks/448-c00be3b5cd1c7f6b.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/Vmi4No8kmV2LS5_3gEtXG/_ssgManifest.js b/renterd/assets/_next/static/dovIvywOm1pCv3L2MqPQN/_ssgManifest.js similarity index 100% rename from renterd/assets/_next/static/Vmi4No8kmV2LS5_3gEtXG/_ssgManifest.js rename to renterd/assets/_next/static/dovIvywOm1pCv3L2MqPQN/_ssgManifest.js diff --git a/renterd/assets/alerts.html b/renterd/assets/alerts.html index 266a0b8d3..0366bbade 100644 --- a/renterd/assets/alerts.html +++ b/renterd/assets/alerts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/buckets.html b/renterd/assets/buckets.html index 8fcb830c5..4513b103f 100644 --- a/renterd/assets/buckets.html +++ b/renterd/assets/buckets.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/buckets/[bucket]/files/[[...path]].html b/renterd/assets/buckets/[bucket]/files/[[...path]].html index 78631e1e9..557e56c3b 100644 --- a/renterd/assets/buckets/[bucket]/files/[[...path]].html +++ b/renterd/assets/buckets/[bucket]/files/[[...path]].html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/buckets/[bucket]/uploads.html b/renterd/assets/buckets/[bucket]/uploads.html index 2bd88101f..591d1dcfc 100644 --- a/renterd/assets/buckets/[bucket]/uploads.html +++ b/renterd/assets/buckets/[bucket]/uploads.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/config.html b/renterd/assets/config.html index d89c64dae..20143d9bf 100644 --- a/renterd/assets/config.html +++ b/renterd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/contracts.html b/renterd/assets/contracts.html index 2c06e9657..d0c5df343 100644 --- a/renterd/assets/contracts.html +++ b/renterd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/hosts.html b/renterd/assets/hosts.html index a733e2f1e..91428c757 100644 --- a/renterd/assets/hosts.html +++ b/renterd/assets/hosts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/index.html b/renterd/assets/index.html index d84dd4036..2d9e1ab82 100644 --- a/renterd/assets/index.html +++ b/renterd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/keys.html b/renterd/assets/keys.html index 39563280d..99987cf3b 100644 --- a/renterd/assets/keys.html +++ b/renterd/assets/keys.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/login.html b/renterd/assets/login.html index acee04434..d2e3b6a0c 100644 --- a/renterd/assets/login.html +++ b/renterd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/node.html b/renterd/assets/node.html index 85ef3b34d..7e677651a 100644 --- a/renterd/assets/node.html +++ b/renterd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/wallet.html b/renterd/assets/wallet.html index 6fa99c7c0..683a49656 100644 --- a/renterd/assets/wallet.html +++ b/renterd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/404.html b/walletd/assets/404.html index 4e7a086f3..f920aaad7 100644 --- a/walletd/assets/404.html +++ b/walletd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/_next/static/46RaGlXJI1vQ8PS3dhLZ-/_buildManifest.js b/walletd/assets/_next/static/46RaGlXJI1vQ8PS3dhLZ-/_buildManifest.js deleted file mode 100644 index 23056f201..000000000 --- a/walletd/assets/_next/static/46RaGlXJI1vQ8PS3dhLZ-/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-f97e919d400d4356.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/login":["static/chunks/pages/login-8d3b285212c32dcf.js"],"/node":["static/chunks/pages/node-7e8944114f3e4c05.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-7d15e6178ca3cb87.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-4dac6851f2c5b7e5.js"],sortedPages:["/","/_app","/_error","/login","/node","/wallets/[id]","/wallets/[id]/addresses"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/walletd/assets/_next/static/PLCPh5ehlUt8y1clXJCfO/_buildManifest.js b/walletd/assets/_next/static/PLCPh5ehlUt8y1clXJCfO/_buildManifest.js new file mode 100644 index 000000000..411840489 --- /dev/null +++ b/walletd/assets/_next/static/PLCPh5ehlUt8y1clXJCfO/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-a1101570d9810b3b.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/login":["static/chunks/pages/login-680702ca4ad6a00d.js"],"/node":["static/chunks/pages/node-3168ca2af706ab6a.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-4c35a8b08a913258.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-852076f377ff4d51.js"],sortedPages:["/","/_app","/_error","/login","/node","/wallets/[id]","/wallets/[id]/addresses"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/walletd/assets/_next/static/46RaGlXJI1vQ8PS3dhLZ-/_ssgManifest.js b/walletd/assets/_next/static/PLCPh5ehlUt8y1clXJCfO/_ssgManifest.js similarity index 100% rename from walletd/assets/_next/static/46RaGlXJI1vQ8PS3dhLZ-/_ssgManifest.js rename to walletd/assets/_next/static/PLCPh5ehlUt8y1clXJCfO/_ssgManifest.js diff --git a/walletd/assets/_next/static/chunks/pages/_app-18f60a1cb102b0ea.js b/walletd/assets/_next/static/chunks/pages/_app-b5f0f7d26707a81f.js similarity index 90% rename from walletd/assets/_next/static/chunks/pages/_app-18f60a1cb102b0ea.js rename to walletd/assets/_next/static/chunks/pages/_app-b5f0f7d26707a81f.js index b6c13c01b..04737a8f8 100644 --- a/walletd/assets/_next/static/chunks/pages/_app-18f60a1cb102b0ea.js +++ b/walletd/assets/_next/static/chunks/pages/_app-b5f0f7d26707a81f.js @@ -1,25 +1,25 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(A,Q,B){"use strict";B.d(Q,{An:function(){return M},Ht:function(){return c},R7:function(){return k},RH:function(){return h}});var C,I,E=B(97699),g=B.n(E);(C=I||(I={})).blue="blue",C.nanoS="nanoS",C.nanoSP="nanoSP",C.nanoX="nanoX",C.stax="stax";let w={[I.blue]:{id:I.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:A=>4096},[I.nanoS]:{id:I.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:A=>{var Q;return g().lt(null!==(Q=g().coerce(A))&&void 0!==Q?Q:"","2.0.0")?4096:2048}},[I.nanoSP]:{id:I.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:A=>32},[I.nanoX]:{id:I.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:A=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[I.stax]:{id:I.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:A=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}};I.blue,I.nanoS,I.nanoSP,I.nanoX,I.stax;let D=Object.values(w),M=11415,c=A=>{let Q=D.find(Q=>Q.legacyUsbProductId===A);if(Q)return Q;let B=A>>8;return D.find(A=>A.productIdMM===B)},s=[],y={};for(let A in w){let Q=w[A],{bluetoothSpec:B}=Q;if(B)for(let A=0;As,k=A=>y[A.toLowerCase()]},9341:function(A,Q,B){"use strict";var C,I;B.d(Q,{qX:function(){return c},vs:function(){return s},WC:function(){return n},PS:function(){return k},FB:function(){return y},wp:function(){return h},rZ:function(){return K}});let E={},g={},w=(A,Q)=>{g[A]=Q},D=A=>{class Q extends Error{constructor(B,C,I){if(super(B||A,I),Object.setPrototypeOf(this,Q.prototype),this.name=A,C)for(let A in C)this[A]=C[A];if(I&&"object"==typeof I&&"cause"in I&&!("cause"in this)){let A=I.cause;this.cause=A,"stack"in A&&(this.stack=this.stack+"\nCAUSE: "+A.stack)}}}return E[A]=Q,Q};D("AccountNameRequired"),D("AccountNotSupported"),D("AmountRequired"),D("BluetoothRequired"),D("BtcUnmatchedApp"),D("CantOpenDevice"),D("CashAddrNotSupported"),D("ClaimRewardsFeesWarning"),D("CurrencyNotSupported"),D("DeviceAppVerifyNotSupported"),D("DeviceGenuineSocketEarlyClose"),D("DeviceNotGenuine"),D("DeviceOnDashboardExpected"),D("DeviceOnDashboardUnexpected"),D("DeviceInOSUExpected"),D("DeviceHalted"),D("DeviceNameInvalid"),D("DeviceSocketFail"),D("DeviceSocketNoBulkStatus");let M=D("LockedDeviceError");D("UnresponsiveDeviceError");let c=D("DisconnectedDevice"),s=D("DisconnectedDeviceDuringOperation");D("DeviceExtractOnboardingStateError"),D("DeviceOnboardingStatePollingError"),D("EnpointConfig"),D("EthAppPleaseEnableContractData"),D("FeeEstimationFailed"),D("FirmwareNotRecognized"),D("HardResetFail"),D("InvalidXRPTag"),D("InvalidAddress"),D("InvalidNonce"),D("InvalidAddressBecauseDestinationIsAlsoSource"),D("LatestMCUInstalledError"),D("UnknownMCU"),D("LedgerAPIError"),D("LedgerAPIErrorWithMessage"),D("LedgerAPINotAvailable"),D("ManagerAppAlreadyInstalled"),D("ManagerAppRelyOnBTC"),D("ManagerAppDepInstallRequired"),D("ManagerAppDepUninstallRequired"),D("ManagerDeviceLocked"),D("ManagerFirmwareNotEnoughSpace"),D("ManagerNotEnoughSpace"),D("ManagerUninstallBTCDep"),D("NetworkDown"),D("NoAddressesFound"),D("NotEnoughBalance"),D("NotEnoughBalanceToDelegate"),D("NotEnoughBalanceInParentAccount"),D("NotEnoughSpendableBalance"),D("NotEnoughBalanceBecauseDestinationNotCreated"),D("NoAccessToCamera"),D("NotEnoughGas"),D("NotEnoughGasSwap"),D("NotSupportedLegacyAddress"),D("GasLessThanEstimate"),D("PriorityFeeTooLow"),D("PriorityFeeTooHigh"),D("PriorityFeeHigherThanMaxFee"),D("MaxFeeTooLow"),D("PasswordsDontMatch"),D("PasswordIncorrect"),D("RecommendSubAccountsToEmpty"),D("RecommendUndelegation"),D("TimeoutTagged"),D("UnexpectedBootloader"),D("MCUNotGenuineToDashboard"),D("RecipientRequired"),D("UnavailableTezosOriginatedAccountReceive"),D("UnavailableTezosOriginatedAccountSend"),D("UpdateFetchFileFail"),D("UpdateIncorrectHash"),D("UpdateIncorrectSig"),D("UpdateYourApp"),D("UserRefusedDeviceNameChange"),D("UserRefusedAddress"),D("UserRefusedFirmwareUpdate"),D("UserRefusedAllowManager"),D("UserRefusedOnDevice");let y=D("TransportOpenUserCancelled");D("TransportInterfaceNotAvailable");let h=D("TransportRaceCondition");D("TransportWebUSBGestureRequired"),D("TransactionHasBeenValidatedError"),D("DeviceShouldStayInApp"),D("WebsocketConnectionError"),D("WebsocketConnectionFailed"),D("WrongDeviceForAccount"),D("WrongAppForCurrency"),D("ETHAddressNonEIP"),D("CantScanQRCode"),D("FeeNotLoaded"),D("FeeRequired"),D("FeeTooHigh"),D("PendingOperation"),D("SyncError"),D("PairingFailed"),D("PeerRemovedPairing"),D("GenuineCheckFailed"),D("LedgerAPI4xx"),D("LedgerAPI5xx"),D("FirmwareOrAppUpdateRequired"),D("OpReturnSizeLimit"),D("DustLimit"),D("LanguageNotFound"),D("NoDBPathGiven"),D("DBWrongPassword"),D("DBNotReset"),(I=C||(C={})).Unknown="Unknown",I.LocationServicesDisabled="LocationServicesDisabled",I.LocationServicesUnauthorized="LocationServicesUnauthorized",I.BluetoothScanStartFailed="BluetoothScanStartFailed";class k extends Error{constructor(A,Q){let B="TransportError";super(A||B),this.name=B,this.message=A,this.stack=Error(A).stack,this.id=Q}}w("TransportError",A=>new k(A.message,A.id));let n={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};function K(A){let Q=Object.keys(n).find(Q=>n[Q]===A)||"UNKNOWN_ERROR",B=function(A){switch(A){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=A&&A<=28671)return"Internal error, please report"}(A)||Q,C=A.toString(16),I=`Ledger device: ${B} (0x${C})`;if(A===n.LOCKED_DEVICE)throw new M(I);this.name="TransportStatusError",this.message=I,this.stack=Error(I).stack,this.statusCode=A,this.statusText=Q}K.prototype=Error(),w("TransportStatusError",A=>new K(A.statusCode))},73866:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return AS}});var C,I=B(97790),E=B(9341),g=B(75102),w=function(A,Q){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)};function D(A,Q){function B(){this.constructor=A}w(A,Q),A.prototype=null===Q?Object.create(Q):(B.prototype=Q.prototype,new B)}function M(A){return"function"==typeof A}var c=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,c=value},get useDeprecatedSynchronousErrorHandling(){return c}};function y(A){setTimeout(function(){throw A},0)}var h={closed:!0,next:function(A){},error:function(A){if(s.useDeprecatedSynchronousErrorHandling)throw A;y(A)},complete:function(){}},k=Array.isArray||function(A){return A&&"number"==typeof A.length};function n(A){return null!==A&&"object"==typeof A}var K=function(){function A(A){return Error.call(this),this.message=A?A.length+" errors occurred during unsubscription:\n"+A.map(function(A,Q){return Q+1+") "+A.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=A,this}return A.prototype=Object.create(Error.prototype),A}(),t=function(){var A;function Q(A){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,A&&(this._ctorUnsubscribe=!0,this._unsubscribe=A)}return Q.prototype.unsubscribe=function(){if(!this.closed){var A,B=this._parentOrParents,C=this._ctorUnsubscribe,I=this._unsubscribe,E=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,B instanceof Q)B.remove(this);else if(null!==B)for(var g=0;g{let C=(function(A,Q){let B=[];for(let C=0,I=Q(0);CB-(0===A?5:3)).map((A,B)=>{let C=e.alloc(0===B?5:3);return C.writeUInt8(5,0),C.writeUInt16BE(B,1),0===B&&C.writeUInt16BE(Q.length,3),e.concat([C,A])});return new N(Q=>{let B=!1;return(function(){var Q,I,E,g;return Q=this,I=void 0,E=void 0,g=function*(){for(let Q of C){if(B)return;yield A(Q)}},new(E||(E=Promise))(function(A,B){function C(A){try{D(g.next(A))}catch(A){B(A)}}function w(A){try{D(g.throw(A))}catch(A){B(A)}}function D(Q){var B;Q.done?A(Q.value):((B=Q.value)instanceof E?B:new E(function(A){A(B)})).then(C,w)}D((g=g.apply(Q,I||[])).next())})})().then(()=>{B=!0,Q.complete()},A=>{B=!0,(0,o.c)("ble-error","sendAPDU failure "+String(A)),Q.error(A)}),()=>{B||((0,o.c)("ble-verbose","sendAPDU interruption"),B=!0)}})};var F=B(48834).lW;let S=A=>N.create(Q=>{let B=0,C=0,I=F.alloc(0),g=A.subscribe({complete:()=>{Q.error(new E.qX),g.unsubscribe()},error:A=>{(0,o.c)("ble-error","in receiveAPDU "+String(A)),Q.error(A),g.unsubscribe()},next:A=>{let w=A.readUInt8(0),D=A.readUInt16BE(1),M=A.slice(3);if(5!==w){Q.error(new E.PS("Invalid tag "+w.toString(16),"InvalidTag"));return}if(B!==D){Q.error(new E.PS("BLE: Invalid sequence number. discontinued chunk. Received "+D+" but expected "+B,"InvalidSequence"));return}if(0===D&&(C=M.readUInt16BE(0),M=M.slice(2)),B++,(I=F.concat([I,M])).length>C){Q.error(new E.PS("BLE: received too much data. discontinued chunk. Received "+I.length+" but expected "+C,"BLETooMuchData"));return}I.length===C&&(Q.next(I),Q.complete(),g.unsubscribe())}});return()=>{g.unsubscribe()}});function l(A,Q){return function(B){if("function"!=typeof A)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return B.lift(new H(A,Q))}}var H=function(){function A(A,Q){this.project=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new Y(A,this.project,this.thisArg))},A}(),Y=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.project=B,I.count=0,I.thisArg=C||I,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.project.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}this.destination.next(Q)},Q}(i),f=function(A){return function(Q){for(var B=0,C=A.length;B0?this._next(A.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},Q}(Z);function x(){for(var A,Q,B=[],C=0;C1&&"number"==typeof B[B.length-1]&&(I=B.pop())):"number"==typeof g&&(I=B.pop()),null===E&&1===B.length&&B[0]instanceof N)?B[0]:(void 0===(A=I)&&(A=Number.POSITIVE_INFINITY),function A(Q,B,C){return(void 0===C&&(C=Number.POSITIVE_INFINITY),"function"==typeof B)?function(I){return I.pipe(A(function(A,C){return m(Q(A,C)).pipe(l(function(Q,I){return B(A,Q,C,I)}))},C))}:("number"==typeof B&&(C=B),function(A){return A.lift(new O(Q,C))})}(r,A))((Q=E)?b(B,Q):new N(f(B)))}var V=new N(function(A){return A.complete()});function z(){}var W=function(){function A(A,Q,B){this.nextOrObserver=A,this.error=Q,this.complete=B}return A.prototype.call=function(A,Q){return Q.subscribe(new P(A,this.nextOrObserver,this.error,this.complete))},A}(),P=function(A){function Q(Q,B,C,I){var E=A.call(this,Q)||this;return E._tapNext=z,E._tapError=z,E._tapComplete=z,E._tapError=C||z,E._tapComplete=I||z,M(B)?(E._context=E,E._tapNext=B):B&&(E._context=B,E._tapNext=B.next||z,E._tapError=B.error||z,E._tapComplete=B.complete||z),E}return D(Q,A),Q.prototype._next=function(A){try{this._tapNext.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.next(A)},Q.prototype._error=function(A){try{this._tapError.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.error(A)},Q.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(A){this.destination.error(A);return}return this.destination.complete()},Q}(i),q=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}(),X=function(A){function Q(Q,B){var C=A.call(this)||this;return C.subject=Q,C.subscriber=B,C.closed=!1,C}return D(Q,A),Q.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this.subject,Q=A.observers;if(this.subject=null,Q&&0!==Q.length&&!A.isStopped&&!A.closed){var B=Q.indexOf(this.subscriber);-1!==B&&Q.splice(B,1)}}},Q}(t),_=function(A){function Q(Q){var B=A.call(this,Q)||this;return B.destination=Q,B}return D(Q,A),Q}(i),$=function(A){function Q(){var Q=A.call(this)||this;return Q.observers=[],Q.closed=!1,Q.isStopped=!1,Q.hasError=!1,Q.thrownError=null,Q}return D(Q,A),Q.prototype[U]=function(){return new _(this)},Q.prototype.lift=function(A){var Q=new AA(this,this);return Q.operator=A,Q},Q.prototype.next=function(A){if(this.closed)throw new q;if(!this.isStopped)for(var Q=this.observers,B=Q.length,C=Q.slice(),I=0;I1)){this.connection=null;return}var B=this.connection,C=A._connection;this.connection=null,C&&(!B||C===B)&&C.unsubscribe()},Q}(i),AI={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(C=function(A){function Q(Q,B){var C=A.call(this)||this;return C.source=Q,C.subjectFactory=B,C._refCount=0,C._isComplete=!1,C}return D(Q,A),Q.prototype._subscribe=function(A){return this.getSubject().subscribe(A)},Q.prototype.getSubject=function(){var A=this._subject;return(!A||A.isStopped)&&(this._subject=this.subjectFactory()),this._subject},Q.prototype.connect=function(){var A=this._connection;return!A&&(this._isComplete=!1,(A=this._connection=new t).add(this.source.subscribe(new AE(this.getSubject(),this))),A.closed&&(this._connection=null,A=t.EMPTY)),A},Q.prototype.refCount=function(){return AQ()(this)},Q}(N).prototype)._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}},AE=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.connectable=B,C}return D(Q,A),Q.prototype._error=function(Q){this._unsubscribe(),A.prototype._error.call(this,Q)},Q.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),A.prototype._complete.call(this)},Q.prototype._unsubscribe=function(){var A=this.connectable;if(A){this.connectable=null;var Q=A._connection;A._refCount=0,A._subject=null,A._connection=null,Q&&Q.unsubscribe()}},Q}(_),Ag=function(){function A(A,Q){this.subjectFactory=A,this.selector=Q}return A.prototype.call=function(A,Q){var B=this.selector,C=this.subjectFactory(),I=B(C).subscribe(A);return I.add(Q.subscribe(C)),I},A}();function Aw(){return new $}var AD=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}(),AM=function(){function A(A,Q){this.predicate=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new Ac(A,this.predicate,this.thisArg))},A}(),Ac=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.predicate=B,I.thisArg=C,I.count=0,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.predicate.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}Q&&this.destination.next(A)},Q}(i),As=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}(),Ay=function(){function A(A){if(this.total=A,this.total<0)throw new As}return A.prototype.call=function(A,Q){return Q.subscribe(new Ah(A,this.total))},A}(),Ah=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.total=B,C.count=0,C}return D(Q,A),Q.prototype._next=function(A){var Q=this.total,B=++this.count;B<=Q&&(this.destination.next(A),B===Q&&(this.destination.complete(),this.unsubscribe()))},Q}(i),Ak=function(){function A(A){this.defaultValue=A}return A.prototype.call=function(A,Q){return Q.subscribe(new An(A,this.defaultValue))},A}(),An=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.defaultValue=B,C.isEmpty=!0,C}return D(Q,A),Q.prototype._next=function(A){this.isEmpty=!1,this.destination.next(A)},Q.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},Q}(i),AK=function(){function A(A){this.errorFactory=A}return A.prototype.call=function(A,Q){return Q.subscribe(new At(A,this.errorFactory))},A}(),At=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.errorFactory=B,C.hasValue=!1,C}return D(Q,A),Q.prototype._next=function(A){this.hasValue=!0,this.destination.next(A)},Q.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var A=void 0;try{A=this.errorFactory()}catch(Q){A=Q}this.destination.error(A)},Q}(i),AL=function(){function A(){}return A.prototype.call=function(A,Q){return Q.subscribe(new AU(A))},A}(),AU=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return D(Q,A),Q.prototype._next=function(A){},Q}(i),Ai=B(48834).lW;let AG=A=>N.create(Q=>{function B(A){let B=A.target;B.value&&Q.next(Ai.from(B.value.buffer))}return(0,o.c)("ble-verbose","start monitor "+A.uuid),A.startNotifications().then(()=>{A.addEventListener("characteristicvaluechanged",B)}),()=>{(0,o.c)("ble-verbose","end monitor "+A.uuid),A.stopNotifications()}});var Ap=B(48834).lW,Ar=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let AN=()=>{let{bluetooth:A}=navigator;if(void 0===A)throw Error("web bluetooth not supported");return A},Aa=()=>N.create(A=>{let Q=AN(),B=Q=>{A.next(Q.value)};Q.addEventListener("availabilitychanged",B);let C=!1;return Q.getAvailability().then(Q=>{C||A.next(Q)}),()=>{C=!0,Q.removeEventListener("availabilitychanged",B)}}),Ao={},Ae=()=>({filters:(0,g.RH)().map(A=>({services:[A]}))}),AJ=A=>Ar(void 0,void 0,void 0,function*(){if(!A.gatt)throw Error("bluetooth gatt not found");let[Q]=yield A.gatt.getPrimaryServices();if(!Q)throw Error("bluetooth service not found");let B=(0,g.R7)(Q.uuid);if(!B)throw Error("bluetooth service infos not found");return[Q,B]});class AF extends I.ZP{static listen(A){let Q;return(0,o.c)("ble-verbose","listen..."),AN().requestDevice(Ae()).then(B=>{Q||(A.next({type:"add",descriptor:B}),A.complete())},Q=>{A.error(new E.FB(Q.message))}),{unsubscribe:function(){Q=!0}}}static open(A){return Ar(this,void 0,void 0,function*(){return function A(Q,B){return Ar(this,void 0,void 0,function*(){var C;let I;if("string"==typeof Q){if(Ao[Q])return(0,o.c)("ble-verbose","Transport in cache, using that."),Ao[Q];let A=AN();I=yield A.requestDevice(Ae())}else I=Q;I.gatt.connected||((0,o.c)("ble-verbose","not connected. connecting..."),yield I.gatt.connect());let[g,w]=yield AJ(I),{deviceModel:D,writeUuid:M,notifyUuid:c}=w,[s,y]=yield Promise.all([g.getCharacteristic(M),g.getCharacteristic(c)]),h=AG(y).pipe((C=A=>{(0,o.c)("ble-frame","<= "+A.toString("hex"))},function(A){return A.lift(new W(C,void 0,void 0))}),function(A){var Q;return AQ()(function(A){if("function"==typeof Q)return A.lift(new Ag(Aw,Q));var B=Object.create(A,AI);return B.source=A,B.subjectFactory=Aw,B}(A))}),k=h.subscribe(),n=new AF(I,s,h,D);if(!I.gatt.connected)throw new E.qX;Ao[n.id]=n;let K=A=>{console.log("onDisconnect!",A),delete Ao[n.id],n.notYetDisconnected=!1,k.unsubscribe(),I.removeEventListener("gattserverdisconnected",K),(0,o.c)("ble-verbose",`BleTransport(${n.id}) disconnected`),n.emit("disconnect",A)};I.addEventListener("gattserverdisconnected",K);let t=Date.now();try{yield n.inferMTU()}finally{Date.now()-t<1e3&&(B=!1),B&&(yield I.gatt.disconnect(),yield new Promise(A=>setTimeout(A,4e3)))}return B?A(I,!1):n})}(A,!0)})}constructor(A,Q,B,C){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=A=>Ar(this,void 0,void 0,function*(){(0,o.c)("ble-frame","=> "+A.toString("hex")),yield this.writeCharacteristic.writeValue(A)}),this.id=A.id,this.device=A,this.writeCharacteristic=Q,this.notifyObservable=B,this.deviceModel=C,(0,o.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return Ar(this,void 0,void 0,function*(){let A=23;if(yield this.exchangeAtomicImpl(()=>Ar(this,void 0,void 0,function*(){try{var Q;A=(yield x(this.notifyObservable.pipe(function(A,Q){var B=arguments.length>=2;return function(Q){var C,I,E;return Q.pipe(A?(C=function(B,C){return A(B,C,Q)},function(A){return A.lift(new AM(C,void 0))}):r,function(A){return A.lift(new Ay(1))},B?(I=void 0,I=null,function(A){return A.lift(new Ak(I))}):(E=function(){return new AD},function(A){return A.lift(new AK(E))}))}}(A=>8===A.readUInt8(0)),l(A=>A.readUInt8(5))),(Q=()=>m(this.write(Ap.from([8,0,0,0,0]))),new N(function(A){var B,C,I;try{C=Q()}catch(Q){A.error(Q);return}return(C?m(C):B?(I=B,new N(function(A){return I.schedule(function(){return A.complete()})})):V).subscribe(A)})).pipe(function(A){return A.lift(new AL)})).toPromise())+3}catch(A){throw(0,o.c)("ble-error","inferMTU got "+String(A)),this.device.gatt.disconnect(),A}})),A>23){let Q=A-3;(0,o.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(Q)}`),this.mtuSize=Q}return this.mtuSize})}exchange(A){return Ar(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>Ar(this,void 0,void 0,function*(){try{let Q=A.toString("hex");(0,o.c)("apdu",`=> ${Q}`);let B=yield x(this.notifyObservable.pipe(S),J(this.write,A,this.mtuSize)).toPromise(),C=B.toString("hex");return(0,o.c)("apdu",`<= ${C}`),B}catch(A){throw(0,o.c)("ble-error","exchange got "+String(A)),this.notYetDisconnected&&this.device.gatt.disconnect(),A}}))})}setScrambleKey(){}close(){return Ar(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}AF.isSupported=()=>Promise.resolve().then(AN).then(()=>!0,()=>!1),AF.observeAvailability=A=>Aa().subscribe(A),AF.list=()=>Promise.resolve([]),AF.disconnect=A=>Ar(void 0,void 0,void 0,function*(){(0,o.c)("ble-verbose",`user disconnect(${A})`);let Q=Ao[A];Q&&Q.device.gatt.disconnect()});var AS=AF},27748:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return t}});var C=B(97790),I=B(9341),E=B(48834).lW;let g={data:E.alloc(0),dataLength:0,sequence:0};var w=(A,Q)=>({makeBlocks(B){let C=E.concat([function(A){let Q=E.alloc(2);return Q.writeUInt16BE(A,0),Q}(B.length),B]),I=Q-5,g=Math.ceil(C.length/I);C=E.concat([C,E.alloc(g*I-C.length+1).fill(0)]);let w=[];for(let Q=0;Qw&&(C=C.slice(0,w)),{data:C,dataLength:w,sequence:D}},getReducedResult(A){if(A&&A.dataLength===A.data.length)return A.data}}),D=B(75102),M=B(91288),c=B(48834).lW,s=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let y=[{vendorId:D.An}],h=()=>{let{hid:A}=navigator;if(!A)throw new I.PS("navigator.hid is not supported","HIDNotSupported");return A};function k(){return s(this,void 0,void 0,function*(){let A=yield h().requestDevice({filters:y});return Array.isArray(A)?A:[A]})}function n(){return s(this,void 0,void 0,function*(){return(yield h().getDevices()).filter(A=>A.vendorId===D.An)})}class K extends C.ZP{constructor(A){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(A=>{this.inputCallback=A}),this.onInputReport=A=>{let Q=c.from(A.data.buffer);this.inputCallback?(this.inputCallback(Q),this.inputCallback=null):this.inputs.push(Q)},this._disconnectEmitted=!1,this._emitDisconnect=A=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",A))},this.exchange=A=>s(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>s(this,void 0,void 0,function*(){let Q,B;let{channel:C,packetSize:I}=this;(0,M.c)("apdu","=> "+A.toString("hex"));let E=w(C,I),g=E.makeBlocks(A);for(let A=0;A{if(A&&A.message&&A.message.includes("write"))throw this._emitDisconnect(A),new I.vs(A.message);throw A})}),this.device=A,this.deviceModel="number"==typeof A.productId?(0,D.Ht)(A.productId):void 0,A.addEventListener("inputreport",this.onInputReport)}static request(){return s(this,void 0,void 0,function*(){let[A]=yield k();return K.open(A)})}static openConnected(){return s(this,void 0,void 0,function*(){let A=yield n();return 0===A.length?null:K.open(A[0])})}static open(A){return s(this,void 0,void 0,function*(){yield A.open();let Q=new K(A),B=C=>{A===C.device&&(h().removeEventListener("disconnect",B),Q._emitDisconnect(new I.qX))};return h().addEventListener("disconnect",B),Q})}close(){return s(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}K.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),K.list=n,K.listen=A=>{let Q=!1;return(function(){return s(this,void 0,void 0,function*(){let A=yield n();return A.length>0?A[0]:(yield k())[0]})})().then(B=>{if(B){if(!Q){let Q="number"==typeof B.productId?(0,D.Ht)(B.productId):void 0;A.next({type:"add",descriptor:B,deviceModel:Q}),A.complete()}}else A.error(new I.FB("Access denied to use Ledger device"))},Q=>{A.error(new I.FB(Q.message))}),{unsubscribe:function(){Q=!0}}};var t=K},97790:function(A,Q,B){"use strict";var C=B(22699),I=B.n(C),E=B(9341),g=B(48834).lW,w=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};class D{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(I()),this.send=(A,Q,B,C,I=g.alloc(0),D=[E.WC.OK])=>w(this,void 0,void 0,function*(){if(I.length>=256)throw new E.PS("data.length exceed 256 bytes limit. Got: "+I.length,"DataLengthTooBig");let w=yield this.exchange(g.concat([g.from([A,Q,B,C]),g.from([I.length]),I])),M=w.readUInt16BE(w.length-2);if(!D.some(A=>A===M))throw new E.rZ(M);return w}),this.exchangeAtomicImpl=A=>w(this,void 0,void 0,function*(){let Q;if(this.exchangeBusyPromise)throw new E.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let B=new Promise(A=>{Q=A});this.exchangeBusyPromise=B;let C=!1,I=setTimeout(()=>{C=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let Q=yield A();return C&&this.emit("responsive"),Q}finally{clearTimeout(I),Q&&Q(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(A){throw Error("exchange not implemented")}exchangeBulk(A,Q){let B=!1;return w(this,void 0,void 0,function*(){if(!B)for(let C of A){let A=yield this.exchange(C);if(B)return;let I=A.readUInt16BE(A.length-2);if(I!==E.WC.OK)throw new E.rZ(I);Q.next(A)}}).then(()=>!B&&Q.complete(),A=>!B&&Q.error(A)),{unsubscribe:()=>{B=!0}}}setScrambleKey(A){}close(){return Promise.resolve()}on(A,Q){this._events.on(A,Q)}off(A,Q){this._events.removeListener(A,Q)}emit(A,...Q){this._events.emit(A,...Q)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(A){this.exchangeTimeout=A}setExchangeUnresponsiveTimeout(A){this.unresponsiveTimeout=A}static create(A=3e3,Q){return new Promise((B,C)=>{let I=!1,g=this.listen({next:Q=>{I=!0,g&&g.unsubscribe(),w&&clearTimeout(w),this.open(Q.descriptor,A).then(B,C)},error:A=>{w&&clearTimeout(w),C(A)},complete:()=>{w&&clearTimeout(w),I||C(new E.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),w=Q?setTimeout(()=>{g.unsubscribe(),C(new E.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},Q):null})}decorateAppAPIMethods(A,Q,B){for(let C of Q)A[C]=this.decorateAppAPIMethod(C,A[C],A,B)}decorateAppAPIMethod(A,Q,B,C){return(...I)=>w(this,void 0,void 0,function*(){let{_appAPIlock:g}=this;if(g)return Promise.reject(new E.PS("Ledger Device is busy (lock "+g+")","TransportLocked"));try{return this._appAPIlock=A,this.setScrambleKey(C),yield Q.apply(B,I)}finally{this._appAPIlock=null}})}}D.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",D.ErrorMessage_NoDeviceFound="No Ledger device found",Q.ZP=D},91288:function(A,Q,B){"use strict";B.d(Q,{c:function(){return E}});var C=0,I=[],E=function(A,Q,B){var E={type:A,id:String(++C),date:new Date};Q&&(E.message=Q),B&&(E.data=B),function(A){for(var Q=0;Q0&&I[I.length-1])&&(6===E[0]||2===E[0])){g=0;continue}if(3===E[0]&&(!I||E[1]>I[0]&&E[1]=0||(I[B]=A[B]);return I}(A,Q);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(A);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(A,B)&&(I[B]=A[B])}return I}B.d(Q,{I:function(){return L},_:function(){return n},a:function(){return k}});var g=["width","height","viewBox"],w=["tabindex"],D={focusable:"false",preserveAspectRatio:"xMidYMid meet"},M=B(13980),c=B.n(M),s=B(2784);function y(A,Q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);Q&&(C=C.filter(function(Q){return Object.getOwnPropertyDescriptor(A,Q).enumerable})),B.push.apply(B,C)}return B}function h(A){for(var Q=1;Q=0||(I[B]=A[B]);return I}(A,Q);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(A);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(A,B)&&(I[B]=A[B])}return I}var t=["className","children","tabIndex"],K=["tabindex"],L=s.forwardRef(function(A,Q){var B=A.className,C=A.children,M=A.tabIndex,c=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Q=A.width,B=A.height,C=A.viewBox,M=void 0===C?"0 0 ".concat(Q," ").concat(B):C,c=E(A,g),s=c.tabindex,y=E(c,w),h=I(I(I({},D),y),{},{width:Q,height:B,viewBox:M});return h["aria-label"]||h["aria-labelledby"]||h.title?(h.role="img",null!=s&&(h.focusable="true",h.tabindex=s)):h["aria-hidden"]=!0,h}(h(h({},n(A,t)),{},{tabindex:M})),y=c.tabindex,k=n(c,K);return B&&(k.className=B),null!=y&&(k.tabIndex=y),Q&&(k.ref=Q),s.createElement("svg",k,C)});L.displayName="Icon",L.propTypes={"aria-hidden":c().string,"aria-label":c().string,"aria-labelledby":c().string,children:c().node,className:c().string,height:c().oneOfType([c().number,c().string]),preserveAspectRatio:c().string,tabIndex:c().string,viewBox:c().string,width:c().oneOfType([c().number,c().string]),xmlns:c().string},L.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},63131:function(A,Q,B){"use strict";B.d(Q,{I$H:function(){return U},pHg:function(){return L},qdM:function(){return i},xVB:function(){return K}});var C,I,E,g,w,D,M,c,s=B(36662),y=B(2784),h=["children"],k=["children"],n=["children"],t=["children"],K=y.forwardRef(function(A,Q){var B=A.children,E=(0,s._)(A,h);return y.createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},E),C||(C=y.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),I||(I=y.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),B)}),L=y.forwardRef(function(A,Q){var B=A.children,C=(0,s._)(A,k);return y.createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),E||(E=y.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),g||(g=y.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),B)}),U=y.forwardRef(function(A,Q){var B=A.children,C=(0,s._)(A,n);return y.createElement(s.I,(0,s.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),w||(w=y.createElement("path",{d:"M22 17H24V19H22z"})),D||(D=y.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),B)}),i=y.forwardRef(function(A,Q){var B=A.children,C=(0,s._)(A,t);return y.createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),M||(M=y.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),c||(c=y.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),B)})},75102:function(A,Q,B){"use strict";B.d(Q,{An:function(){return M},Ht:function(){return c},R7:function(){return k},RH:function(){return h}});var C,I,E=B(97699),g=B.n(E);(C=I||(I={})).blue="blue",C.nanoS="nanoS",C.nanoSP="nanoSP",C.nanoX="nanoX",C.stax="stax";let w={[I.blue]:{id:I.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:A=>4096},[I.nanoS]:{id:I.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:A=>{var Q;return g().lt(null!==(Q=g().coerce(A))&&void 0!==Q?Q:"","2.0.0")?4096:2048}},[I.nanoSP]:{id:I.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:A=>32},[I.nanoX]:{id:I.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:A=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[I.stax]:{id:I.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:A=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}};I.blue,I.nanoS,I.nanoSP,I.nanoX,I.stax;let D=Object.values(w),M=11415,c=A=>{let Q=D.find(Q=>Q.legacyUsbProductId===A);if(Q)return Q;let B=A>>8;return D.find(A=>A.productIdMM===B)},s=[],y={};for(let A in w){let Q=w[A],{bluetoothSpec:B}=Q;if(B)for(let A=0;As,k=A=>y[A.toLowerCase()]},9341:function(A,Q,B){"use strict";var C,I;B.d(Q,{qX:function(){return c},vs:function(){return s},WC:function(){return n},PS:function(){return k},FB:function(){return y},wp:function(){return h},rZ:function(){return t}});let E={},g={},w=(A,Q)=>{g[A]=Q},D=A=>{class Q extends Error{constructor(B,C,I){if(super(B||A,I),Object.setPrototypeOf(this,Q.prototype),this.name=A,C)for(let A in C)this[A]=C[A];if(I&&"object"==typeof I&&"cause"in I&&!("cause"in this)){let A=I.cause;this.cause=A,"stack"in A&&(this.stack=this.stack+"\nCAUSE: "+A.stack)}}}return E[A]=Q,Q};D("AccountNameRequired"),D("AccountNotSupported"),D("AmountRequired"),D("BluetoothRequired"),D("BtcUnmatchedApp"),D("CantOpenDevice"),D("CashAddrNotSupported"),D("ClaimRewardsFeesWarning"),D("CurrencyNotSupported"),D("DeviceAppVerifyNotSupported"),D("DeviceGenuineSocketEarlyClose"),D("DeviceNotGenuine"),D("DeviceOnDashboardExpected"),D("DeviceOnDashboardUnexpected"),D("DeviceInOSUExpected"),D("DeviceHalted"),D("DeviceNameInvalid"),D("DeviceSocketFail"),D("DeviceSocketNoBulkStatus");let M=D("LockedDeviceError");D("UnresponsiveDeviceError");let c=D("DisconnectedDevice"),s=D("DisconnectedDeviceDuringOperation");D("DeviceExtractOnboardingStateError"),D("DeviceOnboardingStatePollingError"),D("EnpointConfig"),D("EthAppPleaseEnableContractData"),D("FeeEstimationFailed"),D("FirmwareNotRecognized"),D("HardResetFail"),D("InvalidXRPTag"),D("InvalidAddress"),D("InvalidNonce"),D("InvalidAddressBecauseDestinationIsAlsoSource"),D("LatestMCUInstalledError"),D("UnknownMCU"),D("LedgerAPIError"),D("LedgerAPIErrorWithMessage"),D("LedgerAPINotAvailable"),D("ManagerAppAlreadyInstalled"),D("ManagerAppRelyOnBTC"),D("ManagerAppDepInstallRequired"),D("ManagerAppDepUninstallRequired"),D("ManagerDeviceLocked"),D("ManagerFirmwareNotEnoughSpace"),D("ManagerNotEnoughSpace"),D("ManagerUninstallBTCDep"),D("NetworkDown"),D("NoAddressesFound"),D("NotEnoughBalance"),D("NotEnoughBalanceToDelegate"),D("NotEnoughBalanceInParentAccount"),D("NotEnoughSpendableBalance"),D("NotEnoughBalanceBecauseDestinationNotCreated"),D("NoAccessToCamera"),D("NotEnoughGas"),D("NotEnoughGasSwap"),D("NotSupportedLegacyAddress"),D("GasLessThanEstimate"),D("PriorityFeeTooLow"),D("PriorityFeeTooHigh"),D("PriorityFeeHigherThanMaxFee"),D("MaxFeeTooLow"),D("PasswordsDontMatch"),D("PasswordIncorrect"),D("RecommendSubAccountsToEmpty"),D("RecommendUndelegation"),D("TimeoutTagged"),D("UnexpectedBootloader"),D("MCUNotGenuineToDashboard"),D("RecipientRequired"),D("UnavailableTezosOriginatedAccountReceive"),D("UnavailableTezosOriginatedAccountSend"),D("UpdateFetchFileFail"),D("UpdateIncorrectHash"),D("UpdateIncorrectSig"),D("UpdateYourApp"),D("UserRefusedDeviceNameChange"),D("UserRefusedAddress"),D("UserRefusedFirmwareUpdate"),D("UserRefusedAllowManager"),D("UserRefusedOnDevice");let y=D("TransportOpenUserCancelled");D("TransportInterfaceNotAvailable");let h=D("TransportRaceCondition");D("TransportWebUSBGestureRequired"),D("TransactionHasBeenValidatedError"),D("DeviceShouldStayInApp"),D("WebsocketConnectionError"),D("WebsocketConnectionFailed"),D("WrongDeviceForAccount"),D("WrongAppForCurrency"),D("ETHAddressNonEIP"),D("CantScanQRCode"),D("FeeNotLoaded"),D("FeeRequired"),D("FeeTooHigh"),D("PendingOperation"),D("SyncError"),D("PairingFailed"),D("PeerRemovedPairing"),D("GenuineCheckFailed"),D("LedgerAPI4xx"),D("LedgerAPI5xx"),D("FirmwareOrAppUpdateRequired"),D("OpReturnSizeLimit"),D("DustLimit"),D("LanguageNotFound"),D("NoDBPathGiven"),D("DBWrongPassword"),D("DBNotReset"),(I=C||(C={})).Unknown="Unknown",I.LocationServicesDisabled="LocationServicesDisabled",I.LocationServicesUnauthorized="LocationServicesUnauthorized",I.BluetoothScanStartFailed="BluetoothScanStartFailed";class k extends Error{constructor(A,Q){let B="TransportError";super(A||B),this.name=B,this.message=A,this.stack=Error(A).stack,this.id=Q}}w("TransportError",A=>new k(A.message,A.id));let n={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};function t(A){let Q=Object.keys(n).find(Q=>n[Q]===A)||"UNKNOWN_ERROR",B=function(A){switch(A){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=A&&A<=28671)return"Internal error, please report"}(A)||Q,C=A.toString(16),I=`Ledger device: ${B} (0x${C})`;if(A===n.LOCKED_DEVICE)throw new M(I);this.name="TransportStatusError",this.message=I,this.stack=Error(I).stack,this.statusCode=A,this.statusText=Q}t.prototype=Error(),w("TransportStatusError",A=>new t(A.statusCode))},73866:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return AS}});var C,I=B(97790),E=B(9341),g=B(75102),w=function(A,Q){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)};function D(A,Q){function B(){this.constructor=A}w(A,Q),A.prototype=null===Q?Object.create(Q):(B.prototype=Q.prototype,new B)}function M(A){return"function"==typeof A}var c=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,c=value},get useDeprecatedSynchronousErrorHandling(){return c}};function y(A){setTimeout(function(){throw A},0)}var h={closed:!0,next:function(A){},error:function(A){if(s.useDeprecatedSynchronousErrorHandling)throw A;y(A)},complete:function(){}},k=Array.isArray||function(A){return A&&"number"==typeof A.length};function n(A){return null!==A&&"object"==typeof A}var t=function(){function A(A){return Error.call(this),this.message=A?A.length+" errors occurred during unsubscription:\n"+A.map(function(A,Q){return Q+1+") "+A.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=A,this}return A.prototype=Object.create(Error.prototype),A}(),K=function(){var A;function Q(A){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,A&&(this._ctorUnsubscribe=!0,this._unsubscribe=A)}return Q.prototype.unsubscribe=function(){if(!this.closed){var A,B=this._parentOrParents,C=this._ctorUnsubscribe,I=this._unsubscribe,E=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,B instanceof Q)B.remove(this);else if(null!==B)for(var g=0;g{let C=(function(A,Q){let B=[];for(let C=0,I=Q(0);CB-(0===A?5:3)).map((A,B)=>{let C=e.alloc(0===B?5:3);return C.writeUInt8(5,0),C.writeUInt16BE(B,1),0===B&&C.writeUInt16BE(Q.length,3),e.concat([C,A])});return new a(Q=>{let B=!1;return(function(){var Q,I,E,g;return Q=this,I=void 0,E=void 0,g=function*(){for(let Q of C){if(B)return;yield A(Q)}},new(E||(E=Promise))(function(A,B){function C(A){try{D(g.next(A))}catch(A){B(A)}}function w(A){try{D(g.throw(A))}catch(A){B(A)}}function D(Q){var B;Q.done?A(Q.value):((B=Q.value)instanceof E?B:new E(function(A){A(B)})).then(C,w)}D((g=g.apply(Q,I||[])).next())})})().then(()=>{B=!0,Q.complete()},A=>{B=!0,(0,o.c)("ble-error","sendAPDU failure "+String(A)),Q.error(A)}),()=>{B||((0,o.c)("ble-verbose","sendAPDU interruption"),B=!0)}})};var F=B(48834).lW;let S=A=>a.create(Q=>{let B=0,C=0,I=F.alloc(0),g=A.subscribe({complete:()=>{Q.error(new E.qX),g.unsubscribe()},error:A=>{(0,o.c)("ble-error","in receiveAPDU "+String(A)),Q.error(A),g.unsubscribe()},next:A=>{let w=A.readUInt8(0),D=A.readUInt16BE(1),M=A.slice(3);if(5!==w){Q.error(new E.PS("Invalid tag "+w.toString(16),"InvalidTag"));return}if(B!==D){Q.error(new E.PS("BLE: Invalid sequence number. discontinued chunk. Received "+D+" but expected "+B,"InvalidSequence"));return}if(0===D&&(C=M.readUInt16BE(0),M=M.slice(2)),B++,(I=F.concat([I,M])).length>C){Q.error(new E.PS("BLE: received too much data. discontinued chunk. Received "+I.length+" but expected "+C,"BLETooMuchData"));return}I.length===C&&(Q.next(I),Q.complete(),g.unsubscribe())}});return()=>{g.unsubscribe()}});function l(A,Q){return function(B){if("function"!=typeof A)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return B.lift(new H(A,Q))}}var H=function(){function A(A,Q){this.project=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new Y(A,this.project,this.thisArg))},A}(),Y=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.project=B,I.count=0,I.thisArg=C||I,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.project.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}this.destination.next(Q)},Q}(i),f=function(A){return function(Q){for(var B=0,C=A.length;B0?this._next(A.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},Q}(Z);function x(){for(var A,Q,B=[],C=0;C1&&"number"==typeof B[B.length-1]&&(I=B.pop())):"number"==typeof g&&(I=B.pop()),null===E&&1===B.length&&B[0]instanceof a)?B[0]:(void 0===(A=I)&&(A=Number.POSITIVE_INFINITY),function A(Q,B,C){return(void 0===C&&(C=Number.POSITIVE_INFINITY),"function"==typeof B)?function(I){return I.pipe(A(function(A,C){return m(Q(A,C)).pipe(l(function(Q,I){return B(A,Q,C,I)}))},C))}:("number"==typeof B&&(C=B),function(A){return A.lift(new O(Q,C))})}(p,A))((Q=E)?b(B,Q):new a(f(B)))}var V=new a(function(A){return A.complete()});function z(){}var W=function(){function A(A,Q,B){this.nextOrObserver=A,this.error=Q,this.complete=B}return A.prototype.call=function(A,Q){return Q.subscribe(new P(A,this.nextOrObserver,this.error,this.complete))},A}(),P=function(A){function Q(Q,B,C,I){var E=A.call(this,Q)||this;return E._tapNext=z,E._tapError=z,E._tapComplete=z,E._tapError=C||z,E._tapComplete=I||z,M(B)?(E._context=E,E._tapNext=B):B&&(E._context=B,E._tapNext=B.next||z,E._tapError=B.error||z,E._tapComplete=B.complete||z),E}return D(Q,A),Q.prototype._next=function(A){try{this._tapNext.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.next(A)},Q.prototype._error=function(A){try{this._tapError.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.error(A)},Q.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(A){this.destination.error(A);return}return this.destination.complete()},Q}(i),q=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}(),X=function(A){function Q(Q,B){var C=A.call(this)||this;return C.subject=Q,C.subscriber=B,C.closed=!1,C}return D(Q,A),Q.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this.subject,Q=A.observers;if(this.subject=null,Q&&0!==Q.length&&!A.isStopped&&!A.closed){var B=Q.indexOf(this.subscriber);-1!==B&&Q.splice(B,1)}}},Q}(K),_=function(A){function Q(Q){var B=A.call(this,Q)||this;return B.destination=Q,B}return D(Q,A),Q}(i),$=function(A){function Q(){var Q=A.call(this)||this;return Q.observers=[],Q.closed=!1,Q.isStopped=!1,Q.hasError=!1,Q.thrownError=null,Q}return D(Q,A),Q.prototype[U]=function(){return new _(this)},Q.prototype.lift=function(A){var Q=new AA(this,this);return Q.operator=A,Q},Q.prototype.next=function(A){if(this.closed)throw new q;if(!this.isStopped)for(var Q=this.observers,B=Q.length,C=Q.slice(),I=0;I1)){this.connection=null;return}var B=this.connection,C=A._connection;this.connection=null,C&&(!B||C===B)&&C.unsubscribe()},Q}(i),AI={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(C=function(A){function Q(Q,B){var C=A.call(this)||this;return C.source=Q,C.subjectFactory=B,C._refCount=0,C._isComplete=!1,C}return D(Q,A),Q.prototype._subscribe=function(A){return this.getSubject().subscribe(A)},Q.prototype.getSubject=function(){var A=this._subject;return(!A||A.isStopped)&&(this._subject=this.subjectFactory()),this._subject},Q.prototype.connect=function(){var A=this._connection;return!A&&(this._isComplete=!1,(A=this._connection=new K).add(this.source.subscribe(new AE(this.getSubject(),this))),A.closed&&(this._connection=null,A=K.EMPTY)),A},Q.prototype.refCount=function(){return AQ()(this)},Q}(a).prototype)._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}},AE=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.connectable=B,C}return D(Q,A),Q.prototype._error=function(Q){this._unsubscribe(),A.prototype._error.call(this,Q)},Q.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),A.prototype._complete.call(this)},Q.prototype._unsubscribe=function(){var A=this.connectable;if(A){this.connectable=null;var Q=A._connection;A._refCount=0,A._subject=null,A._connection=null,Q&&Q.unsubscribe()}},Q}(_),Ag=function(){function A(A,Q){this.subjectFactory=A,this.selector=Q}return A.prototype.call=function(A,Q){var B=this.selector,C=this.subjectFactory(),I=B(C).subscribe(A);return I.add(Q.subscribe(C)),I},A}();function Aw(){return new $}var AD=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}(),AM=function(){function A(A,Q){this.predicate=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new Ac(A,this.predicate,this.thisArg))},A}(),Ac=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.predicate=B,I.thisArg=C,I.count=0,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.predicate.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}Q&&this.destination.next(A)},Q}(i),As=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}(),Ay=function(){function A(A){if(this.total=A,this.total<0)throw new As}return A.prototype.call=function(A,Q){return Q.subscribe(new Ah(A,this.total))},A}(),Ah=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.total=B,C.count=0,C}return D(Q,A),Q.prototype._next=function(A){var Q=this.total,B=++this.count;B<=Q&&(this.destination.next(A),B===Q&&(this.destination.complete(),this.unsubscribe()))},Q}(i),Ak=function(){function A(A){this.defaultValue=A}return A.prototype.call=function(A,Q){return Q.subscribe(new An(A,this.defaultValue))},A}(),An=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.defaultValue=B,C.isEmpty=!0,C}return D(Q,A),Q.prototype._next=function(A){this.isEmpty=!1,this.destination.next(A)},Q.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},Q}(i),At=function(){function A(A){this.errorFactory=A}return A.prototype.call=function(A,Q){return Q.subscribe(new AK(A,this.errorFactory))},A}(),AK=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.errorFactory=B,C.hasValue=!1,C}return D(Q,A),Q.prototype._next=function(A){this.hasValue=!0,this.destination.next(A)},Q.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var A=void 0;try{A=this.errorFactory()}catch(Q){A=Q}this.destination.error(A)},Q}(i),AL=function(){function A(){}return A.prototype.call=function(A,Q){return Q.subscribe(new AU(A))},A}(),AU=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return D(Q,A),Q.prototype._next=function(A){},Q}(i),Ai=B(48834).lW;let AG=A=>a.create(Q=>{function B(A){let B=A.target;B.value&&Q.next(Ai.from(B.value.buffer))}return(0,o.c)("ble-verbose","start monitor "+A.uuid),A.startNotifications().then(()=>{A.addEventListener("characteristicvaluechanged",B)}),()=>{(0,o.c)("ble-verbose","end monitor "+A.uuid),A.stopNotifications()}});var Ar=B(48834).lW,Ap=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let Aa=()=>{let{bluetooth:A}=navigator;if(void 0===A)throw Error("web bluetooth not supported");return A},AN=()=>a.create(A=>{let Q=Aa(),B=Q=>{A.next(Q.value)};Q.addEventListener("availabilitychanged",B);let C=!1;return Q.getAvailability().then(Q=>{C||A.next(Q)}),()=>{C=!0,Q.removeEventListener("availabilitychanged",B)}}),Ao={},Ae=()=>({filters:(0,g.RH)().map(A=>({services:[A]}))}),AJ=A=>Ap(void 0,void 0,void 0,function*(){if(!A.gatt)throw Error("bluetooth gatt not found");let[Q]=yield A.gatt.getPrimaryServices();if(!Q)throw Error("bluetooth service not found");let B=(0,g.R7)(Q.uuid);if(!B)throw Error("bluetooth service infos not found");return[Q,B]});class AF extends I.ZP{static listen(A){let Q;return(0,o.c)("ble-verbose","listen..."),Aa().requestDevice(Ae()).then(B=>{Q||(A.next({type:"add",descriptor:B}),A.complete())},Q=>{A.error(new E.FB(Q.message))}),{unsubscribe:function(){Q=!0}}}static open(A){return Ap(this,void 0,void 0,function*(){return function A(Q,B){return Ap(this,void 0,void 0,function*(){var C;let I;if("string"==typeof Q){if(Ao[Q])return(0,o.c)("ble-verbose","Transport in cache, using that."),Ao[Q];let A=Aa();I=yield A.requestDevice(Ae())}else I=Q;I.gatt.connected||((0,o.c)("ble-verbose","not connected. connecting..."),yield I.gatt.connect());let[g,w]=yield AJ(I),{deviceModel:D,writeUuid:M,notifyUuid:c}=w,[s,y]=yield Promise.all([g.getCharacteristic(M),g.getCharacteristic(c)]),h=AG(y).pipe((C=A=>{(0,o.c)("ble-frame","<= "+A.toString("hex"))},function(A){return A.lift(new W(C,void 0,void 0))}),function(A){var Q;return AQ()(function(A){if("function"==typeof Q)return A.lift(new Ag(Aw,Q));var B=Object.create(A,AI);return B.source=A,B.subjectFactory=Aw,B}(A))}),k=h.subscribe(),n=new AF(I,s,h,D);if(!I.gatt.connected)throw new E.qX;Ao[n.id]=n;let t=A=>{console.log("onDisconnect!",A),delete Ao[n.id],n.notYetDisconnected=!1,k.unsubscribe(),I.removeEventListener("gattserverdisconnected",t),(0,o.c)("ble-verbose",`BleTransport(${n.id}) disconnected`),n.emit("disconnect",A)};I.addEventListener("gattserverdisconnected",t);let K=Date.now();try{yield n.inferMTU()}finally{Date.now()-K<1e3&&(B=!1),B&&(yield I.gatt.disconnect(),yield new Promise(A=>setTimeout(A,4e3)))}return B?A(I,!1):n})}(A,!0)})}constructor(A,Q,B,C){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=A=>Ap(this,void 0,void 0,function*(){(0,o.c)("ble-frame","=> "+A.toString("hex")),yield this.writeCharacteristic.writeValue(A)}),this.id=A.id,this.device=A,this.writeCharacteristic=Q,this.notifyObservable=B,this.deviceModel=C,(0,o.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return Ap(this,void 0,void 0,function*(){let A=23;if(yield this.exchangeAtomicImpl(()=>Ap(this,void 0,void 0,function*(){try{var Q;A=(yield x(this.notifyObservable.pipe(function(A,Q){var B=arguments.length>=2;return function(Q){var C,I,E;return Q.pipe(A?(C=function(B,C){return A(B,C,Q)},function(A){return A.lift(new AM(C,void 0))}):p,function(A){return A.lift(new Ay(1))},B?(I=void 0,I=null,function(A){return A.lift(new Ak(I))}):(E=function(){return new AD},function(A){return A.lift(new At(E))}))}}(A=>8===A.readUInt8(0)),l(A=>A.readUInt8(5))),(Q=()=>m(this.write(Ar.from([8,0,0,0,0]))),new a(function(A){var B,C,I;try{C=Q()}catch(Q){A.error(Q);return}return(C?m(C):B?(I=B,new a(function(A){return I.schedule(function(){return A.complete()})})):V).subscribe(A)})).pipe(function(A){return A.lift(new AL)})).toPromise())+3}catch(A){throw(0,o.c)("ble-error","inferMTU got "+String(A)),this.device.gatt.disconnect(),A}})),A>23){let Q=A-3;(0,o.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(Q)}`),this.mtuSize=Q}return this.mtuSize})}exchange(A){return Ap(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>Ap(this,void 0,void 0,function*(){try{let Q=A.toString("hex");(0,o.c)("apdu",`=> ${Q}`);let B=yield x(this.notifyObservable.pipe(S),J(this.write,A,this.mtuSize)).toPromise(),C=B.toString("hex");return(0,o.c)("apdu",`<= ${C}`),B}catch(A){throw(0,o.c)("ble-error","exchange got "+String(A)),this.notYetDisconnected&&this.device.gatt.disconnect(),A}}))})}setScrambleKey(){}close(){return Ap(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}AF.isSupported=()=>Promise.resolve().then(Aa).then(()=>!0,()=>!1),AF.observeAvailability=A=>AN().subscribe(A),AF.list=()=>Promise.resolve([]),AF.disconnect=A=>Ap(void 0,void 0,void 0,function*(){(0,o.c)("ble-verbose",`user disconnect(${A})`);let Q=Ao[A];Q&&Q.device.gatt.disconnect()});var AS=AF},27748:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return K}});var C=B(97790),I=B(9341),E=B(48834).lW;let g={data:E.alloc(0),dataLength:0,sequence:0};var w=(A,Q)=>({makeBlocks(B){let C=E.concat([function(A){let Q=E.alloc(2);return Q.writeUInt16BE(A,0),Q}(B.length),B]),I=Q-5,g=Math.ceil(C.length/I);C=E.concat([C,E.alloc(g*I-C.length+1).fill(0)]);let w=[];for(let Q=0;Qw&&(C=C.slice(0,w)),{data:C,dataLength:w,sequence:D}},getReducedResult(A){if(A&&A.dataLength===A.data.length)return A.data}}),D=B(75102),M=B(91288),c=B(48834).lW,s=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let y=[{vendorId:D.An}],h=()=>{let{hid:A}=navigator;if(!A)throw new I.PS("navigator.hid is not supported","HIDNotSupported");return A};function k(){return s(this,void 0,void 0,function*(){let A=yield h().requestDevice({filters:y});return Array.isArray(A)?A:[A]})}function n(){return s(this,void 0,void 0,function*(){return(yield h().getDevices()).filter(A=>A.vendorId===D.An)})}class t extends C.ZP{constructor(A){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(A=>{this.inputCallback=A}),this.onInputReport=A=>{let Q=c.from(A.data.buffer);this.inputCallback?(this.inputCallback(Q),this.inputCallback=null):this.inputs.push(Q)},this._disconnectEmitted=!1,this._emitDisconnect=A=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",A))},this.exchange=A=>s(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>s(this,void 0,void 0,function*(){let Q,B;let{channel:C,packetSize:I}=this;(0,M.c)("apdu","=> "+A.toString("hex"));let E=w(C,I),g=E.makeBlocks(A);for(let A=0;A{if(A&&A.message&&A.message.includes("write"))throw this._emitDisconnect(A),new I.vs(A.message);throw A})}),this.device=A,this.deviceModel="number"==typeof A.productId?(0,D.Ht)(A.productId):void 0,A.addEventListener("inputreport",this.onInputReport)}static request(){return s(this,void 0,void 0,function*(){let[A]=yield k();return t.open(A)})}static openConnected(){return s(this,void 0,void 0,function*(){let A=yield n();return 0===A.length?null:t.open(A[0])})}static open(A){return s(this,void 0,void 0,function*(){yield A.open();let Q=new t(A),B=C=>{A===C.device&&(h().removeEventListener("disconnect",B),Q._emitDisconnect(new I.qX))};return h().addEventListener("disconnect",B),Q})}close(){return s(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}t.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),t.list=n,t.listen=A=>{let Q=!1;return(function(){return s(this,void 0,void 0,function*(){let A=yield n();return A.length>0?A[0]:(yield k())[0]})})().then(B=>{if(B){if(!Q){let Q="number"==typeof B.productId?(0,D.Ht)(B.productId):void 0;A.next({type:"add",descriptor:B,deviceModel:Q}),A.complete()}}else A.error(new I.FB("Access denied to use Ledger device"))},Q=>{A.error(new I.FB(Q.message))}),{unsubscribe:function(){Q=!0}}};var K=t},97790:function(A,Q,B){"use strict";var C=B(22699),I=B.n(C),E=B(9341),g=B(48834).lW,w=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};class D{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(I()),this.send=(A,Q,B,C,I=g.alloc(0),D=[E.WC.OK])=>w(this,void 0,void 0,function*(){if(I.length>=256)throw new E.PS("data.length exceed 256 bytes limit. Got: "+I.length,"DataLengthTooBig");let w=yield this.exchange(g.concat([g.from([A,Q,B,C]),g.from([I.length]),I])),M=w.readUInt16BE(w.length-2);if(!D.some(A=>A===M))throw new E.rZ(M);return w}),this.exchangeAtomicImpl=A=>w(this,void 0,void 0,function*(){let Q;if(this.exchangeBusyPromise)throw new E.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let B=new Promise(A=>{Q=A});this.exchangeBusyPromise=B;let C=!1,I=setTimeout(()=>{C=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let Q=yield A();return C&&this.emit("responsive"),Q}finally{clearTimeout(I),Q&&Q(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(A){throw Error("exchange not implemented")}exchangeBulk(A,Q){let B=!1;return w(this,void 0,void 0,function*(){if(!B)for(let C of A){let A=yield this.exchange(C);if(B)return;let I=A.readUInt16BE(A.length-2);if(I!==E.WC.OK)throw new E.rZ(I);Q.next(A)}}).then(()=>!B&&Q.complete(),A=>!B&&Q.error(A)),{unsubscribe:()=>{B=!0}}}setScrambleKey(A){}close(){return Promise.resolve()}on(A,Q){this._events.on(A,Q)}off(A,Q){this._events.removeListener(A,Q)}emit(A,...Q){this._events.emit(A,...Q)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(A){this.exchangeTimeout=A}setExchangeUnresponsiveTimeout(A){this.unresponsiveTimeout=A}static create(A=3e3,Q){return new Promise((B,C)=>{let I=!1,g=this.listen({next:Q=>{I=!0,g&&g.unsubscribe(),w&&clearTimeout(w),this.open(Q.descriptor,A).then(B,C)},error:A=>{w&&clearTimeout(w),C(A)},complete:()=>{w&&clearTimeout(w),I||C(new E.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),w=Q?setTimeout(()=>{g.unsubscribe(),C(new E.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},Q):null})}decorateAppAPIMethods(A,Q,B){for(let C of Q)A[C]=this.decorateAppAPIMethod(C,A[C],A,B)}decorateAppAPIMethod(A,Q,B,C){return(...I)=>w(this,void 0,void 0,function*(){let{_appAPIlock:g}=this;if(g)return Promise.reject(new E.PS("Ledger Device is busy (lock "+g+")","TransportLocked"));try{return this._appAPIlock=A,this.setScrambleKey(C),yield Q.apply(B,I)}finally{this._appAPIlock=null}})}}D.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",D.ErrorMessage_NoDeviceFound="No Ledger device found",Q.ZP=D},91288:function(A,Q,B){"use strict";B.d(Q,{c:function(){return E}});var C=0,I=[],E=function(A,Q,B){var E={type:A,id:String(++C),date:new Date};Q&&(E.message=Q),B&&(E.data=B),function(A){for(var Q=0;Q0&&I[I.length-1])&&(6===E[0]||2===E[0])){g=0;continue}if(3===E[0]&&(!I||E[1]>I[0]&&E[1] * @license MIT - */let C=B(95766),I=B(62333),E="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function g(A){if(A>2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');let Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return c(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);let B=0|k(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(R(A,Uint8Array)){let Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(R(A,ArrayBuffer)||A&&R(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(A,SharedArrayBuffer)||A&&R(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);let I=function(A){var Q;if(w.isBuffer(A)){let Q=0|h(A.length),B=g(Q);return 0===B.length||A.copy(B,0,0,Q),B}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function M(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function c(A){return M(A),g(A<0?0:0|h(A))}function s(A){let Q=A.length<0?0:0|h(A.length),B=g(Q);for(let C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function k(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||R(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;let I=!1;for(;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return f(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return d(A).length;default:if(I)return C?-1:f(A).length;Q=(""+Q).toLowerCase(),I=!0}}function n(A,Q,B){let I=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){let C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);let I="";for(let C=Q;C2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:L(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):L(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function L(A,Q,B,C,I){let E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function M(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){let C=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){let B=!0;for(let C=0;C239?4:Q>223?3:Q>191?2:1;if(I+g<=B){let B,C,w,D;switch(g){case 1:Q<128&&(E=Q);break;case 2:(192&(B=A[I+1]))==128&&(D=(31&Q)<<6|63&B)>127&&(E=D);break;case 3:B=A[I+1],C=A[I+2],(192&B)==128&&(192&C)==128&&(D=(15&Q)<<12|(63&B)<<6|63&C)>2047&&(D<55296||D>57343)&&(E=D);break;case 4:B=A[I+1],C=A[I+2],w=A[I+3],(192&B)==128&&(192&C)==128&&(192&w)==128&&(D=(15&Q)<<18|(63&B)<<12|(63&C)<<6|63&w)>65535&&D<1114112&&(E=D)}}null===E?(E=65533,g=1):E>65535&&(E-=65536,C.push(E>>>10&1023|55296),E=56320|1023&E),C.push(E),I+=g}return function(A){let Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);let B="",C=0;for(;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function p(A,Q,B,C,I){S(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,B}function r(A,Q,B,C,I){S(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B+7]=E,E>>=8,A[B+6]=E,E>>=8,A[B+5]=E,E>>=8,A[B+4]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B+3]=g,g>>=8,A[B+2]=g,g>>=8,A[B+1]=g,g>>=8,A[B]=g,B+8}function N(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function a(A,Q,B,C,E){return Q=+Q,B>>>=0,E||N(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function o(A,Q,B,C,E){return Q=+Q,B>>>=0,E||N(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.Buffer=w,Q.SlowBuffer=function(A){return+A!=A&&(A=0),w.alloc(+A)},Q.INSPECT_MAX_BYTES=50,Q.kMaxLength=2147483647,w.TYPED_ARRAY_SUPPORT=function(){try{let A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(M(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return c(A)},w.allocUnsafeSlow=function(A){return c(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),R(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;let B=A.length,C=Q.length;for(let I=0,E=Math.min(B,C);IC.length?(w.isBuffer(Q)||(Q=w.from(Q)),Q.copy(C,I)):Uint8Array.prototype.set.call(C,Q,I);else if(w.isBuffer(Q))Q.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=Q.length}return C},w.byteLength=k,w.prototype._isBuffer=!0,w.prototype.swap16=function(){let A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;let E=I-C,g=B-Q,D=Math.min(E,g),M=this.slice(C,I),c=A.slice(Q,B);for(let A=0;A>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let h=!1;for(;;)switch(C){case"hex":return function(A,Q,B,C){let I;B=Number(B)||0;let E=A.length-B;C?(C=Number(C))>E&&(C=E):C=E;let g=Q.length;for(C>g/2&&(C=g/2),I=0;I>8,I.push(B%256),I.push(C);return I}(A,this.length-c),this,c,s);default:if(h)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),h=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){let B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A+--Q],I=1;for(;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readBigUInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&H(A,this.length-8);let C=Q+256*this[++A]+65536*this[++A]+16777216*this[++A],I=this[++A]+256*this[++A]+65536*this[++A]+16777216*B;return BigInt(C)+(BigInt(I)<>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&H(A,this.length-8);let C=16777216*Q+65536*this[++A]+256*this[++A]+this[++A],I=16777216*this[++A]+65536*this[++A]+256*this[++A]+B;return(BigInt(C)<>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);let C=Q,I=1,E=this[A+--C];for(;C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readBigInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&H(A,this.length-8),(BigInt(this[A+4]+256*this[A+5]+65536*this[A+6]+(B<<24))<>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&H(A,this.length-8),(BigInt((Q<<24)+65536*this[++A]+256*this[++A]+this[++A])<>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=1,E=0;for(this[Q]=255&A;++E>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=B-1,E=1;for(this[Q+I]=255&A;--I>=0&&(E*=256);)this[Q+I]=A/E&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigUInt64LE=b(function(A,Q=0){return p(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=b(function(A,Q=0){return r(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=0,E=1,g=0;for(this[Q]=255&A;++I>0)-g&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=B-1,E=1,g=0;for(this[Q+I]=255&A;--I>=0&&(E*=256);)A<0&&0===g&&0!==this[Q+I+1]&&(g=1),this[Q+I]=(A/E>>0)-g&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigInt64LE=b(function(A,Q=0){return p(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=b(function(A,Q=0){return r(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeFloatLE=function(A,Q,B){return a(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return a(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return o(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return o(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I=C+4;B-=3)Q=`_${A.slice(B-3,B)}${Q}`;return`${A.slice(0,B)}${Q}`}function S(A,Q,B,C,I,E){if(A>B||A3?0===Q||Q===BigInt(0)?`>= 0${I} and < 2${I} ** ${(E+1)*8}${I}`:`>= -(2${I} ** ${(E+1)*8-1}${I}) and < 2 ** ${(E+1)*8-1}${I}`:`>= ${Q}${I} and <= ${B}${I}`,new e.ERR_OUT_OF_RANGE("value",C,A)}l(I,"offset"),(void 0===C[I]||void 0===C[I+E])&&H(I,C.length-(E+1))}function l(A,Q){if("number"!=typeof A)throw new e.ERR_INVALID_ARG_TYPE(Q,"number",A)}function H(A,Q,B){if(Math.floor(A)!==A)throw l(A,B),new e.ERR_OUT_OF_RANGE(B||"offset","an integer",A);if(Q<0)throw new e.ERR_BUFFER_OUT_OF_BOUNDS;throw new e.ERR_OUT_OF_RANGE(B||"offset",`>= ${B?1:0} and <= ${Q}`,A)}J("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(A,Q){return`The "${A}" argument must be of type number. Received type ${typeof Q}`},TypeError),J("ERR_OUT_OF_RANGE",function(A,Q,B){let C=`The value of "${A}" is out of range.`,I=B;return Number.isInteger(B)&&Math.abs(B)>4294967296?I=F(String(B)):"bigint"==typeof B&&(I=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(I=F(I)),I+="n"),C+=` It must be ${Q}. Received ${I}`},RangeError);let Y=/[^+/0-9A-Za-z-_]/g;function f(A,Q){let B;Q=Q||1/0;let C=A.length,I=null,E=[];for(let g=0;g55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function d(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function u(A,Q,B,C){let I;for(I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function R(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}let j=function(){let A="0123456789abcdef",Q=Array(256);for(let B=0;B<16;++B){let C=16*B;for(let I=0;I<16;++I)Q[C+I]=A[B]+A[I]}return Q}();function b(A){return"undefined"==typeof BigInt?m:A}function m(){throw Error("BigInt not supported")}},52180:function(A,Q){"use strict";var B,C=this&&this.__extends||(B=function(A,Q){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)},function(A,Q){function C(){this.constructor=A}B(A,Q),A.prototype=null===Q?Object.create(Q):(C.prototype=Q.prototype,new C)});Object.defineProperty(Q,"__esModule",{value:!0});var I=function(){function A(A){void 0===A&&(A="="),this._paddingCharacter=A}return A.prototype.encodedLength=function(A){return this._paddingCharacter?(A+2)/3*4|0:(8*A+5)/6|0},A.prototype.encode=function(A){for(var Q="",B=0;B>>18&63)+this._encodeByte(C>>>12&63)+this._encodeByte(C>>>6&63)+this._encodeByte(C>>>0&63)}var I=A.length-B;if(I>0){var C=A[B]<<16|(2===I?A[B+1]<<8:0);Q+=this._encodeByte(C>>>18&63)+this._encodeByte(C>>>12&63),2===I?Q+=this._encodeByte(C>>>6&63):Q+=this._paddingCharacter||"",Q+=this._paddingCharacter||""}return Q},A.prototype.maxDecodedLength=function(A){return this._paddingCharacter?A/4*3|0:(6*A+7)/8|0},A.prototype.decodedLength=function(A){return this.maxDecodedLength(A.length-this._getPaddingLength(A))},A.prototype.decode=function(A){if(0===A.length)return new Uint8Array(0);for(var Q=this._getPaddingLength(A),B=A.length-Q,C=new Uint8Array(this.maxDecodedLength(B)),I=0,E=0,g=0,w=0,D=0,M=0,c=0;E>>4,C[I++]=D<<4|M>>>2,C[I++]=M<<6|c,g|=256&w,g|=256&D,g|=256&M,g|=256&c;if(E>>4,g|=256&w,g|=256&D),E>>2,g|=256&M),E>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-15)+(62-A>>>8&3))},A.prototype._decodeChar=function(A){return 256+((42-A&A-44)>>>8&-256+A-43+62)+((46-A&A-48)>>>8&-256+A-47+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},A.prototype._getPaddingLength=function(A){var Q=0;if(this._paddingCharacter){for(var B=A.length-1;B>=0&&A[B]===this._paddingCharacter;B--)Q++;if(A.length<4||Q>2)throw Error("Base64Coder: incorrect padding")}return Q},A}();Q.Coder=I;var E=new I;Q.encode=function(A){return E.encode(A)},Q.decode=function(A){return E.decode(A)};var g=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return C(Q,A),Q.prototype._encodeByte=function(A){var Q=A;return String.fromCharCode(Q+=65+(25-A>>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-13)+(62-A>>>8&49))},Q.prototype._decodeChar=function(A){return 256+((44-A&A-46)>>>8&-256+A-45+62)+((94-A&A-96)>>>8&-256+A-95+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},Q}(I);Q.URLSafeCoder=g;var w=new g;Q.encodeURLSafe=function(A){return w.encode(A)},Q.decodeURLSafe=function(A){return w.decode(A)},Q.encodedLength=function(A){return E.encodedLength(A)},Q.maxDecodedLength=function(A){return E.maxDecodedLength(A)},Q.decodedLength=function(A){return E.decodedLength(A)}},99985:function(A,Q,B){"use strict";Q.Z=w;var C=g(B(13980)),I=g(B(2784)),E=g(B(23442));function g(A){return A&&A.__esModule?A:{default:A}}function w(A){var Q=A.captureDragArea,B=A.snapToPointer,C=A.children,g=A.dx,w=A.dy,D=A.height,M=A.onDragEnd,c=A.onDragMove,s=A.onDragStart,y=A.resetOnStart,h=A.width,k=A.x,n=A.y,K=A.isDragging,t=A.restrict,L=A.restrictToPath,U=(0,E.default)({resetOnStart:y,snapToPointer:void 0===B||B,onDragEnd:M,onDragMove:c,onDragStart:s,x:k,y:n,dx:g,dy:w,isDragging:K,restrict:t,restrictToPath:L});return I.default.createElement(I.default.Fragment,null,U.isDragging&&(void 0===Q||Q)&&I.default.createElement("rect",{width:h,height:D,onPointerDown:U.dragStart,onPointerMove:U.dragMove,onPointerUp:U.dragEnd,fill:"transparent"}),C(U))}w.propTypes={children:C.default.func.isRequired,width:C.default.number.isRequired,height:C.default.number.isRequired,captureDragArea:C.default.bool,isDragging:C.default.bool}},23442:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=void 0===A?{}:A,B=Q.resetOnStart,M=void 0!==B&&B,s=Q.snapToPointer,y=void 0===s||s,h=Q.onDragEnd,k=Q.onDragMove,n=Q.onDragStart,K=Q.x,t=Q.y,L=Q.dx,U=Q.dy,i=Q.isDragging,G=Q.restrict,p=void 0===G?{}:G,r=Q.restrictToPath,N=(0,C.useRef)({x:K,y:t,dx:L,dy:U}),a=(0,g.default)({x:K,y:t,dx:null!=L?L:0,dy:null!=U?U:0,isDragging:!1}),o=a[0],e=a[1],J=(0,C.useState)(new I.Point({x:0,y:0})),F=J[0],S=J[1];(0,C.useEffect)(function(){(N.current.x!==K||N.current.y!==t||N.current.dx!==L||N.current.dy!==U)&&(N.current={x:K,y:t,dx:L,dy:U},e(function(A){return c({},A,{x:K,y:t,dx:null!=L?L:0,dy:null!=U?U:0})}))}),(0,C.useEffect)(function(){void 0!==i&&o.isDragging!==i&&e(function(A){return c({},A,{isDragging:i})})},[o.isDragging,i,e]);var l=(0,D.default)(r),H=(0,C.useCallback)(function(A){A.persist(),e(function(Q){var B=Q.x,C=Q.y,g=Q.dx,D=Q.dy,c=new I.Point({x:((void 0===B?0:B)||0)+g,y:((void 0===C?0:C)||0)+D}),s=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),h=y?s:c,k=(0,w.default)(h,l,p);return S((0,I.subtractPoints)(c,s)),{isDragging:!0,dx:M?0:Q.dx,dy:M?0:Q.dy,x:M?k.x:k.x-Q.dx,y:M?k.y:k.y-Q.dy}},n&&function(Q){n(c({},Q,{event:A}))})},[n,M,p,l,e,y]),Y=(0,C.useCallback)(function(A){A.persist(),e(function(Q){if(!Q.isDragging)return Q;var B=Q.x,C=Q.y,g=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),D=y?g:(0,I.sumPoints)(g,F),M=(0,w.default)(D,l,p);return c({},Q,{dx:M.x-(void 0===B?0:B),dy:M.y-(void 0===C?0:C)})},k&&function(Q){Q.isDragging&&k(c({},Q,{event:A}))})},[e,k,y,F,l,p]),f=(0,C.useCallback)(function(A){A.persist(),e(function(A){return c({},A,{isDragging:!1})},h&&function(Q){h(c({},Q,{event:A}))})},[h,e]);return c({},o,{dragEnd:f,dragMove:Y,dragStart:H})};var C=B(2784),I=B(61305),E=B(65319),g=M(B(37016)),w=M(B(60890)),D=M(B(32722));function M(A){return A&&A.__esModule?A:{default:A}}function c(){return(c=Object.assign?Object.assign.bind():function(A){for(var Q=1;QA.length)&&(Q=A.length);for(var B=0,C=Array(Q);B=A.length?{done:!0}:{done:!1,value:A[I++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Q);!(C=g()).done;){var w=C.value,D=Math.sqrt(Math.pow(w.x-A.x,2)+Math.pow(w.y-A.y,2));D0)?(0,I.default)(A,Q):{x:(0,C.default)(A.x,null!=(E=B.xMin)?E:-1/0,null!=(g=B.xMax)?g:1/0),y:(0,C.default)(A.y,null!=(w=B.yMin)?w:-1/0,null!=(D=B.yMax)?D:1/0)}};var C=E(B(30968)),I=E(B(98929));function E(A){return A&&A.__esModule?A:{default:A}}},32722:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){return(0,C.useMemo)(function(){if(!A)return[];var Q=A.getCTM()||new DOMMatrix;return function(A,Q,B){if(void 0===B&&(B=1),!A)return[];for(var C=[],I=A.getTotalLength(),E=0;E<=I;E+=B){var g=A.getPointAtLength(E).matrixTransform(Q);C.push(g)}return C}(A,Q)},[null==A?void 0:A.getTotalLength()])};var C=B(2784)},37016:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=(0,C.useState)(A),B=Q[0],I=Q[1],E=(0,C.useRef)(null),g=(0,C.useCallback)(function(A,Q){E.current=Q||null,I(A)},[I]);return(0,C.useLayoutEffect)(function(){E.current&&(E.current(B),E.current=null)},[B]),[B,g]};var C=B(2784)},65319:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{localPoint:function(){return C.Z},touchPoint:function(){return I.Z}});var C=B(91032),I=B(49833)},91032:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return E}});var C=B(49833),I=B(44321);function E(A,Q){if((0,I.kK)(A)&&Q)return(0,C.Z)(A,Q);if((0,I.cO)(A)){var B=A.target;if(B)return(0,C.Z)(B,A)}return null}},49833:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return w}});var C=B(19067),I=B(44321);function E(){return(E=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q0?{x:A.changedTouches[0].clientX,y:A.changedTouches[0].clientY}:E({},g);if((0,I.N5)(A))return{x:A.clientX,y:A.clientY};var Q=null==A?void 0:A.target,B=Q&&"getBoundingClientRect"in Q?Q.getBoundingClientRect():null;return B?{x:B.x+B.width/2,y:B.y+B.height/2}:E({},g)}(Q),w=(0,I.vZ)(A)?A.ownerSVGElement:A,D=(0,I.DY)(w)?w.getScreenCTM():null;if((0,I.r4)(w)&&D){var M=w.createSVGPoint();return M.x=B.x,M.y=B.y,M=M.matrixTransform(D.inverse()),new C.Z({x:M.x,y:M.y})}var c=A.getBoundingClientRect();return new C.Z({x:B.x-c.left-A.clientLeft,y:B.y-c.top-A.clientTop})}},44321:function(A,Q,B){"use strict";function C(A){return!!A&&A instanceof Element}function I(A){return!!A&&(A instanceof SVGElement||"ownerSVGElement"in A)}function E(A){return!!A&&"createSVGPoint"in A}function g(A){return!!A&&"getScreenCTM"in A}function w(A){return!!A&&"changedTouches"in A}function D(A){return!!A&&"clientX"in A}function M(A){return!!A&&(A instanceof Event||"nativeEvent"in A&&A.nativeEvent instanceof Event)}B.d(Q,{DY:function(){return g},N5:function(){return D},cO:function(){return M},kK:function(){return C},r4:function(){return E},vZ:function(){return I},z6:function(){return w}})},19067:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return C}});var C=function(){function A(A){var Q=A.x,B=A.y;this.x=0,this.y=0,this.x=void 0===Q?0:Q,this.y=void 0===B?0:B}var Q=A.prototype;return Q.value=function(){return{x:this.x,y:this.y}},Q.toArray=function(){return[this.x,this.y]},A}()},61305:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{Point:function(){return C.Z},subtractPoints:function(){return E},sumPoints:function(){return I}});var C=B(19067);function I(A,Q){return new C.Z({x:A.x+Q.x,y:A.y+Q.y})}function E(A,Q){return new C.Z({x:A.x-Q.x,y:A.y-Q.y})}},47440:function(A,Q,B){"use strict";Q.Z=function(A){var Q=A.from,B=void 0===Q?{x:0,y:0}:Q,g=A.to,D=void 0===g?{x:1,y:1}:g,M=A.fill,c=A.className,s=A.innerRef,y=function(A,Q){if(null==A)return{};var B,C,I={},E=Object.keys(A);for(C=0;C=0||(I[B]=A[B]);return I}(A,E),h=B.x===D.x||B.y===D.y;return C.default.createElement("line",w({ref:s,className:(0,I.default)("visx-line",c),x1:B.x,y1:B.y,x2:D.x,y2:D.y,fill:void 0===M?"transparent":M,shapeRendering:h?"crispEdges":"auto"},y))};var C=g(B(2784)),I=g(B(72779)),E=["from","to","fill","className","innerRef"];function g(A){return A&&A.__esModule?A:{default:A}}function w(){return(w=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q=200&&A<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};E.forEach(["delete","get","head"],function(A){y.headers[A]={}}),E.forEach(["post","put","patch"],function(A){y.headers[A]=E.merge(c)}),A.exports=y},98560:function(A){"use strict";A.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(A){A.exports={version:"0.27.2"}},73644:function(A){"use strict";A.exports=function(A,Q){return function(){for(var B=Array(arguments.length),C=0;C=0)&&("set-cookie"===Q?g[Q]=(g[Q]?g[Q]:[]).concat([B]):g[Q]=g[Q]?g[Q]+", "+B:B)}),g}},10738:function(A){"use strict";A.exports=function(A){var Q=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return Q&&Q[1]||""}},70783:function(A){"use strict";A.exports=function(A){return function(Q){return A.apply(null,Q)}}},49027:function(A,Q,B){"use strict";var C=B(48834).lW,I=B(93044);A.exports=function(A,Q){Q=Q||new FormData;var B=[];function E(A){return null===A?"":I.isDate(A)?A.toISOString():I.isArrayBuffer(A)||I.isTypedArray(A)?"function"==typeof Blob?new Blob([A]):C.from(A):A}return!function A(C,g){if(I.isPlainObject(C)||I.isArray(C)){if(-1!==B.indexOf(C))throw Error("Circular reference detected in "+g);B.push(C),I.forEach(C,function(B,C){if(!I.isUndefined(B)){var w,D=g?g+"."+C:C;if(B&&!g&&"object"==typeof B){if(I.endsWith(C,"{}"))B=JSON.stringify(B);else if(I.endsWith(C,"[]")&&(w=I.toArray(B))){w.forEach(function(A){I.isUndefined(A)||Q.append(D,E(A))});return}}A(B,D)}}),B.pop()}else Q.append(g,E(C))}(A),Q}},17525:function(A,Q,B){"use strict";var C=B(29241).version,I=B(21218),E={};["object","boolean","number","function","string","symbol"].forEach(function(A,Q){E[A]=function(B){return typeof B===A||"a"+(Q<1?"n ":" ")+A}});var g={};E.transitional=function(A,Q,B){function E(A,Q){return"[Axios v"+C+"] Transitional option '"+A+"'"+Q+(B?". "+B:"")}return function(B,C,w){if(!1===A)throw new I(E(C," has been removed"+(Q?" in "+Q:"")),I.ERR_DEPRECATED);return Q&&!g[C]&&(g[C]=!0,console.warn(E(C," has been deprecated since v"+Q+" and will be removed in the near future"))),!A||A(B,C,w)}},A.exports={assertOptions:function(A,Q,B){if("object"!=typeof A)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);for(var C=Object.keys(A),E=C.length;E-- >0;){var g=C[E],w=Q[g];if(w){var D=A[g],M=void 0===D||w(D,g,A);if(!0!==M)throw new I("option "+g+" must be "+M,I.ERR_BAD_OPTION_VALUE);continue}if(!0!==B)throw new I("Unknown option "+g,I.ERR_BAD_OPTION)}},validators:E}},93044:function(A,Q,B){"use strict";var C,I,E=B(73644),g=Object.prototype.toString,w=(C=Object.create(null),function(A){var Q=g.call(A);return C[Q]||(C[Q]=Q.slice(8,-1).toLowerCase())});function D(A){return A=A.toLowerCase(),function(Q){return w(Q)===A}}function M(A){return Array.isArray(A)}function c(A){return void 0===A}var s=D("ArrayBuffer");function y(A){return null!==A&&"object"==typeof A}function h(A){if("object"!==w(A))return!1;var Q=Object.getPrototypeOf(A);return null===Q||Q===Object.prototype}var k=D("Date"),n=D("File"),K=D("Blob"),t=D("FileList");function L(A){return"[object Function]"===g.call(A)}var U=D("URLSearchParams");function i(A,Q){if(null!=A){if("object"!=typeof A&&(A=[A]),M(A))for(var B=0,C=A.length;B0;)g[E=C[I]]||(Q[E]=A[E],g[E]=!0);A=Object.getPrototypeOf(A)}while(A&&(!B||B(A,Q))&&A!==Object.prototype);return Q},kindOf:w,kindOfTest:D,endsWith:function(A,Q,B){A=String(A),(void 0===B||B>A.length)&&(B=A.length),B-=Q.length;var C=A.indexOf(Q,B);return -1!==C&&C===B},toArray:function(A){if(!A)return null;var Q=A.length;if(c(Q))return null;for(var B=Array(Q);Q-- >0;)B[Q]=A[Q];return B},isTypedArray:G,isFileList:t}},82294:function(A){"use strict";function Q(A,Q,I){A instanceof RegExp&&(A=B(A,I)),Q instanceof RegExp&&(Q=B(Q,I));var E=C(A,Q,I);return E&&{start:E[0],end:E[1],pre:I.slice(0,E[0]),body:I.slice(E[0]+A.length,E[1]),post:I.slice(E[1]+Q.length)}}function B(A,Q){var B=Q.match(A);return B?B[0]:null}function C(A,Q,B){var C,I,E,g,w,D=B.indexOf(A),M=B.indexOf(Q,D+1),c=D;if(D>=0&&M>0){if(A===Q)return[D,M];for(C=[],E=B.length;c>=0&&!w;)c==D?(C.push(c),D=B.indexOf(A,c+1)):1==C.length?w=[C.pop(),M]:((I=C.pop())=0?D:M;C.length&&(w=[E,g])}return w}A.exports=Q,Q.range=C},95766:function(A,Q){"use strict";Q.byteLength=function(A){var Q=D(A),B=Q[0],C=Q[1];return(B+C)*3/4-C},Q.toByteArray=function(A){var Q,B,E=D(A),g=E[0],w=E[1],M=new I((g+w)*3/4-w),c=0,s=w>0?g-4:g;for(B=0;B>16&255,M[c++]=Q>>8&255,M[c++]=255&Q;return 2===w&&(Q=C[A.charCodeAt(B)]<<2|C[A.charCodeAt(B+1)]>>4,M[c++]=255&Q),1===w&&(Q=C[A.charCodeAt(B)]<<10|C[A.charCodeAt(B+1)]<<4|C[A.charCodeAt(B+2)]>>2,M[c++]=Q>>8&255,M[c++]=255&Q),M},Q.fromByteArray=function(A){for(var Q,C=A.length,I=C%3,E=[],g=0,w=C-I;g>18&63]+B[I>>12&63]+B[I>>6&63]+B[63&I]);return E.join("")}(A,g,g+16383>w?w:g+16383));return 1===I?E.push(B[(Q=A[C-1])>>2]+B[Q<<4&63]+"=="):2===I&&E.push(B[(Q=(A[C-2]<<8)+A[C-1])>>10]+B[Q>>4&63]+B[Q<<2&63]+"="),E.join("")};for(var B=[],C=[],I="undefined"!=typeof Uint8Array?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,w=E.length;g0)throw Error("Invalid string. Length must be a multiple of 4");var B=A.indexOf("=");-1===B&&(B=Q);var C=B===Q?0:4-B%4;return[B,C]}C["-".charCodeAt(0)]=62,C["_".charCodeAt(0)]=63},6391:function(A,Q,B){var C;!function(I){"use strict";var E,g=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,w=Math.ceil,D=Math.floor,M="[BigNumber Error] ",c=M+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function y(A){var Q=0|A;return A>0||A===Q?Q:Q-1}function h(A){for(var Q,B,C=1,I=A.length,E=A[0]+"";CM^B?1:-1;for(g=0,w=(D=I.length)<(M=E.length)?D:M;gE[g]^B?1:-1;return D==M?0:D>M^B?1:-1}function n(A,Q,B,C){if(AB||A!==D(A))throw Error(M+(C||"Argument")+("number"==typeof A?AB?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function K(A){var Q=A.c.length-1;return y(A.e/14)==Q&&A.c[Q]%2!=0}function t(A,Q){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(Q<0?"e":"e+")+Q}function L(A,Q,B){var C,I;if(Q<0){for(I=B+".";++Q;I+=B);A=I+A}else if(C=A.length,++Q>C){for(I=B,Q-=C;--Q;I+=B);A+=I}else Ql?h.c=h.e=null:A.e=10;w/=10,E++);E>l?h.c=h.e=null:(h.e=E,h.c=[A]);return}y=String(A)}else{if(!g.test(y=String(A)))return r(h,y,M);h.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(E=y.indexOf("."))>-1&&(y=y.replace(".","")),(w=y.search(/e/i))>0?(E<0&&(E=w),E+=+y.slice(w+1),y=y.substring(0,w)):E<0&&(E=y.length)}else{if(n(Q,2,u.length,"Base"),10==Q&&R)return Z(h=new j(A),o+h.e+1,e);if(y=String(A),M="number"==typeof A){if(0*A!=0)return r(h,y,M,Q);if(h.s=1/A<0?(y=y.slice(1),-1):1,j.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(c+A)}else h.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(B=u.slice(0,Q),E=w=0,s=y.length;wB.indexOf(C=y.charAt(w))){if("."==C){if(w>E){E=s;continue}}else if(!I&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){I=!0,w=-1,E=0;continue}return r(h,String(A),M,Q)}M=!1,(E=(y=p(y,Q,10,h.s)).indexOf("."))>-1?y=y.replace(".",""):E=y.length}for(w=0;48===y.charCodeAt(w);w++);for(s=y.length;48===y.charCodeAt(--s););if(y=y.slice(w,++s)){if(s-=w,M&&j.DEBUG&&s>15&&(A>9007199254740991||A!==D(A)))throw Error(c+h.s*A);if((E=E-w-1)>l)h.c=h.e=null;else if(E=F)?t(D,g):L(D,g,"0");else if(E=(A=Z(new j(A),Q,B)).e,w=(D=h(A.c)).length,1==C||2==C&&(Q<=E||E<=J)){for(;ww){if(--Q>0)for(D+=".";Q--;D+="0");}else if((Q+=E-w)>0)for(E+1==w&&(D+=".");Q--;D+="0");return A.s<0&&I?"-"+D:D}function m(A,Q){for(var B,C=1,I=new j(A[0]);C=10;I/=10,C++);return(B=C+14*B-1)>l?A.c=A.e=null:B=10;M/=10,I++);if((E=Q-I)<0)E+=14,g=Q,h=(c=k[y=0])/s[I-g-1]%10|0;else if((y=w((E+1)/14))>=k.length){if(C){for(;k.length<=y;k.push(0));c=h=0,I=1,E%=14,g=E-14+1}else break A}else{for(I=1,c=M=k[y];M>=10;M/=10,I++);E%=14,h=(g=E-14+I)<0?0:c/s[I-g-1]%10|0}if(C=C||Q<0||null!=k[y+1]||(g<0?c:c%s[I-g-1]),C=B<4?(h||C)&&(0==B||B==(A.s<0?3:2)):h>5||5==h&&(4==B||C||6==B&&(E>0?g>0?c/s[I-g]:0:k[y-1])%10&1||B==(A.s<0?8:7)),Q<1||!k[0])return k.length=0,C?(Q-=A.e+1,k[0]=s[(14-Q%14)%14],A.e=-Q||0):k[0]=A.e=0,A;if(0==E?(k.length=y,M=1,y--):(k.length=y+1,M=s[14-E],k[y]=g>0?D(c/s[I-g]%s[g])*M:0),C)for(;;){if(0==y){for(E=1,g=k[0];g>=10;g/=10,E++);for(g=k[0]+=M,M=1;g>=10;g/=10,M++);E!=M&&(A.e++,1e14==k[0]&&(k[0]=1));break}if(k[y]+=M,1e14!=k[y])break;k[y--]=0,M=1}for(E=k.length;0===k[--E];k.pop());}A.e>l?A.c=A.e=null:A.e=F?t(Q,B):L(Q,B,"0"),A.s<0?"-"+Q:Q)}return j.clone=A,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(A){var Q,B;if(null!=A){if("object"==typeof A){if(A.hasOwnProperty(Q="DECIMAL_PLACES")&&(n(B=A[Q],0,1e9,Q),o=B),A.hasOwnProperty(Q="ROUNDING_MODE")&&(n(B=A[Q],0,8,Q),e=B),A.hasOwnProperty(Q="EXPONENTIAL_AT")&&((B=A[Q])&&B.pop?(n(B[0],-1e9,0,Q),n(B[1],0,1e9,Q),J=B[0],F=B[1]):(n(B,-1e9,1e9,Q),J=-(F=B<0?-B:B))),A.hasOwnProperty(Q="RANGE")){if((B=A[Q])&&B.pop)n(B[0],-1e9,-1,Q),n(B[1],1,1e9,Q),S=B[0],l=B[1];else if(n(B,-1e9,1e9,Q),B)S=-(l=B<0?-B:B);else throw Error(M+Q+" cannot be zero: "+B)}if(A.hasOwnProperty(Q="CRYPTO")){if(!!(B=A[Q])===B){if(B){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))H=B;else throw H=!B,Error(M+"crypto unavailable")}else H=B}else throw Error(M+Q+" not true or false: "+B)}if(A.hasOwnProperty(Q="MODULO_MODE")&&(n(B=A[Q],0,9,Q),Y=B),A.hasOwnProperty(Q="POW_PRECISION")&&(n(B=A[Q],0,1e9,Q),f=B),A.hasOwnProperty(Q="FORMAT")){if("object"==typeof(B=A[Q]))d=B;else throw Error(M+Q+" not an object: "+B)}if(A.hasOwnProperty(Q="ALPHABET")){if("string"!=typeof(B=A[Q])||/^.?$|[+\-.\s]|(.).*\1/.test(B))throw Error(M+Q+" invalid: "+B);R="0123456789"==B.slice(0,10),u=B}}else throw Error(M+"Object expected: "+A)}return{DECIMAL_PLACES:o,ROUNDING_MODE:e,EXPONENTIAL_AT:[J,F],RANGE:[S,l],CRYPTO:H,MODULO_MODE:Y,POW_PRECISION:f,FORMAT:d,ALPHABET:u}},j.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!j.DEBUG)return!0;var Q,B,C=A.c,I=A.e,E=A.s;A:if("[object Array]"==({}).toString.call(C)){if((1===E||-1===E)&&I>=-1e9&&I<=1e9&&I===D(I)){if(0===C[0]){if(0===I&&1===C.length)return!0;break A}if((Q=(I+1)%14)<1&&(Q+=14),String(C[0]).length==Q){for(Q=0;Q=1e14||B!==D(B))break A;if(0!==B)return!0}}}else if(null===C&&null===I&&(null===E||1===E||-1===E))return!0;throw Error(M+"Invalid BigNumber: "+A)},j.maximum=j.max=function(){return m(arguments,N.lt)},j.minimum=j.min=function(){return m(arguments,N.gt)},j.random=(B=9007199254740992*Math.random()&2097151?function(){return D(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(A){var Q,C,I,E,g,c=0,y=[],h=new j(a);if(null==A?A=o:n(A,0,1e9),E=w(A/14),H){if(crypto.getRandomValues){for(Q=crypto.getRandomValues(new Uint32Array(E*=2));c>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),Q[c]=C[0],Q[c+1]=C[1]):(y.push(g%1e14),c+=2);c=E/2}else if(crypto.randomBytes){for(Q=crypto.randomBytes(E*=7);c=9e15?crypto.randomBytes(7).copy(Q,c):(y.push(g%1e14),c+=7);c=E/7}else throw H=!1,Error(M+"crypto unavailable")}if(!H)for(;c=10;g/=10,c++);c<14&&(I-=14-c)}return h.e=I,h.c=y,h}),j.sum=function(){for(var A=1,Q=arguments,B=new j(Q[0]);AB-1&&(null==g[I+1]&&(g[I+1]=0),g[I+1]+=g[I]/B|0,g[I]%=B)}return g.reverse()}return function(B,C,I,E,g){var w,D,M,c,s,y,k,n,K=B.indexOf("."),t=o,U=e;for(K>=0&&(c=f,f=0,B=B.replace(".",""),y=(n=new j(C)).pow(B.length-K),f=c,n.c=Q(L(h(y.c),y.e,"0"),10,I,A),n.e=n.c.length),M=c=(k=Q(B,C,I,g?(w=u,A):(w=A,u))).length;0==k[--c];k.pop());if(!k[0])return w.charAt(0);if(K<0?--M:(y.c=k,y.e=M,y.s=E,k=(y=G(y,n,t,U,I)).c,s=y.r,M=y.e),K=k[D=M+t+1],c=I/2,s=s||D<0||null!=k[D+1],s=U<4?(null!=K||s)&&(0==U||U==(y.s<0?3:2)):K>c||K==c&&(4==U||s||6==U&&1&k[D-1]||U==(y.s<0?8:7)),D<1||!k[0])B=s?L(w.charAt(1),-t,w.charAt(0)):w.charAt(0);else{if(k.length=D,s)for(--I;++k[--D]>I;)k[D]=0,D||(++M,k=[1].concat(k));for(c=k.length;!k[--c];);for(K=0,B="";K<=c;B+=w.charAt(k[K++]));B=L(B,M,w.charAt(0))}return B}}(),G=function(){function A(A,Q,B){var C,I,E,g,w=0,D=A.length,M=Q%1e7,c=Q/1e7|0;for(A=A.slice();D--;)C=c*(E=A[D]%1e7)+(g=A[D]/1e7|0)*M,w=((I=M*E+C%1e7*1e7+w)/B|0)+(C/1e7|0)+c*g,A[D]=I%B;return w&&(A=[w].concat(A)),A}function Q(A,Q,B,C){var I,E;if(B!=C)E=B>C?1:-1;else for(I=E=0;IQ[I]?1:-1;break}return E}function B(A,Q,B,C){for(var I=0;B--;)A[B]-=I,I=A[B]1;A.splice(0,1));}return function(C,I,E,g,w){var M,c,s,h,k,n,K,t,L,U,i,G,p,r,N,a,o,e=C.s==I.s?1:-1,J=C.c,F=I.c;if(!J||!J[0]||!F||!F[0])return new j(C.s&&I.s&&(J?!F||J[0]!=F[0]:F)?J&&0==J[0]||!F?0*e:e/0:NaN);for(L=(t=new j(e)).c=[],e=E+(c=C.e-I.e)+1,w||(w=1e14,c=y(C.e/14)-y(I.e/14),e=e/14|0),s=0;F[s]==(J[s]||0);s++);if(F[s]>(J[s]||0)&&c--,e<0)L.push(1),h=!0;else{for(r=J.length,a=F.length,s=0,e+=2,(k=D(w/(F[0]+1)))>1&&(F=A(F,k,w),J=A(J,k,w),a=F.length,r=J.length),p=a,i=(U=J.slice(0,a)).length;i=w/2&&N++;do{if(k=0,(M=Q(F,U,a,i))<0){if(G=U[0],a!=i&&(G=G*w+(U[1]||0)),(k=D(G/N))>1)for(k>=w&&(k=w-1),K=(n=A(F,k,w)).length,i=U.length;1==Q(n,U,K,i);)k--,B(n,aQ(F,U,a,i);)k++,B(U,a=10;e/=10,s++);Z(t,E+(t.e=s+14*c-1)+1,g,h)}else t.e=c,t.r=+h;return t}}(),C=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,E=/^\.([^.]+)$/,U=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(A,Q,B,g){var w,D=B?Q:Q.replace(i,"");if(U.test(D))A.s=isNaN(D)?null:D<0?-1:1;else{if(!B&&(D=D.replace(C,function(A,Q,B){return w="x"==(B=B.toLowerCase())?16:"b"==B?2:8,g&&g!=w?A:Q}),g&&(w=g,D=D.replace(I,"$1").replace(E,"0.$1")),Q!=D))return new j(D,w);if(j.DEBUG)throw Error(M+"Not a"+(g?" base "+g:"")+" number: "+Q);A.s=null}A.c=A.e=null},N.absoluteValue=N.abs=function(){var A=new j(this);return A.s<0&&(A.s=1),A},N.comparedTo=function(A,Q){return k(this,new j(A,Q))},N.decimalPlaces=N.dp=function(A,Q){var B,C,I;if(null!=A)return n(A,0,1e9),null==Q?Q=e:n(Q,0,8),Z(new j(this),A+this.e+1,Q);if(!(B=this.c))return null;if(C=((I=B.length-1)-y(this.e/14))*14,I=B[I])for(;I%10==0;I/=10,C--);return C<0&&(C=0),C},N.dividedBy=N.div=function(A,Q){return G(this,new j(A,Q),o,e)},N.dividedToIntegerBy=N.idiv=function(A,Q){return G(this,new j(A,Q),0,1)},N.exponentiatedBy=N.pow=function(A,Q){var B,C,I,E,g,c,s,y,h,k=this;if((A=new j(A)).c&&!A.isInteger())throw Error(M+"Exponent not an integer: "+O(A));if(null!=Q&&(Q=new j(Q)),c=A.e>14,!k.c||!k.c[0]||1==k.c[0]&&!k.e&&1==k.c.length||!A.c||!A.c[0])return h=new j(Math.pow(+O(k),c?2-K(A):+O(A))),Q?h.mod(Q):h;if(s=A.s<0,Q){if(Q.c?!Q.c[0]:!Q.s)return new j(NaN);(C=!s&&k.isInteger()&&Q.isInteger())&&(k=k.mod(Q))}else{if(A.e>9&&(k.e>0||k.e<-1||(0==k.e?k.c[0]>1||c&&k.c[1]>=24e7:k.c[0]<8e13||c&&k.c[0]<=9999975e7)))return E=k.s<0&&K(A)?-0:0,k.e>-1&&(E=1/E),new j(s?1/E:E);f&&(E=w(f/14+2))}for(c?(B=new j(.5),s&&(A.s=1),y=K(A)):y=(I=Math.abs(+O(A)))%2,h=new j(a);;){if(y){if(!(h=h.times(k)).c)break;E?h.c.length>E&&(h.c.length=E):C&&(h=h.mod(Q))}if(I){if(0===(I=D(I/2)))break;y=I%2}else if(Z(A=A.times(B),A.e+1,1),A.e>14)y=K(A);else{if(0==(I=+O(A)))break;y=I%2}k=k.times(k),E?k.c&&k.c.length>E&&(k.c.length=E):C&&(k=k.mod(Q))}return C?h:(s&&(h=a.div(h)),Q?h.mod(Q):E?Z(h,f,e,g):h)},N.integerValue=function(A){var Q=new j(this);return null==A?A=e:n(A,0,8),Z(Q,Q.e+1,A)},N.isEqualTo=N.eq=function(A,Q){return 0===k(this,new j(A,Q))},N.isFinite=function(){return!!this.c},N.isGreaterThan=N.gt=function(A,Q){return k(this,new j(A,Q))>0},N.isGreaterThanOrEqualTo=N.gte=function(A,Q){return 1===(Q=k(this,new j(A,Q)))||0===Q},N.isInteger=function(){return!!this.c&&y(this.e/14)>this.c.length-2},N.isLessThan=N.lt=function(A,Q){return 0>k(this,new j(A,Q))},N.isLessThanOrEqualTo=N.lte=function(A,Q){return -1===(Q=k(this,new j(A,Q)))||0===Q},N.isNaN=function(){return!this.s},N.isNegative=function(){return this.s<0},N.isPositive=function(){return this.s>0},N.isZero=function(){return!!this.c&&0==this.c[0]},N.minus=function(A,Q){var B,C,I,E,g=this.s;if(Q=(A=new j(A,Q)).s,!g||!Q)return new j(NaN);if(g!=Q)return A.s=-Q,this.plus(A);var w=this.e/14,D=A.e/14,M=this.c,c=A.c;if(!w||!D){if(!M||!c)return M?(A.s=-Q,A):new j(c?this:NaN);if(!M[0]||!c[0])return c[0]?(A.s=-Q,A):new j(M[0]?this:3==e?-0:0)}if(w=y(w),D=y(D),M=M.slice(),g=w-D){for((E=g<0)?(g=-g,I=M):(D=w,I=c),I.reverse(),Q=g;Q--;I.push(0));I.reverse()}else for(C=(E=(g=M.length)<(Q=c.length))?g:Q,g=Q=0;Q0)for(;Q--;M[B++]=0);for(Q=1e14-1;C>g;){if(M[--C]=0;){for(B=0,h=t[I]%1e7,k=t[I]/1e7|0,E=I+(g=D);E>I;)w=k*(M=K[--g]%1e7)+(c=K[g]/1e7|0)*h,B=((M=h*M+w%1e7*1e7+n[E]+B)/1e14|0)+(w/1e7|0)+k*c,n[E--]=M%1e14;n[E]=B}return B?++C:n.splice(0,1),T(A,n,C)},N.negated=function(){var A=new j(this);return A.s=-A.s||null,A},N.plus=function(A,Q){var B,C=this.s;if(Q=(A=new j(A,Q)).s,!C||!Q)return new j(NaN);if(C!=Q)return A.s=-Q,this.minus(A);var I=this.e/14,E=A.e/14,g=this.c,w=A.c;if(!I||!E){if(!g||!w)return new j(C/0);if(!g[0]||!w[0])return w[0]?A:new j(g[0]?this:0*C)}if(I=y(I),E=y(E),g=g.slice(),C=I-E){for(C>0?(E=I,B=w):(C=-C,B=g),B.reverse();C--;B.push(0));B.reverse()}for((C=g.length)-(Q=w.length)<0&&(B=w,w=g,g=B,Q=C),C=0;Q;)C=(g[--Q]=g[Q]+w[Q]+C)/1e14|0,g[Q]=1e14===g[Q]?0:g[Q]%1e14;return C&&(g=[C].concat(g),++E),T(A,g,E)},N.precision=N.sd=function(A,Q){var B,C,I;if(null!=A&&!!A!==A)return n(A,1,1e9),null==Q?Q=e:n(Q,0,8),Z(new j(this),A,Q);if(!(B=this.c))return null;if(C=14*(I=B.length-1)+1,I=B[I]){for(;I%10==0;I/=10,C--);for(I=B[0];I>=10;I/=10,C++);}return A&&this.e+1>C&&(C=this.e+1),C},N.shiftedBy=function(A){return n(A,-9007199254740991,9007199254740991),this.times("1e"+A)},N.squareRoot=N.sqrt=function(){var A,Q,B,C,I,E=this.c,g=this.s,w=this.e,D=o+4,M=new j("0.5");if(1!==g||!E||!E[0])return new j(!g||g<0&&(!E||E[0])?NaN:E?this:1/0);if(0==(g=Math.sqrt(+O(this)))||g==1/0?(((Q=h(E)).length+w)%2==0&&(Q+="0"),g=Math.sqrt(+Q),w=y((w+1)/2)-(w<0||w%2),B=new j(Q=g==1/0?"5e"+w:(Q=g.toExponential()).slice(0,Q.indexOf("e")+1)+w)):B=new j(g+""),B.c[0]){for((g=(w=B.e)+D)<3&&(g=0);;)if(I=B,B=M.times(I.plus(G(this,I,D,1))),h(I.c).slice(0,g)===(Q=h(B.c)).slice(0,g)){if(B.e0&&k>0){for(I=k%g||g,c=h.substr(0,I);I0&&(c+=D+h.slice(I)),y&&(c="-"+c)}C=s?c+(B.decimalSeparator||"")+((w=+B.fractionGroupSize)?s.replace(RegExp("\\d{"+w+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):s):c}return(B.prefix||"")+C+(B.suffix||"")},N.toFraction=function(A){var Q,B,C,I,E,g,w,D,c,y,k,n,K=this.c;if(null!=A&&(!(w=new j(A)).isInteger()&&(w.c||1!==w.s)||w.lt(a)))throw Error(M+"Argument "+(w.isInteger()?"out of range: ":"not an integer: ")+O(w));if(!K)return new j(this);for(Q=new j(a),c=B=new j(a),C=D=new j(a),n=h(K),E=Q.e=n.length-this.e-1,Q.c[0]=s[(g=E%14)<0?14+g:g],A=!A||w.comparedTo(Q)>0?E>0?Q:c:w,g=l,l=1/0,w=new j(n),D.c[0]=0;y=G(w,Q,0,1),1!=(I=B.plus(y.times(C))).comparedTo(A);)B=C,C=I,c=D.plus(y.times(I=c)),D=I,Q=w.minus(y.times(I=Q)),w=I;return I=G(A.minus(B),C,0,1),D=D.plus(I.times(c)),B=B.plus(I.times(C)),D.s=c.s=this.s,E*=2,k=1>G(c,C,E,e).minus(this).abs().comparedTo(G(D,B,E,e).minus(this).abs())?[c,C]:[D,B],l=g,k},N.toNumber=function(){return+O(this)},N.toPrecision=function(A,Q){return null!=A&&n(A,1,1e9),b(this,A,Q,2)},N.toString=function(A){var Q,B=this,C=B.s,I=B.e;return null===I?C?(Q="Infinity",C<0&&(Q="-"+Q)):Q="NaN":(null==A?Q=I<=J||I>=F?t(h(B.c),I):L(h(B.c),I,"0"):10===A&&R?Q=L(h((B=Z(new j(B),o+I+1,e)).c),B.e,"0"):(n(A,2,u.length,"Base"),Q=p(L(h(B.c),I,"0"),10,A,C,!0)),C<0&&B.c[0]&&(Q="-"+Q)),Q},N.valueOf=N.toJSON=function(){return O(this)},N._isBigNumber=!0,null!=Q&&j.set(Q),j}()).default=E.BigNumber=E,void 0!==(C=(function(){return E}).call(Q,B,Q,A))&&(A.exports=C)}(0)},70651:function(A,Q,B){let C=B(7967);function I(A,Q,B){let C=A[Q]+A[B],I=A[Q+1]+A[B+1];C>=4294967296&&I++,A[Q]=C,A[Q+1]=I}function E(A,Q,B,C){let I=A[Q]+B;B<0&&(I+=4294967296);let E=A[Q+1]+C;I>=4294967296&&E++,A[Q]=I,A[Q+1]=E}function g(A,Q){return A[Q]^A[Q+1]<<8^A[Q+2]<<16^A[Q+3]<<24}function w(A,Q,B,C,g,w){let D=s[g],M=s[g+1],y=s[w],h=s[w+1];I(c,A,Q),E(c,A,D,M);let k=c[C]^c[A],n=c[C+1]^c[A+1];c[C]=n,c[C+1]=k,I(c,B,C),k=c[Q]^c[B],n=c[Q+1]^c[B+1],c[Q]=k>>>24^n<<8,c[Q+1]=n>>>24^k<<8,I(c,A,Q),E(c,A,y,h),k=c[C]^c[A],n=c[C+1]^c[A+1],c[C]=k>>>16^n<<16,c[C+1]=n>>>16^k<<16,I(c,B,C),k=c[Q]^c[B],n=c[Q+1]^c[B+1],c[Q]=n>>>31^k<<1,c[Q+1]=k>>>31^n<<1}let D=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),M=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(A){return 2*A})),c=new Uint32Array(32),s=new Uint32Array(32);function y(A,Q){let B=0;for(B=0;B<16;B++)c[B]=A.h[B],c[B+16]=D[B];for(c[24]=c[24]^A.t,c[25]=c[25]^A.t/4294967296,Q&&(c[28]=~c[28],c[29]=~c[29]),B=0;B<32;B++)s[B]=g(A.b,4*B);for(B=0;B<12;B++)w(0,8,16,24,M[16*B+0],M[16*B+1]),w(2,10,18,26,M[16*B+2],M[16*B+3]),w(4,12,20,28,M[16*B+4],M[16*B+5]),w(6,14,22,30,M[16*B+6],M[16*B+7]),w(0,10,20,30,M[16*B+8],M[16*B+9]),w(2,12,22,24,M[16*B+10],M[16*B+11]),w(4,14,16,26,M[16*B+12],M[16*B+13]),w(6,8,18,28,M[16*B+14],M[16*B+15]);for(B=0;B<16;B++)A.h[B]=A.h[B]^c[B]^c[B+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function k(A,Q,B,C){if(0===A||A>64)throw Error("Illegal output length, expected 0 < length <= 64");if(Q&&Q.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(B&&16!==B.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(C&&16!==C.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let I={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:A};h.fill(0),h[0]=A,Q&&(h[1]=Q.length),h[2]=1,h[3]=1,B&&h.set(B,32),C&&h.set(C,48);for(let A=0;A<16;A++)I.h[A]=D[A]^g(h,4*A);return Q&&(n(I,Q),I.c=128),I}function n(A,Q){for(let B=0;B>2]>>8*(3&B);return Q}function t(A,Q,B,I,E){B=B||64,A=C.normalizeInput(A),I&&(I=C.normalizeInput(I)),E&&(E=C.normalizeInput(E));let g=k(B,Q,I,E);return n(g,A),K(g)}A.exports={blake2b:t,blake2bHex:function(A,Q,B,I,E){let g=t(A,Q,B,I,E);return C.toHex(g)},blake2bInit:k,blake2bUpdate:n,blake2bFinal:K}},39962:function(A,Q,B){let C=B(7967);function I(A,Q,B,C,I,g){D[A]=D[A]+D[Q]+I,D[C]=E(D[C]^D[A],16),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],12),D[A]=D[A]+D[Q]+g,D[C]=E(D[C]^D[A],8),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],7)}function E(A,Q){return A>>>Q^A<<32-Q}let g=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),w=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),D=new Uint32Array(16),M=new Uint32Array(16);function c(A,Q){let B=0;for(B=0;B<8;B++)D[B]=A.h[B],D[B+8]=g[B];for(D[12]^=A.t,D[13]^=A.t/4294967296,Q&&(D[14]=~D[14]),B=0;B<16;B++){var C,E;M[B]=(C=A.b)[E=4*B]^C[E+1]<<8^C[E+2]<<16^C[E+3]<<24}for(B=0;B<10;B++)I(0,4,8,12,M[w[16*B+0]],M[w[16*B+1]]),I(1,5,9,13,M[w[16*B+2]],M[w[16*B+3]]),I(2,6,10,14,M[w[16*B+4]],M[w[16*B+5]]),I(3,7,11,15,M[w[16*B+6]],M[w[16*B+7]]),I(0,5,10,15,M[w[16*B+8]],M[w[16*B+9]]),I(1,6,11,12,M[w[16*B+10]],M[w[16*B+11]]),I(2,7,8,13,M[w[16*B+12]],M[w[16*B+13]]),I(3,4,9,14,M[w[16*B+14]],M[w[16*B+15]]);for(B=0;B<8;B++)A.h[B]^=D[B]^D[B+8]}function s(A,Q){if(!(A>0&&A<=32))throw Error("Incorrect output length, should be in [1, 32]");let B=Q?Q.length:0;if(Q&&!(B>0&&B<=32))throw Error("Incorrect key length, should be in [1, 32]");let C={h:new Uint32Array(g),b:new Uint8Array(64),c:0,t:0,outlen:A};return C.h[0]^=16842752^B<<8^A,B>0&&(y(C,Q),C.c=64),C}function y(A,Q){for(let B=0;B>2]>>8*(3&B)&255;return Q}function k(A,Q,B){B=B||32,A=C.normalizeInput(A);let I=s(B,Q);return y(I,A),h(I)}A.exports={blake2s:k,blake2sHex:function(A,Q,B){let I=k(A,Q,B);return C.toHex(I)},blake2sInit:s,blake2sUpdate:y,blake2sFinal:h}},81395:function(A,Q,B){let C=B(70651),I=B(39962);A.exports={blake2b:C.blake2b,blake2bHex:C.blake2bHex,blake2bInit:C.blake2bInit,blake2bUpdate:C.blake2bUpdate,blake2bFinal:C.blake2bFinal,blake2s:I.blake2s,blake2sHex:I.blake2sHex,blake2sInit:I.blake2sInit,blake2sUpdate:I.blake2sUpdate,blake2sFinal:I.blake2sFinal}},7967:function(A){function Q(A){return(4294967296+A).toString(16).substring(1)}A.exports={normalizeInput:function(A){let Q;if(A instanceof Uint8Array)Q=A;else if("string"==typeof A)Q=new TextEncoder().encode(A);else throw Error("Input must be an string, Buffer or Uint8Array");return Q},toHex:function(A){return Array.prototype.map.call(A,function(A){return(A<16?"0":"")+A.toString(16)}).join("")},debugPrint:function(A,B,C){let I="\n"+A+" = ";for(let E=0;E2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');let Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return c(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);let B=0|k(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(R(A,Uint8Array)){let Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(R(A,ArrayBuffer)||A&&R(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(A,SharedArrayBuffer)||A&&R(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);let I=function(A){var Q;if(w.isBuffer(A)){let Q=0|h(A.length),B=g(Q);return 0===B.length||A.copy(B,0,0,Q),B}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function M(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function c(A){return M(A),g(A<0?0:0|h(A))}function s(A){let Q=A.length<0?0:0|h(A.length),B=g(Q);for(let C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function k(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||R(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;let I=!1;for(;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return f(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return d(A).length;default:if(I)return C?-1:f(A).length;Q=(""+Q).toLowerCase(),I=!0}}function n(A,Q,B){let I=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){let C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);let I="";for(let C=Q;C2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:L(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):L(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function L(A,Q,B,C,I){let E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function M(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){let C=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){let B=!0;for(let C=0;C239?4:Q>223?3:Q>191?2:1;if(I+g<=B){let B,C,w,D;switch(g){case 1:Q<128&&(E=Q);break;case 2:(192&(B=A[I+1]))==128&&(D=(31&Q)<<6|63&B)>127&&(E=D);break;case 3:B=A[I+1],C=A[I+2],(192&B)==128&&(192&C)==128&&(D=(15&Q)<<12|(63&B)<<6|63&C)>2047&&(D<55296||D>57343)&&(E=D);break;case 4:B=A[I+1],C=A[I+2],w=A[I+3],(192&B)==128&&(192&C)==128&&(192&w)==128&&(D=(15&Q)<<18|(63&B)<<12|(63&C)<<6|63&w)>65535&&D<1114112&&(E=D)}}null===E?(E=65533,g=1):E>65535&&(E-=65536,C.push(E>>>10&1023|55296),E=56320|1023&E),C.push(E),I+=g}return function(A){let Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);let B="",C=0;for(;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function r(A,Q,B,C,I){S(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,B}function p(A,Q,B,C,I){S(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B+7]=E,E>>=8,A[B+6]=E,E>>=8,A[B+5]=E,E>>=8,A[B+4]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B+3]=g,g>>=8,A[B+2]=g,g>>=8,A[B+1]=g,g>>=8,A[B]=g,B+8}function a(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function N(A,Q,B,C,E){return Q=+Q,B>>>=0,E||a(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function o(A,Q,B,C,E){return Q=+Q,B>>>=0,E||a(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.Buffer=w,Q.SlowBuffer=function(A){return+A!=A&&(A=0),w.alloc(+A)},Q.INSPECT_MAX_BYTES=50,Q.kMaxLength=2147483647,w.TYPED_ARRAY_SUPPORT=function(){try{let A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(M(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return c(A)},w.allocUnsafeSlow=function(A){return c(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),R(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;let B=A.length,C=Q.length;for(let I=0,E=Math.min(B,C);IC.length?(w.isBuffer(Q)||(Q=w.from(Q)),Q.copy(C,I)):Uint8Array.prototype.set.call(C,Q,I);else if(w.isBuffer(Q))Q.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=Q.length}return C},w.byteLength=k,w.prototype._isBuffer=!0,w.prototype.swap16=function(){let A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;let E=I-C,g=B-Q,D=Math.min(E,g),M=this.slice(C,I),c=A.slice(Q,B);for(let A=0;A>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let h=!1;for(;;)switch(C){case"hex":return function(A,Q,B,C){let I;B=Number(B)||0;let E=A.length-B;C?(C=Number(C))>E&&(C=E):C=E;let g=Q.length;for(C>g/2&&(C=g/2),I=0;I>8,I.push(B%256),I.push(C);return I}(A,this.length-c),this,c,s);default:if(h)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),h=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){let B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A+--Q],I=1;for(;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readBigUInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&H(A,this.length-8);let C=Q+256*this[++A]+65536*this[++A]+16777216*this[++A],I=this[++A]+256*this[++A]+65536*this[++A]+16777216*B;return BigInt(C)+(BigInt(I)<>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&H(A,this.length-8);let C=16777216*Q+65536*this[++A]+256*this[++A]+this[++A],I=16777216*this[++A]+65536*this[++A]+256*this[++A]+B;return(BigInt(C)<>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);let C=Q,I=1,E=this[A+--C];for(;C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readBigInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&H(A,this.length-8),(BigInt(this[A+4]+256*this[A+5]+65536*this[A+6]+(B<<24))<>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&H(A,this.length-8),(BigInt((Q<<24)+65536*this[++A]+256*this[++A]+this[++A])<>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=1,E=0;for(this[Q]=255&A;++E>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=B-1,E=1;for(this[Q+I]=255&A;--I>=0&&(E*=256);)this[Q+I]=A/E&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigUInt64LE=b(function(A,Q=0){return r(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=b(function(A,Q=0){return p(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=0,E=1,g=0;for(this[Q]=255&A;++I>0)-g&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=B-1,E=1,g=0;for(this[Q+I]=255&A;--I>=0&&(E*=256);)A<0&&0===g&&0!==this[Q+I+1]&&(g=1),this[Q+I]=(A/E>>0)-g&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigInt64LE=b(function(A,Q=0){return r(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=b(function(A,Q=0){return p(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeFloatLE=function(A,Q,B){return N(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return N(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return o(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return o(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I=C+4;B-=3)Q=`_${A.slice(B-3,B)}${Q}`;return`${A.slice(0,B)}${Q}`}function S(A,Q,B,C,I,E){if(A>B||A3?0===Q||Q===BigInt(0)?`>= 0${I} and < 2${I} ** ${(E+1)*8}${I}`:`>= -(2${I} ** ${(E+1)*8-1}${I}) and < 2 ** ${(E+1)*8-1}${I}`:`>= ${Q}${I} and <= ${B}${I}`,new e.ERR_OUT_OF_RANGE("value",C,A)}l(I,"offset"),(void 0===C[I]||void 0===C[I+E])&&H(I,C.length-(E+1))}function l(A,Q){if("number"!=typeof A)throw new e.ERR_INVALID_ARG_TYPE(Q,"number",A)}function H(A,Q,B){if(Math.floor(A)!==A)throw l(A,B),new e.ERR_OUT_OF_RANGE(B||"offset","an integer",A);if(Q<0)throw new e.ERR_BUFFER_OUT_OF_BOUNDS;throw new e.ERR_OUT_OF_RANGE(B||"offset",`>= ${B?1:0} and <= ${Q}`,A)}J("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(A,Q){return`The "${A}" argument must be of type number. Received type ${typeof Q}`},TypeError),J("ERR_OUT_OF_RANGE",function(A,Q,B){let C=`The value of "${A}" is out of range.`,I=B;return Number.isInteger(B)&&Math.abs(B)>4294967296?I=F(String(B)):"bigint"==typeof B&&(I=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(I=F(I)),I+="n"),C+=` It must be ${Q}. Received ${I}`},RangeError);let Y=/[^+/0-9A-Za-z-_]/g;function f(A,Q){let B;Q=Q||1/0;let C=A.length,I=null,E=[];for(let g=0;g55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function d(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function u(A,Q,B,C){let I;for(I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function R(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}let j=function(){let A="0123456789abcdef",Q=Array(256);for(let B=0;B<16;++B){let C=16*B;for(let I=0;I<16;++I)Q[C+I]=A[B]+A[I]}return Q}();function b(A){return"undefined"==typeof BigInt?m:A}function m(){throw Error("BigInt not supported")}},52180:function(A,Q){"use strict";var B,C=this&&this.__extends||(B=function(A,Q){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)},function(A,Q){function C(){this.constructor=A}B(A,Q),A.prototype=null===Q?Object.create(Q):(C.prototype=Q.prototype,new C)});Object.defineProperty(Q,"__esModule",{value:!0});var I=function(){function A(A){void 0===A&&(A="="),this._paddingCharacter=A}return A.prototype.encodedLength=function(A){return this._paddingCharacter?(A+2)/3*4|0:(8*A+5)/6|0},A.prototype.encode=function(A){for(var Q="",B=0;B>>18&63)+this._encodeByte(C>>>12&63)+this._encodeByte(C>>>6&63)+this._encodeByte(C>>>0&63)}var I=A.length-B;if(I>0){var C=A[B]<<16|(2===I?A[B+1]<<8:0);Q+=this._encodeByte(C>>>18&63)+this._encodeByte(C>>>12&63),2===I?Q+=this._encodeByte(C>>>6&63):Q+=this._paddingCharacter||"",Q+=this._paddingCharacter||""}return Q},A.prototype.maxDecodedLength=function(A){return this._paddingCharacter?A/4*3|0:(6*A+7)/8|0},A.prototype.decodedLength=function(A){return this.maxDecodedLength(A.length-this._getPaddingLength(A))},A.prototype.decode=function(A){if(0===A.length)return new Uint8Array(0);for(var Q=this._getPaddingLength(A),B=A.length-Q,C=new Uint8Array(this.maxDecodedLength(B)),I=0,E=0,g=0,w=0,D=0,M=0,c=0;E>>4,C[I++]=D<<4|M>>>2,C[I++]=M<<6|c,g|=256&w,g|=256&D,g|=256&M,g|=256&c;if(E>>4,g|=256&w,g|=256&D),E>>2,g|=256&M),E>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-15)+(62-A>>>8&3))},A.prototype._decodeChar=function(A){return 256+((42-A&A-44)>>>8&-256+A-43+62)+((46-A&A-48)>>>8&-256+A-47+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},A.prototype._getPaddingLength=function(A){var Q=0;if(this._paddingCharacter){for(var B=A.length-1;B>=0&&A[B]===this._paddingCharacter;B--)Q++;if(A.length<4||Q>2)throw Error("Base64Coder: incorrect padding")}return Q},A}();Q.Coder=I;var E=new I;Q.encode=function(A){return E.encode(A)},Q.decode=function(A){return E.decode(A)};var g=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return C(Q,A),Q.prototype._encodeByte=function(A){var Q=A;return String.fromCharCode(Q+=65+(25-A>>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-13)+(62-A>>>8&49))},Q.prototype._decodeChar=function(A){return 256+((44-A&A-46)>>>8&-256+A-45+62)+((94-A&A-96)>>>8&-256+A-95+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},Q}(I);Q.URLSafeCoder=g;var w=new g;Q.encodeURLSafe=function(A){return w.encode(A)},Q.decodeURLSafe=function(A){return w.decode(A)},Q.encodedLength=function(A){return E.encodedLength(A)},Q.maxDecodedLength=function(A){return E.maxDecodedLength(A)},Q.decodedLength=function(A){return E.decodedLength(A)}},99985:function(A,Q,B){"use strict";Q.Z=w;var C=g(B(13980)),I=g(B(2784)),E=g(B(23442));function g(A){return A&&A.__esModule?A:{default:A}}function w(A){var Q=A.captureDragArea,B=A.snapToPointer,C=A.children,g=A.dx,w=A.dy,D=A.height,M=A.onDragEnd,c=A.onDragMove,s=A.onDragStart,y=A.resetOnStart,h=A.width,k=A.x,n=A.y,t=A.isDragging,K=A.restrict,L=A.restrictToPath,U=(0,E.default)({resetOnStart:y,snapToPointer:void 0===B||B,onDragEnd:M,onDragMove:c,onDragStart:s,x:k,y:n,dx:g,dy:w,isDragging:t,restrict:K,restrictToPath:L});return I.default.createElement(I.default.Fragment,null,U.isDragging&&(void 0===Q||Q)&&I.default.createElement("rect",{width:h,height:D,onPointerDown:U.dragStart,onPointerMove:U.dragMove,onPointerUp:U.dragEnd,fill:"transparent"}),C(U))}w.propTypes={children:C.default.func.isRequired,width:C.default.number.isRequired,height:C.default.number.isRequired,captureDragArea:C.default.bool,isDragging:C.default.bool}},23442:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=void 0===A?{}:A,B=Q.resetOnStart,M=void 0!==B&&B,s=Q.snapToPointer,y=void 0===s||s,h=Q.onDragEnd,k=Q.onDragMove,n=Q.onDragStart,t=Q.x,K=Q.y,L=Q.dx,U=Q.dy,i=Q.isDragging,G=Q.restrict,r=void 0===G?{}:G,p=Q.restrictToPath,a=(0,C.useRef)({x:t,y:K,dx:L,dy:U}),N=(0,g.default)({x:t,y:K,dx:null!=L?L:0,dy:null!=U?U:0,isDragging:!1}),o=N[0],e=N[1],J=(0,C.useState)(new I.Point({x:0,y:0})),F=J[0],S=J[1];(0,C.useEffect)(function(){(a.current.x!==t||a.current.y!==K||a.current.dx!==L||a.current.dy!==U)&&(a.current={x:t,y:K,dx:L,dy:U},e(function(A){return c({},A,{x:t,y:K,dx:null!=L?L:0,dy:null!=U?U:0})}))}),(0,C.useEffect)(function(){void 0!==i&&o.isDragging!==i&&e(function(A){return c({},A,{isDragging:i})})},[o.isDragging,i,e]);var l=(0,D.default)(p),H=(0,C.useCallback)(function(A){A.persist(),e(function(Q){var B=Q.x,C=Q.y,g=Q.dx,D=Q.dy,c=new I.Point({x:((void 0===B?0:B)||0)+g,y:((void 0===C?0:C)||0)+D}),s=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),h=y?s:c,k=(0,w.default)(h,l,r);return S((0,I.subtractPoints)(c,s)),{isDragging:!0,dx:M?0:Q.dx,dy:M?0:Q.dy,x:M?k.x:k.x-Q.dx,y:M?k.y:k.y-Q.dy}},n&&function(Q){n(c({},Q,{event:A}))})},[n,M,r,l,e,y]),Y=(0,C.useCallback)(function(A){A.persist(),e(function(Q){if(!Q.isDragging)return Q;var B=Q.x,C=Q.y,g=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),D=y?g:(0,I.sumPoints)(g,F),M=(0,w.default)(D,l,r);return c({},Q,{dx:M.x-(void 0===B?0:B),dy:M.y-(void 0===C?0:C)})},k&&function(Q){Q.isDragging&&k(c({},Q,{event:A}))})},[e,k,y,F,l,r]),f=(0,C.useCallback)(function(A){A.persist(),e(function(A){return c({},A,{isDragging:!1})},h&&function(Q){h(c({},Q,{event:A}))})},[h,e]);return c({},o,{dragEnd:f,dragMove:Y,dragStart:H})};var C=B(2784),I=B(61305),E=B(65319),g=M(B(37016)),w=M(B(60890)),D=M(B(32722));function M(A){return A&&A.__esModule?A:{default:A}}function c(){return(c=Object.assign?Object.assign.bind():function(A){for(var Q=1;QA.length)&&(Q=A.length);for(var B=0,C=Array(Q);B=A.length?{done:!0}:{done:!1,value:A[I++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Q);!(C=g()).done;){var w=C.value,D=Math.sqrt(Math.pow(w.x-A.x,2)+Math.pow(w.y-A.y,2));D0)?(0,I.default)(A,Q):{x:(0,C.default)(A.x,null!=(E=B.xMin)?E:-1/0,null!=(g=B.xMax)?g:1/0),y:(0,C.default)(A.y,null!=(w=B.yMin)?w:-1/0,null!=(D=B.yMax)?D:1/0)}};var C=E(B(30968)),I=E(B(98929));function E(A){return A&&A.__esModule?A:{default:A}}},32722:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){return(0,C.useMemo)(function(){if(!A)return[];var Q=A.getCTM()||new DOMMatrix;return function(A,Q,B){if(void 0===B&&(B=1),!A)return[];for(var C=[],I=A.getTotalLength(),E=0;E<=I;E+=B){var g=A.getPointAtLength(E).matrixTransform(Q);C.push(g)}return C}(A,Q)},[null==A?void 0:A.getTotalLength()])};var C=B(2784)},37016:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=(0,C.useState)(A),B=Q[0],I=Q[1],E=(0,C.useRef)(null),g=(0,C.useCallback)(function(A,Q){E.current=Q||null,I(A)},[I]);return(0,C.useLayoutEffect)(function(){E.current&&(E.current(B),E.current=null)},[B]),[B,g]};var C=B(2784)},65319:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{localPoint:function(){return C.Z},touchPoint:function(){return I.Z}});var C=B(91032),I=B(49833)},91032:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return E}});var C=B(49833),I=B(44321);function E(A,Q){if((0,I.kK)(A)&&Q)return(0,C.Z)(A,Q);if((0,I.cO)(A)){var B=A.target;if(B)return(0,C.Z)(B,A)}return null}},49833:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return w}});var C=B(19067),I=B(44321);function E(){return(E=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q0?{x:A.changedTouches[0].clientX,y:A.changedTouches[0].clientY}:E({},g);if((0,I.N5)(A))return{x:A.clientX,y:A.clientY};var Q=null==A?void 0:A.target,B=Q&&"getBoundingClientRect"in Q?Q.getBoundingClientRect():null;return B?{x:B.x+B.width/2,y:B.y+B.height/2}:E({},g)}(Q),w=(0,I.vZ)(A)?A.ownerSVGElement:A,D=(0,I.DY)(w)?w.getScreenCTM():null;if((0,I.r4)(w)&&D){var M=w.createSVGPoint();return M.x=B.x,M.y=B.y,M=M.matrixTransform(D.inverse()),new C.Z({x:M.x,y:M.y})}var c=A.getBoundingClientRect();return new C.Z({x:B.x-c.left-A.clientLeft,y:B.y-c.top-A.clientTop})}},44321:function(A,Q,B){"use strict";function C(A){return!!A&&A instanceof Element}function I(A){return!!A&&(A instanceof SVGElement||"ownerSVGElement"in A)}function E(A){return!!A&&"createSVGPoint"in A}function g(A){return!!A&&"getScreenCTM"in A}function w(A){return!!A&&"changedTouches"in A}function D(A){return!!A&&"clientX"in A}function M(A){return!!A&&(A instanceof Event||"nativeEvent"in A&&A.nativeEvent instanceof Event)}B.d(Q,{DY:function(){return g},N5:function(){return D},cO:function(){return M},kK:function(){return C},r4:function(){return E},vZ:function(){return I},z6:function(){return w}})},19067:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return C}});var C=function(){function A(A){var Q=A.x,B=A.y;this.x=0,this.y=0,this.x=void 0===Q?0:Q,this.y=void 0===B?0:B}var Q=A.prototype;return Q.value=function(){return{x:this.x,y:this.y}},Q.toArray=function(){return[this.x,this.y]},A}()},61305:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{Point:function(){return C.Z},subtractPoints:function(){return E},sumPoints:function(){return I}});var C=B(19067);function I(A,Q){return new C.Z({x:A.x+Q.x,y:A.y+Q.y})}function E(A,Q){return new C.Z({x:A.x-Q.x,y:A.y-Q.y})}},47440:function(A,Q,B){"use strict";Q.Z=function(A){var Q=A.from,B=void 0===Q?{x:0,y:0}:Q,g=A.to,D=void 0===g?{x:1,y:1}:g,M=A.fill,c=A.className,s=A.innerRef,y=function(A,Q){if(null==A)return{};var B,C,I={},E=Object.keys(A);for(C=0;C=0||(I[B]=A[B]);return I}(A,E),h=B.x===D.x||B.y===D.y;return C.default.createElement("line",w({ref:s,className:(0,I.default)("visx-line",c),x1:B.x,y1:B.y,x2:D.x,y2:D.y,fill:void 0===M?"transparent":M,shapeRendering:h?"crispEdges":"auto"},y))};var C=g(B(2784)),I=g(B(72779)),E=["from","to","fill","className","innerRef"];function g(A){return A&&A.__esModule?A:{default:A}}function w(){return(w=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q=200&&A<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};E.forEach(["delete","get","head"],function(A){y.headers[A]={}}),E.forEach(["post","put","patch"],function(A){y.headers[A]=E.merge(c)}),A.exports=y},98560:function(A){"use strict";A.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(A){A.exports={version:"0.27.2"}},73644:function(A){"use strict";A.exports=function(A,Q){return function(){for(var B=Array(arguments.length),C=0;C=0)&&("set-cookie"===Q?g[Q]=(g[Q]?g[Q]:[]).concat([B]):g[Q]=g[Q]?g[Q]+", "+B:B)}),g}},10738:function(A){"use strict";A.exports=function(A){var Q=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return Q&&Q[1]||""}},70783:function(A){"use strict";A.exports=function(A){return function(Q){return A.apply(null,Q)}}},49027:function(A,Q,B){"use strict";var C=B(48834).lW,I=B(93044);A.exports=function(A,Q){Q=Q||new FormData;var B=[];function E(A){return null===A?"":I.isDate(A)?A.toISOString():I.isArrayBuffer(A)||I.isTypedArray(A)?"function"==typeof Blob?new Blob([A]):C.from(A):A}return!function A(C,g){if(I.isPlainObject(C)||I.isArray(C)){if(-1!==B.indexOf(C))throw Error("Circular reference detected in "+g);B.push(C),I.forEach(C,function(B,C){if(!I.isUndefined(B)){var w,D=g?g+"."+C:C;if(B&&!g&&"object"==typeof B){if(I.endsWith(C,"{}"))B=JSON.stringify(B);else if(I.endsWith(C,"[]")&&(w=I.toArray(B))){w.forEach(function(A){I.isUndefined(A)||Q.append(D,E(A))});return}}A(B,D)}}),B.pop()}else Q.append(g,E(C))}(A),Q}},17525:function(A,Q,B){"use strict";var C=B(29241).version,I=B(21218),E={};["object","boolean","number","function","string","symbol"].forEach(function(A,Q){E[A]=function(B){return typeof B===A||"a"+(Q<1?"n ":" ")+A}});var g={};E.transitional=function(A,Q,B){function E(A,Q){return"[Axios v"+C+"] Transitional option '"+A+"'"+Q+(B?". "+B:"")}return function(B,C,w){if(!1===A)throw new I(E(C," has been removed"+(Q?" in "+Q:"")),I.ERR_DEPRECATED);return Q&&!g[C]&&(g[C]=!0,console.warn(E(C," has been deprecated since v"+Q+" and will be removed in the near future"))),!A||A(B,C,w)}},A.exports={assertOptions:function(A,Q,B){if("object"!=typeof A)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);for(var C=Object.keys(A),E=C.length;E-- >0;){var g=C[E],w=Q[g];if(w){var D=A[g],M=void 0===D||w(D,g,A);if(!0!==M)throw new I("option "+g+" must be "+M,I.ERR_BAD_OPTION_VALUE);continue}if(!0!==B)throw new I("Unknown option "+g,I.ERR_BAD_OPTION)}},validators:E}},93044:function(A,Q,B){"use strict";var C,I,E=B(73644),g=Object.prototype.toString,w=(C=Object.create(null),function(A){var Q=g.call(A);return C[Q]||(C[Q]=Q.slice(8,-1).toLowerCase())});function D(A){return A=A.toLowerCase(),function(Q){return w(Q)===A}}function M(A){return Array.isArray(A)}function c(A){return void 0===A}var s=D("ArrayBuffer");function y(A){return null!==A&&"object"==typeof A}function h(A){if("object"!==w(A))return!1;var Q=Object.getPrototypeOf(A);return null===Q||Q===Object.prototype}var k=D("Date"),n=D("File"),t=D("Blob"),K=D("FileList");function L(A){return"[object Function]"===g.call(A)}var U=D("URLSearchParams");function i(A,Q){if(null!=A){if("object"!=typeof A&&(A=[A]),M(A))for(var B=0,C=A.length;B0;)g[E=C[I]]||(Q[E]=A[E],g[E]=!0);A=Object.getPrototypeOf(A)}while(A&&(!B||B(A,Q))&&A!==Object.prototype);return Q},kindOf:w,kindOfTest:D,endsWith:function(A,Q,B){A=String(A),(void 0===B||B>A.length)&&(B=A.length),B-=Q.length;var C=A.indexOf(Q,B);return -1!==C&&C===B},toArray:function(A){if(!A)return null;var Q=A.length;if(c(Q))return null;for(var B=Array(Q);Q-- >0;)B[Q]=A[Q];return B},isTypedArray:G,isFileList:K}},82294:function(A){"use strict";function Q(A,Q,I){A instanceof RegExp&&(A=B(A,I)),Q instanceof RegExp&&(Q=B(Q,I));var E=C(A,Q,I);return E&&{start:E[0],end:E[1],pre:I.slice(0,E[0]),body:I.slice(E[0]+A.length,E[1]),post:I.slice(E[1]+Q.length)}}function B(A,Q){var B=Q.match(A);return B?B[0]:null}function C(A,Q,B){var C,I,E,g,w,D=B.indexOf(A),M=B.indexOf(Q,D+1),c=D;if(D>=0&&M>0){if(A===Q)return[D,M];for(C=[],E=B.length;c>=0&&!w;)c==D?(C.push(c),D=B.indexOf(A,c+1)):1==C.length?w=[C.pop(),M]:((I=C.pop())=0?D:M;C.length&&(w=[E,g])}return w}A.exports=Q,Q.range=C},95766:function(A,Q){"use strict";Q.byteLength=function(A){var Q=D(A),B=Q[0],C=Q[1];return(B+C)*3/4-C},Q.toByteArray=function(A){var Q,B,E=D(A),g=E[0],w=E[1],M=new I((g+w)*3/4-w),c=0,s=w>0?g-4:g;for(B=0;B>16&255,M[c++]=Q>>8&255,M[c++]=255&Q;return 2===w&&(Q=C[A.charCodeAt(B)]<<2|C[A.charCodeAt(B+1)]>>4,M[c++]=255&Q),1===w&&(Q=C[A.charCodeAt(B)]<<10|C[A.charCodeAt(B+1)]<<4|C[A.charCodeAt(B+2)]>>2,M[c++]=Q>>8&255,M[c++]=255&Q),M},Q.fromByteArray=function(A){for(var Q,C=A.length,I=C%3,E=[],g=0,w=C-I;g>18&63]+B[I>>12&63]+B[I>>6&63]+B[63&I]);return E.join("")}(A,g,g+16383>w?w:g+16383));return 1===I?E.push(B[(Q=A[C-1])>>2]+B[Q<<4&63]+"=="):2===I&&E.push(B[(Q=(A[C-2]<<8)+A[C-1])>>10]+B[Q>>4&63]+B[Q<<2&63]+"="),E.join("")};for(var B=[],C=[],I="undefined"!=typeof Uint8Array?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,w=E.length;g0)throw Error("Invalid string. Length must be a multiple of 4");var B=A.indexOf("=");-1===B&&(B=Q);var C=B===Q?0:4-B%4;return[B,C]}C["-".charCodeAt(0)]=62,C["_".charCodeAt(0)]=63},6391:function(A,Q,B){var C;!function(I){"use strict";var E,g=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,w=Math.ceil,D=Math.floor,M="[BigNumber Error] ",c=M+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function y(A){var Q=0|A;return A>0||A===Q?Q:Q-1}function h(A){for(var Q,B,C=1,I=A.length,E=A[0]+"";CM^B?1:-1;for(g=0,w=(D=I.length)<(M=E.length)?D:M;gE[g]^B?1:-1;return D==M?0:D>M^B?1:-1}function n(A,Q,B,C){if(AB||A!==D(A))throw Error(M+(C||"Argument")+("number"==typeof A?AB?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function t(A){var Q=A.c.length-1;return y(A.e/14)==Q&&A.c[Q]%2!=0}function K(A,Q){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(Q<0?"e":"e+")+Q}function L(A,Q,B){var C,I;if(Q<0){for(I=B+".";++Q;I+=B);A=I+A}else if(C=A.length,++Q>C){for(I=B,Q-=C;--Q;I+=B);A+=I}else Ql?h.c=h.e=null:A.e=10;w/=10,E++);E>l?h.c=h.e=null:(h.e=E,h.c=[A]);return}y=String(A)}else{if(!g.test(y=String(A)))return p(h,y,M);h.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(E=y.indexOf("."))>-1&&(y=y.replace(".","")),(w=y.search(/e/i))>0?(E<0&&(E=w),E+=+y.slice(w+1),y=y.substring(0,w)):E<0&&(E=y.length)}else{if(n(Q,2,u.length,"Base"),10==Q&&R)return Z(h=new j(A),o+h.e+1,e);if(y=String(A),M="number"==typeof A){if(0*A!=0)return p(h,y,M,Q);if(h.s=1/A<0?(y=y.slice(1),-1):1,j.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(c+A)}else h.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(B=u.slice(0,Q),E=w=0,s=y.length;wB.indexOf(C=y.charAt(w))){if("."==C){if(w>E){E=s;continue}}else if(!I&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){I=!0,w=-1,E=0;continue}return p(h,String(A),M,Q)}M=!1,(E=(y=r(y,Q,10,h.s)).indexOf("."))>-1?y=y.replace(".",""):E=y.length}for(w=0;48===y.charCodeAt(w);w++);for(s=y.length;48===y.charCodeAt(--s););if(y=y.slice(w,++s)){if(s-=w,M&&j.DEBUG&&s>15&&(A>9007199254740991||A!==D(A)))throw Error(c+h.s*A);if((E=E-w-1)>l)h.c=h.e=null;else if(E=F)?K(D,g):L(D,g,"0");else if(E=(A=Z(new j(A),Q,B)).e,w=(D=h(A.c)).length,1==C||2==C&&(Q<=E||E<=J)){for(;ww){if(--Q>0)for(D+=".";Q--;D+="0");}else if((Q+=E-w)>0)for(E+1==w&&(D+=".");Q--;D+="0");return A.s<0&&I?"-"+D:D}function m(A,Q){for(var B,C=1,I=new j(A[0]);C=10;I/=10,C++);return(B=C+14*B-1)>l?A.c=A.e=null:B=10;M/=10,I++);if((E=Q-I)<0)E+=14,g=Q,h=(c=k[y=0])/s[I-g-1]%10|0;else if((y=w((E+1)/14))>=k.length){if(C){for(;k.length<=y;k.push(0));c=h=0,I=1,E%=14,g=E-14+1}else break A}else{for(I=1,c=M=k[y];M>=10;M/=10,I++);E%=14,h=(g=E-14+I)<0?0:c/s[I-g-1]%10|0}if(C=C||Q<0||null!=k[y+1]||(g<0?c:c%s[I-g-1]),C=B<4?(h||C)&&(0==B||B==(A.s<0?3:2)):h>5||5==h&&(4==B||C||6==B&&(E>0?g>0?c/s[I-g]:0:k[y-1])%10&1||B==(A.s<0?8:7)),Q<1||!k[0])return k.length=0,C?(Q-=A.e+1,k[0]=s[(14-Q%14)%14],A.e=-Q||0):k[0]=A.e=0,A;if(0==E?(k.length=y,M=1,y--):(k.length=y+1,M=s[14-E],k[y]=g>0?D(c/s[I-g]%s[g])*M:0),C)for(;;){if(0==y){for(E=1,g=k[0];g>=10;g/=10,E++);for(g=k[0]+=M,M=1;g>=10;g/=10,M++);E!=M&&(A.e++,1e14==k[0]&&(k[0]=1));break}if(k[y]+=M,1e14!=k[y])break;k[y--]=0,M=1}for(E=k.length;0===k[--E];k.pop());}A.e>l?A.c=A.e=null:A.e=F?K(Q,B):L(Q,B,"0"),A.s<0?"-"+Q:Q)}return j.clone=A,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(A){var Q,B;if(null!=A){if("object"==typeof A){if(A.hasOwnProperty(Q="DECIMAL_PLACES")&&(n(B=A[Q],0,1e9,Q),o=B),A.hasOwnProperty(Q="ROUNDING_MODE")&&(n(B=A[Q],0,8,Q),e=B),A.hasOwnProperty(Q="EXPONENTIAL_AT")&&((B=A[Q])&&B.pop?(n(B[0],-1e9,0,Q),n(B[1],0,1e9,Q),J=B[0],F=B[1]):(n(B,-1e9,1e9,Q),J=-(F=B<0?-B:B))),A.hasOwnProperty(Q="RANGE")){if((B=A[Q])&&B.pop)n(B[0],-1e9,-1,Q),n(B[1],1,1e9,Q),S=B[0],l=B[1];else if(n(B,-1e9,1e9,Q),B)S=-(l=B<0?-B:B);else throw Error(M+Q+" cannot be zero: "+B)}if(A.hasOwnProperty(Q="CRYPTO")){if(!!(B=A[Q])===B){if(B){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))H=B;else throw H=!B,Error(M+"crypto unavailable")}else H=B}else throw Error(M+Q+" not true or false: "+B)}if(A.hasOwnProperty(Q="MODULO_MODE")&&(n(B=A[Q],0,9,Q),Y=B),A.hasOwnProperty(Q="POW_PRECISION")&&(n(B=A[Q],0,1e9,Q),f=B),A.hasOwnProperty(Q="FORMAT")){if("object"==typeof(B=A[Q]))d=B;else throw Error(M+Q+" not an object: "+B)}if(A.hasOwnProperty(Q="ALPHABET")){if("string"!=typeof(B=A[Q])||/^.?$|[+\-.\s]|(.).*\1/.test(B))throw Error(M+Q+" invalid: "+B);R="0123456789"==B.slice(0,10),u=B}}else throw Error(M+"Object expected: "+A)}return{DECIMAL_PLACES:o,ROUNDING_MODE:e,EXPONENTIAL_AT:[J,F],RANGE:[S,l],CRYPTO:H,MODULO_MODE:Y,POW_PRECISION:f,FORMAT:d,ALPHABET:u}},j.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!j.DEBUG)return!0;var Q,B,C=A.c,I=A.e,E=A.s;A:if("[object Array]"==({}).toString.call(C)){if((1===E||-1===E)&&I>=-1e9&&I<=1e9&&I===D(I)){if(0===C[0]){if(0===I&&1===C.length)return!0;break A}if((Q=(I+1)%14)<1&&(Q+=14),String(C[0]).length==Q){for(Q=0;Q=1e14||B!==D(B))break A;if(0!==B)return!0}}}else if(null===C&&null===I&&(null===E||1===E||-1===E))return!0;throw Error(M+"Invalid BigNumber: "+A)},j.maximum=j.max=function(){return m(arguments,a.lt)},j.minimum=j.min=function(){return m(arguments,a.gt)},j.random=(B=9007199254740992*Math.random()&2097151?function(){return D(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(A){var Q,C,I,E,g,c=0,y=[],h=new j(N);if(null==A?A=o:n(A,0,1e9),E=w(A/14),H){if(crypto.getRandomValues){for(Q=crypto.getRandomValues(new Uint32Array(E*=2));c>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),Q[c]=C[0],Q[c+1]=C[1]):(y.push(g%1e14),c+=2);c=E/2}else if(crypto.randomBytes){for(Q=crypto.randomBytes(E*=7);c=9e15?crypto.randomBytes(7).copy(Q,c):(y.push(g%1e14),c+=7);c=E/7}else throw H=!1,Error(M+"crypto unavailable")}if(!H)for(;c=10;g/=10,c++);c<14&&(I-=14-c)}return h.e=I,h.c=y,h}),j.sum=function(){for(var A=1,Q=arguments,B=new j(Q[0]);AB-1&&(null==g[I+1]&&(g[I+1]=0),g[I+1]+=g[I]/B|0,g[I]%=B)}return g.reverse()}return function(B,C,I,E,g){var w,D,M,c,s,y,k,n,t=B.indexOf("."),K=o,U=e;for(t>=0&&(c=f,f=0,B=B.replace(".",""),y=(n=new j(C)).pow(B.length-t),f=c,n.c=Q(L(h(y.c),y.e,"0"),10,I,A),n.e=n.c.length),M=c=(k=Q(B,C,I,g?(w=u,A):(w=A,u))).length;0==k[--c];k.pop());if(!k[0])return w.charAt(0);if(t<0?--M:(y.c=k,y.e=M,y.s=E,k=(y=G(y,n,K,U,I)).c,s=y.r,M=y.e),t=k[D=M+K+1],c=I/2,s=s||D<0||null!=k[D+1],s=U<4?(null!=t||s)&&(0==U||U==(y.s<0?3:2)):t>c||t==c&&(4==U||s||6==U&&1&k[D-1]||U==(y.s<0?8:7)),D<1||!k[0])B=s?L(w.charAt(1),-K,w.charAt(0)):w.charAt(0);else{if(k.length=D,s)for(--I;++k[--D]>I;)k[D]=0,D||(++M,k=[1].concat(k));for(c=k.length;!k[--c];);for(t=0,B="";t<=c;B+=w.charAt(k[t++]));B=L(B,M,w.charAt(0))}return B}}(),G=function(){function A(A,Q,B){var C,I,E,g,w=0,D=A.length,M=Q%1e7,c=Q/1e7|0;for(A=A.slice();D--;)C=c*(E=A[D]%1e7)+(g=A[D]/1e7|0)*M,w=((I=M*E+C%1e7*1e7+w)/B|0)+(C/1e7|0)+c*g,A[D]=I%B;return w&&(A=[w].concat(A)),A}function Q(A,Q,B,C){var I,E;if(B!=C)E=B>C?1:-1;else for(I=E=0;IQ[I]?1:-1;break}return E}function B(A,Q,B,C){for(var I=0;B--;)A[B]-=I,I=A[B]1;A.splice(0,1));}return function(C,I,E,g,w){var M,c,s,h,k,n,t,K,L,U,i,G,r,p,a,N,o,e=C.s==I.s?1:-1,J=C.c,F=I.c;if(!J||!J[0]||!F||!F[0])return new j(C.s&&I.s&&(J?!F||J[0]!=F[0]:F)?J&&0==J[0]||!F?0*e:e/0:NaN);for(L=(K=new j(e)).c=[],e=E+(c=C.e-I.e)+1,w||(w=1e14,c=y(C.e/14)-y(I.e/14),e=e/14|0),s=0;F[s]==(J[s]||0);s++);if(F[s]>(J[s]||0)&&c--,e<0)L.push(1),h=!0;else{for(p=J.length,N=F.length,s=0,e+=2,(k=D(w/(F[0]+1)))>1&&(F=A(F,k,w),J=A(J,k,w),N=F.length,p=J.length),r=N,i=(U=J.slice(0,N)).length;i=w/2&&a++;do{if(k=0,(M=Q(F,U,N,i))<0){if(G=U[0],N!=i&&(G=G*w+(U[1]||0)),(k=D(G/a))>1)for(k>=w&&(k=w-1),t=(n=A(F,k,w)).length,i=U.length;1==Q(n,U,t,i);)k--,B(n,NQ(F,U,N,i);)k++,B(U,N=10;e/=10,s++);Z(K,E+(K.e=s+14*c-1)+1,g,h)}else K.e=c,K.r=+h;return K}}(),C=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,E=/^\.([^.]+)$/,U=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g,p=function(A,Q,B,g){var w,D=B?Q:Q.replace(i,"");if(U.test(D))A.s=isNaN(D)?null:D<0?-1:1;else{if(!B&&(D=D.replace(C,function(A,Q,B){return w="x"==(B=B.toLowerCase())?16:"b"==B?2:8,g&&g!=w?A:Q}),g&&(w=g,D=D.replace(I,"$1").replace(E,"0.$1")),Q!=D))return new j(D,w);if(j.DEBUG)throw Error(M+"Not a"+(g?" base "+g:"")+" number: "+Q);A.s=null}A.c=A.e=null},a.absoluteValue=a.abs=function(){var A=new j(this);return A.s<0&&(A.s=1),A},a.comparedTo=function(A,Q){return k(this,new j(A,Q))},a.decimalPlaces=a.dp=function(A,Q){var B,C,I;if(null!=A)return n(A,0,1e9),null==Q?Q=e:n(Q,0,8),Z(new j(this),A+this.e+1,Q);if(!(B=this.c))return null;if(C=((I=B.length-1)-y(this.e/14))*14,I=B[I])for(;I%10==0;I/=10,C--);return C<0&&(C=0),C},a.dividedBy=a.div=function(A,Q){return G(this,new j(A,Q),o,e)},a.dividedToIntegerBy=a.idiv=function(A,Q){return G(this,new j(A,Q),0,1)},a.exponentiatedBy=a.pow=function(A,Q){var B,C,I,E,g,c,s,y,h,k=this;if((A=new j(A)).c&&!A.isInteger())throw Error(M+"Exponent not an integer: "+O(A));if(null!=Q&&(Q=new j(Q)),c=A.e>14,!k.c||!k.c[0]||1==k.c[0]&&!k.e&&1==k.c.length||!A.c||!A.c[0])return h=new j(Math.pow(+O(k),c?2-t(A):+O(A))),Q?h.mod(Q):h;if(s=A.s<0,Q){if(Q.c?!Q.c[0]:!Q.s)return new j(NaN);(C=!s&&k.isInteger()&&Q.isInteger())&&(k=k.mod(Q))}else{if(A.e>9&&(k.e>0||k.e<-1||(0==k.e?k.c[0]>1||c&&k.c[1]>=24e7:k.c[0]<8e13||c&&k.c[0]<=9999975e7)))return E=k.s<0&&t(A)?-0:0,k.e>-1&&(E=1/E),new j(s?1/E:E);f&&(E=w(f/14+2))}for(c?(B=new j(.5),s&&(A.s=1),y=t(A)):y=(I=Math.abs(+O(A)))%2,h=new j(N);;){if(y){if(!(h=h.times(k)).c)break;E?h.c.length>E&&(h.c.length=E):C&&(h=h.mod(Q))}if(I){if(0===(I=D(I/2)))break;y=I%2}else if(Z(A=A.times(B),A.e+1,1),A.e>14)y=t(A);else{if(0==(I=+O(A)))break;y=I%2}k=k.times(k),E?k.c&&k.c.length>E&&(k.c.length=E):C&&(k=k.mod(Q))}return C?h:(s&&(h=N.div(h)),Q?h.mod(Q):E?Z(h,f,e,g):h)},a.integerValue=function(A){var Q=new j(this);return null==A?A=e:n(A,0,8),Z(Q,Q.e+1,A)},a.isEqualTo=a.eq=function(A,Q){return 0===k(this,new j(A,Q))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(A,Q){return k(this,new j(A,Q))>0},a.isGreaterThanOrEqualTo=a.gte=function(A,Q){return 1===(Q=k(this,new j(A,Q)))||0===Q},a.isInteger=function(){return!!this.c&&y(this.e/14)>this.c.length-2},a.isLessThan=a.lt=function(A,Q){return 0>k(this,new j(A,Q))},a.isLessThanOrEqualTo=a.lte=function(A,Q){return -1===(Q=k(this,new j(A,Q)))||0===Q},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(A,Q){var B,C,I,E,g=this.s;if(Q=(A=new j(A,Q)).s,!g||!Q)return new j(NaN);if(g!=Q)return A.s=-Q,this.plus(A);var w=this.e/14,D=A.e/14,M=this.c,c=A.c;if(!w||!D){if(!M||!c)return M?(A.s=-Q,A):new j(c?this:NaN);if(!M[0]||!c[0])return c[0]?(A.s=-Q,A):new j(M[0]?this:3==e?-0:0)}if(w=y(w),D=y(D),M=M.slice(),g=w-D){for((E=g<0)?(g=-g,I=M):(D=w,I=c),I.reverse(),Q=g;Q--;I.push(0));I.reverse()}else for(C=(E=(g=M.length)<(Q=c.length))?g:Q,g=Q=0;Q0)for(;Q--;M[B++]=0);for(Q=1e14-1;C>g;){if(M[--C]=0;){for(B=0,h=K[I]%1e7,k=K[I]/1e7|0,E=I+(g=D);E>I;)w=k*(M=t[--g]%1e7)+(c=t[g]/1e7|0)*h,B=((M=h*M+w%1e7*1e7+n[E]+B)/1e14|0)+(w/1e7|0)+k*c,n[E--]=M%1e14;n[E]=B}return B?++C:n.splice(0,1),T(A,n,C)},a.negated=function(){var A=new j(this);return A.s=-A.s||null,A},a.plus=function(A,Q){var B,C=this.s;if(Q=(A=new j(A,Q)).s,!C||!Q)return new j(NaN);if(C!=Q)return A.s=-Q,this.minus(A);var I=this.e/14,E=A.e/14,g=this.c,w=A.c;if(!I||!E){if(!g||!w)return new j(C/0);if(!g[0]||!w[0])return w[0]?A:new j(g[0]?this:0*C)}if(I=y(I),E=y(E),g=g.slice(),C=I-E){for(C>0?(E=I,B=w):(C=-C,B=g),B.reverse();C--;B.push(0));B.reverse()}for((C=g.length)-(Q=w.length)<0&&(B=w,w=g,g=B,Q=C),C=0;Q;)C=(g[--Q]=g[Q]+w[Q]+C)/1e14|0,g[Q]=1e14===g[Q]?0:g[Q]%1e14;return C&&(g=[C].concat(g),++E),T(A,g,E)},a.precision=a.sd=function(A,Q){var B,C,I;if(null!=A&&!!A!==A)return n(A,1,1e9),null==Q?Q=e:n(Q,0,8),Z(new j(this),A,Q);if(!(B=this.c))return null;if(C=14*(I=B.length-1)+1,I=B[I]){for(;I%10==0;I/=10,C--);for(I=B[0];I>=10;I/=10,C++);}return A&&this.e+1>C&&(C=this.e+1),C},a.shiftedBy=function(A){return n(A,-9007199254740991,9007199254740991),this.times("1e"+A)},a.squareRoot=a.sqrt=function(){var A,Q,B,C,I,E=this.c,g=this.s,w=this.e,D=o+4,M=new j("0.5");if(1!==g||!E||!E[0])return new j(!g||g<0&&(!E||E[0])?NaN:E?this:1/0);if(0==(g=Math.sqrt(+O(this)))||g==1/0?(((Q=h(E)).length+w)%2==0&&(Q+="0"),g=Math.sqrt(+Q),w=y((w+1)/2)-(w<0||w%2),B=new j(Q=g==1/0?"5e"+w:(Q=g.toExponential()).slice(0,Q.indexOf("e")+1)+w)):B=new j(g+""),B.c[0]){for((g=(w=B.e)+D)<3&&(g=0);;)if(I=B,B=M.times(I.plus(G(this,I,D,1))),h(I.c).slice(0,g)===(Q=h(B.c)).slice(0,g)){if(B.e0&&k>0){for(I=k%g||g,c=h.substr(0,I);I0&&(c+=D+h.slice(I)),y&&(c="-"+c)}C=s?c+(B.decimalSeparator||"")+((w=+B.fractionGroupSize)?s.replace(RegExp("\\d{"+w+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):s):c}return(B.prefix||"")+C+(B.suffix||"")},a.toFraction=function(A){var Q,B,C,I,E,g,w,D,c,y,k,n,t=this.c;if(null!=A&&(!(w=new j(A)).isInteger()&&(w.c||1!==w.s)||w.lt(N)))throw Error(M+"Argument "+(w.isInteger()?"out of range: ":"not an integer: ")+O(w));if(!t)return new j(this);for(Q=new j(N),c=B=new j(N),C=D=new j(N),n=h(t),E=Q.e=n.length-this.e-1,Q.c[0]=s[(g=E%14)<0?14+g:g],A=!A||w.comparedTo(Q)>0?E>0?Q:c:w,g=l,l=1/0,w=new j(n),D.c[0]=0;y=G(w,Q,0,1),1!=(I=B.plus(y.times(C))).comparedTo(A);)B=C,C=I,c=D.plus(y.times(I=c)),D=I,Q=w.minus(y.times(I=Q)),w=I;return I=G(A.minus(B),C,0,1),D=D.plus(I.times(c)),B=B.plus(I.times(C)),D.s=c.s=this.s,E*=2,k=1>G(c,C,E,e).minus(this).abs().comparedTo(G(D,B,E,e).minus(this).abs())?[c,C]:[D,B],l=g,k},a.toNumber=function(){return+O(this)},a.toPrecision=function(A,Q){return null!=A&&n(A,1,1e9),b(this,A,Q,2)},a.toString=function(A){var Q,B=this,C=B.s,I=B.e;return null===I?C?(Q="Infinity",C<0&&(Q="-"+Q)):Q="NaN":(null==A?Q=I<=J||I>=F?K(h(B.c),I):L(h(B.c),I,"0"):10===A&&R?Q=L(h((B=Z(new j(B),o+I+1,e)).c),B.e,"0"):(n(A,2,u.length,"Base"),Q=r(L(h(B.c),I,"0"),10,A,C,!0)),C<0&&B.c[0]&&(Q="-"+Q)),Q},a.valueOf=a.toJSON=function(){return O(this)},a._isBigNumber=!0,null!=Q&&j.set(Q),j}()).default=E.BigNumber=E,void 0!==(C=(function(){return E}).call(Q,B,Q,A))&&(A.exports=C)}(0)},70651:function(A,Q,B){let C=B(7967);function I(A,Q,B){let C=A[Q]+A[B],I=A[Q+1]+A[B+1];C>=4294967296&&I++,A[Q]=C,A[Q+1]=I}function E(A,Q,B,C){let I=A[Q]+B;B<0&&(I+=4294967296);let E=A[Q+1]+C;I>=4294967296&&E++,A[Q]=I,A[Q+1]=E}function g(A,Q){return A[Q]^A[Q+1]<<8^A[Q+2]<<16^A[Q+3]<<24}function w(A,Q,B,C,g,w){let D=s[g],M=s[g+1],y=s[w],h=s[w+1];I(c,A,Q),E(c,A,D,M);let k=c[C]^c[A],n=c[C+1]^c[A+1];c[C]=n,c[C+1]=k,I(c,B,C),k=c[Q]^c[B],n=c[Q+1]^c[B+1],c[Q]=k>>>24^n<<8,c[Q+1]=n>>>24^k<<8,I(c,A,Q),E(c,A,y,h),k=c[C]^c[A],n=c[C+1]^c[A+1],c[C]=k>>>16^n<<16,c[C+1]=n>>>16^k<<16,I(c,B,C),k=c[Q]^c[B],n=c[Q+1]^c[B+1],c[Q]=n>>>31^k<<1,c[Q+1]=k>>>31^n<<1}let D=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),M=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(A){return 2*A})),c=new Uint32Array(32),s=new Uint32Array(32);function y(A,Q){let B=0;for(B=0;B<16;B++)c[B]=A.h[B],c[B+16]=D[B];for(c[24]=c[24]^A.t,c[25]=c[25]^A.t/4294967296,Q&&(c[28]=~c[28],c[29]=~c[29]),B=0;B<32;B++)s[B]=g(A.b,4*B);for(B=0;B<12;B++)w(0,8,16,24,M[16*B+0],M[16*B+1]),w(2,10,18,26,M[16*B+2],M[16*B+3]),w(4,12,20,28,M[16*B+4],M[16*B+5]),w(6,14,22,30,M[16*B+6],M[16*B+7]),w(0,10,20,30,M[16*B+8],M[16*B+9]),w(2,12,22,24,M[16*B+10],M[16*B+11]),w(4,14,16,26,M[16*B+12],M[16*B+13]),w(6,8,18,28,M[16*B+14],M[16*B+15]);for(B=0;B<16;B++)A.h[B]=A.h[B]^c[B]^c[B+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function k(A,Q,B,C){if(0===A||A>64)throw Error("Illegal output length, expected 0 < length <= 64");if(Q&&Q.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(B&&16!==B.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(C&&16!==C.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let I={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:A};h.fill(0),h[0]=A,Q&&(h[1]=Q.length),h[2]=1,h[3]=1,B&&h.set(B,32),C&&h.set(C,48);for(let A=0;A<16;A++)I.h[A]=D[A]^g(h,4*A);return Q&&(n(I,Q),I.c=128),I}function n(A,Q){for(let B=0;B>2]>>8*(3&B);return Q}function K(A,Q,B,I,E){B=B||64,A=C.normalizeInput(A),I&&(I=C.normalizeInput(I)),E&&(E=C.normalizeInput(E));let g=k(B,Q,I,E);return n(g,A),t(g)}A.exports={blake2b:K,blake2bHex:function(A,Q,B,I,E){let g=K(A,Q,B,I,E);return C.toHex(g)},blake2bInit:k,blake2bUpdate:n,blake2bFinal:t}},39962:function(A,Q,B){let C=B(7967);function I(A,Q,B,C,I,g){D[A]=D[A]+D[Q]+I,D[C]=E(D[C]^D[A],16),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],12),D[A]=D[A]+D[Q]+g,D[C]=E(D[C]^D[A],8),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],7)}function E(A,Q){return A>>>Q^A<<32-Q}let g=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),w=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),D=new Uint32Array(16),M=new Uint32Array(16);function c(A,Q){let B=0;for(B=0;B<8;B++)D[B]=A.h[B],D[B+8]=g[B];for(D[12]^=A.t,D[13]^=A.t/4294967296,Q&&(D[14]=~D[14]),B=0;B<16;B++){var C,E;M[B]=(C=A.b)[E=4*B]^C[E+1]<<8^C[E+2]<<16^C[E+3]<<24}for(B=0;B<10;B++)I(0,4,8,12,M[w[16*B+0]],M[w[16*B+1]]),I(1,5,9,13,M[w[16*B+2]],M[w[16*B+3]]),I(2,6,10,14,M[w[16*B+4]],M[w[16*B+5]]),I(3,7,11,15,M[w[16*B+6]],M[w[16*B+7]]),I(0,5,10,15,M[w[16*B+8]],M[w[16*B+9]]),I(1,6,11,12,M[w[16*B+10]],M[w[16*B+11]]),I(2,7,8,13,M[w[16*B+12]],M[w[16*B+13]]),I(3,4,9,14,M[w[16*B+14]],M[w[16*B+15]]);for(B=0;B<8;B++)A.h[B]^=D[B]^D[B+8]}function s(A,Q){if(!(A>0&&A<=32))throw Error("Incorrect output length, should be in [1, 32]");let B=Q?Q.length:0;if(Q&&!(B>0&&B<=32))throw Error("Incorrect key length, should be in [1, 32]");let C={h:new Uint32Array(g),b:new Uint8Array(64),c:0,t:0,outlen:A};return C.h[0]^=16842752^B<<8^A,B>0&&(y(C,Q),C.c=64),C}function y(A,Q){for(let B=0;B>2]>>8*(3&B)&255;return Q}function k(A,Q,B){B=B||32,A=C.normalizeInput(A);let I=s(B,Q);return y(I,A),h(I)}A.exports={blake2s:k,blake2sHex:function(A,Q,B){let I=k(A,Q,B);return C.toHex(I)},blake2sInit:s,blake2sUpdate:y,blake2sFinal:h}},81395:function(A,Q,B){let C=B(70651),I=B(39962);A.exports={blake2b:C.blake2b,blake2bHex:C.blake2bHex,blake2bInit:C.blake2bInit,blake2bUpdate:C.blake2bUpdate,blake2bFinal:C.blake2bFinal,blake2s:I.blake2s,blake2sHex:I.blake2sHex,blake2sInit:I.blake2sInit,blake2sUpdate:I.blake2sUpdate,blake2sFinal:I.blake2sFinal}},7967:function(A){function Q(A){return(4294967296+A).toString(16).substring(1)}A.exports={normalizeInput:function(A){let Q;if(A instanceof Uint8Array)Q=A;else if("string"==typeof A)Q=new TextEncoder().encode(A);else throw Error("Input must be an string, Buffer or Uint8Array");return Q},toHex:function(A){return Array.prototype.map.call(A,function(A){return(A<16?"0":"")+A.toString(16)}).join("")},debugPrint:function(A,B,C){let I="\n"+A+" = ";for(let E=0;E * @license MIT - */var C=B(95766),I=B(62333),E="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function g(A){if(A>2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');var Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return c(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);var B=0|k(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(F(A,Uint8Array)){var Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(F(A,ArrayBuffer)||A&&F(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(A,SharedArrayBuffer)||A&&F(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');var C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);var I=function(A){if(w.isBuffer(A)){var Q,B=0|h(A.length),C=g(B);return 0===C.length||A.copy(C,0,0,B),C}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function M(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function c(A){return M(A),g(A<0?0:0|h(A))}function s(A){for(var Q=A.length<0?0:0|h(A.length),B=g(Q),C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function k(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||F(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);var B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;for(var I=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return o(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return e(A).length;default:if(I)return C?-1:o(A).length;Q=(""+Q).toLowerCase(),I=!0}}function n(A,Q,B){var I,E,g=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){var C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);for(var I="",E=Q;E2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:L(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):L(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function L(A,Q,B,C,I){var E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function M(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){var c=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){for(var s=!0,y=0;y239?4:M>223?3:M>191?2:1;if(I+s<=B)switch(s){case 1:M<128&&(c=M);break;case 2:(192&(E=A[I+1]))==128&&(D=(31&M)<<6|63&E)>127&&(c=D);break;case 3:E=A[I+1],g=A[I+2],(192&E)==128&&(192&g)==128&&(D=(15&M)<<12|(63&E)<<6|63&g)>2047&&(D<55296||D>57343)&&(c=D);break;case 4:E=A[I+1],g=A[I+2],w=A[I+3],(192&E)==128&&(192&g)==128&&(192&w)==128&&(D=(15&M)<<18|(63&E)<<12|(63&g)<<6|63&w)>65535&&D<1114112&&(c=D)}null===c?(c=65533,s=1):c>65535&&(c-=65536,C.push(c>>>10&1023|55296),c=56320|1023&c),C.push(c),I+=s}return function(A){var Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);for(var B="",C=0;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function p(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function r(A,Q,B,C,E){return Q=+Q,B>>>=0,E||p(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function N(A,Q,B,C,E){return Q=+Q,B>>>=0,E||p(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.lW=w,Q.h2=50,w.TYPED_ARRAY_SUPPORT=function(){try{var A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(M(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return c(A)},w.allocUnsafeSlow=function(A){return c(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(F(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),F(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;for(var B=A.length,C=Q.length,I=0,E=Math.min(B,C);IC.length?w.from(E).copy(C,I):Uint8Array.prototype.set.call(C,E,I);else if(w.isBuffer(E))E.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=E.length}return C},w.byteLength=k,w.prototype._isBuffer=!0,w.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(F(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;for(var E=I-C,g=B-Q,D=Math.min(E,g),M=this.slice(C,I),c=A.slice(Q,B),s=0;s>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var I,E,g,w,D,M,c,s,y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var h=!1;;)switch(C){case"hex":return function(A,Q,B,C){B=Number(B)||0;var I=A.length-B;C?(C=Number(C))>I&&(C=I):C=I;var E=Q.length;C>E/2&&(C=E/2);for(var g=0;g>8,I.push(B%256),I.push(C);return I}(A,this.length-c),this,c,s);default:if(h)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),h=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){var B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A+--Q],I=1;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readIntLE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=Q,I=1,E=this[A+--C];C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readFloatLE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=1,g=0;for(this[Q]=255&A;++g>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=B-1,g=1;for(this[Q+E]=255&A;--E>=0&&(g*=256);)this[Q+E]=A/g&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=0,g=1,w=0;for(this[Q]=255&A;++E>0)-w&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=B-1,g=1,w=0;for(this[Q+E]=255&A;--E>=0&&(g*=256);)A<0&&0===w&&0!==this[Q+E+1]&&(w=1),this[Q+E]=(A/g>>0)-w&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeFloatLE=function(A,Q,B){return r(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return r(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return N(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return N(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function e(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(a,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function J(A,Q,B,C){for(var I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function F(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}var S=function(){for(var A="0123456789abcdef",Q=Array(256),B=0;B<16;++B)for(var C=16*B,I=0;I<16;++I)Q[C+I]=A[B]+A[I];return Q}()},72779:function(A,Q){var B;/*! + */var C=B(95766),I=B(62333),E="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function g(A){if(A>2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');var Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return c(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);var B=0|k(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(F(A,Uint8Array)){var Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(F(A,ArrayBuffer)||A&&F(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(A,SharedArrayBuffer)||A&&F(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');var C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);var I=function(A){if(w.isBuffer(A)){var Q,B=0|h(A.length),C=g(B);return 0===C.length||A.copy(C,0,0,B),C}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function M(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function c(A){return M(A),g(A<0?0:0|h(A))}function s(A){for(var Q=A.length<0?0:0|h(A.length),B=g(Q),C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function k(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||F(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);var B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;for(var I=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return o(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return e(A).length;default:if(I)return C?-1:o(A).length;Q=(""+Q).toLowerCase(),I=!0}}function n(A,Q,B){var I,E,g=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){var C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);for(var I="",E=Q;E2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:L(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):L(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function L(A,Q,B,C,I){var E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function M(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){var c=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){for(var s=!0,y=0;y239?4:M>223?3:M>191?2:1;if(I+s<=B)switch(s){case 1:M<128&&(c=M);break;case 2:(192&(E=A[I+1]))==128&&(D=(31&M)<<6|63&E)>127&&(c=D);break;case 3:E=A[I+1],g=A[I+2],(192&E)==128&&(192&g)==128&&(D=(15&M)<<12|(63&E)<<6|63&g)>2047&&(D<55296||D>57343)&&(c=D);break;case 4:E=A[I+1],g=A[I+2],w=A[I+3],(192&E)==128&&(192&g)==128&&(192&w)==128&&(D=(15&M)<<18|(63&E)<<12|(63&g)<<6|63&w)>65535&&D<1114112&&(c=D)}null===c?(c=65533,s=1):c>65535&&(c-=65536,C.push(c>>>10&1023|55296),c=56320|1023&c),C.push(c),I+=s}return function(A){var Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);for(var B="",C=0;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function r(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function p(A,Q,B,C,E){return Q=+Q,B>>>=0,E||r(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function a(A,Q,B,C,E){return Q=+Q,B>>>=0,E||r(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.lW=w,Q.h2=50,w.TYPED_ARRAY_SUPPORT=function(){try{var A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(M(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return c(A)},w.allocUnsafeSlow=function(A){return c(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(F(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),F(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;for(var B=A.length,C=Q.length,I=0,E=Math.min(B,C);IC.length?w.from(E).copy(C,I):Uint8Array.prototype.set.call(C,E,I);else if(w.isBuffer(E))E.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=E.length}return C},w.byteLength=k,w.prototype._isBuffer=!0,w.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(F(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;for(var E=I-C,g=B-Q,D=Math.min(E,g),M=this.slice(C,I),c=A.slice(Q,B),s=0;s>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var I,E,g,w,D,M,c,s,y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var h=!1;;)switch(C){case"hex":return function(A,Q,B,C){B=Number(B)||0;var I=A.length-B;C?(C=Number(C))>I&&(C=I):C=I;var E=Q.length;C>E/2&&(C=E/2);for(var g=0;g>8,I.push(B%256),I.push(C);return I}(A,this.length-c),this,c,s);default:if(h)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),h=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){var B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A+--Q],I=1;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readIntLE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=Q,I=1,E=this[A+--C];C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readFloatLE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=1,g=0;for(this[Q]=255&A;++g>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=B-1,g=1;for(this[Q+E]=255&A;--E>=0&&(g*=256);)this[Q+E]=A/g&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=0,g=1,w=0;for(this[Q]=255&A;++E>0)-w&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=B-1,g=1,w=0;for(this[Q+E]=255&A;--E>=0&&(g*=256);)A<0&&0===w&&0!==this[Q+E+1]&&(w=1),this[Q+E]=(A/g>>0)-w&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeFloatLE=function(A,Q,B){return p(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return p(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return a(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return a(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function e(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function J(A,Q,B,C){for(var I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function F(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}var S=function(){for(var A="0123456789abcdef",Q=Array(256),B=0;B<16;++B)for(var C=16*B,I=0;I<16;++I)Q[C+I]=A[B]+A[I];return Q}()},72779:function(A,Q){var B;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var C={}.hasOwnProperty;function I(){for(var A=[],Q=0;Q0&&g.length>I&&!g.warned){g.warned=!0;var I,E,g,M=Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=A,M.type=Q,M.count=g.length,console&&console.warn&&console.warn(M)}return A}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(A,Q,B){var C={fired:!1,wrapFn:void 0,target:A,type:Q,listener:B},I=c.bind(C);return I.listener=B,C.wrapFn=I,I}function y(A,Q,B){var C=A._events;if(void 0===C)return[];var I=C[Q];return void 0===I?[]:"function"==typeof I?B?[I.listener||I]:[I]:B?function(A){for(var Q=Array(A.length),B=0;B0&&(g=Q[0]),g instanceof Error)throw g;var g,w=Error("Unhandled error."+(g?" ("+g.message+")":""));throw w.context=g,w}var D=E[A];if(void 0===D)return!1;if("function"==typeof D)C(D,this,Q);else for(var M=D.length,c=k(D,M),B=0;B=0;E--)if(B[E]===Q||B[E].listener===Q){g=B[E].listener,I=E;break}if(I<0)return this;0===I?B.shift():function(A,Q){for(;Q+1=0;C--)this.removeListener(A,Q[C]);return this},E.prototype.listeners=function(A){return y(this,A,!0)},E.prototype.rawListeners=function(A){return y(this,A,!1)},E.listenerCount=function(A,Q){return"function"==typeof A.listenerCount?A.listenerCount(Q):h.call(A,Q)},E.prototype.listenerCount=h,E.prototype.eventNames=function(){return this._eventsCount>0?Q(this._events):[]}},73463:function(A,Q,B){"use strict";var C=B(73887),I={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},E={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};function D(A){return C.isMemo(A)?g:w[A.$$typeof]||I}w[C.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w[C.Memo]=g;var M=Object.defineProperty,c=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,k=Object.prototype;A.exports=function A(Q,B,C){if("string"!=typeof B){if(k){var I=h(B);I&&I!==k&&A(Q,I,C)}var g=c(B);s&&(g=g.concat(s(B)));for(var w=D(Q),n=D(B),K=0;K1?"s":"")+" required, but only "+Q.length+" present")}B.d(Q,{Z:function(){return C}})},88811:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return c}});var C,I={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function E(A){return function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},B=Q.width?String(Q.width):A.defaultWidth;return A.formats[B]||A.formats[A.defaultWidth]}}var g={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},w={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function D(A){return function(Q,B){var C,I=B||{};if("formatting"===(I.context?String(I.context):"standalone")&&A.formattingValues){var E=A.defaultFormattingWidth||A.defaultWidth,g=I.width?String(I.width):E;C=A.formattingValues[g]||A.formattingValues[E]}else{var w=A.defaultWidth,D=I.width?String(I.width):A.defaultWidth;C=A.values[D]||A.values[w]}return C[A.argumentCallback?A.argumentCallback(Q):Q]}}function M(A){return function(Q){var B,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=C.width,E=I&&A.matchPatterns[I]||A.matchPatterns[A.defaultMatchWidth],g=Q.match(E);if(!g)return null;var w=g[0],D=I&&A.parsePatterns[I]||A.parsePatterns[A.defaultParseWidth],M=Array.isArray(D)?function(A,Q){for(var B=0;B0?"in "+C:C+" ago":C},formatLong:g,formatRelative:function(A,Q,B,C){return w[A]},localize:{ordinalNumber:function(A,Q){var B=Number(A),C=B%100;if(C>20||C<10)switch(C%10){case 1:return B+"st";case 2:return B+"nd";case 3:return B+"rd"}return B+"th"},era:D({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:D({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(A){return A-1}}),month:D({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:D({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:D({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(C={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(A){return parseInt(A,10)}},function(A){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},B=A.match(C.matchPattern);if(!B)return null;var I=B[0],E=A.match(C.parsePattern);if(!E)return null;var g=C.valueCallback?C.valueCallback(E[0]):E[0];return{value:g=Q.valueCallback?Q.valueCallback(g):g,rest:A.slice(I.length)}}),era:M({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:M({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(A){return A+1}}),month:M({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:M({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:M({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},66700:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return I}});var C=B(19785);function I(A){(0,C.Z)(1,arguments);var Q=Object.prototype.toString.call(A);return A instanceof Date||"object"==typeof A&&"[object Date]"===Q?new Date(A.getTime()):"number"==typeof A||"[object Number]"===Q?new Date(A):(("string"==typeof A||"[object String]"===Q)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},22699:function(A){"use strict";var Q,B="object"==typeof Reflect?Reflect:null,C=B&&"function"==typeof B.apply?B.apply:function(A,Q,B){return Function.prototype.apply.call(A,Q,B)};Q=B&&"function"==typeof B.ownKeys?B.ownKeys:Object.getOwnPropertySymbols?function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:function(A){return Object.getOwnPropertyNames(A)};var I=Number.isNaN||function(A){return A!=A};function E(){E.init.call(this)}A.exports=E,A.exports.once=function(A,Q){return new Promise(function(B,C){function I(B){A.removeListener(Q,E),C(B)}function E(){"function"==typeof A.removeListener&&A.removeListener("error",I),B([].slice.call(arguments))}n(A,Q,E,{once:!0}),"error"!==Q&&"function"==typeof A.on&&n(A,"error",I,{once:!0})})},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var g=10;function w(A){if("function"!=typeof A)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}function D(A){return void 0===A._maxListeners?E.defaultMaxListeners:A._maxListeners}function M(A,Q,B,C){if(w(B),void 0===(E=A._events)?(E=A._events=Object.create(null),A._eventsCount=0):(void 0!==E.newListener&&(A.emit("newListener",Q,B.listener?B.listener:B),E=A._events),g=E[Q]),void 0===g)g=E[Q]=B,++A._eventsCount;else if("function"==typeof g?g=E[Q]=C?[B,g]:[g,B]:C?g.unshift(B):g.push(B),(I=D(A))>0&&g.length>I&&!g.warned){g.warned=!0;var I,E,g,M=Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=A,M.type=Q,M.count=g.length,console&&console.warn&&console.warn(M)}return A}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(A,Q,B){var C={fired:!1,wrapFn:void 0,target:A,type:Q,listener:B},I=c.bind(C);return I.listener=B,C.wrapFn=I,I}function y(A,Q,B){var C=A._events;if(void 0===C)return[];var I=C[Q];return void 0===I?[]:"function"==typeof I?B?[I.listener||I]:[I]:B?function(A){for(var Q=Array(A.length),B=0;B0&&(g=Q[0]),g instanceof Error)throw g;var g,w=Error("Unhandled error."+(g?" ("+g.message+")":""));throw w.context=g,w}var D=E[A];if(void 0===D)return!1;if("function"==typeof D)C(D,this,Q);else for(var M=D.length,c=k(D,M),B=0;B=0;E--)if(B[E]===Q||B[E].listener===Q){g=B[E].listener,I=E;break}if(I<0)return this;0===I?B.shift():function(A,Q){for(;Q+1=0;C--)this.removeListener(A,Q[C]);return this},E.prototype.listeners=function(A){return y(this,A,!0)},E.prototype.rawListeners=function(A){return y(this,A,!1)},E.listenerCount=function(A,Q){return"function"==typeof A.listenerCount?A.listenerCount(Q):h.call(A,Q)},E.prototype.listenerCount=h,E.prototype.eventNames=function(){return this._eventsCount>0?Q(this._events):[]}},73463:function(A,Q,B){"use strict";var C=B(73887),I={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},E={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};function D(A){return C.isMemo(A)?g:w[A.$$typeof]||I}w[C.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w[C.Memo]=g;var M=Object.defineProperty,c=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,k=Object.prototype;A.exports=function A(Q,B,C){if("string"!=typeof B){if(k){var I=h(B);I&&I!==k&&A(Q,I,C)}var g=c(B);s&&(g=g.concat(s(B)));for(var w=D(Q),n=D(B),t=0;t */Q.read=function(A,Q,B,C,I){var E,g,w=8*I-C-1,D=(1<>1,c=-7,s=B?I-1:0,y=B?-1:1,h=A[Q+s];for(s+=y,E=h&(1<<-c)-1,h>>=-c,c+=w;c>0;E=256*E+A[Q+s],s+=y,c-=8);for(g=E&(1<<-c)-1,E>>=-c,c+=C;c>0;g=256*g+A[Q+s],s+=y,c-=8);if(0===E)E=1-M;else{if(E===D)return g?NaN:1/0*(h?-1:1);g+=Math.pow(2,C),E-=M}return(h?-1:1)*g*Math.pow(2,E-C)},Q.write=function(A,Q,B,C,I,E){var g,w,D,M=8*E-I-1,c=(1<>1,y=23===I?5960464477539062e-23:0,h=C?0:E-1,k=C?1:-1,n=Q<0||0===Q&&1/Q<0?1:0;for(isNaN(Q=Math.abs(Q))||Q===1/0?(w=isNaN(Q)?1:0,g=c):(g=Math.floor(Math.log(Q)/Math.LN2),Q*(D=Math.pow(2,-g))<1&&(g--,D*=2),g+s>=1?Q+=y/D:Q+=y*Math.pow(2,1-s),Q*D>=2&&(g++,D/=2),g+s>=c?(w=0,g=c):g+s>=1?(w=(Q*D-1)*Math.pow(2,I),g+=s):(w=Q*Math.pow(2,s-1)*Math.pow(2,I),g=0));I>=8;A[B+h]=255&w,h+=k,w/=256,I-=8);for(g=g<0;A[B+h]=255&g,h+=k,g/=256,M-=8);A[B+h-k]|=128*n}},39515:function(A,Q,B){var C=B(38761)(B(37772),"DataView");A.exports=C},89612:function(A,Q,B){var C=B(52118),I=B(96909),E=B(98138),g=B(4174),w=B(7942);function D(A){var Q=-1,B=null==A?0:A.length;for(this.clear();++QI?0:I+Q),(B=B>I?I:B)<0&&(B+=I),I=Q>B?0:B-Q>>>0,Q>>>=0;for(var E=Array(I);++C=I?A:C(A,Q,B)}},24019:function(A,Q,B){var C=B(37772)["__core-js_shared__"];A.exports=C},55463:function(A){A.exports=function(A){return function(Q,B,C){for(var I=-1,E=Object(Q),g=C(Q),w=g.length;w--;){var D=g[A?w:++I];if(!1===B(E[D],D,E))break}return Q}}},83126:function(A,Q,B){var C=B(23895),I=B(33880),E=B(8435),g=B(66188);A.exports=function(A){return function(Q){var B=I(Q=g(Q))?E(Q):void 0,w=B?B[0]:Q.charAt(0),D=B?C(B,1).join(""):Q.slice(1);return w[A]()+D}}},34311:function(A,Q,B){var C=B(81207),I=B(97329),E=B(11618),g=RegExp("['’]","g");A.exports=function(A){return function(Q){return C(E(I(Q).replace(g,"")),A,"")}}},61655:function(A,Q,B){var C=B(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});A.exports=C},83043:function(A,Q,B){var C=B(38761),I=function(){try{var A=C(Object,"defineProperty");return A({},"",{}),A}catch(A){}}();A.exports=I},74871:function(A,Q,B){var C=B(45386),I=B(87064),E=B(59950);A.exports=function(A,Q,B,g,w,D){var M=1&B,c=A.length,s=Q.length;if(c!=s&&!(M&&s>c))return!1;var y=D.get(A),h=D.get(Q);if(y&&h)return y==Q&&h==A;var k=-1,n=!0,K=2&B?new C:void 0;for(D.set(A,Q),D.set(Q,A);++k-1&&A%1==0&&A-1}},94769:function(A,Q,B){var C=B(22218);A.exports=function(A,Q){var B=this.__data__,I=C(B,A);return I<0?(++this.size,B.push([A,Q])):B[I][1]=Q,this}},92411:function(A,Q,B){var C=B(89612),I=B(80235),E=B(10326);A.exports=function(){this.size=0,this.__data__={hash:new C,map:new(E||I),string:new C}}},36417:function(A,Q,B){var C=B(27937);A.exports=function(A){var Q=C(this,A).delete(A);return this.size-=Q?1:0,Q}},86928:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).get(A)}},79493:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).has(A)}},24150:function(A,Q,B){var C=B(27937);A.exports=function(A,Q){var B=C(this,A),I=B.size;return B.set(A,Q),this.size+=B.size==I?0:1,this}},75179:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A,C){B[++Q]=[C,A]}),B}},73477:function(A){A.exports=function(A,Q){return function(B){return null!=B&&B[A]===Q&&(void 0!==Q||A in Object(B))}}},77777:function(A,Q,B){var C=B(30733);A.exports=function(A){var Q=C(A,function(A){return 500===B.size&&B.clear(),A}),B=Q.cache;return Q}},99191:function(A,Q,B){var C=B(38761)(Object,"create");A.exports=C},54248:function(A,Q,B){var C=B(60241)(Object.keys,Object);A.exports=C},4146:function(A,Q,B){A=B.nmd(A);var C=B(51242),I=Q&&!Q.nodeType&&Q,E=I&&A&&!A.nodeType&&A,g=E&&E.exports===I&&C.process,w=function(){try{var A=E&&E.require&&E.require("util").types;if(A)return A;return g&&g.binding&&g.binding("util")}catch(A){}}();A.exports=w},37157:function(A){var Q=Object.prototype.toString;A.exports=function(A){return Q.call(A)}},60241:function(A){A.exports=function(A,Q){return function(B){return A(Q(B))}}},37772:function(A,Q,B){var C=B(51242),I="object"==typeof self&&self&&self.Object===Object&&self,E=C||I||Function("return this")();A.exports=E},52842:function(A){A.exports=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this}},52482:function(A){A.exports=function(A){return this.__data__.has(A)}},16909:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A){B[++Q]=A}),B}},15243:function(A,Q,B){var C=B(80235);A.exports=function(){this.__data__=new C,this.size=0}},72858:function(A){A.exports=function(A){var Q=this.__data__,B=Q.delete(A);return this.size=Q.size,B}},4417:function(A){A.exports=function(A){return this.__data__.get(A)}},8605:function(A){A.exports=function(A){return this.__data__.has(A)}},71418:function(A,Q,B){var C=B(80235),I=B(10326),E=B(96738);A.exports=function(A,Q){var B=this.__data__;if(B instanceof C){var g=B.__data__;if(!I||g.length<199)return g.push([A,Q]),this.size=++B.size,this;B=this.__data__=new E(g)}return B.set(A,Q),this.size=B.size,this}},8435:function(A,Q,B){var C=B(50217),I=B(33880),E=B(63344);A.exports=function(A){return I(A)?E(A):C(A)}},54452:function(A,Q,B){var C=B(77777),I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,g=C(function(A){var Q=[];return 46===A.charCodeAt(0)&&Q.push(""),A.replace(I,function(A,B,C,I){Q.push(C?I.replace(E,"$1"):B||A)}),Q});A.exports=g},33812:function(A,Q,B){var C=B(4795),I=1/0;A.exports=function(A){if("string"==typeof A||C(A))return A;var Q=A+"";return"0"==Q&&1/A==-I?"-0":Q}},87035:function(A){var Q=Function.prototype.toString;A.exports=function(A){if(null!=A){try{return Q.call(A)}catch(A){}try{return A+""}catch(A){}}return""}},63344:function(A){var Q="\ud800-\udfff",B="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",C="\ud83c[\udffb-\udfff]",I="[^"+Q+"]",E="(?:\ud83c[\udde6-\uddff]){2}",g="[\ud800-\udbff][\udc00-\udfff]",w="(?:"+B+"|"+C+")?",D="[\\ufe0e\\ufe0f]?",M="(?:\\u200d(?:"+[I,E,g].join("|")+")"+D+w+")*",c=RegExp(C+"(?="+C+")|(?:"+[I+B+"?",B,E,g,"["+Q+"]"].join("|")+")"+(D+w+M),"g");A.exports=function(A){return A.match(c)||[]}},75304:function(A){var Q="\ud800-\udfff",B="\\u2700-\\u27bf",C="a-z\\xdf-\\xf6\\xf8-\\xff",I="A-Z\\xc0-\\xd6\\xd8-\\xde",E="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g="['’]",w="["+E+"]",D="["+C+"]",M="[^"+Q+E+"\\d+"+B+C+I+"]",c="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",y="["+I+"]",h="(?:"+D+"|"+M+")",k="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",n="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",K="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",t="[\\ufe0e\\ufe0f]?",L="(?:\\u200d(?:"+["[^"+Q+"]",c,s].join("|")+")"+t+K+")*",U="(?:"+["["+B+"]",c,s].join("|")+")"+(t+K+L),i=RegExp([y+"?"+D+"+"+k+"(?="+[w,y,"$"].join("|")+")","(?:"+y+"|"+M+")+"+n+"(?="+[w,y+h,"$"].join("|")+")",y+"?"+h+"+"+k,y+"+"+n,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",U].join("|"),"g");A.exports=function(A){return A.match(i)||[]}},96009:function(A,Q,B){var C=B(82108),I=B(34311)(function(A,Q,B){return Q=Q.toLowerCase(),A+(B?C(Q):Q)});A.exports=I},82108:function(A,Q,B){var C=B(66188),I=B(23779);A.exports=function(A){return I(C(A).toLowerCase())}},97329:function(A,Q,B){var C=B(61655),I=B(66188),E=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");A.exports=function(A){return(A=I(A))&&A.replace(E,C).replace(g,"")}},41225:function(A){A.exports=function(A,Q){return A===Q||A!=A&&Q!=Q}},72579:function(A,Q,B){var C=B(13324);A.exports=function(A,Q,B){var I=null==A?void 0:C(A,Q);return void 0===I?B:I}},93352:function(A,Q,B){var C=B(32726),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},95041:function(A,Q,B){var C=B(20187),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},23059:function(A){A.exports=function(A){return A}},79631:function(A,Q,B){var C=B(15183),I=B(15125),E=Object.prototype,g=E.hasOwnProperty,w=E.propertyIsEnumerable,D=C(function(){return arguments}())?C:function(A){return I(A)&&g.call(A,"callee")&&!w.call(A,"callee")};A.exports=D},86152:function(A){var Q=Array.isArray;A.exports=Q},67878:function(A,Q,B){var C=B(61049),I=B(61158);A.exports=function(A){return null!=A&&I(A.length)&&!C(A)}},73226:function(A,Q,B){A=B.nmd(A);var C=B(37772),I=B(36330),E=Q&&!Q.nodeType&&Q,g=E&&A&&!A.nodeType&&A,w=g&&g.exports===E?C.Buffer:void 0,D=w?w.isBuffer:void 0;A.exports=D||I},61049:function(A,Q,B){var C=B(53366),I=B(29259);A.exports=function(A){if(!I(A))return!1;var Q=C(A);return"[object Function]"==Q||"[object GeneratorFunction]"==Q||"[object AsyncFunction]"==Q||"[object Proxy]"==Q}},61158:function(A){A.exports=function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991}},29259:function(A){A.exports=function(A){var Q=typeof A;return null!=A&&("object"==Q||"function"==Q)}},15125:function(A){A.exports=function(A){return null!=A&&"object"==typeof A}},4795:function(A,Q,B){var C=B(53366),I=B(15125);A.exports=function(A){return"symbol"==typeof A||I(A)&&"[object Symbol]"==C(A)}},77598:function(A,Q,B){var C=B(35522),I=B(47826),E=B(4146),g=E&&E.isTypedArray,w=g?I(g):C;A.exports=w},90249:function(A,Q,B){var C=B(1634),I=B(86411),E=B(67878);A.exports=function(A){return E(A)?C(A):I(A)}},19950:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,Q(A,I,E),A)}),B}},34519:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,I,Q(A,I,E))}),B}},30733:function(A,Q,B){var C=B(96738);function I(A,Q){if("function"!=typeof A||null!=Q&&"function"!=typeof Q)throw TypeError("Expected a function");var B=function(){var C=arguments,I=Q?Q.apply(this,C):C[0],E=B.cache;if(E.has(I))return E.get(I);var g=A.apply(this,C);return B.cache=E.set(I,g)||E,g};return B.cache=new(I.Cache||C),B}I.Cache=C,A.exports=I},65798:function(A,Q,B){var C=B(20256),I=B(82952),E=B(21401),g=B(33812);A.exports=function(A){return E(A)?C(g(A)):I(A)}},57370:function(A,Q,B){var C=B(34311)(function(A,Q,B){return A+(B?"_":"")+Q.toLowerCase()});A.exports=C},30981:function(A){A.exports=function(){return[]}},36330:function(A){A.exports=function(){return!1}},66188:function(A,Q,B){var C=B(1054);A.exports=function(A){return null==A?"":C(A)}},23779:function(A,Q,B){var C=B(83126)("toUpperCase");A.exports=C},11618:function(A,Q,B){var C=B(45981),I=B(83559),E=B(66188),g=B(75304);A.exports=function(A,Q,B){return(A=E(A),void 0===(Q=B?void 0:Q))?I(A)?g(A):C(A):A.match(Q)||[]}},77105:function(A,Q,B){"use strict";let C=B(8006),I=Symbol("max"),E=Symbol("length"),g=Symbol("lengthCalculator"),w=Symbol("allowStale"),D=Symbol("maxAge"),M=Symbol("dispose"),c=Symbol("noDisposeOnSet"),s=Symbol("lruList"),y=Symbol("cache"),h=Symbol("updateAgeOnGet"),k=()=>1;class n{constructor(A){if("number"==typeof A&&(A={max:A}),A||(A={}),A.max&&("number"!=typeof A.max||A.max<0))throw TypeError("max must be a non-negative number");this[I]=A.max||1/0;let Q=A.length||k;if(this[g]="function"!=typeof Q?k:Q,this[w]=A.stale||!1,A.maxAge&&"number"!=typeof A.maxAge)throw TypeError("maxAge must be a number");this[D]=A.maxAge||0,this[M]=A.dispose,this[c]=A.noDisposeOnSet||!1,this[h]=A.updateAgeOnGet||!1,this.reset()}set max(A){if("number"!=typeof A||A<0)throw TypeError("max must be a non-negative number");this[I]=A||1/0,L(this)}get max(){return this[I]}set allowStale(A){this[w]=!!A}get allowStale(){return this[w]}set maxAge(A){if("number"!=typeof A)throw TypeError("maxAge must be a non-negative number");this[D]=A,L(this)}get maxAge(){return this[D]}set lengthCalculator(A){"function"!=typeof A&&(A=k),A!==this[g]&&(this[g]=A,this[E]=0,this[s].forEach(A=>{A.length=this[g](A.value,A.key),this[E]+=A.length})),L(this)}get lengthCalculator(){return this[g]}get length(){return this[E]}get itemCount(){return this[s].length}rforEach(A,Q){Q=Q||this;for(let B=this[s].tail;null!==B;){let C=B.prev;G(this,A,B,Q),B=C}}forEach(A,Q){Q=Q||this;for(let B=this[s].head;null!==B;){let C=B.next;G(this,A,B,Q),B=C}}keys(){return this[s].toArray().map(A=>A.key)}values(){return this[s].toArray().map(A=>A.value)}reset(){this[M]&&this[s]&&this[s].length&&this[s].forEach(A=>this[M](A.key,A.value)),this[y]=new Map,this[s]=new C,this[E]=0}dump(){return this[s].map(A=>!t(this,A)&&{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[s]}set(A,Q,B){if((B=B||this[D])&&"number"!=typeof B)throw TypeError("maxAge must be a number");let C=B?Date.now():0,w=this[g](Q,A);if(this[y].has(A)){if(w>this[I])return U(this,this[y].get(A)),!1;let g=this[y].get(A).value;return this[M]&&!this[c]&&this[M](A,g.value),g.now=C,g.maxAge=B,g.value=Q,this[E]+=w-g.length,g.length=w,this.get(A),L(this),!0}let h=new i(A,Q,w,C,B);return h.length>this[I]?(this[M]&&this[M](A,Q),!1):(this[E]+=h.length,this[s].unshift(h),this[y].set(A,this[s].head),L(this),!0)}has(A){return!!this[y].has(A)&&!t(this,this[y].get(A).value)}get(A){return K(this,A,!0)}peek(A){return K(this,A,!1)}pop(){let A=this[s].tail;return A?(U(this,A),A.value):null}del(A){U(this,this[y].get(A))}load(A){this.reset();let Q=Date.now();for(let B=A.length-1;B>=0;B--){let C=A[B],I=C.e||0;if(0===I)this.set(C.k,C.v);else{let A=I-Q;A>0&&this.set(C.k,C.v,A)}}}prune(){this[y].forEach((A,Q)=>K(this,Q,!1))}}let K=(A,Q,B)=>{let C=A[y].get(Q);if(C){let Q=C.value;if(t(A,Q)){if(U(A,C),!A[w])return}else B&&(A[h]&&(C.value.now=Date.now()),A[s].unshiftNode(C));return Q.value}},t=(A,Q)=>{if(!Q||!Q.maxAge&&!A[D])return!1;let B=Date.now()-Q.now;return Q.maxAge?B>Q.maxAge:A[D]&&B>A[D]},L=A=>{if(A[E]>A[I])for(let Q=A[s].tail;A[E]>A[I]&&null!==Q;){let B=Q.prev;U(A,Q),Q=B}},U=(A,Q)=>{if(Q){let B=Q.value;A[M]&&A[M](B.key,B.value),A[E]-=B.length,A[y].delete(B.key),A[s].removeNode(Q)}};class i{constructor(A,Q,B,C,I){this.key=A,this.value=Q,this.length=B,this.now=C,this.maxAge=I||0}}let G=(A,Q,B,C)=>{let I=B.value;t(A,I)&&(U(A,B),A[w]||(I=void 0)),I&&Q.call(C,I.value,I.key,A)};A.exports=n},53207:function(A,Q,B){var C=B(96570);C.prototype.formulaEval=function(){"use strict";for(var A,Q,B,C=[],I=this.value,E=0;E"+Q.value+""+I[E].show+""+A.value+"",type:10}):C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+""+A.value+"",type:1})):2===I[E].type||9===I[E].type?(A=C.pop(),Q=C.pop(),C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+I[E].show+(1!=A.type?"(":"")+A.value+(1!=A.type?")":""),type:I[E].type})):12===I[E].type&&(A=C.pop(),Q=C.pop(),B=C.pop(),C.push({value:I[E].show+"("+B.value+","+Q.value+","+A.value+")",type:12}));return C[0].value},A.exports=C},66655:function(A,Q,B){"use strict";var C=B(72346);function I(A,Q){for(var B=0;Bk.length-2?k.length-1:A.length-D;B>0;B--)if(void 0!==k[B])for(I=0;I0&&NB)w.push(A);else{for(;B>=I&&!c||c&&I1)throw new C.Exception("Uncaught Syntax error");return E[0].value>1e15?"Infinity":parseFloat(E[0].value.toFixed(15))},C.eval=function(A,Q,B){return void 0===Q?this.lex(A).toPostfix().postfixEval():void 0!==B?this.lex(A,Q).toPostfix().postfixEval(B):void 0!==Q.length?this.lex(A,Q).toPostfix().postfixEval():this.lex(A).toPostfix().postfixEval(Q)},A.exports=C},93542:function(A,Q,B){"use strict";var C,I;A.exports=(null==(C=B.g.process)?void 0:C.env)&&"object"==typeof(null==(I=B.g.process)?void 0:I.env)?B.g.process:B(42351)},86570:function(A,Q,B){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return B(1906)}])},3440:function(A,Q,B){"use strict";B.d(Q,{u:function(){return w}});var C=B(52322),I=B(56289),E=B(36350),g=B(73229);function w(){let{openDialog:A}=(0,g.Rh)();return(0,C.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,C.jsx)(D,{title:E.z.walletAddNew.title,description:E.z.walletAddNew.description,onSelect:()=>A("walletAddNew")}),(0,C.jsx)(D,{title:E.z.walletAddRecover.title,description:E.z.walletAddRecover.description,onSelect:()=>A("walletAddRecover")}),(0,C.jsx)(D,{title:E.z.walletAddWatch.title,description:E.z.walletAddWatch.description,onSelect:()=>A("walletAddWatch")}),(0,C.jsx)(D,{title:E.z.walletAddLedger.title,description:E.z.walletAddLedger.description,onSelect:()=>A("walletAddLedger")})]})}function D(A){let{title:Q,description:B,disabled:E,onSelect:g}=A;return(0,C.jsx)(I.Wh3,{onClick:g,disabled:E,children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,C.jsx)(I.X6q,{size:"20",children:Q}),(0,C.jsx)(I.nvN,{size:"14",color:"subtle",children:B})]})})}},12172:function(A,Q,B){"use strict";B.d(Q,{g:function(){return w}});var C=B(52322),I=B(56289),E=B(67537),g=B(73229);function w(A){let{wallet:{id:Q,metadata:B,state:w,actions:D},...M}=A,{openDialog:c}=(0,g.Rh)();return(0,C.jsxs)(I.h_2,{...M,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),"seed"===B.type?"unlocked"===w.status?(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>D.lock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Lur,{})}),"Lock wallet"]}):(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>D.unlock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.VmF,{})}),"Unlock wallet"]}):null,(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("walletUpdate",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.dr6,{})}),"Edit wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("walletRemove",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Jrl,{})}),"Delete wallet"]})]})}},98334:function(A,Q,B){"use strict";B.d(Q,{_:function(){return I},h:function(){return E}});var C=B(51587);let I={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},E=C.HE},9338:function(A,Q,B){"use strict";B.d(Q,{h:function(){return C}});let C=(0,B(56289).XBW)(15)},36350:function(A,Q,B){"use strict";B.d(Q,{_:function(){return w},z:function(){return g}});var C=B(52322),I=B(56289),E=B(67537);let g={walletAddNew:{title:"Create a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,C.jsx)(C.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,C.jsx)(C.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},w={seed:{title:"Seed-based wallet",icon:(0,C.jsx)(E.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,C.jsx)(E.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,C.jsx)(E._Gh,{})}}},54590:function(A,Q,B){"use strict";B.d(Q,{p:function(){return g}});var C=B(56289),I=B(2784),E=B(73229);function g(A){let{walletId:Q,response:B,filters:g}=A,{openDialog:w}=(0,E.Rh)(),D=(0,I.useMemo)(()=>B.data?B.data.map(A=>{let{address:B,description:C,metadata:I,spendPolicy:E}=A;return{id:B,address:B,description:C,spendPolicy:E,metadata:I||{},walletId:Q,onClick:()=>w("addressUpdate",{walletId:Q,address:B}),raw:A}}):null,[B.data,w,Q]),M=(0,C.c2j)(D,B.isValidating,B.error,g),c=(D||[]).reduce((A,Q)=>{let{metadata:B}=Q;return B.index>A?B.index:A},-1);return{dataset:D,dataState:M,error:B.error,lastIndex:c,filters:g}}},58723:function(A,Q,B){"use strict";B.d(Q,{OZ:function(){return L},Jz:function(){return t}});var C=B(52322),I=B(56289),E=B(51587),g=B(2784),w=B(3654),D=B(67537),M=B(73229);function c(A){let{address:{walletId:Q,id:B,metadata:g},...w}=A,{openDialog:c}=(0,M.Rh)(),s=(0,E.XF)();return(0,C.jsxs)(I.h_2,{...w,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("confirm",{title:void 0!==g.index?"Remove address ".concat(g.index):"Remove address",action:"Remove",variant:"red",body:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(I.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,C.jsxs)(I.nvN,{size:"14",font:"mono",children:[(0,I.I13)(B).slice(0,40),"..."]})]}),onConfirm:async()=>{let A=await s.delete({params:{id:Q,addr:B}});A.error?(0,I.OHV)({title:"Error deleting address",body:A.error}):(0,I.OPV)({title:void 0!==g.index?"Address ".concat(g.index," removed"):"Address removed"})}}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(D.Jrl,{})}),"Remove address"]})]})}let s=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(c,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},address:Q})}},{id:"address",label:"address",category:"general",fixed:!0,render:A=>{let{data:{address:Q,description:B},context:E}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.XxW,{maxLength:40,value:Q,type:"address",siascanUrl:E.siascanUrl}),B&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:B})}),children:(0,C.jsx)(I.nvN,{size:"12",children:B.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:A=>{let{data:{metadata:Q}}=A;return void 0===Q.index?null:(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(I.xvT,{children:Q.index.toLocaleString()})})}}];var y=B(5632),h=B(74667),k=B(9338),n=B(54590);let K=(0,g.createContext)({}),t=()=>(0,g.useContext)(K);function L(A){let{children:Q}=A,B=function(){let A=(0,y.useRouter)().query.id,Q=(0,E.bd)({disabled:!A,params:{id:A},config:{swr:{refreshInterval:k.h}}}),{filters:B,setFilter:C,removeFilter:D,removeLastFilter:M,resetFilters:c}=(0,I.Wdu)(),{dataset:K,dataState:t,lastIndex:L}=(0,n.p)({walletId:A,response:Q,filters:B}),{configurableColumns:U,enabledColumns:i,sortableColumns:G,toggleColumnVisibility:p,setColumnsVisible:r,setColumnsHidden:N,toggleSort:a,setSortDirection:o,setSortField:e,sortField:J,sortDirection:F,resetDefaultColumnVisibility:S}=(0,I.oy6)("walletd/v0/addresses",{columns:s,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),l=(0,I._4u)({dataset:K,filters:B,sortField:J,sortDirection:F}),H=(0,g.useMemo)(()=>s.filter(A=>A.fixed||i.includes(A.id)),[i]),Y=(0,h.B)(),f=(0,g.useMemo)(()=>({siascanUrl:Y}),[Y]);return{dataState:t,error:Q.error,datasetCount:(null==l?void 0:l.length)||0,columns:H,dataset:l,cellContext:f,lastIndex:L,configurableColumns:U,enabledColumns:i,sortableColumns:G,toggleColumnVisibility:p,setColumnsVisible:r,setColumnsHidden:N,toggleSort:a,setSortDirection:o,setSortField:e,sortField:J,filters:B,setFilter:C,removeFilter:D,removeLastFilter:M,resetFilters:c,sortDirection:F,resetDefaultColumnVisibility:S}}();return(0,C.jsx)(K.Provider,{value:B,children:Q})}},3654:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","address","index"],I="index",E=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},73229:function(A,Q,B){"use strict";B.d(Q,{Tu:function(){return Af},xQ:function(){return Ad},Rh:function(){return AY}});var C=B(52322),I=B(2784),E=B(56289),g=B(51587),w=B(3440);function D(A){let{open:Q,trigger:B,onOpenChange:I}=A;return(0,C.jsx)(E.VqE,{title:"Add Wallet",trigger:B,open:Q,onOpenChange:I,contentVariants:{className:"max-w-[600px]"},children:(0,C.jsx)(w.u,{})})}var M=B(67537),c=B(63955),s=B(23312),y=B(36350),h=B(81395);function k(A){let{copySeed:Q,children:B,icon:I,description:g}=A;return(0,C.jsxs)("div",{className:"",children:[B,(0,C.jsx)(E.s_4,{className:"mt-2",children:(0,C.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,C.jsx)("div",{className:"flex",children:I}),(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:g}),Q&&(0,C.jsx)(E.zxk,{onClick:Q,children:"Copy Seed to Clipboard"})]})]})})]})}var n=B(48869);let K={name:"",description:"",mnemonic:"",hasCopied:!1};function t(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AY(),t=(0,g.lT)(),L=(0,c.cI)({mode:"all",defaultValues:K}),U=L.watch("mnemonic"),i=(0,I.useCallback)(()=>{(0,E.vQq)(U,"seed"),L.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),L.clearErrors(["mnemonic"])},[U,L]),G=(0,I.useCallback)(async()=>{let{phrase:A}=(0,n.K)().wallet.generateSeedPhrase();L.setValue("hasCopied",!1),L.setValue("mnemonic",A),L.clearErrors(["hasCopied","mnemonic"])},[L]);(0,I.useEffect)(()=>{B&&G()},[B]);let{dataset:p}=(0,s.r)(),r=function(A){let{walletNames:Q,copySeed:B}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",onClick:A=>{A.currentTarget.select(),B()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,n.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},copied:(A,Q)=>Q.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:(null==p?void 0:p.map(A=>A.name))||[],copySeed:i}),N=(0,I.useCallback)(async A=>{let Q=(0,h.blake2bHex)(A.mnemonic),B=await t.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:Q}}});B.error?(0,E.OHV)({title:"Error creating wallet",body:B.error}):(D("walletAddressesGenerate",{walletId:B.data.id}),L.reset(K))},[L,D,t]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddNew.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:L.handleSubmit(N),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:L,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,C.jsx)(E.yEL,{name:"name",form:L,fields:r}),(0,C.jsx)(E.Bau,{name:"description",form:L,fields:r}),(0,C.jsx)(k,{icon:(0,C.jsx)(M.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.Bau,{form:L,fields:r,name:"mnemonic"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:G,children:[(0,C.jsx)(M.nt4,{}),"Regenerate"]}),(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:i,children:[(0,C.jsx)(M.olJ,{}),"Copy to clipboard"]})]})]})})]})})}var L=B(6391),U=B.n(L);function i(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:I}=A;return{type:B,title:"Seed",actions:(0,C.jsx)("div",{className:"flex gap-1",children:(0,C.jsx)(E.zxk,{tip:"password"===B?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>I("password"===B?"text":"password"),children:"password"===B?(0,C.jsx)(M.pHg,{}):(0,C.jsx)(M.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,n.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},match:A=>(0,h.blake2bHex)(A)===Q||"seed phrase does not match"}}}}var G=B(3584);function p(A){let{walletId:Q,name:B,form:I,fields:g,actionText:w}=A,{dataset:D,walletAutoLockEnabled:c,walletAutoLockTimeout:y}=(0,s.r)(),h=null==D?void 0:D.find(A=>A.id===Q),n=null==h?void 0:h.state.mnemonic,K=(0,G.l)(y),t=w?" and ".concat(w):"";return n?(0,C.jsx)(k,{icon:(0,C.jsx)(M.R$y,{}),description:c?(0,C.jsxs)(C.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",K.amount," ",K.units,", manually locked, or the app is closed."]}):(0,C.jsx)(C.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,C.jsx)(k,{icon:(0,C.jsx)(M.R$y,{}),description:c?(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",t,". The wallet will stay unlocked until it is inactive for"," ",K.amount," ",K.units,", manually locked, or the app is closed."]}):(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",t,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,C.jsx)(E.yEL,{form:I,fields:g,name:B})})}var r=B(9338),N=B(54590);let a=[];function o(A){let{id:Q}=A,B=(0,g.bd)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:r.h}}}),{dataset:C,dataState:I,lastIndex:E}=(0,N.p)({walletId:Q,response:B,filters:a});return{dataState:I,error:B.error,datasetCount:(null==C?void 0:C.length)||0,dataset:C,lastIndex:E}}function e(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M}=Q||{},{lastIndex:y}=o({id:M}),{dataset:h,cacheWalletMnemonic:k}=(0,s.r)(),K=null==h?void 0:h.find(A=>A.id===M),t=y+1,L={mnemonic:"",index:new(U())(t),count:new(U())(1)},[G,r]=(0,I.useState)("password"),N=(0,c.cI)({mode:"all",defaultValues:L});(0,I.useEffect)(()=>{N.formState.isSubmitting||N.setValue("index",new(U())(t))},[t]);let{handleOpenChange:a,closeAndReset:e}=(0,E.t0Y)({form:N,onOpenChange:D,defaultValues:L}),J=N.watch("mnemonic"),F=N.watch("index"),S=N.watch("count"),l=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B}),index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"10",validation:{required:"required",max:1e3}}}}({mnemonicHash:null==K?void 0:K.metadata.mnemonicHash,mnemonicFieldType:G,setMnemonicFieldType:r}),H=(0,g.yi)(),Y=(0,I.useCallback)(async(A,Q,B)=>{for(let C=Q;C0?"Not all addresses were saved.":""});return}}1===B?(0,E.OPV)({title:"Generated 1 address"}):(0,E.OPV)({title:"Generated ".concat(B," addresses")}),k(M,A),e()},[e,H,M,k]),f=(0,I.useCallback)(()=>Y(K.state.mnemonic||J,F.toNumber(),S.toNumber()),[Y,J,F,S,K]);return(0,C.jsxs)(E.VqE,{title:"Wallet ".concat(null==K?void 0:K.name,": generate addresses"),trigger:B,open:w,onOpenChange:a,contentVariants:{className:"w-[500px]"},onSubmit:N.handleSubmit(f),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:N,variant:"accent",size:"medium",children:"Continue"})}),children:[(0,C.jsx)(p,{walletId:M,name:"mnemonic",form:N,fields:l,actionText:"generate addresses"}),(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:N,fields:l,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:N,fields:l,name:"count"})})]})]})}var J=B(5632),F=B(98334);let S={name:""};function l(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,M=(0,J.useRouter)(),{walletId:y}=Q||{},{closeDialog:h}=AY(),{dataset:k}=(0,s.r)(),n=null==k?void 0:k.find(A=>A.id===y),K=(0,g.OZ)(),t=(0,c.cI)({mode:"all",defaultValues:S}),L=(0,I.useCallback)(async()=>{let A=await K.delete({params:{id:y}});A.error?(0,E.OHV)({title:"Error removing wallet",body:A.error}):((0,E.OPV)({title:"Wallet permanently removed"}),t.reset(),h(),M.push(F._.home))},[t,y,K,h,M]),U=(0,I.useMemo)(()=>{var A;return{name:{type:"text",title:"Name",placeholder:A=null==n?void 0:n.name,validation:{required:"required",validate:{equals:Q=>Q===A||"name does not match"}}}}},[n]),i=(0,E.WsO)(U);return(0,C.jsx)(E.VqE,{title:"Remove wallet",trigger:B,open:w,onOpenChange:A=>{A||t.reset(S),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:t.handleSubmit(L,i),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,C.jsx)(E.EKh,{children:null==n?void 0:n.name}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"name",form:t,fields:U}),(0,C.jsx)(E.ZqQ,{variant:"red",form:t,children:"Remove"})]})})}let H={description:""};function Y(A){let{trigger:Q,open:B,onOpenChange:w,params:D}=A,{walletId:M,address:s}=D||{},{openDialog:y,closeDialog:h}=AY(),{dataset:k}=o({id:M}),n=null==k?void 0:k.find(A=>A.id===s),K=(0,g.yi)(),t=(0,c.cI)({mode:"all",defaultValues:H});(0,I.useEffect)(()=>{t.reset(n?{description:n.description}:H)},[D]);let L=(0,I.useCallback)(async A=>{let Q=await K.put({params:{id:M},payload:{...n.raw,address:s,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating address",body:Q.error}):(h(),t.reset(H))},[M,s,t,K,n,h]);return(0,C.jsx)(E.VqE,{title:(0,E.$Gg)(s,20),trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:t.handleSubmit(L),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{onClick:()=>y("addressRemove",{walletId:M,address:s}),children:"Remove address"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"small",form:t,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.hKn,{address:(null==n?void 0:n.address)||""}),(0,C.jsx)(E.Bau,{name:"description",form:t,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let f={name:"",description:""};function d(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M}=Q||{},{dataset:y}=(0,s.r)(),h=null==y?void 0:y.find(A=>A.id===M),k=(0,g.SK)(),n=(0,c.cI)({mode:"all",defaultValues:f}),{closeAndReset:K}=(0,E.t0Y)({form:n,onOpenChange:D,defaultValues:f});(0,I.useEffect)(()=>{n.reset(h?{name:h.name,description:h.description}:f)},[M]);let t=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(0,I.useMemo)(()=>(null==y?void 0:y.reduce((A,Q)=>Q.name!==(null==h?void 0:h.name)?A.concat(Q.name):A,[]))||[],[y,h])}),L=(0,I.useCallback)(async A=>{let Q=await k.post({params:{id:M},payload:{...h.raw,name:A.name,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating wallet",body:Q.error}):K()},[M,k,h,K]);return(0,C.jsx)(E.VqE,{title:"".concat(null==h?void 0:h.name),trigger:B,open:w,onOpenChange:D,contentVariants:{className:"w-[400px]"},onSubmit:n.handleSubmit(L),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:n,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.__J,{children:"Type"}),(0,C.jsx)("div",{children:(0,C.jsx)(E.Cts,{children:null==h?void 0:h.metadata.type})})]}),(0,C.jsx)(E.yEL,{name:"name",form:n,fields:t}),(0,C.jsx)(E.Bau,{name:"description",form:n,fields:t})]})})}var u=B(79381),R=B(16694),j=B(73866),b=B(27748);async function m(){return(await Promise.all([j.Z.isSupported().then(async A=>{let Q=await T();return A&&!Q?"Bluetooth":null}),b.Z.isSupported().then(A=>A?"HID":null)])).filter(A=>A)}async function T(){return navigator.brave&&await navigator.brave.isBrave()}function Z(A){let{title:Q,details:B,actions:I,shouldVerify:g}=A,{device:w,disconnect:D}=(0,R.c)();return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[g?(0,C.jsxs)(C.Fragment,{children:[!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==w?void 0:w.type)==="Bluetooth"&&(0,C.jsx)(E.ua7,{content:"Bluetooth",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(M.Ya6,{})})}),(null==w?void 0:w.type)==="USB"&&(0,C.jsx)(E.ua7,{content:"USB",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(M.Fhn,{size:16})})}),(null==w?void 0:w.type)==="HID"&&(0,C.jsx)(E.ua7,{content:"HID",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(M.Pj_,{size:16})})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[I,!!w&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(M.PcV,{})})]})]}),B]})})}let O={transportType:""};function v(A){var Q;let{shouldVerify:B}=A,{device:g,connect:w,verify:D,setError:s,waitingForUser:y}=(0,R.c)(),h=(0,c.cI)({mode:"all",defaultValues:O}),k=h.watch("transportType"),n=!!(null==g?void 0:g.publicKey0),K=(0,u.ZP)("deviceConnect/supportedTransports",()=>m(),{revalidateOnFocus:!1});(0,I.useEffect)(()=>{K.data&&(h.setValue("transportType",K.data[0]),0===K.data.length&&s(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[K.data]);let t=function(A){let{supportedTransports:Q}=A;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:Q.map(A=>({value:A,label:A})),validation:{required:!0}}}}({supportedTransports:K.data||[]}),L=(0,I.useCallback)(async()=>{k&&w(k)},[w,k]),U=(0,I.useCallback)(async()=>{k&&await D()},[D,k]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:g?B?n?(0,C.jsx)(Z,{shouldVerify:B,title:g.transport.deviceModel.productName,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:g.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,C.jsx)(Z,{shouldVerify:B,title:g.transport.deviceModel.productName,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(E.zxk,{variant:"accent",onClick:U,children:[(0,C.jsx)(M.j7C,{}),"Verify"]})}),details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,C.jsx)(Z,{shouldVerify:B,title:g.transport.deviceModel.productName}):(0,C.jsx)(Z,{shouldVerify:B,title:"Connect Ledger...",actions:(null===(Q=K.data)||void 0===Q?void 0:Q.length)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.WyV,{name:"transportType",form:h,fields:t,group:!1}),(0,C.jsx)(E.zxk,{size:"small",onClick:L,children:"Connect"})]}):null,details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm in browser and on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})]}):(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})})})}let x={name:"",description:"",ledgerConnectedAndVerified:!1};function V(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AY(),M=(0,g.lT)(),h=(0,c.cI)({mode:"all",defaultValues:x}),{device:k,disconnect:K,error:t}=(0,R.c)();(0,I.useEffect)(()=>{B&&K()},[B]),(0,I.useEffect)(()=>{k&&k.publicKey0?h.setValue("ledgerConnectedAndVerified",!0):h.setValue("ledgerConnectedAndVerified",!1)},[h,k]),(0,I.useEffect)(()=>{t?h.setError("ledgerConnectedAndVerified",{message:t.message}):h.clearErrors("ledgerConnectedAndVerified")},[h,t]);let{dataset:L}=(0,s.r)(),U=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},ledgerConnectedAndVerified:{type:"boolean",title:"",validation:{validate:{ledgerConnectedAndVerified:A=>A||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:(null==L?void 0:L.map(A=>A.name))||[]}),i=(0,g.yi)(),G=(0,I.useCallback)(async(A,Q)=>{let{unlockConditions:B,address:C}=Q;if((await i.put({params:{id:A},payload:{address:C,description:"",metadata:{index:0,unlockConditions:B}}})).error){(0,E.OHV)({title:"Error saving address"});return}},[i]),p=(0,I.useCallback)(async A=>{if(!A.ledgerConnectedAndVerified||!k.publicKey0||!k.address0)return;let Q={type:"ledger",publicKey0:k.publicKey0,address0:k.address0},B=await M.post({payload:{name:A.name,description:A.description,metadata:Q}});if(B.error)(0,E.OHV)({title:"Error saving wallet",body:B.error});else{let A=(0,n.K)().wallet.standardUnlockConditions(k.publicKey0);A.error||G(B.data.id,{unlockConditions:A.unlockConditions,address:k.address0}),D("walletLedgerAddressGenerate",{walletId:B.data.id,walletJustCreated:!0}),h.reset(x)}},[h,D,M,k,G]);return h.register("ledgerConnectedAndVerified",U.ledgerConnectedAndVerified.validation),(0,C.jsx)(E.VqE,{title:y.z.walletAddLedger.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(p),controls:(0,C.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,C.jsx)(E.yEL,{name:"name",form:h,fields:U}),(0,C.jsx)(E.Bau,{name:"description",form:h,fields:U}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,C.jsx)(E.cp7,{name:"ledgerConnectedAndVerified",form:h}),(0,C.jsx)(v,{shouldVerify:!0})]})]})})}let z={name:"",description:"",mnemonic:""};function W(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AY(),K=(0,c.cI)({mode:"all",defaultValues:z}),{dataset:t}=(0,s.r)(),L=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,n.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:(null==t?void 0:t.map(A=>A.name))||[]}),U=(0,g.lT)(),i=(0,I.useCallback)(async A=>{let Q=(0,h.blake2bHex)(A.mnemonic),B=await U.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:Q}}});B.error?(0,E.OHV)({title:"Error adding wallet",body:B.error}):(D("walletAddressesGenerate",{walletId:B.data.id}),K.reset(z))},[K,D,U]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddRecover.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:K.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:K,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,C.jsx)(E.yEL,{name:"name",form:K,fields:L}),(0,C.jsx)(E.Bau,{name:"description",form:K,fields:L}),(0,C.jsx)(k,{icon:(0,C.jsx)(M.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,C.jsx)(E.Bau,{form:K,fields:L,name:"mnemonic"})})]})})}let P={name:"",description:""};function q(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AY(),M=(0,g.lT)(),h=(0,c.cI)({mode:"all",defaultValues:P}),{dataset:k}=(0,s.r)(),n=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(null==k?void 0:k.map(A=>A.name))||[]}),K=(0,I.useCallback)(async A=>{let Q=await M.post({payload:{name:A.name,description:A.description,metadata:{type:"watch"}}});Q.error?(0,E.OHV)({title:"Error adding wallet",body:Q.error}):(D("walletAddressesAdd",{walletId:Q.data.id}),h.reset(P))},[h,D,M]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddWatch.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(K),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,C.jsx)(E.yEL,{name:"name",form:h,fields:n}),(0,C.jsx)(E.Bau,{name:"description",form:h,fields:n})]})})}var X=B(92581),_=B(28356);let $={addresses:"",shouldResubscribe:!1};function AA(A){return(0,_.Z)(A.trim().split(/[^0-9a-fA-F]+/).map(A=>A).filter(A=>!!A))}function AQ(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M}=Q||{},{dataset:y}=(0,s.r)(),h=null==y?void 0:y.find(A=>A.id===M),k=(0,c.cI)({mode:"all",defaultValues:$}),{handleOpenChange:n,closeAndReset:K}=(0,E.t0Y)({form:k,onOpenChange:D,defaultValues:$}),t={addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:A=>{let Q=AA(A||"");for(let A=0;A{let Q=AA(A),B=Q.length,C=0;for(let A=0;A{let Q=await i(A.addresses);if(Q.error){1===Q.total?(0,E.OHV)({title:"Error saving address",body:Q.error}):(0,E.OHV)({title:"Error saving addresses",body:Q.successful>0?"".concat(Q.successful," of ").concat(Q.total," addresses were saved."):""});return}1===Q.total?(0,E.OPV)({title:"Added 1 address"}):(0,E.OPV)({title:"Added ".concat(Q.successful," addresses")}),A.shouldResubscribe&&U.post({payload:0}),K()},[i,K,U]),p=AA(k.watch("addresses")).length;return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==h?void 0:h.name,": add addresses"),trigger:B,open:w,onOpenChange:n,contentVariants:{className:"w-[500px]"},onSubmit:k.handleSubmit(G),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:k,variant:"accent",size:"medium",children:0===p?"Add addresses":1===p?"Add 1 address":"Add ".concat(p.toLocaleString()," addresses")})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,C.jsx)(E.Bau,{form:k,fields:t,name:"addresses"}),(0,C.jsx)(E.QBj,{form:k,fields:t,name:"shouldResubscribe"})]})})}let AB={address:""};function AC(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M,address:s}=Q||{},{closeDialog:y}=AY(),h=(0,g.XF)(),k=(0,c.cI)({defaultValues:AB}),n=(0,I.useCallback)(async()=>{let A=await h.delete({params:{id:M,addr:s}});A.error?(0,E.OHV)({title:"Error removing address",body:A.error}):((0,E.OPV)({title:"Address permanently removed"}),k.reset(),y())},[k,M,s,h,y]),K=(0,I.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:s,validation:{required:"required",validate:{equals:A=>(0,E.I13)(A)===(0,E.I13)(s)||"address does not match"}}}}),[s]),t=(0,E.WsO)(K);return(0,C.jsx)(E.VqE,{title:"Remove address",trigger:B,open:w,onOpenChange:A=>{A||k.reset(AB),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:k.handleSubmit(n,t),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,C.jsxs)(E.EKh,{children:[(0,E.I13)(s).slice(0,12),"..."]}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"address",form:k,fields:K}),(0,C.jsx)(E.ZqQ,{variant:"red",form:k,children:"Remove"})]})})}let AI="e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",AE=(0,X.qN)(.00393),Ag={receiveAddress:"",changeAddress:"",claimAddress:"",customChangeAddress:!1,customClaimAddress:!1,mode:"siacoin",siacoin:void 0,siafund:void 0,includeFee:!1};function Aw(A){let{balanceSc:Q,balanceSf:B,onComplete:g,defaultChangeAddress:w,defaultClaimAddress:D}=A,s=(0,c.cI)({mode:"all",defaultValues:Ag}),y=function(A){let{balanceSc:Q,balanceSf:B,fee:I}=A;return{receiveAddress:{type:"text",title:"Recipient address",placeholder:AI,validation:{validate:{required:A=>!!A||"required",valid:A=>(0,X.At)(A)||"invalid address"}}},mode:{type:"select",title:"Action",options:[{value:"siacoin",label:"Send siacoins"},{value:"siafund",label:"Send siafunds"}],validation:{required:"required"}},siacoin:{type:"siacoin",title:"Siacoin",placeholder:"100",validation:{validate:{required:(A,Q)=>"siacoin"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siacoin"!==Q.mode||!new(U())(A||0).isZero()||"must be greater than zero",balance:(A,B)=>"siacoin"!==B.mode||Q.gte((0,X.qN)(A||0).plus(I))||"not enough funds in wallet"}}},siafund:{type:"number",title:"Siafunds",decimalsLimit:0,placeholder:"100",validation:{validate:{required:(A,Q)=>"siafund"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siafund"!==Q.mode||(null==A?void 0:A.gt(0))||"must be greater than zero",balance:(A,C)=>"siafund"!==C.mode||(null==Q?void 0:Q.gte(I))&&(null==B?void 0:B.gte(A))||"not enough funds in wallet"}}},customChangeAddress:{type:"boolean",title:"Custom change adress",validation:{}},customClaimAddress:{type:"boolean",title:"Custom claim adress",validation:{}},changeAddress:{type:"text",title:"Change address",placeholder:AI,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address where any change from the transaction will be sent. If a custom change address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(M.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>!Q.customChangeAddress||!!A||"required",valid:(A,Q)=>!Q.customChangeAddress||(0,X.At)(A)||"invalid address"}}},claimAddress:{type:"text",title:"Claim address",placeholder:AI,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address that will receive any unclaimed siacoin earnings from the siafund. If a custom claim address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(M.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||!!A||"required"},valid:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||(0,X.At)(A)||"invalid address"}}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balanceSc:Q,balanceSf:B,fee:AE}),h=(0,I.useCallback)(async A=>{let Q=new(U())(A.siacoin||0),B=new(U())(A.siafund||0),C=A.includeFee?(0,X.qN)(Q).minus(AE):(0,X.qN)(Q),I=B.toNumber();g({receiveAddress:A.receiveAddress,changeAddress:A.customChangeAddress?A.changeAddress:w,claimAddress:A.customClaimAddress?A.claimAddress:D,fee:AE,mode:A.mode,siacoin:C,siafund:I})},[g,w,D]),k=(0,I.useMemo)(()=>s.handleSubmit(h),[s,h]),n=s.watch("siacoin"),K=s.watch("mode"),t=s.watch("customChangeAddress"),L=s.watch("customClaimAddress"),i=s.watch("includeFee"),G=(0,X.qN)(n||0),p=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[B.gt(0)&&(0,C.jsx)(E.WyV,{size:"medium",form:s,fields:y,name:"mode"}),(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"receiveAddress",autoComplete:"off"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customChangeAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom change address"}),y.changeAddress.actions]})}),"siafund"===K&&(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customClaimAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom claim address"}),y.claimAddress.actions]})})]}),t&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"changeAddress",autoComplete:"off"}),"siafund"===K&&L&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"claimAddress",autoComplete:"off"}),"siacoin"===K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.qGu,{size:"medium",form:s,fields:y,name:"siacoin"}),(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsxs)(E.QBj,{size:"small",form:s,fields:y,name:"includeFee",children:[(0,C.jsx)(E.xvT,{children:"Include fee"}),(0,C.jsx)(E.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,C.jsx)("div",{className:"flex flex-1"})]})]}):(0,C.jsx)(E.jIp,{size:"medium",form:s,fields:y,name:"siafund"}),(0,C.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:AE,variant:"value",dynamicUnits:!1})})]}),"siacoin"===K&&(0,C.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:i?G:G.plus(AE),variant:"value",dynamicUnits:!1})})]})]})]});return{form:s,el:p,handleSubmit:k,reset:()=>s.reset(Ag)}}function AD(A){let{params:{receiveAddress:Q,changeAddress:B,claimAddress:I,mode:g,siacoin:w,siafund:D,fee:M},transactionId:c}=A,s=w.plus(M);return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Recipient address"}),(0,C.jsx)(E.XxW,{value:Q,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Change address"}),(0,C.jsx)(E.XxW,{value:B,type:"address"})]}),"siafund"===g&&(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Claim address"}),(0,C.jsx)(E.XxW,{value:I,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:"siacoin"===g?(0,C.jsx)(E.YKL,{size:"14",value:w,variant:"value",dynamicUnits:!1}):(0,C.jsx)(E.Sby,{size:"14",value:D,variant:"value"})})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:M,variant:"value",dynamicUnits:!1})})]}),"siacoin"===g&&(0,C.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),c&&(0,C.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,C.jsx)(E.XxW,{value:c,type:"transaction"})]})]})}function AM(A){let{transaction:Q,toSign:B,addresses:C,siacoinOutputs:I,siafundOutputs:g}=A;if(!C)return{error:"No addresses"};if(!I)return{error:"No outputs"};for(let A of B){let B=(0,E.I13)(A),{address:w,siacoinUtxo:D,siafundUtxo:M,siacoinInput:c,siafundInput:s,error:y}=Ac({toSignId:B,addresses:C,siacoinOutputs:I,siafundOutputs:g,transaction:Q});if(y)return{error:y};D&&(c.unlockConditions=w.metadata.unlockConditions),M&&(s.unlockConditions=w.metadata.unlockConditions),Q.signatures||(Q.signatures=[]),Q.signatures.push({parentID:B,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function Ac(A){var Q,B;let{toSignId:C,transaction:I,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A,M=(0,E.I13)(C),c=function(A){let{id:Q,addresses:B,siacoinOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siacoinOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:M,addresses:g,siacoinOutputs:w});if(!c.error){let A=null===(Q=I.siacoinInputs)||void 0===Q?void 0:Q.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(c.utxo.id));return A?{address:c.address,siacoinUtxo:c.utxo,siacoinInput:A}:{error:"Missing input"}}let s=function(A){let{id:Q,addresses:B,siafundOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siafundOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:M,addresses:g,siafundOutputs:D});if(!s.error){let A=null===(B=I.siafundInputs)||void 0===B?void 0:B.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(s.utxo.id));return A?{address:s.address,siafundUtxo:s.utxo,siafundInput:A}:{error:"Missing input"}}return s.error&&"Missing utxo"!==s.error?{error:s.error}:{error:c.error}}function As(A){let{cancel:Q}=A,B=(0,g.ys)();return(0,I.useCallback)(async A=>{let{signedTransaction:C}=A;if(!C)return{error:"No signed transaction"};let I=await B.post({payload:{transactions:[C],v2transactions:[]}});return I.error?(Q(C),{error:I.error}):{}},[Q,B])}function Ay(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.zQ)();return(0,I.useCallback)(async A=>{var C,I;let g=(null===(C=A.siacoinInputs)||void 0===C?void 0:C.map(A=>A.parentID))||[],w=(null===(I=A.siafundInputs)||void 0===I?void 0:I.map(A=>A.parentID))||[],D=await B.post({params:{id:Q},payload:{siacoinOutputs:g,siafundOutputs:w}});D.error&&(0,E.OHV)({title:"Error canceling transaction",body:D.error})},[Q,B])}function Ah(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.sv)(),C=(0,g.bW)();return(0,I.useCallback)(async A=>{let{receiveAddress:I,changeAddress:E,claimAddress:g,mode:w,siacoin:D,siafund:M,fee:c}=A;if(!I||!E||!g)return{error:"No addresses"};if("siacoin"===w){let A=await B.post({params:{id:Q},payload:{amount:D.plus(c).toString(),changeAddress:E,transaction:{minerFees:[c.toString()],siacoinOutputs:[{value:D.toString(),address:I}]}}});return A.error?{error:A.error}:{fundedTransaction:A.data.transaction,toSign:A.data.toSign}}if("siafund"===w){let A=[],w=await C.post({params:{id:Q},payload:{amount:M,changeAddress:E,claimAddress:g,transaction:{minerFees:[c.toString()],siafundOutputs:[{value:M,address:I}]}}});return w.error?{error:w.error}:(A.push(...w.data.toSign),(w=await B.post({params:{id:Q},payload:{amount:c.toString(),changeAddress:E,transaction:w.data.transaction}})).error)?{error:w.error}:(A.push(...w.data.toSign),{fundedTransaction:w.data.transaction,toSign:A})}},[B,C,Q])}let Ak={mnemonic:""};function An(A){let{params:Q,transactionId:B}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(AD,{params:Q,transactionId:B}),(0,C.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(M.Z$8,{})}),(0,C.jsx)(E.xvT,{children:"Transaction successfully broadcast."})]})]})}function AK(A){let{trigger:Q,open:B,onOpenChange:I,sendParams:g,signedTxnId:w,step:D,send:M,compose:c,setStep:s,controls:y}=A;return(0,C.jsx)(E.VqE,{trigger:Q,open:B,onOpenChange:A=>{A||(c.reset(),M.reset(),s("compose")),I(A)},title:"Send",onSubmit:y?y.handleSubmit:void 0,controls:(null==y?void 0:y.form)&&(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.ZqQ,{form:y.form,children:y.submitLabel})}),contentVariants:{className:"w-[450px]"},children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.tIK,{onChange:A=>{s(A)},activeStep:D,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,C.jsx)(E.Z0O,{className:"w-full mt-4"}),"compose"===D&&c.el,"send"===D&&M.el,"done"===D&&(0,C.jsx)(An,{params:g,transactionId:w})]})})}let At={receiveAddress:"",changeAddress:"",claimAddress:"",mode:"siacoin",siacoin:new(U())(0),siafund:0,fee:new(U())(0)};function AL(A){var Q,B;let{params:w,trigger:D,open:M,onOpenChange:y}=A,{walletId:h}=w||{},k=(0,g.tM)({disabled:!h,params:{id:h}}),{dataset:K}=o({id:h}),t=(0,I.useMemo)(()=>{var A;return new(U())((null===(A=k.data)||void 0===A?void 0:A.siacoins)||0)},[k.data]),L=(0,I.useMemo)(()=>{var A;return new(U())((null===(A=k.data)||void 0===A?void 0:A.siafunds)||0)},[k.data]),[G,r]=(0,I.useState)("compose"),[N,a]=(0,I.useState)(),[e,J]=(0,I.useState)(At),F=Aw({balanceSc:t,balanceSf:L,defaultChangeAddress:null==K?void 0:null===(Q=K[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==K?void 0:null===(B=K[0])||void 0===B?void 0:B.address,onComplete:A=>{J(Q=>({...Q,...A})),r("send")}}),S=function(A){let{walletId:Q,params:B,onConfirm:w}=A,D=function(){let{wallet:A,cacheWalletMnemonic:Q}=(0,s.r)(),B=null==A?void 0:A.id,C=(0,g.jL)({disabled:!B,params:{id:B}}),E=(0,g.cd)({disabled:!B,params:{id:B}}),{dataset:w}=o({id:B}),D=(0,g.ek)(),M=(0,g.gM)(),c=Ah(),y=Ay(),h=As({cancel:y});return(0,I.useCallback)(async A=>{let{mnemonic:I,params:g}=A;if(!w)return{error:"No addresses found"};let{fundedTransaction:s,toSign:k,error:K}=await c(g);if(K)return{fundedTransaction:s,error:K};let{signedTransaction:t,error:L}=function(A){let{mnemonic:Q,transaction:B,toSign:C,consensusState:I,consensusNetwork:E,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A;if(!I)return{error:"No consensus state"};if(!g)return{error:"No addresses"};if(!w)return{error:"No outputs"};let{error:M}=AM({toSign:C,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(M)return{error:M};for(let[A,M]of C.entries()){let{address:C,error:c}=Ac({toSignId:M,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(c)return{error:c};let s=(0,n.K)().wallet.keyPairFromSeedPhrase(Q,C.metadata.index);if(s.error)return{error:s.error};let{signature:y,error:h}=(0,n.K)().wallet.signTransactionV1(I,E,B,A,s.privateKey);if(h)return{error:h};B.signatures[A].signature=y}return{signedTransaction:B}}({mnemonic:I,transaction:s,toSign:k,consensusState:D.data,consensusNetwork:M.data,addresses:w,siacoinOutputs:C.data,siafundOutputs:E.data});return L?(y(s),{error:L}):(Q(B,I),h({signedTransaction:t}))},[y,w,c,B,D.data,M.data,C.data,E.data,Q,h])}(),{isSeedCached:M}=function(A){let{dataset:Q}=(0,s.r)(),B=null==Q?void 0:Q.find(Q=>Q.id===A),C=null==B?void 0:B.state.mnemonic;return{cachedMnemonic:C,isSeedCached:!!C}}(Q),{dataset:y}=(0,s.r)(),h=null==y?void 0:y.find(A=>A.id===Q),k=null==h?void 0:h.metadata.mnemonicHash,K=(0,c.cI)({mode:"all",defaultValues:Ak}),[t,L]=(0,I.useState)("password"),U=(0,I.useMemo)(()=>(function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C,isSeedCached:I}=A;return{mnemonic:I?{title:"Seed",type:"text",validation:{}}:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}})({mnemonicFieldType:t,setMnemonicFieldType:L,mnemonicHash:k,isSeedCached:M}),[t,L,k,M]),G=(0,I.useCallback)(async A=>{let{error:Q}=await D({mnemonic:h.state.mnemonic||A.mnemonic,params:B});if(Q){(0,E.OHV)({title:Q});return}w({})},[D,B,w,h]),r=(0,E.WsO)(U),N=(0,I.useMemo)(()=>K.handleSubmit(G,r),[K,G,r]),a=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(p,{walletId:Q,name:"mnemonic",form:K,fields:U,actionText:"complete the transaction"}),(0,C.jsx)(AD,{params:B})]});return{form:K,el:a,handleSubmit:N,reset:()=>K.reset(Ak)}}({walletId:h,params:e,onConfirm:A=>{let{transactionId:Q}=A;a(Q),r("done")}}),l=(0,I.useMemo)(()=>"compose"===G?{submitLabel:"Generate transaction",form:F.form,handleSubmit:F.handleSubmit,reset:F.reset}:"send"===G?{submitLabel:"Sign and broadcast transaction",form:S.form,handleSubmit:S.handleSubmit,reset:S.reset}:void 0,[G,F,S]);return(0,C.jsx)(AK,{trigger:D,open:M,onOpenChange:A=>{A||(F.reset(),S.reset(),r("compose")),y(A)},controls:l,compose:F,send:S,sendParams:e,signedTxnId:N,step:G,setStep:r})}function AU(A){let{title:Q,isSigned:B,isConnected:I,details:g,actions:w}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):I?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsx)("div",{className:"flex gap-1 justify-between items-center",children:w})]}),g]})})}function Ai(A){let{waitingForUser:Q,isConnected:B,isSigned:I,sign:g}=A;return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:I?(0,C.jsx)(AU,{isConnected:B,isSigned:I,title:"Transaction"}):B&&Q?(0,C.jsx)(AU,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):B?(0,C.jsx)(AU,{isConnected:B,isSigned:I,title:"Transaction",actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:g,children:"Sign"})})}):(0,C.jsx)(AU,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var AG=B(48834).lW;async function Ap(A){let{device:Q,transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g}=A;if(!I)return{error:"No addresses"};if(!E)return{error:"No outputs"};let{error:w}=AM({transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g});if(w)return{error:w};for(let[A,w]of C.entries()){let C=Ac({toSignId:w,addresses:I,siacoinOutputs:E,siafundOutputs:g,transaction:B});if(C.error)return{error:C.error};let D=await Ar({device:Q,transaction:B,signatureIndex:A,keyIndex:C.address.metadata.index});if(D.error)return{error:D.error}}return{transaction:B}}async function Ar(A){let Q,{device:B,transaction:C,signatureIndex:I,keyIndex:E}=A,{encodedTransaction:g,error:w}=(0,n.K)().wallet.encodeTransaction(C);if(w)return{error:w};let D=AG.from(g,"utf-8"),M=0>function(A,Q){let B=/[^0-9.]/gi,C=A.replace(B,"").split("."),I=Q.replace(B,"").split("."),E=Math.max(C.length,I.length);for(let A=0;AB)return 1}return 0}(await B.sia.getVersion(),"0.4.5");try{Q=M?await B.sia.signTransactionV044(D,I,E):await B.sia.signTransaction(D,I,E,0)}catch(A){return{error:A.message}}return C.signatures[I].signature=Q,{transaction:C}}let AN={isConnected:!1,isSigned:!1};function Aa(A){var Q,B;let{params:w,trigger:D,open:M,onOpenChange:y}=A,{walletId:h}=w||{},[k,n]=(0,I.useState)("compose"),[K,t]=(0,I.useState)(),[L,i]=(0,I.useState)(At),G=(0,g.tM)({disabled:!h,params:{id:h}}),{dataset:p}=o({id:h}),r=Aw({balanceSc:(0,I.useMemo)(()=>{var A;return new(U())((null===(A=G.data)||void 0===A?void 0:A.siacoins)||0)},[G.data]),balanceSf:(0,I.useMemo)(()=>{var A;return new(U())((null===(A=G.data)||void 0===A?void 0:A.siafunds)||0)},[G.data]),defaultChangeAddress:null==p?void 0:null===(Q=p[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==p?void 0:null===(B=p[0])||void 0===B?void 0:B.address,onComplete:A=>{i(Q=>({...Q,...A})),n("send")}}),N=function(A){let{params:Q,step:B,onConfirm:w}=A,D=(0,c.cI)({mode:"all",defaultValues:AN}),M=D.watch("isConnected"),y=D.watch("isSigned"),{device:h,error:k}=(0,R.c)(),n=Ay(),K=function(A){let{cancel:Q}=A,{wallet:B}=(0,s.r)(),C=null==B?void 0:B.id,E=(0,g.jL)({disabled:!C,params:{id:C}}),w=(0,g.cd)({disabled:!C,params:{id:C}}),{dataset:D}=o({id:C}),{device:M}=(0,R.c)();return(0,I.useCallback)(async A=>{let{fundedTransaction:B,toSign:C}=A;if(!M||!B)return;let I=await Ap({device:M,transaction:B,toSign:C,addresses:D,siacoinOutputs:E.data,siafundOutputs:w.data});return I.error?(Q(B),{error:I.error}):{signedTransaction:I.transaction}},[M,D,E.data,w.data,Q])}({cancel:n}),t=As({cancel:n}),L=function(A){let{fund:Q,cancel:B,sign:C}=A;return(0,I.useCallback)(async A=>{let{fundedTransaction:I,toSign:E,error:g}=await Q(A);if(g)return{fundedTransaction:I,error:g};let{signedTransaction:w,error:D}=await C({fundedTransaction:I,toSign:E});return D?(B(I),{fundedTransaction:I,error:D}):{signedTransaction:w}},[Q,C,B])}({cancel:n,fund:Ah(),sign:K}),[U,i]=(0,I.useState)(!1),[G,p]=(0,I.useState)();(0,I.useEffect)(()=>{"compose"===B&&p(void 0)},[B]),(0,I.useEffect)(()=>{h?D.setValue("isConnected",!0):(i(!1),D.setValue("isConnected",!1))},[D,h]),(0,I.useEffect)(()=>{k?D.setError("isConnected",{message:k.message}):D.clearErrors("isConnected")},[D,k]),(0,I.useEffect)(()=>{G||D.setValue("isSigned",!1)},[D,G]);let r=(0,I.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:A=>A||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:A=>A||"Transaction must be signed"}}}}),[]),N=(0,I.useCallback)(async A=>{if(!A.isConnected)return;let{error:Q}=await t({signedTransaction:G});if(Q){(0,E.OHV)({title:Q});return}w({})},[t,G,w]),a=(0,E.WsO)(r),e=(0,I.useMemo)(()=>D.handleSubmit(N,a),[D,N,a]),J=(0,I.useCallback)(async()=>{i(!0);let{signedTransaction:A,error:B}=await L(Q);B?(0,E.OHV)({title:B}):(p(A),D.setValue("isSigned",!0)),i(!1)},[D,L,Q]),F=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"isConnected"}),(0,C.jsx)(E.cp7,{name:"isConnected",form:D}),(0,C.jsx)(v,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Signature",name:"isSigned"}),(0,C.jsx)(E.cp7,{name:"isSigned",form:D}),(0,C.jsx)(Ai,{waitingForUser:U,isConnected:M,isSigned:y,sign:J})]})]}),(0,C.jsx)(AD,{params:Q})]});return{form:D,el:F,handleSubmit:e,cancel:()=>{G&&n(G)},reset:()=>D.reset(AN)}}({walletId:h,step:k,params:L,onConfirm:A=>{let{transactionId:Q}=A;t(Q),n("done")}}),a=(0,I.useMemo)(()=>"compose"===k?{submitLabel:"Generate transaction",form:r.form,handleSubmit:r.handleSubmit,reset:r.reset}:"send"===k?{submitLabel:"Sign and broadcast transaction",form:N.form,handleSubmit:N.handleSubmit,reset:N.reset}:void 0,[k,r,N]);return(0,C.jsx)(AK,{trigger:D,open:M,onOpenChange:A=>{A||(r.reset(),N.reset(),n("compose")),y(A)},controls:a,compose:r,send:N,sendParams:L,signedTxnId:K,step:k,setStep:n})}function Ao(A){let{params:Q,trigger:B,open:g,onOpenChange:w}=A,{walletId:D}=Q||{},{dataset:M,cacheWalletMnemonic:y}=(0,s.r)(),h=null==M?void 0:M.find(A=>A.id===D),k={mnemonic:""},[n,K]=(0,I.useState)("password"),t=(0,c.cI)({mode:"all",defaultValues:k}),{handleOpenChange:L,closeAndReset:U}=(0,E.t0Y)({form:t,onOpenChange:w,defaultValues:k}),G=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}}({mnemonicHash:null==h?void 0:h.metadata.mnemonicHash,mnemonicFieldType:n,setMnemonicFieldType:K}),r=(0,I.useCallback)(A=>{y(D,A.mnemonic),U()},[D,y,U]),N=(0,E.WsO)(G);return(0,C.jsx)(E.VqE,{title:"Unlock wallet: ".concat(null==h?void 0:h.name),trigger:B,open:g,onOpenChange:L,contentVariants:{className:"w-[500px]"},onSubmit:t.handleSubmit(r,N),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:t,variant:"accent",size:"medium",children:"Continue"})}),children:(0,C.jsx)(p,{walletId:null==h?void 0:h.id,form:t,fields:G,name:"mnemonic"})})}function Ae(A){let{open:Q,onOpenChange:B}=A,{walletAutoLockTimeout:I,setWalletAutoLockTimeout:g,setWalletAutoLockEnabled:w,walletAutoLockEnabled:D}=(0,s.r)();return(0,C.jsx)(E.DLL,{open:Q,onOpenChange:B,securityEl:(0,C.jsx)(E.bZj,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(M.RdX,{})}),(0,C.jsx)(E.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,C.jsx)(E.rsf,{size:"medium",checked:D,onCheckedChange:A=>w(A)}),(0,C.jsxs)(E.PhF,{disabled:!D,value:String(I),onChange:A=>{g(Number(A.currentTarget.value))},children:[(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(5),children:"5 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(10),children:"10 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(20),children:"20 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(30),children:"30 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(60),children:"1 hour"})]})]}),(0,C.jsx)(E.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function AJ(A){let{title:Q,isNew:B,address:I,details:g,actions:w,remove:D}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[I?B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[w,B&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(M.PcV,{})})]})]}),g]})})}function AF(A){let{index:Q,address:B,isNew:g,setAddress:w,remove:D}=A,{device:M,error:c,setError:s}=(0,R.c)(),[y,h]=(0,I.useState)(!1),k=(0,I.useCallback)(async()=>{if(M){if(c){(0,E.OHV)({title:"Error connecting to Ledger",body:c.message});return}try{h(!0);let A=await M.sia.verifyStandardAddress(Q);w({index:Q,address:A.address,publicKey:A.publicKey})}catch(A){s(A),console.log(A)}h(!1)}},[Q,M,c,s,w]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:B?(0,C.jsx)(AJ,{title:"Address ".concat(Q),isNew:g,remove:D,address:B,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:B,label:"public key 0",color:"subtle",maxLength:30})})}):y?(0,C.jsx)(AJ,{title:"Address ".concat(Q),isNew:g,remove:D,details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,C.jsx)(AJ,{title:"Address ".concat(Q),isNew:g,remove:D,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:k,children:"Generate"})})})})}function AS(A){return{isNew:!0,address:"",publicKey:"",index:A}}function Al(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M,walletJustCreated:y}=Q||{},{dataset:h,lastIndex:k,datasetCount:K}=o({id:M}),{dataset:t}=(0,s.r)(),L=null==t?void 0:t.find(A=>A.id===M),i=k+1,G={ledgerConnected:!1,index:new(U())(i),count:new(U())(1)},p=(0,c.cI)({mode:"all",defaultValues:G}),{disconnect:r,error:N}=(0,R.c)();(0,I.useEffect)(()=>{!y&&w&&r()},[w]),(0,I.useEffect)(()=>{p.formState.isSubmitting||p.setValue("index",new(U())(i))},[i]);let a=p.watch("index"),e=p.watch("count"),J={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:A=>A||"Ledger must be connected"}}},index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"1",validation:{required:"required",max:1e3}}},F=(0,g.yi)();(0,I.useEffect)(()=>{N?p.setError("ledgerConnected",{message:N.message}):p.clearErrors("ledgerConnected")},[p,N]);let[S,l]=(0,I.useState)({});(0,I.useEffect)(()=>{w&&y&&l({0:AS(0)})},[w]);let H=(0,I.useCallback)(()=>{if(!a||!e)return;let A={...S};for(let Q=a.toNumber();Q{l(Q=>{let B={...Q};return delete B[A],B})},[]),f=(0,I.useCallback)(A=>{let{index:Q,address:B,publicKey:C}=A;l(A=>{let I={...A};return I[Q]={...I[Q],address:B,publicKey:C},I})},[l]),d=(0,I.useMemo)(()=>{let A={};for(let[Q,{address:B,publicKey:C}]of Object.entries(S)){let I=null==h?void 0:h.find(A=>A.metadata.index===Number(Q));A[Q]={isNew:!I,index:Number(Q),address:(null==I?void 0:I.address)||B,publicKey:(null==I?void 0:I.metadata.unlockConditions.publicKeys[0])||C}}return A},[h,S]),u=(0,I.useMemo)(()=>Object.entries(d).filter(A=>{let[Q,B]=A;return B.isNew&&B.address}).map(A=>{let[Q,B]=A;return B}),[d]),j=(0,I.useCallback)(async()=>{let A=u.length;function Q(A,Q){1===A?(0,E.OHV)({title:"Error saving address"}):(0,E.OHV)({title:"Error saving addresses",body:Q>0?"Not all addresses were saved.":""})}for(let[B,{address:C,publicKey:I,index:E}]of u.entries()){let g=(0,n.K)().wallet.standardUnlockConditions(I);if(g.error){Q(A,B);return}let w={index:E,unlockConditions:g.unlockConditions};if((await F.put({params:{id:M},payload:{address:C,description:"",metadata:w}})).error){Q(A,B);return}}1===A?(0,E.OPV)({title:"Added 1 address"}):(0,E.OPV)({title:"Added ".concat(A," addresses")})},[F,M,u]),{handleOpenChange:b,closeAndReset:m}=(0,E.t0Y)({form:p,onOpenChange:A=>{l({}),D(A)},defaultValues:G}),T=(0,I.useCallback)(async()=>{if(0===u.length){(0,E.OHV)({title:"Generate an address",body:"Add and generate addresses with your Ledger device to continue."});return}await j(),m()},[u,j,m]);return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==L?void 0:L.name,": generate addresses"),trigger:B,open:w,onOpenChange:b,contentVariants:{className:"w-[500px]"},onSubmit:p.handleSubmit(T),controls:(0,C.jsxs)("div",{className:"flex gap-1 justify-end",children:[(0,C.jsx)(E.zxk,{size:"medium",variant:"gray",onClick:m,children:"Close"}),u.length>0&&(0,C.jsxs)(E.ZqQ,{form:p,variant:"accent",size:"medium",children:["Save ",u.length," ",1===u.length?"address":"addresses"]})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.xvT,{children:["Wallet currently has ",K," ",1===K?"address":"addresses"," with a highest index of"," ",k,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnected"}),(0,C.jsx)(E.cp7,{name:"ledgerConnected",form:p}),(0,C.jsx)(v,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:p,fields:J,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:p,fields:J,name:"count"})}),(0,C.jsx)(E.zxk,{onClick:H,children:"Add"})]}),(0,C.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(d).map(A=>{let[Q,{address:B,isNew:I}]=A;return(0,C.jsx)(AF,{isNew:I,address:B,setAddress:f,index:Number(Q),remove:()=>Y(Number(Q))},Q)})})]})]})})}let AH=(0,I.createContext)({}),AY=()=>(0,I.useContext)(AH);function Af(A){let{children:Q}=A,B=function(){let[A,Q]=(0,I.useState)(),[B,C]=(0,I.useState)({}),E=(0,I.useCallback)((A,B)=>{C(Q=>({...Q,[A]:B})),Q(A)},[C,Q]),g=(0,I.useCallback)(()=>{C(Q=>({...Q,[A]:void 0})),Q(void 0)},[Q,C,A]),w=(0,I.useCallback)(A=>{A||g()},[g]);return{dialog:A,params:B,openDialog:E,confirm,closeDialog:g,onOpenChange:w}}();return(0,C.jsx)(AH.Provider,{value:B,children:Q})}function Ad(){let{openDialog:A,onOpenChange:Q,closeDialog:B,dialog:I,params:w}=AY(),M=(0,g.Wl)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Ae,{open:"settings"===I,onOpenChange:Q}),(0,C.jsx)(D,{open:"walletAddType"===I,params:w.walletAddType,onOpenChange:Q=>Q?A(I,w.walletAddType):B()}),(0,C.jsx)(t,{open:"walletAddNew"===I,params:w.walletAddNew,onOpenChange:Q=>Q?A(I,w.walletAddNew):B()}),(0,C.jsx)(W,{open:"walletAddRecover"===I,params:w.walletAddRecover,onOpenChange:Q=>Q?A(I,w.walletAddRecover):B()}),(0,C.jsx)(V,{open:"walletAddLedger"===I,params:w.walletAddLedger,onOpenChange:Q=>Q?A(I,w.walletAddLedger):B()}),(0,C.jsx)(q,{open:"walletAddWatch"===I,params:w.walletAddWatch,onOpenChange:Q=>Q?A(I,w.walletAddWatch):B()}),(0,C.jsx)(e,{open:"walletAddressesGenerate"===I,params:w.walletAddressesGenerate,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(Al,{open:"walletLedgerAddressGenerate"===I,params:w.walletLedgerAddressGenerate,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(AQ,{open:"walletAddressesAdd"===I,params:w.walletAddressesAdd,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(l,{open:"walletRemove"===I,params:w.walletRemove,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(d,{open:"walletUpdate"===I,params:w.walletUpdate,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(Ao,{open:"walletUnlock"===I,params:w.walletUnlock,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(Y,{open:"addressUpdate"===I,params:w.addressUpdate,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(AC,{open:"addressRemove"===I,params:w.addressRemove,onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(E.D_D,{open:"connectPeer"===I,params:w.connectPeer,connect:A=>M.post({payload:A}),onOpenChange:Q=>Q?A(I):B()}),(0,C.jsx)(AL,{open:"walletSendSeed"===I,params:w.walletSendSeed,onOpenChange:Q=>Q?A(I,w.walletSendSeed):B()}),(0,C.jsx)(Aa,{open:"walletSendLedger"===I,params:w.walletSendLedger,onOpenChange:Q=>Q?A(I,w.walletSendLedger):B()}),(0,C.jsx)(E.QHy,{open:"confirm"===I,params:w.confirm,onOpenChange:Q=>Q?A(I,w.confirm):B()})]})}},8714:function(A,Q,B){"use strict";B.d(Q,{Yl:function(){return L},hI:function(){return t}});var C=B(52322),I=B(56289),E=B(51587),g=B(2784);let w=["transactionId","type","height","timestamp","amount","fee"],D=[];var M=B(92581);let c=[{id:"transactionId",label:"transaction ID",category:"general",render:A=>{let{data:{id:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"transaction ID",type:"transaction",siascanUrl:B.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:A=>{let{data:{type:Q}}=A;return(0,C.jsx)(I.xvT,{weight:"medium",ellipsis:!0,children:Q})}},{id:"height",label:"height",category:"general",render:A=>{let{data:{height:Q,pending:B}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):Q?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:Q.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",render:A=>{let{data:{timestamp:Q,pending:B}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,M.rN)(Q,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{amountSc:Q,amountSf:B}}=A;return Q?(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[!Q.isZero()&&(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",value:Q}),!!B&&(0,C.jsx)(I.Sby,{size:"12",value:B})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{fee:Q}}=A;return Q?(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:Q}):null}},{id:"contractId",label:"contract ID",category:"general",render:A=>{let{data:{contractId:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"contract ID",siascanUrl:B.siascanUrl}):null}}];var s=B(5632),y=B(6391),h=B.n(y),k=B(74667),n=B(9338);let K=(0,g.createContext)({}),t=()=>(0,g.useContext)(K);function L(A){let{children:Q}=A,B=function(){let A=(0,s.useRouter)(),Q=A.query.id,B=Number(A.query.limit||100),C=Number(A.query.offset||0),{filters:M,setFilter:y,removeFilter:K,removeLastFilter:t,resetFilters:L}=(0,I.Uu5)(),U=(0,E.jy)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:n.h}}}),i=(0,E.sG)({disabled:!Q,params:{limit:B,offset:C,id:Q},config:{swr:{refreshInterval:n.h}}}),G=(0,E.cr)(),p=(0,g.useCallback)(async()=>{G.post({payload:0})},[G]),r=(0,g.useMemo)(()=>{if(!i.data||!U.data)return null;let A=U.data.map(A=>({id:A.id,timestamp:0,pending:!0,type:A.type,amount:new(h())(A.received).minus(A.sent)})),Q=i.data.map((A,Q)=>{let B=new(h())(0),C=0;if("transaction"===A.type){var I,E,g,w,D,M,c,s;let Q=(null===(E=A.val)||void 0===E?void 0:null===(I=E.siacoinInputs)||void 0===I?void 0:I.reduce((Q,B)=>A.relevant.includes(B.siacoinOutput.address)?Q.plus(B.siacoinOutput.value):Q,new(h())(0)))||new(h())(0);B=((null===(w=A.val)||void 0===w?void 0:null===(g=w.siacoinOutputs)||void 0===g?void 0:g.reduce((Q,B)=>A.relevant.includes(B.siacoinOutput.address)?Q.plus(B.siacoinOutput.value):Q,new(h())(0)))||new(h())(0)).minus(Q);let y=(null===(M=A.val)||void 0===M?void 0:null===(D=M.siafundInputs)||void 0===D?void 0:D.reduce((Q,B)=>A.relevant.includes(B.siafundElement.siafundOutput.address)?Q+B.siafundElement.siafundOutput.value:Q,0))||0;C=((null===(s=A.val)||void 0===s?void 0:null===(c=s.siafundOutputs)||void 0===c?void 0:c.reduce((Q,B)=>A.relevant.includes(B.siafundOutput.address)?Q+B.siafundOutput.value:Q,0))||0)-y}"miner payout"===A.type&&(B=new(h())(A.val.siacoinOutput.siacoinOutput.value)),"foundation subsidy"===A.type&&(B=new(h())(A.val.siacoinOutput.siacoinOutput.value));let y={id:A.id,type:A.type,timestamp:new Date(A.timestamp).getTime(),height:A.index.height,pending:!1,amountSc:B,amountSf:C};return"transaction"===A.type&&(y.fee=new(h())(A.val.fee)),"contract payout"===A.type&&(y.contractId=A.val.fileContract.id),y});return[...A.reverse(),...Q]},[i.data,U.data]),{configurableColumns:N,enabledColumns:a,sortableColumns:o,toggleColumnVisibility:e,setColumnsVisible:J,setColumnsHidden:F,toggleSort:S,setSortDirection:l,setSortField:H,sortField:Y,sortDirection:f,resetDefaultColumnVisibility:d}=(0,I.oy6)("walletd/v0/events",{columns:c,columnsDefaultVisible:w,sortOptions:D,defaultSortField:"id"}),u=(0,g.useMemo)(()=>c.filter(A=>A.fixed||a.includes(A.id)),[a]),R=i.isValidating||U.isValidating,j=i.error||U.error,b=(0,I.c2j)(r,R,j,M),m=(0,k.B)(),T=(0,g.useMemo)(()=>({siascanUrl:m}),[m]);return{dataState:b,error:i.error,pageCount:(null==r?void 0:r.length)||0,columns:u,dataset:r,cellContext:T,configurableColumns:N,enabledColumns:a,sortableColumns:o,toggleColumnVisibility:e,setColumnsVisible:J,setColumnsHidden:F,toggleSort:S,setSortDirection:l,setSortField:H,sortField:Y,sortDirection:f,resetDefaultColumnVisibility:d,filters:M,setFilter:y,removeFilter:K,removeLastFilter:t,resetFilters:L,resubscribe:p,offset:C,limit:B}}();return(0,C.jsx)(K.Provider,{value:B,children:Q})}},16694:function(A,Q,B){"use strict";B.d(Q,{c:function(){return c},d:function(){return s}});var C=B(52322),I=B(73866),E=B(27748),g=B(35415),w=B.n(g),D=B(2784);let M=(0,D.createContext)({}),c=()=>(0,D.useContext)(M);function s(A){let{children:Q}=A,B=function(){let[A,Q]=(0,D.useState)(!1),[B,C]=(0,D.useState)(),[g,M]=(0,D.useState)(),c=(0,D.useCallback)(()=>{if(B){try{B.sia.close(),M(void 0)}catch(A){console.log(A)}C(void 0)}},[B]),s=(0,D.useCallback)(async A=>{let B=null;Q(!0);try{switch(A){case"HID":(B=await E.Z.openConnected())||(B=await E.Z.create());break;case"Bluetooth":B=await I.Z.create();break;default:throw Error("Unsupported transport method: ".concat(A))}if(B){M(void 0);let I=new(w())(B);C({type:A,sia:I,transport:B}),Q(!1)}}catch(A){M(A),Q(!1)}},[]),y=(0,D.useCallback)(async()=>{if(!B){M(Error("No device connected"));return}Q(!0);try{let A=await B.sia.verifyPublicKey(0);return M(void 0),C(Q=>({...Q,publicKey0:A.publicKey,address0:A.address})),Q(!1),A}catch(A){Q(!1),M(A)}},[B]);return(0,D.useEffect)(()=>{if(!(null==B?void 0:B.transport))return;let A=setInterval(async()=>{(null==B?void 0:B.transport._disconnectEmitted)&&C(void 0)},2e3);return()=>clearInterval(A)},[null==B?void 0:B.transport]),{connect:s,verify:y,disconnect:c,device:B,error:g,setError:M,waitingForUser:A}}();return(0,C.jsx)(M.Provider,{value:B,children:Q})}},23312:function(A,Q,B){"use strict";B.d(Q,{k:function(){return a},r:function(){return N}});var C=B(52322),I=B(56289),E=B(51587),g=B(2784),w=B(26249),D=B(67537),M=B(92581),c=B(3584),s=B(36350),y=B(6391),h=B.n(y),k=B(12172);let n=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(k.g,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},wallet:Q})}},{id:"details",label:"name",category:"general",fixed:!0,render:A=>{let{data:{id:Q,name:B,description:E}}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.xvT,{weight:"bold",ellipsis:!0,children:B||Q}),E&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:E})}),children:(0,C.jsx)(I.nvN,{size:"12",children:E.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(A){let{data:{id:Q}}=A,B=(0,E.tM)({params:{id:Q}});return B.data?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(h())(B.data.siacoins)}),!!B.data.siafunds&&(0,C.jsx)(I.Sby,{size:"12",variant:"value",value:B.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:A=>{var Q,B;let{data:{metadata:{type:E}}}=A;return(0,C.jsx)(I.ua7,{content:null===(Q=s._[E])||void 0===Q?void 0:Q.title,children:(0,C.jsxs)(I.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,C.jsx)(I.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(B=s._[E])||void 0===B?void 0:B.icon}),E]})})}},{id:"status",label:"status",category:"general",render:A=>{let{data:Q,context:{walletAutoLockEnabled:B,walletAutoLockTimeout:E}}=A,{type:g}=Q.metadata,{status:w,activityAt:M}=Q.state,{unlock:s,lock:y}=Q.actions;if("seed"===g){let A=new Date().getTime()-M,Q=(0,c.l)(Math.max(E-A,0)),g=B?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(Q.amount.toFixed(0)," more ").concat(Q.units,", manually locked, or the app is closed."):"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed.";return(0,C.jsx)(I.zxk,{tip:"unlocked"===w?g:"The wallet is currently locked.",color:"unlocked"===w?"contrast":"verySubtle",variant:"ghost",onClick:A=>{A.stopPropagation(),"unlocked"===w?y():s()},children:"unlocked"===w?(0,C.jsx)(D.VmF,{}):(0,C.jsx)(D.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:A=>{let{data:{createdAt:Q}}=A;return Q?(0,C.jsx)(I.xvT,{size:"12",children:(0,M.rN)(Q,{dateStyle:"medium"})}):null}}];var K=B(5632),t=B(98334),L=B(27429),U=B(92762),i=B(73229),G=B(10363),p=B(9338);let r=(0,g.createContext)({}),N=()=>(0,g.useContext)(r);function a(A){let{children:Q}=A,B=function(){let A=(0,E.rB)({config:{swr:{refreshInterval:p.h}}}),Q=(0,K.useRouter)(),{openDialog:B}=(0,i.Rh)(),{setOnLockCallback:C}=(0,G.Hv)(),{mnemonicCache:D,walletActivityAt:M,cacheWalletMnemonic:c,cachedMnemonicCount:s,lockAllWallets:y,walletAutoLockTimeout:h,setWalletAutoLockTimeout:k,setWalletAutoLockEnabled:r,walletAutoLockEnabled:N}=function(){let[A,Q]=(0,U.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[B,C]=(0,U.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,I.sWj)(5)}),[E,w]=(0,g.useState)({}),[D,M]=(0,g.useState)({}),c=(0,g.useMemo)(()=>Object.keys(D).length,[D]),s=(0,g.useCallback)(A=>{w(Q=>({...Q,[A]:new Date().getTime()}))},[w]),y=(0,g.useCallback)((A,Q)=>{M(B=>({...B,[A]:Q})),Q&&s(A)},[M,s]),h=(0,g.useCallback)(()=>{if(!A)return;let Q=new Date().getTime()-B;for(let[A,B]of Object.entries(D))B&&(E[A]||0){M({})},[M]),n=(0,K.useRouter)(),i=(0,g.useCallback)(()=>{n.pathname.startsWith(t._.wallet.base)&&s(n.query.id)},[n,s]);return(0,L.Yp)({onAction:i,throttle:5e3,eventsThrottle:5e3}),(0,g.useEffect)(()=>{if(!A)return;let Q=setInterval(()=>{h()},5e3);return()=>{clearInterval(Q)}},[A]),{walletActivityAt:E,updateWalletActivityAt:s,mnemonicCache:D,cacheWalletMnemonic:y,lockAllWallets:k,cachedMnemonicCount:c,walletAutoLockTimeout:B,setWalletAutoLockTimeout:C,setWalletAutoLockEnabled:Q,walletAutoLockEnabled:A}}();(0,g.useEffect)(()=>{C("wallets",()=>{y()})},[]);let a=(0,g.useMemo)(()=>A.data?A.data.map(A=>{let{id:C,name:I,description:E,dateCreated:g,lastUpdated:w,metadata:s}=A;return{id:C,name:I,description:E,createdAt:new Date(g).getTime()||0,updatedAt:new Date(w).getTime()||0,metadata:s||{},raw:A,state:{mnemonic:D[C],status:D[C]?"unlocked":"locked",activityAt:M[C]},actions:{unlock:()=>B("walletUnlock",{walletId:C}),lock:()=>c(C,void 0)},onClick:()=>Q.push({pathname:t._.wallet.view,query:{id:C}})}}):null,[Q,A.data,D,M,B,c]),o=null==a?void 0:a.find(A=>A.id===Q.query.id),{filters:e,setFilter:J,removeFilter:F,removeLastFilter:S,resetFilters:l}=(0,I.Wdu)(),{configurableColumns:H,enabledColumns:Y,sortableColumns:f,toggleColumnVisibility:d,setColumnsVisible:u,setColumnsHidden:R,toggleSort:j,setSortDirection:b,setSortField:m,sortField:T,sortDirection:Z,resetDefaultColumnVisibility:O}=(0,I.oy6)("walletd/v0/wallets",{columns:n,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),v=(0,I._4u)({dataset:a,filters:e,sortField:T,sortDirection:Z}),x=(0,g.useMemo)(()=>n.filter(A=>A.fixed||Y.includes(A.id)),[Y]),V=(0,I.c2j)(a,A.isValidating,A.error,e),z=(0,g.useMemo)(()=>({walletAutoLockTimeout:h,walletAutoLockEnabled:N}),[N,h]);return{dataState:V,error:A.error,datasetCount:(null==v?void 0:v.length)||0,unlockedCount:s,columns:x,dataset:v,context:z,wallet:o,configurableColumns:H,enabledColumns:Y,sortableColumns:f,toggleColumnVisibility:d,setColumnsVisible:u,setColumnsHidden:R,toggleSort:j,setSortDirection:b,setSortField:m,sortField:T,filters:e,setFilter:J,removeFilter:F,removeLastFilter:S,resetFilters:l,sortDirection:Z,resetDefaultColumnVisibility:O,cacheWalletMnemonic:c,lockAllWallets:y,walletAutoLockTimeout:h,setWalletAutoLockTimeout:k,setWalletAutoLockEnabled:r,walletAutoLockEnabled:N}}();return(0,C.jsx)(r.Provider,{value:B,children:Q})}},26249:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","details","balance","type","status","createdAt"],I="name",E=[{id:"name",label:"name",category:"general"},{id:"type",label:"type",category:"general"},{id:"status",label:"status",category:"general"},{id:"createdAt",label:"created on",category:"general"}]},74667:function(A,Q,B){"use strict";B.d(Q,{B:function(){return E}});var C=B(56289),I=B(51587);function E(){var A;return(null===(A=(0,I.gM)().data)||void 0===A?void 0:A.name)==="zen"?C.nNd.explore.testnetZen:C.nNd.explore.mainnet}},3584:function(A,Q,B){"use strict";function C(A){return!A||A<1e3?{amount:0,units:"seconds"}:(A/=1e3)<60?{amount:Math.floor(100*A)/100,units:"seconds"}:{amount:Math.floor(A/60*100)/100,units:"minutes"}}B.d(Q,{l:function(){return C}})},1906:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{default:function(){return G}});var C=B(52322);B(50521);var I=B(56289),E=B(73229),g=B(2784),w=B(23312),D=B(58723),M=B(8714),c=B(16694),s=B(48869);let y=(0,g.createContext)({});function h(A){let{children:Q}=A,B=((0,g.useEffect)(()=>{(async()=>{await (0,s.x)()})()},[]),{});return(0,C.jsx)(y.Provider,{value:B,children:Q})}function k(A){let{children:Q}=A;return(0,C.jsx)(h,{children:(0,C.jsx)(E.Tu,{children:(0,C.jsx)(c.d,{children:(0,C.jsx)(w.k,{children:(0,C.jsx)(D.OZ,{children:(0,C.jsxs)(M.Yl,{children:[(0,C.jsx)(E.xQ,{}),Q]})})})})})})}var n=B(98334),K=B(46058),t=B.n(K),L=B(28863),U=B.n(L);let i=(0,B(82851).cx)(t().variable,U().variable);function G(A){let{Component:Q,pageProps:B}=A;return(0,C.jsx)(I.PD$,{className:i,fallback:B.fallback,passwordProtectRequestHooks:!0,lockRoutes:n._,children:(0,C.jsx)(k,{children:(0,C.jsx)(Q,{...B})})})}},56289:function(A,Q,B){"use strict";let C,I,E,g,w;B.d(Q,{bZj:function(){return D3},tU3:function(){return e2},zXq:function(){return Jj},juT:function(){return e_},Cts:function(){return ME},WVB:function(){return yS},zxk:function(){return D$},EKh:function(){return Mw},QHy:function(){return lH},HfT:function(){return ld},ncR:function(){return aq},VqE:function(){return sB},h_2:function(){return yd},Xiv:function(){return yu},Juw:function(){return yR},KpP:function(){return yj},cp7:function(){return a_},Qyk:function(){return aX},jIp:function(){return lj},WyV:function(){return lT},qGu:function(){return lR},QBj:function(){return lm},yEL:function(){return JD},Bau:function(){return lb},ZqQ:function(){return a8},X6q:function(){return yZ},Yqd:function(){return kQ},__J:function(){return yP},rUS:function(){return y_},Qjf:function(){return y$},xgg:function(){return rY},kFS:function(){return yl},FzK:function(){return ll},Clw:function(){return yF},PD$:function(){return lx},Wxm:function(){return kE},wFK:function(){return eV},s_4:function(){return Bq},nvN:function(){return BW},u5Q:function(){return lr},j4H:function(){return kB},J2e:function(){return hh},tIK:function(){return lD},PhF:function(){return kI},Wh3:function(){return nD},Z0O:function(){return yN},DLL:function(){return lp},KJW:function(){return e8},rsf:function(){return ki},D_D:function(){return ly},iA_:function(){return ex},t6k:function(){return lu},xvT:function(){return Bz},ua7:function(){return DX},XxW:function(){return aI},YKL:function(){return aw},ho9:function(){return ac},Sby:function(){return ag},hKn:function(){return lk},vQq:function(){return N9},ytg:function(){return lt},sWj:function(){return lK},XBW:function(){return lL},I13:function(){return N7},OHV:function(){return N4},OPV:function(){return N1},$Gg:function(){return N6},_4u:function(){return l3},Wdu:function(){return l8},c2j:function(){return e5},t0Y:function(){return lZ},WsO:function(){return Jw},Uu5:function(){return l1},oy6:function(){return l$},nNd:function(){return ln}});var D,M,c,s,y,h,k,n,K,t,L,U,i,G,p,r,N,a,o,e,J,F,S,l,H,Y,f,d,u,R,j,b,m,T,Z,O,v,x,V,z,W,P,q,X,_,$,AA,AQ,AB,AC,AI,AE,Ag,Aw,AD,AM,Ac,As,Ay,Ah,Ak,An,AK={};B.r(AK),B.d(AK,{useDropzone:function(){return tI}});var At=B(52322),AL=B(2784),AU=B.t(AL,2);function Ai(){return(Ai=Object.assign?Object.assign.bind():function(A){for(var Q=1;QC,Object.values(C));return(0,AL.createElement)(B.Provider,{value:I},Q)}return C.displayName=A+"Provider",[C,function(C){let I=(0,AL.useContext)(B);if(I)return I;if(void 0!==Q)return Q;throw Error(`\`${C}\` must be used within \`${A}\``)}]}function Ap(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>(0,AL.createContext)(A));return function(B){let C=(null==B?void 0:B[A])||Q;return(0,AL.useMemo)(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=(0,AL.createContext)(C),E=B.length;function g(Q){let{scope:B,children:C,...g}=Q,w=(null==B?void 0:B[A][E])||I,D=(0,AL.useMemo)(()=>g,Object.values(g));return(0,AL.createElement)(w.Provider,{value:D},C)}return B=[...B,C],g.displayName=Q+"Provider",[g,function(B,g){let w=(null==g?void 0:g[A][E])||I,D=(0,AL.useContext)(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return(0,AL.useMemo)(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}function Ar(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}function AN(...A){return(0,AL.useCallback)(Ar(...A),A)}let Aa=(0,AL.forwardRef)((A,Q)=>{let{children:B,...C}=A,I=AL.Children.toArray(B),E=I.find(AJ);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:AL.Children.count(A)>1?AL.Children.only(null):(0,AL.isValidElement)(A)?A.props.children:null);return(0,AL.createElement)(Ao,Ai({},C,{ref:Q}),(0,AL.isValidElement)(A)?(0,AL.cloneElement)(A,void 0,B):null)}return(0,AL.createElement)(Ao,Ai({},C,{ref:Q}),B)});Aa.displayName="Slot";let Ao=(0,AL.forwardRef)((A,Q)=>{let{children:B,...C}=A;return(0,AL.isValidElement)(B)?(0,AL.cloneElement)(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?B[C]=(...A)=>{null==E||E(...A),null==I||I(...A)}:"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:Ar(Q,B.ref)}):AL.Children.count(B)>1?AL.Children.only(null):null});Ao.displayName="SlotClone";let Ae=({children:A})=>(0,AL.createElement)(AL.Fragment,null,A);function AJ(A){return(0,AL.isValidElement)(A)&&A.type===Ae}function AF(A){let Q=A+"CollectionProvider",[B,C]=Ap(Q),[I,E]=B(Q,{collectionRef:{current:null},itemMap:new Map}),g=A+"CollectionSlot",w=AL.forwardRef((A,Q)=>{let{scope:B,children:C}=A,I=AN(Q,E(g,B).collectionRef);return AL.createElement(Aa,{ref:I},C)}),D=A+"CollectionItemSlot",M="data-radix-collection-item";return[{Provider:A=>{let{scope:Q,children:B}=A,C=AL.useRef(null),E=AL.useRef(new Map).current;return AL.createElement(I,{scope:Q,itemMap:E,collectionRef:C},B)},Slot:w,ItemSlot:AL.forwardRef((A,Q)=>{let{scope:B,children:C,...I}=A,g=AL.useRef(null),w=AN(Q,g),c=E(D,B);return AL.useEffect(()=>(c.itemMap.set(g,{ref:g,...I}),()=>void c.itemMap.delete(g))),AL.createElement(Aa,{[M]:"",ref:w},C)})},function(Q){let B=E(A+"CollectionConsumer",Q);return AL.useCallback(()=>{let A=B.collectionRef.current;if(!A)return[];let Q=Array.from(A.querySelectorAll(`[${M}]`));return Array.from(B.itemMap.values()).sort((A,B)=>Q.indexOf(A.ref.current)-Q.indexOf(B.ref.current))},[B.collectionRef,B.itemMap])},C]}function AS(A,Q,{checkForDefaultPrevented:B=!0}={}){return function(C){if(null==A||A(C),!1===B||!C.defaultPrevented)return null==Q?void 0:Q(C)}}function Al(A){let Q=(0,AL.useRef)(A);return(0,AL.useEffect)(()=>{Q.current=A}),(0,AL.useMemo)(()=>(...A)=>{var B;return null===(B=Q.current)||void 0===B?void 0:B.call(Q,...A)},[])}function AH({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=(0,AL.useState)(A),[C]=B,I=(0,AL.useRef)(C),E=Al(Q);return(0,AL.useEffect)(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=Al(B);return[g,(0,AL.useCallback)(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}var AY=B(28316);let Af=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=(0,AL.forwardRef)((A,B)=>{let{asChild:C,...I}=A,E=C?Aa:Q;return(0,AL.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,AL.createElement)(E,Ai({},I,{ref:B}))});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{});function Ad(A,Q){A&&(0,AY.flushSync)(()=>A.dispatchEvent(Q))}let Au=(null==globalThis?void 0:globalThis.document)?AL.useLayoutEffect:()=>{},AR=A=>{let{present:Q,children:B}=A,C=function(A){var Q,B;let[C,I]=(0,AL.useState)(),E=(0,AL.useRef)({}),g=(0,AL.useRef)(A),w=(0,AL.useRef)("none"),[D,M]=(Q=A?"mounted":"unmounted",B={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,AL.useReducer)((A,Q)=>{let C=B[A][Q];return null!=C?C:A},Q));return(0,AL.useEffect)(()=>{let A=Aj(E.current);w.current="mounted"===D?A:"none"},[D]),Au(()=>{let Q=E.current,B=g.current;if(B!==A){let C=w.current,I=Aj(Q);A?M("MOUNT"):"none"===I||(null==Q?void 0:Q.display)==="none"?M("UNMOUNT"):B&&C!==I?M("ANIMATION_OUT"):M("UNMOUNT"),g.current=A}},[A,M]),Au(()=>{if(C){let A=A=>{let Q=Aj(E.current).includes(A.animationName);A.target===C&&Q&&(0,AY.flushSync)(()=>M("ANIMATION_END"))},Q=A=>{A.target===C&&(w.current=Aj(E.current))};return C.addEventListener("animationstart",Q),C.addEventListener("animationcancel",A),C.addEventListener("animationend",A),()=>{C.removeEventListener("animationstart",Q),C.removeEventListener("animationcancel",A),C.removeEventListener("animationend",A)}}M("ANIMATION_END")},[C,M]),{isPresent:["mounted","unmountSuspended"].includes(D),ref:(0,AL.useCallback)(A=>{A&&(E.current=getComputedStyle(A)),I(A)},[])}}(Q),I="function"==typeof B?B({present:C.isPresent}):AL.Children.only(B),E=AN(C.ref,I.ref);return"function"==typeof B||C.isPresent?(0,AL.cloneElement)(I,{ref:E}):null};function Aj(A){return(null==A?void 0:A.animationName)||"none"}AR.displayName="Presence";let Ab=AU["useId".toString()]||(()=>void 0),Am=0;function AT(A){let[Q,B]=AL.useState(Ab());return Au(()=>{A||B(A=>null!=A?A:String(Am++))},[A]),A||(Q?`radix-${Q}`:"")}let AZ="Collapsible",[AO,Av]=Ap(AZ),[Ax,AV]=AO(AZ),Az=((A,Q)=>{let{__scopeCollapsible:B,open:C,defaultOpen:I,disabled:E,onOpenChange:g,...w}=A,[D=!1,M]=AH({prop:C,defaultProp:I,onChange:g});return(0,AL.createElement)(Ax,{scope:B,disabled:E,contentId:AT(),open:D,onOpenToggle:(0,AL.useCallback)(()=>M(A=>!A),[M])},(0,AL.createElement)(Af.div,Ai({"data-state":AP(D),"data-disabled":E?"":void 0},w,{ref:Q})))},"CollapsibleContent"),AW=((A,Q)=>{let{forceMount:B,...C}=A,I=AV(Az,A.__scopeCollapsible);return(0,AL.createElement)(AR,{present:B||I.open},({present:A})=>(0,AL.createElement)(AW,Ai({},C,{ref:Q,present:A})))},(0,AL.forwardRef)((A,Q)=>{let{__scopeCollapsible:B,present:C,children:I,...E}=A,g=AV(Az,B),[w,D]=(0,AL.useState)(C),M=(0,AL.useRef)(null),c=AN(Q,M),s=(0,AL.useRef)(0),y=s.current,h=(0,AL.useRef)(0),k=h.current,n=g.open||w,K=(0,AL.useRef)(n),t=(0,AL.useRef)();return(0,AL.useEffect)(()=>{let A=requestAnimationFrame(()=>K.current=!1);return()=>cancelAnimationFrame(A)},[]),Au(()=>{let A=M.current;if(A){t.current=t.current||{transitionDuration:A.style.transitionDuration,animationDuration:A.style.animationDuration,animationFillMode:A.style.animationFillMode},A.style.transitionDuration="0s",A.style.animationDuration="0s",A.style.animationFillMode="none";let Q=A.getBoundingClientRect();s.current=Q.height,h.current=Q.width,K.current||(A.style.transitionDuration=t.current.transitionDuration,A.style.animationDuration=t.current.animationDuration,A.style.animationFillMode=t.current.animationFillMode),D(C)}},[g.open,C]),(0,AL.createElement)(Af.div,Ai({"data-state":AP(g.open),"data-disabled":g.disabled?"":void 0,id:g.contentId,hidden:!n},E,{ref:c,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...A.style}}),n&&I)}));function AP(A){return A?"open":"closed"}let Aq="Accordion",AX=["Home","End","ArrowDown","ArrowUp"],[A_,A$,A0]=AF(Aq),[A8,A3]=Ap(Aq,[A0,Av]);Av(),AL.forwardRef((A,Q)=>{let{type:B,...C}=A;return AL.createElement(A_.Provider,{scope:A.__scopeAccordion},"multiple"===B?AL.createElement(A6,Ai({},C,{ref:Q})):AL.createElement(A9,Ai({},C,{ref:Q})))}).propTypes={type(A){let Q=A.value||A.defaultValue;return A.type&&!["single","multiple"].includes(A.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===A.type&&"string"==typeof Q?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===A.type&&Array.isArray(Q)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[A1,A4]=A8(Aq),[A2,A5]=A8(Aq,{collapsible:!1}),A9=AL.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},collapsible:E=!1,...g}=A,[w,D]=AH({prop:B,defaultProp:C,onChange:I});return AL.createElement(A1,{scope:A.__scopeAccordion,value:w?[w]:[],onItemOpen:D,onItemClose:AL.useCallback(()=>E&&D(""),[E,D])},AL.createElement(A2,{scope:A.__scopeAccordion,collapsible:E},AL.createElement(QQ,Ai({},g,{ref:Q}))))}),A6=AL.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},...E}=A,[g=[],w]=AH({prop:B,defaultProp:C,onChange:I}),D=AL.useCallback(A=>w((Q=[])=>[...Q,A]),[w]),M=AL.useCallback(A=>w((Q=[])=>Q.filter(Q=>Q!==A)),[w]);return AL.createElement(A1,{scope:A.__scopeAccordion,value:g,onItemOpen:D,onItemClose:M},AL.createElement(A2,{scope:A.__scopeAccordion,collapsible:!0},AL.createElement(QQ,Ai({},E,{ref:Q}))))}),[A7,QA]=A8(Aq),QQ=AL.forwardRef((A,Q)=>{let{__scopeAccordion:B,disabled:C,...I}=A,E=AN(AL.useRef(null),Q),g=A$(B),w=AS(A.onKeyDown,A=>{var Q;if(!AX.includes(A.key))return;let B=A.target,C=g().filter(A=>{var Q;return!(null!==(Q=A.ref.current)&&void 0!==Q&&Q.disabled)}),I=C.findIndex(A=>A.ref.current===B),E=C.length;if(-1===I)return;A.preventDefault();let w=I;switch(A.key){case"Home":w=0;break;case"End":w=E-1;break;case"ArrowDown":w=I+1;break;case"ArrowUp":(w=I-1)<0&&(w=E-1)}null===(Q=C[w%E].ref.current)||void 0===Q||Q.focus()});return AL.createElement(A7,{scope:B,disabled:C},AL.createElement(A_.Slot,{scope:B},AL.createElement(Af.div,Ai({},I,{ref:E,onKeyDown:C?void 0:w}))))}),[QB,QC]=A8("AccordionItem");var QI=B(82851);let QE="dismissableLayer.update",Qg=(0,AL.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qw=(0,AL.forwardRef)((A,Q)=>{let{disableOutsidePointerEvents:B=!1,onEscapeKeyDown:I,onPointerDownOutside:E,onFocusOutside:g,onInteractOutside:w,onDismiss:D,...M}=A,c=(0,AL.useContext)(Qg),[s,y]=(0,AL.useState)(null),[,h]=(0,AL.useState)({}),k=AN(Q,A=>y(A)),n=Array.from(c.layers),[K]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),t=n.indexOf(K),L=s?n.indexOf(s):-1,U=c.layersWithOutsidePointerEventsDisabled.size>0,i=L>=t,G=function(A){let Q=Al(A),B=(0,AL.useRef)(!1),C=(0,AL.useRef)(()=>{});return(0,AL.useEffect)(()=>{let A=A=>{if(A.target&&!B.current){let B={originalEvent:A};function I(){QM("dismissableLayer.pointerDownOutside",Q,B,{discrete:!0})}"touch"===A.pointerType?(document.removeEventListener("click",C.current),C.current=I,document.addEventListener("click",C.current,{once:!0})):I()}B.current=!1},I=window.setTimeout(()=>{document.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(I),document.removeEventListener("pointerdown",A),document.removeEventListener("click",C.current)}},[Q]),{onPointerDownCapture:()=>B.current=!0}}(A=>{let Q=A.target,B=[...c.branches].some(A=>A.contains(Q));!i||B||(null==E||E(A),null==w||w(A),A.defaultPrevented||null==D||D())}),p=function(A){let Q=Al(A),B=(0,AL.useRef)(!1);return(0,AL.useEffect)(()=>{let A=A=>{A.target&&!B.current&&QM("dismissableLayer.focusOutside",Q,{originalEvent:A},{discrete:!1})};return document.addEventListener("focusin",A),()=>document.removeEventListener("focusin",A)},[Q]),{onFocusCapture:()=>B.current=!0,onBlurCapture:()=>B.current=!1}}(A=>{let Q=A.target;[...c.branches].some(A=>A.contains(Q))||(null==g||g(A),null==w||w(A),A.defaultPrevented||null==D||D())});return!function(A){let Q=Al(A);(0,AL.useEffect)(()=>{let A=A=>{"Escape"===A.key&&Q(A)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[Q])}(A=>{L!==c.layers.size-1||(null==I||I(A),!A.defaultPrevented&&D&&(A.preventDefault(),D()))}),(0,AL.useEffect)(()=>{if(s)return B&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(C=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(s)),c.layers.add(s),QD(),()=>{B&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=C)}},[s,B,c]),(0,AL.useEffect)(()=>()=>{s&&(c.layers.delete(s),c.layersWithOutsidePointerEventsDisabled.delete(s),QD())},[s,c]),(0,AL.useEffect)(()=>{let A=()=>h({});return document.addEventListener(QE,A),()=>document.removeEventListener(QE,A)},[]),(0,AL.createElement)(Af.div,Ai({},M,{ref:k,style:{pointerEvents:U?i?"auto":"none":void 0,...A.style},onFocusCapture:AS(A.onFocusCapture,p.onFocusCapture),onBlurCapture:AS(A.onBlurCapture,p.onBlurCapture),onPointerDownCapture:AS(A.onPointerDownCapture,G.onPointerDownCapture)}))});function QD(){let A=new CustomEvent(QE);document.dispatchEvent(A)}function QM(A,Q,B,{discrete:C}){let I=B.originalEvent.target,E=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:B});Q&&I.addEventListener(A,Q,{once:!0}),C?Ad(I,E):I.dispatchEvent(E)}function Qc(A){return A.split("-")[0]}function Qs(A){return A.split("-")[1]}function Qy(A){return["top","bottom"].includes(Qc(A))?"x":"y"}function Qh(A){return"y"===A?"height":"width"}function Qk(A,Q,B){let C,{reference:I,floating:E}=A,g=I.x+I.width/2-E.width/2,w=I.y+I.height/2-E.height/2,D=Qy(Q),M=Qh(D),c=I[M]/2-E[M]/2,s="x"===D;switch(Qc(Q)){case"top":C={x:g,y:I.y-E.height};break;case"bottom":C={x:g,y:I.y+I.height};break;case"right":C={x:I.x+I.width,y:w};break;case"left":C={x:I.x-E.width,y:w};break;default:C={x:I.x,y:I.y}}switch(Qs(Q)){case"start":C[D]-=c*(B&&s?-1:1);break;case"end":C[D]+=c*(B&&s?-1:1)}return C}let Qn=async(A,Q,B)=>{let{placement:C="bottom",strategy:I="absolute",middleware:E=[],platform:g}=B,w=await (null==g.isRTL?void 0:g.isRTL(Q)),D=await g.getElementRects({reference:A,floating:Q,strategy:I}),{x:M,y:c}=Qk(D,C,w),s=C,y={},h=0;for(let B=0;B({name:"arrow",options:A,async fn(Q){let{element:B,padding:C=0}=null!=A?A:{},{x:I,y:E,placement:g,rects:w,platform:D}=Q;if(null==B)return{};let M=QK(C),c={x:I,y:E},s=Qy(g),y=Qs(g),h=Qh(s),k=await D.getDimensions(B),n="y"===s?"top":"left",K="y"===s?"bottom":"right",t=w.reference[h]+w.reference[s]-c[s]-w.floating[h],L=c[s]-w.reference[s],U=await (null==D.getOffsetParent?void 0:D.getOffsetParent(B)),i=U?"y"===s?U.clientHeight||0:U.clientWidth||0:0;0===i&&(i=w.floating[h]);let G=M[n],p=i-k[h]-M[K],r=i/2-k[h]/2+(t/2-L/2),N=Qi(G,QU(r,p)),a=("start"===y?M[n]:M[K])>0&&r!==N&&w.reference[h]<=w.floating[h];return{[s]:c[s]-(a?rQp[A])}let QN={start:"end",end:"start"};function Qa(A){return A.replace(/start|end/g,A=>QN[A])}let Qo=["top","right","bottom","left"];Qo.reduce((A,Q)=>A.concat(Q,Q+"-start",Q+"-end"),[]);let Qe=function(A){return void 0===A&&(A={}),{name:"flip",options:A,async fn(Q){var B,C,I,E;let{placement:g,middlewareData:w,rects:D,initialPlacement:M,platform:c,elements:s}=Q,{mainAxis:y=!0,crossAxis:h=!0,fallbackPlacements:k,fallbackStrategy:n="bestFit",flipAlignment:K=!0,...t}=A,L=Qc(g),U=k||(L!==M&&K?function(A){let Q=Qr(A);return[Qa(A),Q,Qa(Q)]}(M):[Qr(M)]),i=[M,...U],G=await QL(Q,t),p=[],r=(null==(B=w.flip)?void 0:B.overflows)||[];if(y&&p.push(G[L]),h){let{main:A,cross:Q}=function(A,Q,B){void 0===B&&(B=!1);let C=Qs(A),I=Qy(A),E=Qh(I),g="x"===I?C===(B?"end":"start")?"right":"left":"start"===C?"bottom":"top";return Q.reference[E]>Q.floating[E]&&(g=Qr(g)),{main:g,cross:Qr(g)}}(g,D,await (null==c.isRTL?void 0:c.isRTL(s.floating)));p.push(G[A],G[Q])}if(r=[...r,{placement:g,overflows:p}],!p.every(A=>A<=0)){let A=(null!=(C=null==(I=w.flip)?void 0:I.index)?C:0)+1,Q=i[A];if(Q)return{data:{index:A,overflows:r},reset:{placement:Q}};let B="bottom";switch(n){case"bestFit":{let A=null==(E=r.map(A=>[A,A.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((A,Q)=>A[1]-Q[1])[0])?void 0:E[0].placement;A&&(B=A);break}case"initialPlacement":B=M}if(g!==B)return{reset:{placement:B}}}return{}}}};function QJ(A,Q){return{top:A.top-Q.height,right:A.right-Q.width,bottom:A.bottom-Q.height,left:A.left-Q.width}}function QF(A){return Qo.some(Q=>A[Q]>=0)}let QS=function(A){let{strategy:Q="referenceHidden",...B}=void 0===A?{}:A;return{name:"hide",async fn(A){let{rects:C}=A;switch(Q){case"referenceHidden":{let Q=QJ(await QL(A,{...B,elementContext:"reference"}),C.reference);return{data:{referenceHiddenOffsets:Q,referenceHidden:QF(Q)}}}case"escaped":{let Q=QJ(await QL(A,{...B,altBoundary:!0}),C.floating);return{data:{escapedOffsets:Q,escaped:QF(Q)}}}default:return{}}}}},Ql=function(A){return void 0===A&&(A=0),{name:"offset",options:A,async fn(Q){let{x:B,y:C}=Q,I=await async function(A,Q){let{placement:B,platform:C,elements:I}=A,E=await (null==C.isRTL?void 0:C.isRTL(I.floating)),g=Qc(B),w=Qs(B),D="x"===Qy(B),M=["left","top"].includes(g)?-1:1,c=E&&D?-1:1,s="function"==typeof Q?Q(A):Q,{mainAxis:y,crossAxis:h,alignmentAxis:k}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return w&&"number"==typeof k&&(h="end"===w?-1*k:k),D?{x:h*c,y:y*M}:{x:y*M,y:h*c}}(Q,A);return{x:B+I.x,y:C+I.y,data:I}}}};function QH(A){return"x"===A?"y":"x"}let QY=function(A){return void 0===A&&(A={}),{name:"shift",options:A,async fn(Q){let{x:B,y:C,placement:I}=Q,{mainAxis:E=!0,crossAxis:g=!1,limiter:w={fn:A=>{let{x:Q,y:B}=A;return{x:Q,y:B}}},...D}=A,M={x:B,y:C},c=await QL(Q,D),s=Qy(Qc(I)),y=QH(s),h=M[s],k=M[y];if(E){let A="y"===s?"bottom":"right";h=Qi(h+c["y"===s?"top":"left"],QU(h,h-c[A]))}if(g){let A="y"===y?"bottom":"right";k=Qi(k+c["y"===y?"top":"left"],QU(k,k-c[A]))}let n=w.fn({...Q,[s]:h,[y]:k});return{...n,data:{x:n.x-B,y:n.y-C}}}}},Qf=function(A){return void 0===A&&(A={}),{options:A,fn(Q){let{x:B,y:C,placement:I,rects:E,middlewareData:g}=Q,{offset:w=0,mainAxis:D=!0,crossAxis:M=!0}=A,c={x:B,y:C},s=Qy(I),y=QH(s),h=c[s],k=c[y],n="function"==typeof w?w({...E,placement:I}):w,K="number"==typeof n?{mainAxis:n,crossAxis:0}:{mainAxis:0,crossAxis:0,...n};if(D){let A="y"===s?"height":"width",Q=E.reference[s]-E.floating[A]+K.mainAxis,B=E.reference[s]+E.reference[A]-K.mainAxis;hB&&(h=B)}if(M){var t,L,U,i;let A="y"===s?"width":"height",Q=["top","left"].includes(Qc(I)),B=E.reference[y]-E.floating[A]+(Q&&null!=(t=null==(L=g.offset)?void 0:L[y])?t:0)+(Q?0:K.crossAxis),C=E.reference[y]+E.reference[A]+(Q?0:null!=(U=null==(i=g.offset)?void 0:i[y])?U:0)-(Q?K.crossAxis:0);kC&&(k=C)}return{[s]:h,[y]:k}}}};function Qd(A){return A&&A.document&&A.location&&A.alert&&A.setInterval}function Qu(A){if(null==A)return window;if(!Qd(A)){let Q=A.ownerDocument;return Q&&Q.defaultView||window}return A}function QR(A){return Qu(A).getComputedStyle(A)}function Qj(A){return Qd(A)?"":A?(A.nodeName||"").toLowerCase():""}function Qb(){let A=navigator.userAgentData;return null!=A&&A.brands?A.brands.map(A=>A.brand+"/"+A.version).join(" "):navigator.userAgent}function Qm(A){return A instanceof Qu(A).HTMLElement}function QT(A){return A instanceof Qu(A).Element}function QZ(A){return"undefined"!=typeof ShadowRoot&&(A instanceof Qu(A).ShadowRoot||A instanceof ShadowRoot)}function QO(A){let{overflow:Q,overflowX:B,overflowY:C}=QR(A);return/auto|scroll|overlay|hidden/.test(Q+C+B)}function Qv(A){let Q=/firefox/i.test(Qb()),B=QR(A);return"none"!==B.transform||"none"!==B.perspective||"paint"===B.contain||["transform","perspective"].includes(B.willChange)||Q&&"filter"===B.willChange||Q&&!!B.filter&&"none"!==B.filter}function Qx(){return!/^((?!chrome|android).)*safari/i.test(Qb())}let QV=Math.min,Qz=Math.max,QW=Math.round;function QP(A,Q,B){var C,I,E,g;void 0===Q&&(Q=!1),void 0===B&&(B=!1);let w=A.getBoundingClientRect(),D=1,M=1;Q&&Qm(A)&&(D=A.offsetWidth>0&&QW(w.width)/A.offsetWidth||1,M=A.offsetHeight>0&&QW(w.height)/A.offsetHeight||1);let c=QT(A)?Qu(A):window,s=!Qx()&&B,y=(w.left+(s&&null!=(C=null==(I=c.visualViewport)?void 0:I.offsetLeft)?C:0))/D,h=(w.top+(s&&null!=(E=null==(g=c.visualViewport)?void 0:g.offsetTop)?E:0))/M,k=w.width/D,n=w.height/M;return{width:k,height:n,top:h,right:y+k,bottom:h+n,left:y,x:y,y:h}}function Qq(A){return((A instanceof Qu(A).Node?A.ownerDocument:A.document)||window.document).documentElement}function QX(A){return QT(A)?{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop}:{scrollLeft:A.pageXOffset,scrollTop:A.pageYOffset}}function Q_(A){return QP(Qq(A)).left+QX(A).scrollLeft}function Q$(A){return"html"===Qj(A)?A:A.assignedSlot||A.parentNode||(QZ(A)?A.host:null)||Qq(A)}function Q0(A){return Qm(A)&&"fixed"!==getComputedStyle(A).position?A.offsetParent:null}function Q8(A){let Q=Qu(A),B=Q0(A);for(;B&&["table","td","th"].includes(Qj(B))&&"static"===getComputedStyle(B).position;)B=Q0(B);return B&&("html"===Qj(B)||"body"===Qj(B)&&"static"===getComputedStyle(B).position&&!Qv(B))?Q:B||function(A){let Q=Q$(A);for(QZ(Q)&&(Q=Q.host);Qm(Q)&&!["html","body"].includes(Qj(Q));){if(Qv(Q))return Q;Q=Q.parentNode}return null}(A)||Q}function Q3(A){if(Qm(A))return{width:A.offsetWidth,height:A.offsetHeight};let Q=QP(A);return{width:Q.width,height:Q.height}}function Q1(A,Q){var B;void 0===Q&&(Q=[]);let C=function A(Q){let B=Q$(Q);return["html","body","#document"].includes(Qj(B))?Q.ownerDocument.body:Qm(B)&&QO(B)?B:A(B)}(A),I=C===(null==(B=A.ownerDocument)?void 0:B.body),E=Qu(C),g=I?[E].concat(E.visualViewport||[],QO(C)?C:[]):C,w=Q.concat(g);return I?w:w.concat(Q1(g))}function Q4(A,Q,B){return"viewport"===Q?Qt(function(A,Q){let B=Qu(A),C=Qq(A),I=B.visualViewport,E=C.clientWidth,g=C.clientHeight,w=0,D=0;if(I){E=I.width,g=I.height;let A=Qx();(A||!A&&"fixed"===Q)&&(w=I.offsetLeft,D=I.offsetTop)}return{width:E,height:g,x:w,y:D}}(A,B)):QT(Q)?function(A,Q){let B=QP(A,!1,"fixed"===Q),C=B.top+A.clientTop,I=B.left+A.clientLeft;return{top:C,left:I,x:I,y:C,right:I+A.clientWidth,bottom:C+A.clientHeight,width:A.clientWidth,height:A.clientHeight}}(Q,B):Qt(function(A){var Q;let B=Qq(A),C=QX(A),I=null==(Q=A.ownerDocument)?void 0:Q.body,E=Qz(B.scrollWidth,B.clientWidth,I?I.scrollWidth:0,I?I.clientWidth:0),g=Qz(B.scrollHeight,B.clientHeight,I?I.scrollHeight:0,I?I.clientHeight:0),w=-C.scrollLeft+Q_(A),D=-C.scrollTop;return"rtl"===QR(I||B).direction&&(w+=Qz(B.clientWidth,I?I.clientWidth:0)-E),{width:E,height:g,x:w,y:D}}(Qq(A)))}let Q2={getClippingRect:function(A){let{element:Q,boundary:B,rootBoundary:C,strategy:I}=A,E=[..."clippingAncestors"===B?function(A){let Q=Q1(A),B=["absolute","fixed"].includes(QR(A).position)&&Qm(A)?Q8(A):A;return QT(B)?Q.filter(A=>QT(A)&&function(A,Q){let B=null==Q.getRootNode?void 0:Q.getRootNode();if(A.contains(Q))return!0;if(B&&QZ(B)){let B=Q;do{if(B&&A===B)return!0;B=B.parentNode||B.host}while(B)}return!1}(A,B)&&"body"!==Qj(A)):[]}(Q):[].concat(B),C],g=E[0],w=E.reduce((A,B)=>{let C=Q4(Q,B,I);return A.top=Qz(C.top,A.top),A.right=QV(C.right,A.right),A.bottom=QV(C.bottom,A.bottom),A.left=Qz(C.left,A.left),A},Q4(Q,g,I));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(A){let{rect:Q,offsetParent:B,strategy:C}=A,I=Qm(B),E=Qq(B);if(B===E)return Q;let g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if((I||!I&&"fixed"!==C)&&(("body"!==Qj(B)||QO(E))&&(g=QX(B)),Qm(B))){let A=QP(B,!0);w.x=A.x+B.clientLeft,w.y=A.y+B.clientTop}return{...Q,x:Q.x-g.scrollLeft+w.x,y:Q.y-g.scrollTop+w.y}},isElement:QT,getDimensions:Q3,getOffsetParent:Q8,getDocumentElement:Qq,getElementRects:A=>{let{reference:Q,floating:B,strategy:C}=A;return{reference:function(A,Q,B){let C=Qm(Q),I=Qq(Q),E=QP(A,C&&function(A){let Q=QP(A);return QW(Q.width)!==A.offsetWidth||QW(Q.height)!==A.offsetHeight}(Q),"fixed"===B),g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if(C||!C&&"fixed"!==B){if(("body"!==Qj(Q)||QO(I))&&(g=QX(Q)),Qm(Q)){let A=QP(Q,!0);w.x=A.x+Q.clientLeft,w.y=A.y+Q.clientTop}else I&&(w.x=Q_(I))}return{x:E.left+g.scrollLeft-w.x,y:E.top+g.scrollTop-w.y,width:E.width,height:E.height}}(Q,Q8(B),C),floating:{...Q3(B),x:0,y:0}}},getClientRects:A=>Array.from(A.getClientRects()),isRTL:A=>"rtl"===QR(A).direction};function Q5(A,Q,B,C){void 0===C&&(C={});let{ancestorScroll:I=!0,ancestorResize:E=!0,elementResize:g=!0,animationFrame:w=!1}=C,D=I&&!w,M=E&&!w,c=D||M?[...QT(A)?Q1(A):[],...Q1(Q)]:[];c.forEach(A=>{D&&A.addEventListener("scroll",B,{passive:!0}),M&&A.addEventListener("resize",B)});let s,y=null;if(g){let C=!0;y=new ResizeObserver(()=>{C||B(),C=!1}),QT(A)&&!w&&y.observe(A),y.observe(Q)}let h=w?QP(A):null;return w&&function Q(){let C=QP(A);h&&(C.x!==h.x||C.y!==h.y||C.width!==h.width||C.height!==h.height)&&B(),h=C,s=requestAnimationFrame(Q)}(),B(),()=>{var A;c.forEach(A=>{D&&A.removeEventListener("scroll",B),M&&A.removeEventListener("resize",B)}),null==(A=y)||A.disconnect(),y=null,w&&cancelAnimationFrame(s)}}let Q9=(A,Q,B)=>Qn(A,Q,{platform:Q2,...B});var Q6="undefined"!=typeof document?AL.useLayoutEffect:AL.useEffect;function Q7(A){let{middleware:Q,placement:B="bottom",strategy:C="absolute",whileElementsMounted:I}=void 0===A?{}:A,E=AL.useRef(null),g=AL.useRef(null),w=function(A){let Q=AL.useRef(A);return Q6(()=>{Q.current=A}),Q}(I),D=AL.useRef(null),[M,c]=AL.useState({x:null,y:null,strategy:C,placement:B,middlewareData:{}}),[s,y]=AL.useState(Q);!function A(Q,B){let C,I,E;if(Q===B)return!0;if(typeof Q!=typeof B)return!1;if("function"==typeof Q&&Q.toString()===B.toString())return!0;if(Q&&B&&"object"==typeof Q){if(Array.isArray(Q)){if((C=Q.length)!=B.length)return!1;for(I=C;0!=I--;)if(!A(Q[I],B[I]))return!1;return!0}if((C=(E=Object.keys(Q)).length)!==Object.keys(B).length)return!1;for(I=C;0!=I--;)if(!Object.prototype.hasOwnProperty.call(B,E[I]))return!1;for(I=C;0!=I--;){let C=E[I];if(("_owner"!==C||!Q.$$typeof)&&!A(Q[C],B[C]))return!1}return!0}return Q!=Q&&B!=B}(null==s?void 0:s.map(A=>{let{options:Q}=A;return Q}),null==Q?void 0:Q.map(A=>{let{options:Q}=A;return Q}))&&y(Q);let h=AL.useCallback(()=>{E.current&&g.current&&Q9(E.current,g.current,{middleware:s,placement:B,strategy:C}).then(A=>{k.current&&AY.flushSync(()=>{c(A)})})},[s,B,C]);Q6(()=>{k.current&&h()},[h]);let k=AL.useRef(!1);Q6(()=>(k.current=!0,()=>{k.current=!1}),[]);let n=AL.useCallback(()=>{if("function"==typeof D.current&&(D.current(),D.current=null),E.current&&g.current){if(w.current){let A=w.current(E.current,g.current,h);D.current=A}else h()}},[h,w]),K=AL.useCallback(A=>{E.current=A,n()},[n]),t=AL.useCallback(A=>{g.current=A,n()},[n]),L=AL.useMemo(()=>({reference:E,floating:g}),[]);return AL.useMemo(()=>({...M,update:h,refs:L,reference:K,floating:t}),[M,h,L,K,t])}let BA=A=>{let{element:Q,padding:B}=A;return{name:"arrow",options:A,fn(A){if(Object.prototype.hasOwnProperty.call(Q,"current")){if(null!=Q.current)return QG({element:Q.current,padding:B}).fn(A)}else if(Q)return QG({element:Q,padding:B}).fn(A);return{}}}},BQ=(0,AL.forwardRef)((A,Q)=>{let{children:B,width:C=10,height:I=5,...E}=A;return(0,AL.createElement)(Af.svg,Ai({},E,{ref:Q,width:C,height:I,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),A.asChild?B:(0,AL.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function BB(A){let[Q,B]=(0,AL.useState)(void 0);return Au(()=>{if(A){B({width:A.offsetWidth,height:A.offsetHeight});let Q=new ResizeObserver(Q=>{let C,I;if(!Array.isArray(Q)||!Q.length)return;let E=Q[0];if("borderBoxSize"in E){let A=E.borderBoxSize,Q=Array.isArray(A)?A[0]:A;C=Q.inlineSize,I=Q.blockSize}else C=A.offsetWidth,I=A.offsetHeight;B({width:C,height:I})});return Q.observe(A,{box:"border-box"}),()=>Q.unobserve(A)}B(void 0)},[A]),Q}let BC="Popper",[BI,BE]=Ap(BC),[Bg,Bw]=BI(BC),BD=(0,AL.forwardRef)((A,Q)=>{let{__scopePopper:B,virtualRef:C,...I}=A,E=Bw("PopperAnchor",B),g=(0,AL.useRef)(null),w=AN(Q,g);return(0,AL.useEffect)(()=>{E.onAnchorChange((null==C?void 0:C.current)||g.current)}),C?null:(0,AL.createElement)(Af.div,Ai({},I,{ref:w}))}),BM="PopperContent",[Bc,Bs]=BI(BM),[By,Bh]=BI(BM,{hasParent:!1,positionUpdateFns:new Set}),Bk=(0,AL.forwardRef)((A,Q)=>{var B,C,I,E,g,w,D,M;let{__scopePopper:c,side:s="bottom",sideOffset:y=0,align:h="center",alignOffset:k=0,arrowPadding:n=0,collisionBoundary:K=[],collisionPadding:t=0,sticky:L="partial",hideWhenDetached:U=!1,avoidCollisions:i=!0,...G}=A,p=Bw(BM,c),[r,N]=(0,AL.useState)(null),a=AN(Q,A=>N(A)),[o,e]=(0,AL.useState)(null),J=BB(o),F=null!==(B=null==J?void 0:J.width)&&void 0!==B?B:0,S=null!==(C=null==J?void 0:J.height)&&void 0!==C?C:0,l="number"==typeof t?t:{top:0,right:0,bottom:0,left:0,...t},H=Array.isArray(K)?K:[K],Y=H.length>0,f={padding:l,boundary:H.filter(BL),altBoundary:Y},{reference:d,floating:u,strategy:R,x:j,y:b,placement:m,middlewareData:T,update:Z}=Q7({strategy:"fixed",placement:s+("center"!==h?"-"+h:""),whileElementsMounted:Q5,middleware:[Ql({mainAxis:y+S,alignmentAxis:k}),i?QY({mainAxis:!0,crossAxis:!1,limiter:"partial"===L?Qf():void 0,...f}):void 0,o?BA({element:o,padding:n}):void 0,i?Qe({...f}):void 0,BU({arrowWidth:F,arrowHeight:S}),U?QS({strategy:"referenceHidden"}):void 0].filter(Bt)});Au(()=>{d(p.anchor)},[d,p.anchor]);let O=null!==j&&null!==b,[v,x]=Bi(m),V=null===(I=T.arrow)||void 0===I?void 0:I.x,z=null===(E=T.arrow)||void 0===E?void 0:E.y,W=(null===(g=T.arrow)||void 0===g?void 0:g.centerOffset)!==0,[P,q]=(0,AL.useState)();Au(()=>{r&&q(window.getComputedStyle(r).zIndex)},[r]);let{hasParent:X,positionUpdateFns:_}=Bh(BM,c),$=!X;(0,AL.useLayoutEffect)(()=>{if(!$)return _.add(Z),()=>{_.delete(Z)}},[$,_,Z]),(0,AL.useLayoutEffect)(()=>{$&&O&&Array.from(_).reverse().forEach(A=>requestAnimationFrame(A))},[$,O,_]);let AA={"data-side":v,"data-align":x,...G,ref:a,style:{...G.style,animation:O?void 0:"none",opacity:null!==(w=T.hide)&&void 0!==w&&w.referenceHidden?0:void 0}};return(0,AL.createElement)("div",{ref:u,"data-radix-popper-content-wrapper":"",style:{position:R,left:0,top:0,transform:O?`translate3d(${Math.round(j)}px, ${Math.round(b)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:P,"--radix-popper-transform-origin":[null===(D=T.transformOrigin)||void 0===D?void 0:D.x,null===(M=T.transformOrigin)||void 0===M?void 0:M.y].join(" ")}},(0,AL.createElement)(Bc,{scope:c,placedSide:v,onArrowChange:e,arrowX:V,arrowY:z,shouldHideArrow:W},$?(0,AL.createElement)(By,{scope:c,hasParent:!0,positionUpdateFns:_},(0,AL.createElement)(Af.div,AA)):(0,AL.createElement)(Af.div,AA)))}),Bn={top:"bottom",right:"left",bottom:"top",left:"right"},BK=(0,AL.forwardRef)(function(A,Q){let{__scopePopper:B,...C}=A,I=Bs("PopperArrow",B),E=Bn[I.placedSide];return(0,AL.createElement)("span",{ref:I.onArrowChange,style:{position:"absolute",left:I.arrowX,top:I.arrowY,[E]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[I.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[I.placedSide],visibility:I.shouldHideArrow?"hidden":void 0}},(0,AL.createElement)(BQ,Ai({},C,{ref:Q,style:{...C.style,display:"block"}})))});function Bt(A){return void 0!==A}function BL(A){return null!==A}let BU=A=>({name:"transformOrigin",options:A,fn(Q){var B,C,I,E,g;let{placement:w,rects:D,middlewareData:M}=Q,c=(null===(B=M.arrow)||void 0===B?void 0:B.centerOffset)!==0,s=c?0:A.arrowWidth,y=c?0:A.arrowHeight,[h,k]=Bi(w),n={start:"0%",center:"50%",end:"100%"}[k],K=(null!==(C=null===(I=M.arrow)||void 0===I?void 0:I.x)&&void 0!==C?C:0)+s/2,t=(null!==(E=null===(g=M.arrow)||void 0===g?void 0:g.y)&&void 0!==E?E:0)+y/2,L="",U="";return"bottom"===h?(L=c?n:`${K}px`,U=`${-y}px`):"top"===h?(L=c?n:`${K}px`,U=`${D.floating.height+y}px`):"right"===h?(L=`${-y}px`,U=c?n:`${t}px`):"left"===h&&(L=`${D.floating.width+y}px`,U=c?n:`${t}px`),{data:{x:L,y:U}}}});function Bi(A){let[Q,B="center"]=A.split("-");return[Q,B]}let BG=A=>{let{__scopePopper:Q,children:B}=A,[C,I]=(0,AL.useState)(null);return(0,AL.createElement)(Bg,{scope:Q,anchor:C,onAnchorChange:I},B)},Bp=(0,AL.forwardRef)((A,Q)=>{var B;let{container:C=null==globalThis?void 0:null===(B=globalThis.document)||void 0===B?void 0:B.body,...I}=A;return C?AY.createPortal((0,AL.createElement)(Af.div,Ai({},I,{ref:Q})),C):null}),Br=(0,AL.forwardRef)((A,Q)=>(0,AL.createElement)(Af.span,Ai({},A,{ref:Q,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",...A.style}}))),[BN,Ba]=Ap("Tooltip",[BE]),Bo=BE(),Be="tooltip.open",[BJ,BF]=BN("TooltipProvider"),BS="Tooltip",[Bl,BH]=BN(BS),BY="TooltipTrigger",Bf=(0,AL.forwardRef)((A,Q)=>{let{__scopeTooltip:B,...C}=A,I=BH(BY,B),E=BF(BY,B),g=Bo(B),w=AN(Q,(0,AL.useRef)(null),I.onTriggerChange),D=(0,AL.useRef)(!1),M=(0,AL.useRef)(!1),c=(0,AL.useCallback)(()=>D.current=!1,[]);return(0,AL.useEffect)(()=>()=>document.removeEventListener("pointerup",c),[c]),(0,AL.createElement)(BD,Ai({asChild:!0},g),(0,AL.createElement)(Af.button,Ai({"aria-describedby":I.open?I.contentId:void 0,"data-state":I.stateAttribute},C,{ref:w,onPointerMove:AS(A.onPointerMove,A=>{"touch"===A.pointerType||M.current||E.isPointerInTransitRef.current||(I.onTriggerEnter(),M.current=!0)}),onPointerLeave:AS(A.onPointerLeave,()=>{I.onTriggerLeave(),M.current=!1}),onPointerDown:AS(A.onPointerDown,()=>{D.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:AS(A.onFocus,()=>{D.current||I.onOpen()}),onBlur:AS(A.onBlur,I.onClose),onClick:AS(A.onClick,A=>{0===A.detail&&I.onClose()})})))}),Bd="TooltipPortal",[Bu,BR]=BN(Bd,{forceMount:void 0}),Bj="TooltipContent",Bb=(0,AL.forwardRef)((A,Q)=>{let B=BR(Bj,A.__scopeTooltip),{forceMount:C=B.forceMount,side:I="top",...E}=A,g=BH(Bj,A.__scopeTooltip);return(0,AL.createElement)(AR,{present:C||g.open},g.disableHoverableContent?(0,AL.createElement)(BO,Ai({side:I},E,{ref:Q})):(0,AL.createElement)(Bm,Ai({side:I},E,{ref:Q})))}),Bm=(0,AL.forwardRef)((A,Q)=>{let B=BH(Bj,A.__scopeTooltip),C=BF(Bj,A.__scopeTooltip),I=(0,AL.useRef)(null),E=AN(Q,I),[g,w]=(0,AL.useState)(null),{trigger:D,onClose:M}=B,c=I.current,{onPointerInTransitChange:s}=C,y=(0,AL.useCallback)(()=>{w(null),s(!1)},[s]),h=(0,AL.useCallback)((A,Q)=>{let B=A.currentTarget,C=function(A,Q){let B=Math.abs(Q.top-A.y),C=Math.abs(Q.bottom-A.y),I=Math.abs(Q.right-A.x),E=Math.abs(Q.left-A.x);switch(Math.min(B,C,I,E)){case E:return"left";case I:return"right";case B:return"top";case C:return"bottom";default:return null}}({x:A.clientX,y:A.clientY},B.getBoundingClientRect()),I="right"===C||"bottom"===C?-5:5;w(function(A){let Q=A.slice();return Q.sort((A,Q)=>A.xQ.x?1:A.yQ.y?1:0),function(A){if(A.length<=1)return A.slice();let Q=[];for(let B=0;B=2;){let A=Q[Q.length-1],B=Q[Q.length-2];if((A.x-B.x)*(C.y-B.y)>=(A.y-B.y)*(C.x-B.x))Q.pop();else break}Q.push(C)}Q.pop();let B=[];for(let Q=A.length-1;Q>=0;Q--){let C=A[Q];for(;B.length>=2;){let A=B[B.length-1],Q=B[B.length-2];if((A.x-Q.x)*(C.y-Q.y)>=(A.y-Q.y)*(C.x-Q.x))B.pop();else break}B.push(C)}return(B.pop(),1===Q.length&&1===B.length&&Q[0].x===B[0].x&&Q[0].y===B[0].y)?Q:Q.concat(B)}(Q)}(["right"===C||"left"===C?{x:A.clientX+I,y:A.clientY}:{x:A.clientX,y:A.clientY+I},...function(A){let{top:Q,right:B,bottom:C,left:I}=A;return[{x:I,y:Q},{x:B,y:Q},{x:B,y:C},{x:I,y:C}]}(Q.getBoundingClientRect())])),s(!0)},[s]);return(0,AL.useEffect)(()=>()=>y(),[y]),(0,AL.useEffect)(()=>{if(D&&c){let A=A=>h(A,c),Q=A=>h(A,D);return D.addEventListener("pointerleave",A),c.addEventListener("pointerleave",Q),()=>{D.removeEventListener("pointerleave",A),c.removeEventListener("pointerleave",Q)}}},[D,c,h,y]),(0,AL.useEffect)(()=>{if(g){let A=A=>{let Q=A.target,B={x:A.clientX,y:A.clientY},C=(null==D?void 0:D.contains(Q))||(null==c?void 0:c.contains(Q)),I=!function(A,Q){let{x:B,y:C}=A,I=!1;for(let A=0,E=Q.length-1;AC!=M>C&&B<(D-g)*(C-w)/(M-w)+g&&(I=!I)}return I}(B,g);C?y():I&&(y(),M())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[D,c,g,M,y]),(0,AL.createElement)(BO,Ai({},A,{ref:E}))}),[BT,BZ]=BN(BS,{isInside:!1}),BO=(0,AL.forwardRef)((A,Q)=>{let{__scopeTooltip:B,children:C,"aria-label":I,onEscapeKeyDown:E,onPointerDownOutside:g,...w}=A,D=BH(Bj,B),M=Bo(B),{onClose:c}=D;return(0,AL.useEffect)(()=>(document.addEventListener(Be,c),()=>document.removeEventListener(Be,c)),[c]),(0,AL.useEffect)(()=>{if(D.trigger){let A=A=>{let Q=A.target;null!=Q&&Q.contains(D.trigger)&&c()};return window.addEventListener("scroll",A,{capture:!0}),()=>window.removeEventListener("scroll",A,{capture:!0})}},[D.trigger,c]),(0,AL.createElement)(Qw,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:E,onPointerDownOutside:g,onFocusOutside:A=>A.preventDefault(),onDismiss:c},(0,AL.createElement)(Bk,Ai({"data-state":D.stateAttribute},M,w,{ref:Q,style:{...w.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,AL.createElement)(Ae,null,C),(0,AL.createElement)(BT,{scope:B,isInside:!0},(0,AL.createElement)(Br,{id:D.contentId,role:"tooltip"},I||C))))}),Bv=A=>{let{__scopeTooltip:Q,children:B,open:C,defaultOpen:I=!1,onOpenChange:E,disableHoverableContent:g,delayDuration:w}=A,D=BF(BS,A.__scopeTooltip),M=Bo(Q),[c,s]=(0,AL.useState)(null),y=AT(),h=(0,AL.useRef)(0),k=null!=g?g:D.disableHoverableContent,n=null!=w?w:D.delayDuration,K=(0,AL.useRef)(!1),[t=!1,L]=AH({prop:C,defaultProp:I,onChange:A=>{A?(D.onOpen(),document.dispatchEvent(new CustomEvent(Be))):D.onClose(),null==E||E(A)}}),U=(0,AL.useMemo)(()=>t?K.current?"delayed-open":"instant-open":"closed",[t]),i=(0,AL.useCallback)(()=>{window.clearTimeout(h.current),K.current=!1,L(!0)},[L]),G=(0,AL.useCallback)(()=>{window.clearTimeout(h.current),L(!1)},[L]),p=(0,AL.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{K.current=!0,L(!0)},n)},[n,L]);return(0,AL.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,AL.createElement)(BG,M,(0,AL.createElement)(Bl,{scope:Q,contentId:y,open:t,stateAttribute:U,trigger:c,onTriggerChange:s,onTriggerEnter:(0,AL.useCallback)(()=>{D.isOpenDelayed?p():i()},[D.isOpenDelayed,p,i]),onTriggerLeave:(0,AL.useCallback)(()=>{k?G():window.clearTimeout(h.current)},[G,k]),onOpen:i,onClose:G,disableHoverableContent:k},B))},Bx=A=>{let{__scopeTooltip:Q,forceMount:B,children:C,container:I}=A,E=BH(Bd,Q);return(0,AL.createElement)(Bu,{scope:Q,forceMount:B},(0,AL.createElement)(AR,{present:B||E.open},(0,AL.createElement)(Bp,{asChild:!0,container:I},C)))},BV=(0,QI.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),Bz=AL.forwardRef((A,Q)=>{let{tag:B="span",className:C,font:I,color:E,weight:g,size:w,scaleSize:D,noWrap:M,underline:c,ellipsis:s,wrapEllipsis:y,...h}=A;return(0,At.jsx)(B,{ref:Q,className:(0,QI.cx)(C,BV({font:I,color:E,weight:g,size:w,scaleSize:D,underline:c,noWrap:M,ellipsis:s,wrapEllipsis:y})),...h})}),BW=AL.forwardRef((A,Q)=>{let{size:B="18",...C}=A;return(0,At.jsx)(Bz,{tag:"p",...C,ref:Q,weight:"regular",scaleSize:B,color:"subtle",className:(0,QI.cx)("leading-relaxed md:leading-relaxed",A.className)})}),BP=(0,QI.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),Bq=AL.forwardRef((A,Q)=>{let{className:B,color:C,...I}=A;return(0,At.jsx)("div",{ref:Q,className:BP({className:B,color:C}),...I})});var BX=B(93542);let B_=(void 0===BX||BX.env,"production"),B$=1/60*1e3,B0="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),B8="undefined"!=typeof window?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(B0()),B$),B3=!0,B1=!1,B4=!1,B2={delta:0,timestamp:0},B5=["read","update","preRender","render","postRender"],B9=B5.reduce((A,Q)=>(A[Q]=function(A){let Q=[],B=[],C=0,I=!1,E=!1,g=new WeakSet,w={schedule:(A,E=!1,w=!1)=>{let D=w&&I,M=D?Q:B;return E&&g.add(A),-1===M.indexOf(A)&&(M.push(A),D&&I&&(C=Q.length)),A},cancel:A=>{let Q=B.indexOf(A);-1!==Q&&B.splice(Q,1),g.delete(A)},process:D=>{if(I){E=!0;return}if(I=!0,[Q,B]=[B,Q],B.length=0,C=Q.length)for(let B=0;BB1=!0),A),{}),B6=B5.reduce((A,Q)=>{let B=B9[Q];return A[Q]=(A,Q=!1,C=!1)=>(B1||CC(),B.schedule(A,Q,C)),A},{}),B7=B5.reduce((A,Q)=>(A[Q]=B9[Q].cancel,A),{}),CA=B5.reduce((A,Q)=>(A[Q]=()=>B9[Q].process(B2),A),{}),CQ=A=>B9[A].process(B2),CB=A=>{B1=!1,B2.delta=B3?B$:Math.max(Math.min(A-B2.timestamp,40),1),B2.timestamp=A,B4=!0,B5.forEach(CQ),B4=!1,B1&&(B3=!1,B8(CB))},CC=()=>{B1=!0,B3=!0,B4||B8(CB)},CI=()=>B2,CE="undefined"!=typeof document,Cg=CE?AL.useLayoutEffect:AL.useEffect;function Cw(){let A=(0,AL.useRef)(!1);return Cg(()=>(A.current=!0,()=>{A.current=!1}),[]),A}let CD=(0,AL.createContext)(null);function CM(A){let Q=(0,AL.useRef)(null);return null===Q.current&&(Q.current=A()),Q.current}class Cc extends AL.Component{getSnapshotBeforeUpdate(A){let Q=this.props.childRef.current;if(Q&&A.isPresent&&!this.props.isPresent){let A=this.props.sizeRef.current;A.height=Q.offsetHeight||0,A.width=Q.offsetWidth||0,A.top=Q.offsetTop,A.left=Q.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Cs({children:A,isPresent:Q}){let B=(0,AL.useId)(),C=(0,AL.useRef)(null),I=(0,AL.useRef)({width:0,height:0,top:0,left:0});return(0,AL.useInsertionEffect)(()=>{let{width:A,height:E,top:g,left:w}=I.current;if(Q||!C.current||!A||!E)return;C.current.dataset.motionPopId=B;let D=document.createElement("style");return document.head.appendChild(D),D.sheet&&D.sheet.insertRule(` + */var B="function"==typeof Symbol&&Symbol.for,C=B?Symbol.for("react.element"):60103,I=B?Symbol.for("react.portal"):60106,E=B?Symbol.for("react.fragment"):60107,g=B?Symbol.for("react.strict_mode"):60108,w=B?Symbol.for("react.profiler"):60114,D=B?Symbol.for("react.provider"):60109,M=B?Symbol.for("react.context"):60110,c=B?Symbol.for("react.async_mode"):60111,s=B?Symbol.for("react.concurrent_mode"):60111,y=B?Symbol.for("react.forward_ref"):60112,h=B?Symbol.for("react.suspense"):60113,k=B?Symbol.for("react.suspense_list"):60120,n=B?Symbol.for("react.memo"):60115,t=B?Symbol.for("react.lazy"):60116,K=B?Symbol.for("react.block"):60121,L=B?Symbol.for("react.fundamental"):60117,U=B?Symbol.for("react.responder"):60118,i=B?Symbol.for("react.scope"):60119;function G(A){if("object"==typeof A&&null!==A){var Q=A.$$typeof;switch(Q){case C:switch(A=A.type){case c:case s:case E:case w:case g:case h:return A;default:switch(A=A&&A.$$typeof){case M:case y:case t:case n:case D:return A;default:return Q}}case I:return Q}}}function r(A){return G(A)===s}Q.AsyncMode=c,Q.ConcurrentMode=s,Q.ContextConsumer=M,Q.ContextProvider=D,Q.Element=C,Q.ForwardRef=y,Q.Fragment=E,Q.Lazy=t,Q.Memo=n,Q.Portal=I,Q.Profiler=w,Q.StrictMode=g,Q.Suspense=h,Q.isAsyncMode=function(A){return r(A)||G(A)===c},Q.isConcurrentMode=r,Q.isContextConsumer=function(A){return G(A)===M},Q.isContextProvider=function(A){return G(A)===D},Q.isElement=function(A){return"object"==typeof A&&null!==A&&A.$$typeof===C},Q.isForwardRef=function(A){return G(A)===y},Q.isFragment=function(A){return G(A)===E},Q.isLazy=function(A){return G(A)===t},Q.isMemo=function(A){return G(A)===n},Q.isPortal=function(A){return G(A)===I},Q.isProfiler=function(A){return G(A)===w},Q.isStrictMode=function(A){return G(A)===g},Q.isSuspense=function(A){return G(A)===h},Q.isValidElementType=function(A){return"string"==typeof A||"function"==typeof A||A===E||A===s||A===w||A===g||A===h||A===k||"object"==typeof A&&null!==A&&(A.$$typeof===t||A.$$typeof===n||A.$$typeof===D||A.$$typeof===M||A.$$typeof===y||A.$$typeof===L||A.$$typeof===U||A.$$typeof===i||A.$$typeof===K)},Q.typeOf=G},73887:function(A,Q,B){"use strict";A.exports=B(43459)},62333:function(A,Q){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Q.read=function(A,Q,B,C,I){var E,g,w=8*I-C-1,D=(1<>1,c=-7,s=B?I-1:0,y=B?-1:1,h=A[Q+s];for(s+=y,E=h&(1<<-c)-1,h>>=-c,c+=w;c>0;E=256*E+A[Q+s],s+=y,c-=8);for(g=E&(1<<-c)-1,E>>=-c,c+=C;c>0;g=256*g+A[Q+s],s+=y,c-=8);if(0===E)E=1-M;else{if(E===D)return g?NaN:1/0*(h?-1:1);g+=Math.pow(2,C),E-=M}return(h?-1:1)*g*Math.pow(2,E-C)},Q.write=function(A,Q,B,C,I,E){var g,w,D,M=8*E-I-1,c=(1<>1,y=23===I?5960464477539062e-23:0,h=C?0:E-1,k=C?1:-1,n=Q<0||0===Q&&1/Q<0?1:0;for(isNaN(Q=Math.abs(Q))||Q===1/0?(w=isNaN(Q)?1:0,g=c):(g=Math.floor(Math.log(Q)/Math.LN2),Q*(D=Math.pow(2,-g))<1&&(g--,D*=2),g+s>=1?Q+=y/D:Q+=y*Math.pow(2,1-s),Q*D>=2&&(g++,D/=2),g+s>=c?(w=0,g=c):g+s>=1?(w=(Q*D-1)*Math.pow(2,I),g+=s):(w=Q*Math.pow(2,s-1)*Math.pow(2,I),g=0));I>=8;A[B+h]=255&w,h+=k,w/=256,I-=8);for(g=g<0;A[B+h]=255&g,h+=k,g/=256,M-=8);A[B+h-k]|=128*n}},39515:function(A,Q,B){var C=B(38761)(B(37772),"DataView");A.exports=C},89612:function(A,Q,B){var C=B(52118),I=B(96909),E=B(98138),g=B(4174),w=B(7942);function D(A){var Q=-1,B=null==A?0:A.length;for(this.clear();++QI?0:I+Q),(B=B>I?I:B)<0&&(B+=I),I=Q>B?0:B-Q>>>0,Q>>>=0;for(var E=Array(I);++C=I?A:C(A,Q,B)}},24019:function(A,Q,B){var C=B(37772)["__core-js_shared__"];A.exports=C},55463:function(A){A.exports=function(A){return function(Q,B,C){for(var I=-1,E=Object(Q),g=C(Q),w=g.length;w--;){var D=g[A?w:++I];if(!1===B(E[D],D,E))break}return Q}}},83126:function(A,Q,B){var C=B(23895),I=B(33880),E=B(8435),g=B(66188);A.exports=function(A){return function(Q){var B=I(Q=g(Q))?E(Q):void 0,w=B?B[0]:Q.charAt(0),D=B?C(B,1).join(""):Q.slice(1);return w[A]()+D}}},34311:function(A,Q,B){var C=B(81207),I=B(97329),E=B(11618),g=RegExp("['’]","g");A.exports=function(A){return function(Q){return C(E(I(Q).replace(g,"")),A,"")}}},61655:function(A,Q,B){var C=B(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});A.exports=C},83043:function(A,Q,B){var C=B(38761),I=function(){try{var A=C(Object,"defineProperty");return A({},"",{}),A}catch(A){}}();A.exports=I},74871:function(A,Q,B){var C=B(45386),I=B(87064),E=B(59950);A.exports=function(A,Q,B,g,w,D){var M=1&B,c=A.length,s=Q.length;if(c!=s&&!(M&&s>c))return!1;var y=D.get(A),h=D.get(Q);if(y&&h)return y==Q&&h==A;var k=-1,n=!0,t=2&B?new C:void 0;for(D.set(A,Q),D.set(Q,A);++k-1&&A%1==0&&A-1}},94769:function(A,Q,B){var C=B(22218);A.exports=function(A,Q){var B=this.__data__,I=C(B,A);return I<0?(++this.size,B.push([A,Q])):B[I][1]=Q,this}},92411:function(A,Q,B){var C=B(89612),I=B(80235),E=B(10326);A.exports=function(){this.size=0,this.__data__={hash:new C,map:new(E||I),string:new C}}},36417:function(A,Q,B){var C=B(27937);A.exports=function(A){var Q=C(this,A).delete(A);return this.size-=Q?1:0,Q}},86928:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).get(A)}},79493:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).has(A)}},24150:function(A,Q,B){var C=B(27937);A.exports=function(A,Q){var B=C(this,A),I=B.size;return B.set(A,Q),this.size+=B.size==I?0:1,this}},75179:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A,C){B[++Q]=[C,A]}),B}},73477:function(A){A.exports=function(A,Q){return function(B){return null!=B&&B[A]===Q&&(void 0!==Q||A in Object(B))}}},77777:function(A,Q,B){var C=B(30733);A.exports=function(A){var Q=C(A,function(A){return 500===B.size&&B.clear(),A}),B=Q.cache;return Q}},99191:function(A,Q,B){var C=B(38761)(Object,"create");A.exports=C},54248:function(A,Q,B){var C=B(60241)(Object.keys,Object);A.exports=C},4146:function(A,Q,B){A=B.nmd(A);var C=B(51242),I=Q&&!Q.nodeType&&Q,E=I&&A&&!A.nodeType&&A,g=E&&E.exports===I&&C.process,w=function(){try{var A=E&&E.require&&E.require("util").types;if(A)return A;return g&&g.binding&&g.binding("util")}catch(A){}}();A.exports=w},37157:function(A){var Q=Object.prototype.toString;A.exports=function(A){return Q.call(A)}},60241:function(A){A.exports=function(A,Q){return function(B){return A(Q(B))}}},37772:function(A,Q,B){var C=B(51242),I="object"==typeof self&&self&&self.Object===Object&&self,E=C||I||Function("return this")();A.exports=E},52842:function(A){A.exports=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this}},52482:function(A){A.exports=function(A){return this.__data__.has(A)}},16909:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A){B[++Q]=A}),B}},15243:function(A,Q,B){var C=B(80235);A.exports=function(){this.__data__=new C,this.size=0}},72858:function(A){A.exports=function(A){var Q=this.__data__,B=Q.delete(A);return this.size=Q.size,B}},4417:function(A){A.exports=function(A){return this.__data__.get(A)}},8605:function(A){A.exports=function(A){return this.__data__.has(A)}},71418:function(A,Q,B){var C=B(80235),I=B(10326),E=B(96738);A.exports=function(A,Q){var B=this.__data__;if(B instanceof C){var g=B.__data__;if(!I||g.length<199)return g.push([A,Q]),this.size=++B.size,this;B=this.__data__=new E(g)}return B.set(A,Q),this.size=B.size,this}},8435:function(A,Q,B){var C=B(50217),I=B(33880),E=B(63344);A.exports=function(A){return I(A)?E(A):C(A)}},54452:function(A,Q,B){var C=B(77777),I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,g=C(function(A){var Q=[];return 46===A.charCodeAt(0)&&Q.push(""),A.replace(I,function(A,B,C,I){Q.push(C?I.replace(E,"$1"):B||A)}),Q});A.exports=g},33812:function(A,Q,B){var C=B(4795),I=1/0;A.exports=function(A){if("string"==typeof A||C(A))return A;var Q=A+"";return"0"==Q&&1/A==-I?"-0":Q}},87035:function(A){var Q=Function.prototype.toString;A.exports=function(A){if(null!=A){try{return Q.call(A)}catch(A){}try{return A+""}catch(A){}}return""}},63344:function(A){var Q="\ud800-\udfff",B="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",C="\ud83c[\udffb-\udfff]",I="[^"+Q+"]",E="(?:\ud83c[\udde6-\uddff]){2}",g="[\ud800-\udbff][\udc00-\udfff]",w="(?:"+B+"|"+C+")?",D="[\\ufe0e\\ufe0f]?",M="(?:\\u200d(?:"+[I,E,g].join("|")+")"+D+w+")*",c=RegExp(C+"(?="+C+")|(?:"+[I+B+"?",B,E,g,"["+Q+"]"].join("|")+")"+(D+w+M),"g");A.exports=function(A){return A.match(c)||[]}},75304:function(A){var Q="\ud800-\udfff",B="\\u2700-\\u27bf",C="a-z\\xdf-\\xf6\\xf8-\\xff",I="A-Z\\xc0-\\xd6\\xd8-\\xde",E="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g="['’]",w="["+E+"]",D="["+C+"]",M="[^"+Q+E+"\\d+"+B+C+I+"]",c="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",y="["+I+"]",h="(?:"+D+"|"+M+")",k="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",n="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",t="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",K="[\\ufe0e\\ufe0f]?",L="(?:\\u200d(?:"+["[^"+Q+"]",c,s].join("|")+")"+K+t+")*",U="(?:"+["["+B+"]",c,s].join("|")+")"+(K+t+L),i=RegExp([y+"?"+D+"+"+k+"(?="+[w,y,"$"].join("|")+")","(?:"+y+"|"+M+")+"+n+"(?="+[w,y+h,"$"].join("|")+")",y+"?"+h+"+"+k,y+"+"+n,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",U].join("|"),"g");A.exports=function(A){return A.match(i)||[]}},96009:function(A,Q,B){var C=B(82108),I=B(34311)(function(A,Q,B){return Q=Q.toLowerCase(),A+(B?C(Q):Q)});A.exports=I},82108:function(A,Q,B){var C=B(66188),I=B(23779);A.exports=function(A){return I(C(A).toLowerCase())}},97329:function(A,Q,B){var C=B(61655),I=B(66188),E=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");A.exports=function(A){return(A=I(A))&&A.replace(E,C).replace(g,"")}},41225:function(A){A.exports=function(A,Q){return A===Q||A!=A&&Q!=Q}},72579:function(A,Q,B){var C=B(13324);A.exports=function(A,Q,B){var I=null==A?void 0:C(A,Q);return void 0===I?B:I}},93352:function(A,Q,B){var C=B(32726),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},95041:function(A,Q,B){var C=B(20187),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},23059:function(A){A.exports=function(A){return A}},79631:function(A,Q,B){var C=B(15183),I=B(15125),E=Object.prototype,g=E.hasOwnProperty,w=E.propertyIsEnumerable,D=C(function(){return arguments}())?C:function(A){return I(A)&&g.call(A,"callee")&&!w.call(A,"callee")};A.exports=D},86152:function(A){var Q=Array.isArray;A.exports=Q},67878:function(A,Q,B){var C=B(61049),I=B(61158);A.exports=function(A){return null!=A&&I(A.length)&&!C(A)}},73226:function(A,Q,B){A=B.nmd(A);var C=B(37772),I=B(36330),E=Q&&!Q.nodeType&&Q,g=E&&A&&!A.nodeType&&A,w=g&&g.exports===E?C.Buffer:void 0,D=w?w.isBuffer:void 0;A.exports=D||I},61049:function(A,Q,B){var C=B(53366),I=B(29259);A.exports=function(A){if(!I(A))return!1;var Q=C(A);return"[object Function]"==Q||"[object GeneratorFunction]"==Q||"[object AsyncFunction]"==Q||"[object Proxy]"==Q}},61158:function(A){A.exports=function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991}},29259:function(A){A.exports=function(A){var Q=typeof A;return null!=A&&("object"==Q||"function"==Q)}},15125:function(A){A.exports=function(A){return null!=A&&"object"==typeof A}},4795:function(A,Q,B){var C=B(53366),I=B(15125);A.exports=function(A){return"symbol"==typeof A||I(A)&&"[object Symbol]"==C(A)}},77598:function(A,Q,B){var C=B(35522),I=B(47826),E=B(4146),g=E&&E.isTypedArray,w=g?I(g):C;A.exports=w},90249:function(A,Q,B){var C=B(1634),I=B(86411),E=B(67878);A.exports=function(A){return E(A)?C(A):I(A)}},19950:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,Q(A,I,E),A)}),B}},34519:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,I,Q(A,I,E))}),B}},30733:function(A,Q,B){var C=B(96738);function I(A,Q){if("function"!=typeof A||null!=Q&&"function"!=typeof Q)throw TypeError("Expected a function");var B=function(){var C=arguments,I=Q?Q.apply(this,C):C[0],E=B.cache;if(E.has(I))return E.get(I);var g=A.apply(this,C);return B.cache=E.set(I,g)||E,g};return B.cache=new(I.Cache||C),B}I.Cache=C,A.exports=I},65798:function(A,Q,B){var C=B(20256),I=B(82952),E=B(21401),g=B(33812);A.exports=function(A){return E(A)?C(g(A)):I(A)}},57370:function(A,Q,B){var C=B(34311)(function(A,Q,B){return A+(B?"_":"")+Q.toLowerCase()});A.exports=C},30981:function(A){A.exports=function(){return[]}},36330:function(A){A.exports=function(){return!1}},66188:function(A,Q,B){var C=B(1054);A.exports=function(A){return null==A?"":C(A)}},23779:function(A,Q,B){var C=B(83126)("toUpperCase");A.exports=C},11618:function(A,Q,B){var C=B(45981),I=B(83559),E=B(66188),g=B(75304);A.exports=function(A,Q,B){return(A=E(A),void 0===(Q=B?void 0:Q))?I(A)?g(A):C(A):A.match(Q)||[]}},77105:function(A,Q,B){"use strict";let C=B(8006),I=Symbol("max"),E=Symbol("length"),g=Symbol("lengthCalculator"),w=Symbol("allowStale"),D=Symbol("maxAge"),M=Symbol("dispose"),c=Symbol("noDisposeOnSet"),s=Symbol("lruList"),y=Symbol("cache"),h=Symbol("updateAgeOnGet"),k=()=>1;class n{constructor(A){if("number"==typeof A&&(A={max:A}),A||(A={}),A.max&&("number"!=typeof A.max||A.max<0))throw TypeError("max must be a non-negative number");this[I]=A.max||1/0;let Q=A.length||k;if(this[g]="function"!=typeof Q?k:Q,this[w]=A.stale||!1,A.maxAge&&"number"!=typeof A.maxAge)throw TypeError("maxAge must be a number");this[D]=A.maxAge||0,this[M]=A.dispose,this[c]=A.noDisposeOnSet||!1,this[h]=A.updateAgeOnGet||!1,this.reset()}set max(A){if("number"!=typeof A||A<0)throw TypeError("max must be a non-negative number");this[I]=A||1/0,L(this)}get max(){return this[I]}set allowStale(A){this[w]=!!A}get allowStale(){return this[w]}set maxAge(A){if("number"!=typeof A)throw TypeError("maxAge must be a non-negative number");this[D]=A,L(this)}get maxAge(){return this[D]}set lengthCalculator(A){"function"!=typeof A&&(A=k),A!==this[g]&&(this[g]=A,this[E]=0,this[s].forEach(A=>{A.length=this[g](A.value,A.key),this[E]+=A.length})),L(this)}get lengthCalculator(){return this[g]}get length(){return this[E]}get itemCount(){return this[s].length}rforEach(A,Q){Q=Q||this;for(let B=this[s].tail;null!==B;){let C=B.prev;G(this,A,B,Q),B=C}}forEach(A,Q){Q=Q||this;for(let B=this[s].head;null!==B;){let C=B.next;G(this,A,B,Q),B=C}}keys(){return this[s].toArray().map(A=>A.key)}values(){return this[s].toArray().map(A=>A.value)}reset(){this[M]&&this[s]&&this[s].length&&this[s].forEach(A=>this[M](A.key,A.value)),this[y]=new Map,this[s]=new C,this[E]=0}dump(){return this[s].map(A=>!K(this,A)&&{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[s]}set(A,Q,B){if((B=B||this[D])&&"number"!=typeof B)throw TypeError("maxAge must be a number");let C=B?Date.now():0,w=this[g](Q,A);if(this[y].has(A)){if(w>this[I])return U(this,this[y].get(A)),!1;let g=this[y].get(A).value;return this[M]&&!this[c]&&this[M](A,g.value),g.now=C,g.maxAge=B,g.value=Q,this[E]+=w-g.length,g.length=w,this.get(A),L(this),!0}let h=new i(A,Q,w,C,B);return h.length>this[I]?(this[M]&&this[M](A,Q),!1):(this[E]+=h.length,this[s].unshift(h),this[y].set(A,this[s].head),L(this),!0)}has(A){return!!this[y].has(A)&&!K(this,this[y].get(A).value)}get(A){return t(this,A,!0)}peek(A){return t(this,A,!1)}pop(){let A=this[s].tail;return A?(U(this,A),A.value):null}del(A){U(this,this[y].get(A))}load(A){this.reset();let Q=Date.now();for(let B=A.length-1;B>=0;B--){let C=A[B],I=C.e||0;if(0===I)this.set(C.k,C.v);else{let A=I-Q;A>0&&this.set(C.k,C.v,A)}}}prune(){this[y].forEach((A,Q)=>t(this,Q,!1))}}let t=(A,Q,B)=>{let C=A[y].get(Q);if(C){let Q=C.value;if(K(A,Q)){if(U(A,C),!A[w])return}else B&&(A[h]&&(C.value.now=Date.now()),A[s].unshiftNode(C));return Q.value}},K=(A,Q)=>{if(!Q||!Q.maxAge&&!A[D])return!1;let B=Date.now()-Q.now;return Q.maxAge?B>Q.maxAge:A[D]&&B>A[D]},L=A=>{if(A[E]>A[I])for(let Q=A[s].tail;A[E]>A[I]&&null!==Q;){let B=Q.prev;U(A,Q),Q=B}},U=(A,Q)=>{if(Q){let B=Q.value;A[M]&&A[M](B.key,B.value),A[E]-=B.length,A[y].delete(B.key),A[s].removeNode(Q)}};class i{constructor(A,Q,B,C,I){this.key=A,this.value=Q,this.length=B,this.now=C,this.maxAge=I||0}}let G=(A,Q,B,C)=>{let I=B.value;K(A,I)&&(U(A,B),A[w]||(I=void 0)),I&&Q.call(C,I.value,I.key,A)};A.exports=n},53207:function(A,Q,B){var C=B(96570);C.prototype.formulaEval=function(){"use strict";for(var A,Q,B,C=[],I=this.value,E=0;E"+Q.value+""+I[E].show+""+A.value+"",type:10}):C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+""+A.value+"",type:1})):2===I[E].type||9===I[E].type?(A=C.pop(),Q=C.pop(),C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+I[E].show+(1!=A.type?"(":"")+A.value+(1!=A.type?")":""),type:I[E].type})):12===I[E].type&&(A=C.pop(),Q=C.pop(),B=C.pop(),C.push({value:I[E].show+"("+B.value+","+Q.value+","+A.value+")",type:12}));return C[0].value},A.exports=C},66655:function(A,Q,B){"use strict";var C=B(72346);function I(A,Q){for(var B=0;Bk.length-2?k.length-1:A.length-D;B>0;B--)if(void 0!==k[B])for(I=0;I0&&aB)w.push(A);else{for(;B>=I&&!c||c&&I1)throw new C.Exception("Uncaught Syntax error");return E[0].value>1e15?"Infinity":parseFloat(E[0].value.toFixed(15))},C.eval=function(A,Q,B){return void 0===Q?this.lex(A).toPostfix().postfixEval():void 0!==B?this.lex(A,Q).toPostfix().postfixEval(B):void 0!==Q.length?this.lex(A,Q).toPostfix().postfixEval():this.lex(A).toPostfix().postfixEval(Q)},A.exports=C},93542:function(A,Q,B){"use strict";var C,I;A.exports=(null==(C=B.g.process)?void 0:C.env)&&"object"==typeof(null==(I=B.g.process)?void 0:I.env)?B.g.process:B(42351)},86570:function(A,Q,B){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return B(6723)}])},3440:function(A,Q,B){"use strict";B.d(Q,{u:function(){return w}});var C=B(52322),I=B(27717),E=B(36350),g=B(5137);function w(){let{openDialog:A}=(0,g.Rh)();return(0,C.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,C.jsx)(D,{title:E.z.walletAddNew.title,description:E.z.walletAddNew.description,onSelect:()=>A("walletAddNew")}),(0,C.jsx)(D,{title:E.z.walletAddRecover.title,description:E.z.walletAddRecover.description,onSelect:()=>A("walletAddRecover")}),(0,C.jsx)(D,{title:E.z.walletAddWatch.title,description:E.z.walletAddWatch.description,onSelect:()=>A("walletAddWatch")}),(0,C.jsx)(D,{title:E.z.walletAddLedger.title,description:E.z.walletAddLedger.description,onSelect:()=>A("walletAddLedger")})]})}function D(A){let{title:Q,description:B,disabled:E,onSelect:g}=A;return(0,C.jsx)(I.Wh3,{onClick:g,disabled:E,children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,C.jsx)(I.X6q,{size:"20",children:Q}),(0,C.jsx)(I.nvN,{size:"14",color:"subtle",children:B})]})})}},12172:function(A,Q,B){"use strict";B.d(Q,{g:function(){return w}});var C=B(52322),I=B(27717),E=B(3208),g=B(5137);function w(A){let{wallet:{id:Q,metadata:B,state:w,actions:D},...M}=A,{openDialog:c}=(0,g.Rh)();return(0,C.jsxs)(I.h_2,{...M,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),"seed"===B.type?"unlocked"===w.status?(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>D.lock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Lur,{})}),"Lock wallet"]}):(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>D.unlock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.VmF,{})}),"Unlock wallet"]}):null,(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("walletUpdate",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.dr6,{})}),"Edit wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("walletRemove",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Jrl,{})}),"Delete wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("walletsRescan"),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.vs4,{})}),"Rescan blockchain"]})]})}},98334:function(A,Q,B){"use strict";B.d(Q,{_:function(){return I},h:function(){return E}});var C=B(90670);let I={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},E=C.HE},9338:function(A,Q,B){"use strict";B.d(Q,{h:function(){return C}});let C=(0,B(27717).XBW)(15)},36350:function(A,Q,B){"use strict";B.d(Q,{_:function(){return w},z:function(){return g}});var C=B(52322),I=B(27717),E=B(3208);let g={walletAddNew:{title:"Create a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,C.jsx)(C.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,C.jsx)(C.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},w={seed:{title:"Seed-based wallet",icon:(0,C.jsx)(E.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,C.jsx)(E.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,C.jsx)(E._Gh,{})}}},54590:function(A,Q,B){"use strict";B.d(Q,{p:function(){return g}});var C=B(27717),I=B(2784),E=B(5137);function g(A){let{walletId:Q,response:B,filters:g}=A,{openDialog:w}=(0,E.Rh)(),D=(0,I.useMemo)(()=>B.data?B.data.map(A=>{let{address:B,description:C,metadata:I,spendPolicy:E}=A;return{id:B,address:B,description:C,spendPolicy:E,metadata:I||{},walletId:Q,onClick:()=>w("addressUpdate",{walletId:Q,address:B}),raw:A}}):null,[B.data,w,Q]),M=(0,C.c2j)(D,B.isValidating,B.error,g),c=(D||[]).reduce((A,Q)=>{let{metadata:B}=Q;return B.index>A?B.index:A},-1);return{dataset:D,dataState:M,error:B.error,lastIndex:c,filters:g}}},58723:function(A,Q,B){"use strict";B.d(Q,{OZ:function(){return L},Jz:function(){return K}});var C=B(52322),I=B(27717),E=B(90670),g=B(2784),w=B(3654),D=B(3208),M=B(5137);function c(A){let{address:{walletId:Q,id:B,metadata:g},...w}=A,{openDialog:c}=(0,M.Rh)(),s=(0,E.XF)();return(0,C.jsxs)(I.h_2,{...w,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>c("confirm",{title:void 0!==g.index?"Remove address ".concat(g.index):"Remove address",action:"Remove",variant:"red",body:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(I.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,C.jsxs)(I.nvN,{size:"14",font:"mono",children:[(0,I.I13)(B).slice(0,40),"..."]})]}),onConfirm:async()=>{let A=await s.delete({params:{id:Q,addr:B}});A.error?(0,I.OHV)({title:"Error deleting address",body:A.error}):(0,I.OPV)({title:void 0!==g.index?"Address ".concat(g.index," removed"):"Address removed"})}}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(D.Jrl,{})}),"Remove address"]})]})}let s=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(c,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},address:Q})}},{id:"address",label:"address",category:"general",fixed:!0,render:A=>{let{data:{address:Q,description:B},context:E}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.XxW,{maxLength:40,value:Q,type:"address",siascanUrl:E.siascanUrl}),B&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:B})}),children:(0,C.jsx)(I.nvN,{size:"12",children:B.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:A=>{let{data:{metadata:Q}}=A;return void 0===Q.index?null:(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(I.xvT,{children:Q.index.toLocaleString()})})}}];var y=B(5632),h=B(74667),k=B(9338),n=B(54590);let t=(0,g.createContext)({}),K=()=>(0,g.useContext)(t);function L(A){let{children:Q}=A,B=function(){let A=(0,y.useRouter)().query.id,Q=(0,E.bd)({disabled:!A,params:{id:A},config:{swr:{refreshInterval:k.h}}}),{filters:B,setFilter:C,removeFilter:D,removeLastFilter:M,resetFilters:c}=(0,I.Wdu)(),{dataset:t,dataState:K,lastIndex:L}=(0,n.p)({walletId:A,response:Q,filters:B}),{configurableColumns:U,enabledColumns:i,sortableColumns:G,toggleColumnVisibility:r,setColumnsVisible:p,setColumnsHidden:a,toggleSort:N,setSortDirection:o,setSortField:e,sortField:J,sortDirection:F,resetDefaultColumnVisibility:S}=(0,I.oy6)("walletd/v0/addresses",{columns:s,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),l=(0,I._4u)({dataset:t,filters:B,sortField:J,sortDirection:F}),H=(0,g.useMemo)(()=>s.filter(A=>A.fixed||i.includes(A.id)),[i]),Y=(0,h.B)(),f=(0,g.useMemo)(()=>({siascanUrl:Y}),[Y]);return{dataState:K,error:Q.error,datasetCount:(null==l?void 0:l.length)||0,columns:H,dataset:l,cellContext:f,lastIndex:L,configurableColumns:U,enabledColumns:i,sortableColumns:G,toggleColumnVisibility:r,setColumnsVisible:p,setColumnsHidden:a,toggleSort:N,setSortDirection:o,setSortField:e,sortField:J,filters:B,setFilter:C,removeFilter:D,removeLastFilter:M,resetFilters:c,sortDirection:F,resetDefaultColumnVisibility:S}}();return(0,C.jsx)(t.Provider,{value:B,children:Q})}},3654:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","address","index"],I="index",E=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},5137:function(A,Q,B){"use strict";B.d(Q,{Tu:function(){return AO},xQ:function(){return Av},Rh:function(){return AZ}});var C=B(52322),I=B(2784),E=B(27717),g=B(90670),w=B(3440);function D(A){let{open:Q,trigger:B,onOpenChange:I}=A;return(0,C.jsx)(E.VqE,{title:"Add Wallet",trigger:B,open:Q,onOpenChange:I,contentVariants:{className:"max-w-[600px]"},children:(0,C.jsx)(w.u,{})})}var M=B(3208),c=B(63955),s=B(23312),y=B(36350),h=B(81395);function k(A){let{copySeed:Q,children:B,icon:I,description:g}=A;return(0,C.jsxs)("div",{className:"",children:[B,(0,C.jsx)(E.s_4,{className:"mt-2",children:(0,C.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,C.jsx)("div",{className:"flex",children:I}),(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:g}),Q&&(0,C.jsx)(E.zxk,{onClick:Q,children:"Copy Seed to Clipboard"})]})]})})]})}var n=B(48869);let t={name:"",description:"",mnemonic:"",hasCopied:!1};function K(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),K=(0,g.lT)(),L=(0,c.cI)({mode:"all",defaultValues:t}),U=L.watch("mnemonic"),i=(0,I.useCallback)(()=>{(0,E.vQq)(U,"seed"),L.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),L.clearErrors(["mnemonic"])},[U,L]),G=(0,I.useCallback)(async()=>{let{phrase:A}=(0,n.K)().wallet.generateSeedPhrase();L.setValue("hasCopied",!1),L.setValue("mnemonic",A),L.clearErrors(["hasCopied","mnemonic"])},[L]);(0,I.useEffect)(()=>{B&&G()},[B]);let{dataset:r}=(0,s.r)(),p=function(A){let{walletNames:Q,copySeed:B}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",onClick:A=>{A.currentTarget.select(),B()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,n.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},copied:(A,Q)=>Q.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:(null==r?void 0:r.map(A=>A.name))||[],copySeed:i}),a=(0,I.useCallback)(async A=>{let Q=A.mnemonic.trim(),B=(0,h.blake2bHex)(Q),C=await K.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:B}}});C.error?(0,E.OHV)({title:"Error creating wallet",body:C.error}):(D("walletAddressesGenerate",{walletId:C.data.id}),L.reset(t))},[L,D,K]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddNew.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:L.handleSubmit(a),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:L,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,C.jsx)(E.yEL,{name:"name",form:L,fields:p}),(0,C.jsx)(E.Bau,{name:"description",form:L,fields:p}),(0,C.jsx)(k,{icon:(0,C.jsx)(M.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.Bau,{form:L,fields:p,name:"mnemonic"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:G,children:[(0,C.jsx)(M.nt4,{}),"Regenerate"]}),(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:i,children:[(0,C.jsx)(M.olJ,{}),"Copy to clipboard"]})]})]})})]})})}var L=B(6391),U=B.n(L);function i(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:I}=A;return{type:B,title:"Seed",actions:(0,C.jsx)("div",{className:"flex gap-1",children:(0,C.jsx)(E.zxk,{tip:"password"===B?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>I("password"===B?"text":"password"),children:"password"===B?(0,C.jsx)(M.pHg,{}):(0,C.jsx)(M.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,n.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},match:A=>(0,h.blake2bHex)(A)===Q||"seed phrase does not match"}}}}var G=B(3584);function r(A){let{walletId:Q,name:B,form:I,fields:g,actionText:w}=A,{dataset:D,walletAutoLockEnabled:c,walletAutoLockTimeout:y}=(0,s.r)(),h=null==D?void 0:D.find(A=>A.id===Q),n=null==h?void 0:h.state.mnemonic,t=(0,G.l)(y),K=w?" and ".concat(w):"";return n?(0,C.jsx)(k,{icon:(0,C.jsx)(M.R$y,{}),description:c?(0,C.jsxs)(C.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",t.amount," ",t.units,", manually locked, or the app is closed."]}):(0,C.jsx)(C.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,C.jsx)(k,{icon:(0,C.jsx)(M.R$y,{}),description:c?(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",K,". The wallet will stay unlocked until it is inactive for"," ",t.amount," ",t.units,", manually locked, or the app is closed."]}):(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",K,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,C.jsx)(E.yEL,{form:I,fields:g,name:B})})}var p=B(9338),a=B(54590);let N=[];function o(A){let{id:Q}=A,B=(0,g.bd)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:p.h}}}),{dataset:C,dataState:I,lastIndex:E}=(0,a.p)({walletId:Q,response:B,filters:N});return{dataState:I,error:B.error,datasetCount:(null==C?void 0:C.length)||0,dataset:C,lastIndex:E}}var e=B(63131);function J(A){let{label:Q,description:B}=A;return(0,C.jsx)(E.bZj,{className:"!p-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(e.qdM,{})}),(0,C.jsx)(E.xvT,{weight:"medium",children:Q})]}),(0,C.jsx)(E.xvT,{size:"14",color:"subtle",children:B})]})})}function F(){return{shouldRescan:{type:"boolean",title:"Enable",validation:{}},rescanStartHeight:{type:"number",decimalsLimit:0,title:"Start height",validation:{}}}}function S(){let{rescanStartHeight:A}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{shouldRescan:!1,rescanStartHeight:new(U())(A||0)}}function l(A){let{form:Q,fields:B}=A,I=Q.watch("shouldRescan");return(0,C.jsxs)("div",{className:"flex flex-col gap-1 pt-4",children:[(0,C.jsx)(E.Z0O,{className:"w-full my-2"}),(0,C.jsx)(E.__J,{color:"contrast",className:"pb-2",size:"16",children:"Advanced"}),(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(E.__J,{color:"contrast",children:"Rescan"})}),(0,C.jsxs)("div",{className:"flex justify-start gap-3",children:[(0,C.jsx)(E.QBj,{form:Q,fields:B,name:"shouldRescan"}),I&&(0,C.jsx)(E.jIp,{form:Q,fields:B,name:"rescanStartHeight"})]}),I&&(0,C.jsx)(E.xvT,{size:"14",color:"subtle",children:"Rescan the blockchain from the specified start height to find any missing transaction activity across all wallets."}),I&&(0,C.jsxs)("div",{className:"pt-2 flex flex-col gap-2",children:[(0,C.jsx)(H,{}),(0,C.jsx)(Y,{})]})]})}function H(){return(0,C.jsx)(J,{label:"Warning",description:(0,C.jsx)(C.Fragment,{children:"Only rescan the blockchain if you have added addresses with past transactions activity. Rescanning the blockchain is a very expensive operation and can take a long time."})})}function Y(){return(0,C.jsx)(J,{label:"Warning",description:(0,C.jsx)(C.Fragment,{children:"For start height, select the highest block height possible, but one that you are sure is before the first transaction activity for the addresses you have added."})})}function f(){let A=(0,g.Ap)();return async Q=>{if(Q.shouldRescan){let B=await A.post({payload:Q.rescanStartHeight?Q.rescanStartHeight.toNumber():0});B.error?(0,E.OHV)({title:"Error rescanning the blockchain",body:B.error}):(0,E.OPV)({title:"Rescanning the blockchain",body:"The blockchain is being rescanned for relevant wallet events."})}}}var d=B(38855);function u(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M}=Q||{},{lastIndex:y}=o({id:M}),{dataset:h,cacheWalletMnemonic:k}=(0,s.r)(),t=null==h?void 0:h.find(A=>A.id===M),K=y+1,L=function(A){let{nextIndex:Q,currentHeight:B}=A;return{mnemonic:"",index:new(U())(Q),count:new(U())(1),...S({rescanStartHeight:B})}}({nextIndex:K,currentHeight:(0,d.n)().nodeBlockHeight}),[G,p]=(0,I.useState)("password"),a=(0,c.cI)({mode:"all",defaultValues:L});(0,I.useEffect)(()=>{a.formState.isSubmitting||a.setValue("index",new(U())(K))},[K]);let{handleOpenChange:N,closeAndReset:e}=(0,E.t0Y)({form:a,onOpenChange:D,defaultValues:L}),J=a.watch("mnemonic"),H=a.watch("index"),Y=a.watch("count"),u=a.watch("shouldRescan"),R=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B}),index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"10",validation:{required:"required",max:1e3}},...F()}}({mnemonicHash:null==t?void 0:t.metadata.mnemonicHash,mnemonicFieldType:G,setMnemonicFieldType:p}),j=(0,g.yi)(),b=(0,I.useCallback)(async(A,Q,B)=>{function C(A,Q,B){(0,E.OHV)({title:"Error generating addresses",body:Q>0?"".concat(Q+1,"/").concat(A," addresses were generated and saved. Batch failed on with: ").concat(B):B})}for(let I=Q;I{await b(t.state.mnemonic||J,H.toNumber(),Y.toNumber()),m(A)},[b,J,H,Y,t,m]);return(0,C.jsxs)(E.VqE,{title:"Wallet ".concat(null==t?void 0:t.name,": generate addresses"),trigger:B,open:w,onOpenChange:N,contentVariants:{className:"w-[500px]"},onSubmit:a.handleSubmit(T),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(E.ZqQ,{form:a,size:"medium",variant:u?"red":"accent",children:["Generate addresses",u?" and rescan":""]})}),children:[(0,C.jsx)(r,{walletId:M,name:"mnemonic",form:a,fields:R,actionText:"generate addresses"}),(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:a,fields:R,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:a,fields:R,name:"count"})})]}),(0,C.jsx)(l,{form:a,fields:R})]})}var R=B(5632),j=B(98334);let b={name:""};function m(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,M=(0,R.useRouter)(),{walletId:y}=Q||{},{closeDialog:h}=AZ(),{dataset:k}=(0,s.r)(),n=null==k?void 0:k.find(A=>A.id===y),t=(0,g.OZ)(),K=(0,c.cI)({mode:"all",defaultValues:b}),L=(0,I.useCallback)(async()=>{let A=await t.delete({params:{id:y}});A.error?(0,E.OHV)({title:"Error removing wallet",body:A.error}):((0,E.OPV)({title:"Wallet permanently removed"}),K.reset(),h(),M.push(j._.home))},[K,y,t,h,M]),U=(0,I.useMemo)(()=>{var A;return{name:{type:"text",title:"Name",placeholder:A=null==n?void 0:n.name,validation:{required:"required",validate:{equals:Q=>Q===A||"name does not match"}}}}},[n]),i=(0,E.WsO)(U);return(0,C.jsx)(E.VqE,{title:"Remove wallet",trigger:B,open:w,onOpenChange:A=>{A||K.reset(b),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:K.handleSubmit(L,i),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,C.jsx)(E.EKh,{children:null==n?void 0:n.name}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"name",form:K,fields:U}),(0,C.jsx)(E.ZqQ,{variant:"red",form:K,children:"Remove"})]})})}function T(A){let{trigger:Q,open:B,onOpenChange:w,params:D}=A,{walletId:M,address:s}=D||{},{openDialog:y}=AZ(),{dataset:h,dataState:k}=o({id:M}),n=null==h?void 0:h.find(A=>A.id===s),t=(0,g.yi)(),K=function(A){let{description:Q}=A;return{description:Q||""}}({description:null==n?void 0:n.description}),L=(0,c.cI)({mode:"all",defaultValues:K}),{handleOpenChange:U,closeAndReset:i}=(0,E.t0Y)({form:L,onOpenChange:w,defaultValues:K,initKey:[D,void 0===k]}),G=(0,I.useCallback)(async A=>{let Q=await t.put({params:{id:M},payload:{...n.raw,address:s,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating address",body:Q.error}):i()},[M,s,t,n,i]);return(0,C.jsx)(E.VqE,{title:(0,E.$Gg)(s,20),trigger:Q,open:B,onOpenChange:U,contentVariants:{className:"w-[400px]"},onSubmit:L.handleSubmit(G),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{onClick:()=>y("addressRemove",{walletId:M,address:s}),children:"Remove address"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"small",form:L,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.hKn,{address:(null==n?void 0:n.address)||""}),(0,C.jsx)(E.Bau,{name:"description",form:L,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let Z={name:"",description:""};function O(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M}=Q||{},{dataset:y}=(0,s.r)(),h=null==y?void 0:y.find(A=>A.id===M),k=(0,g.SK)(),n=h?{name:h.name,description:h.description}:Z,t=(0,c.cI)({mode:"all",defaultValues:n}),{handleOpenChange:K,closeAndReset:L}=(0,E.t0Y)({form:t,onOpenChange:D,defaultValues:n}),U=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(0,I.useMemo)(()=>(null==y?void 0:y.reduce((A,Q)=>Q.name!==(null==h?void 0:h.name)?A.concat(Q.name):A,[]))||[],[y,h])}),i=(0,I.useCallback)(async A=>{let Q=await k.post({params:{id:M},payload:{...h.raw,name:A.name,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating wallet",body:Q.error}):L()},[M,k,h,L]);return(0,C.jsx)(E.VqE,{title:"".concat(null==h?void 0:h.name),trigger:B,open:w,onOpenChange:K,contentVariants:{className:"w-[400px]"},onSubmit:t.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:t,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.__J,{children:"Type"}),(0,C.jsx)("div",{children:(0,C.jsx)(E.Cts,{children:null==h?void 0:h.metadata.type})})]}),(0,C.jsx)(E.yEL,{name:"name",form:t,fields:U}),(0,C.jsx)(E.Bau,{name:"description",form:t,fields:U})]})})}var v=B(79381),x=B(16694),V=B(73866),z=B(27748);async function W(){return(await Promise.all([V.Z.isSupported().then(async A=>{let Q=await P();return A&&!Q?"Bluetooth":null}),z.Z.isSupported().then(A=>A?"HID":null)])).filter(A=>A)}async function P(){return navigator.brave&&await navigator.brave.isBrave()}function q(A){let{title:Q,details:B,actions:I,shouldVerify:g}=A,{device:w,disconnect:D}=(0,x.c)();return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[g?(0,C.jsxs)(C.Fragment,{children:[!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==w?void 0:w.type)==="Bluetooth"&&(0,C.jsx)(E.ua7,{content:"Bluetooth",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(M.Ya6,{})})}),(null==w?void 0:w.type)==="USB"&&(0,C.jsx)(E.ua7,{content:"USB",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(M.Fhn,{size:16})})}),(null==w?void 0:w.type)==="HID"&&(0,C.jsx)(E.ua7,{content:"HID",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(M.Pj_,{size:16})})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[I,!!w&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(M.PcV,{})})]})]}),B]})})}let X={transportType:""};function _(A){var Q;let{shouldVerify:B}=A,{device:g,connect:w,verify:D,setError:s,waitingForUser:y}=(0,x.c)(),h=(0,c.cI)({mode:"all",defaultValues:X}),k=h.watch("transportType"),n=!!(null==g?void 0:g.publicKey0),t=(0,v.ZP)("deviceConnect/supportedTransports",()=>W(),{revalidateOnFocus:!1});(0,I.useEffect)(()=>{t.data&&(h.setValue("transportType",t.data[0]),0===t.data.length&&s(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[t.data]);let K=function(A){let{supportedTransports:Q}=A;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:Q.map(A=>({value:A,label:A})),validation:{required:!0}}}}({supportedTransports:t.data||[]}),L=(0,I.useCallback)(async()=>{k&&w(k)},[w,k]),U=(0,I.useCallback)(async()=>{k&&await D()},[D,k]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:g?B?n?(0,C.jsx)(q,{shouldVerify:B,title:g.transport.deviceModel.productName,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:g.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,C.jsx)(q,{shouldVerify:B,title:g.transport.deviceModel.productName,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(E.zxk,{variant:"accent",onClick:U,children:[(0,C.jsx)(M.j7C,{}),"Verify"]})}),details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,C.jsx)(q,{shouldVerify:B,title:g.transport.deviceModel.productName}):(0,C.jsx)(q,{shouldVerify:B,title:"Connect Ledger...",actions:(null===(Q=t.data)||void 0===Q?void 0:Q.length)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.WyV,{name:"transportType",form:h,fields:K,group:!1}),(0,C.jsx)(E.zxk,{size:"small",onClick:L,children:"Connect"})]}):null,details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm in browser and on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})]}):(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})})})}let $={name:"",description:"",ledgerConnectedAndVerified:!1};function AA(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),M=(0,g.lT)(),h=(0,c.cI)({mode:"all",defaultValues:$}),{device:k,disconnect:t,error:K}=(0,x.c)();(0,I.useEffect)(()=>{B&&t()},[B]),(0,I.useEffect)(()=>{k&&k.publicKey0?h.setValue("ledgerConnectedAndVerified",!0):h.setValue("ledgerConnectedAndVerified",!1)},[h,k]),(0,I.useEffect)(()=>{K?h.setError("ledgerConnectedAndVerified",{message:K.message}):h.clearErrors("ledgerConnectedAndVerified")},[h,K]);let{dataset:L}=(0,s.r)(),U=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},ledgerConnectedAndVerified:{type:"boolean",title:"",validation:{validate:{ledgerConnectedAndVerified:A=>A||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:(null==L?void 0:L.map(A=>A.name))||[]}),i=(0,g.yi)(),G=(0,I.useCallback)(async(A,Q)=>{let{unlockConditions:B,address:C}=Q;if((await i.put({params:{id:A},payload:{address:C,description:"",metadata:{index:0,unlockConditions:B}}})).error){(0,E.OHV)({title:"Error saving address"});return}},[i]),r=(0,I.useCallback)(async A=>{if(!A.ledgerConnectedAndVerified||!k.publicKey0||!k.address0)return;let Q={type:"ledger",publicKey0:k.publicKey0,address0:k.address0},B=await M.post({payload:{name:A.name,description:A.description,metadata:Q}});if(B.error)(0,E.OHV)({title:"Error saving wallet",body:B.error});else{let A=(0,n.K)().wallet.standardUnlockConditions(k.publicKey0);A.error||G(B.data.id,{unlockConditions:A.unlockConditions,address:k.address0}),D("walletLedgerAddressGenerate",{walletId:B.data.id,walletJustCreated:!0}),h.reset($)}},[h,D,M,k,G]);return h.register("ledgerConnectedAndVerified",U.ledgerConnectedAndVerified.validation),(0,C.jsx)(E.VqE,{title:y.z.walletAddLedger.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(r),controls:(0,C.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,C.jsx)(E.yEL,{name:"name",form:h,fields:U}),(0,C.jsx)(E.Bau,{name:"description",form:h,fields:U}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,C.jsx)(E.cp7,{name:"ledgerConnectedAndVerified",form:h}),(0,C.jsx)(_,{shouldVerify:!0})]})]})})}let AQ={name:"",description:"",mnemonic:""};function AB(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),t=(0,c.cI)({mode:"all",defaultValues:AQ}),{dataset:K}=(0,s.r)(),L=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,n.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:(null==K?void 0:K.map(A=>A.name))||[]}),U=(0,g.lT)(),i=(0,I.useCallback)(async A=>{let Q=A.mnemonic.trim(),B=(0,h.blake2bHex)(Q),C=await U.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:B}}});C.error?(0,E.OHV)({title:"Error adding wallet",body:C.error}):(D("walletAddressesGenerate",{walletId:C.data.id}),t.reset(AQ))},[t,D,U]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddRecover.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:t.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:t,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,C.jsx)(E.yEL,{name:"name",form:t,fields:L}),(0,C.jsx)(E.Bau,{name:"description",form:t,fields:L}),(0,C.jsx)(k,{icon:(0,C.jsx)(M.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,C.jsx)(E.Bau,{form:t,fields:L,name:"mnemonic"})})]})})}let AC={name:"",description:""};function AI(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),M=(0,g.lT)(),h=(0,c.cI)({mode:"all",defaultValues:AC}),{dataset:k}=(0,s.r)(),n=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(null==k?void 0:k.map(A=>A.name))||[]}),t=(0,I.useCallback)(async A=>{let Q=await M.post({payload:{name:A.name,description:A.description,metadata:{type:"watch"}}});Q.error?(0,E.OHV)({title:"Error adding wallet",body:Q.error}):(D("walletAddressesAdd",{walletId:Q.data.id}),h.reset(AC))},[h,D,M]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddWatch.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(t),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,C.jsx)(E.yEL,{name:"name",form:h,fields:n}),(0,C.jsx)(E.Bau,{name:"description",form:h,fields:n})]})})}var AE=B(92581),Ag=B(28356);let Aw={addresses:"",...S()};function AD(A){return(0,Ag.Z)(A.trim().split(/[^0-9a-fA-F]+/).map(A=>A).filter(A=>!!A))}function AM(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M}=Q||{},{dataset:y}=(0,s.r)(),h=null==y?void 0:y.find(A=>A.id===M),k=(0,c.cI)({mode:"all",defaultValues:Aw}),{handleOpenChange:n,closeAndReset:t}=(0,E.t0Y)({form:k,onOpenChange:D,defaultValues:Aw}),K={addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:A=>{let Q=AD(A||"");for(let A=0;A{let Q=AD(A),B=Q.length,C=0;for(let A=0;A{let Q=await U(A.addresses);if(Q.error){1===Q.total?(0,E.OHV)({title:"Error saving address",body:Q.error}):(0,E.OHV)({title:"Error saving addresses",body:Q.successful>0?"".concat(Q.successful," of ").concat(Q.total," addresses were saved."):""});return}1===Q.total?(0,E.OPV)({title:"Added 1 address"}):(0,E.OPV)({title:"Added ".concat(Q.successful," addresses")}),i(A),t()},[U,t,i]),r=k.watch("addresses"),p=k.watch("shouldRescan"),a=AD(r).length;return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==h?void 0:h.name,": add addresses"),trigger:B,open:w,onOpenChange:n,contentVariants:{className:"w-[500px]"},onSubmit:k.handleSubmit(G),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(E.ZqQ,{form:k,variant:p?"red":"accent",size:"medium",children:[0===a?"Add addresses":1===a?"Add 1 address":"Add ".concat(a.toLocaleString()," addresses"),p?" and rescan":""]})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,C.jsx)(E.Bau,{form:k,fields:K,name:"addresses"}),(0,C.jsx)(l,{form:k,fields:K})]})})}let Ac={address:""};function As(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M,address:s}=Q||{},{closeDialog:y}=AZ(),h=(0,g.XF)(),k=(0,c.cI)({defaultValues:Ac}),n=(0,I.useCallback)(async()=>{let A=await h.delete({params:{id:M,addr:s}});A.error?(0,E.OHV)({title:"Error removing address",body:A.error}):((0,E.OPV)({title:"Address permanently removed"}),k.reset(),y())},[k,M,s,h,y]),t=(0,I.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:s,validation:{required:"required",validate:{equals:A=>(0,E.I13)(A)===(0,E.I13)(s)||"address does not match"}}}}),[s]),K=(0,E.WsO)(t);return(0,C.jsx)(E.VqE,{title:"Remove address",trigger:B,open:w,onOpenChange:A=>{A||k.reset(Ac),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:k.handleSubmit(n,K),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,C.jsxs)(E.EKh,{children:[(0,E.I13)(s).slice(0,12),"..."]}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"address",form:k,fields:t}),(0,C.jsx)(E.ZqQ,{variant:"red",form:k,children:"Remove"})]})})}let Ay="e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",Ah=(0,AE.qN)(.00393),Ak={receiveAddress:"",changeAddress:"",claimAddress:"",customChangeAddress:!1,customClaimAddress:!1,mode:"siacoin",siacoin:void 0,siafund:void 0,includeFee:!1};function An(A){let{balanceSc:Q,balanceSf:B,onComplete:g,defaultChangeAddress:w,defaultClaimAddress:D}=A,s=(0,c.cI)({mode:"all",defaultValues:Ak}),y=function(A){let{balanceSc:Q,balanceSf:B,fee:I}=A;return{receiveAddress:{type:"text",title:"Recipient address",placeholder:Ay,validation:{validate:{required:A=>!!A||"required",valid:A=>(0,AE.At)(A)||"invalid address"}}},mode:{type:"select",title:"Action",options:[{value:"siacoin",label:"Send siacoins"},{value:"siafund",label:"Send siafunds"}],validation:{required:"required"}},siacoin:{type:"siacoin",title:"Siacoin",placeholder:"100",validation:{validate:{required:(A,Q)=>"siacoin"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siacoin"!==Q.mode||!new(U())(A||0).isZero()||"must be greater than zero",balance:(A,B)=>"siacoin"!==B.mode||Q.gte((0,AE.qN)(A||0).plus(I))||"not enough funds in wallet"}}},siafund:{type:"number",title:"Siafunds",decimalsLimit:0,placeholder:"100",validation:{validate:{required:(A,Q)=>"siafund"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siafund"!==Q.mode||(null==A?void 0:A.gt(0))||"must be greater than zero",balance:(A,C)=>"siafund"!==C.mode||(null==Q?void 0:Q.gte(I))&&(null==B?void 0:B.gte(A))||"not enough funds in wallet"}}},customChangeAddress:{type:"boolean",title:"Custom change adress",validation:{}},customClaimAddress:{type:"boolean",title:"Custom claim adress",validation:{}},changeAddress:{type:"text",title:"Change address",placeholder:Ay,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address where any change from the transaction will be sent. If a custom change address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(M.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>!Q.customChangeAddress||!!A||"required",valid:(A,Q)=>!Q.customChangeAddress||(0,AE.At)(A)||"invalid address"}}},claimAddress:{type:"text",title:"Claim address",placeholder:Ay,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address that will receive any unclaimed siacoin earnings from the siafund. If a custom claim address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(M.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||!!A||"required"},valid:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||(0,AE.At)(A)||"invalid address"}}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balanceSc:Q,balanceSf:B,fee:Ah}),h=(0,I.useCallback)(async A=>{let Q=new(U())(A.siacoin||0),B=new(U())(A.siafund||0),C=A.includeFee?(0,AE.qN)(Q).minus(Ah):(0,AE.qN)(Q),I=B.toNumber();g({receiveAddress:A.receiveAddress,changeAddress:A.customChangeAddress?A.changeAddress:w,claimAddress:A.customClaimAddress?A.claimAddress:D,fee:Ah,mode:A.mode,siacoin:C,siafund:I})},[g,w,D]),k=(0,I.useMemo)(()=>s.handleSubmit(h),[s,h]),n=s.watch("siacoin"),t=s.watch("mode"),K=s.watch("customChangeAddress"),L=s.watch("customClaimAddress"),i=s.watch("includeFee"),G=(0,AE.qN)(n||0),r=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[B.gt(0)&&(0,C.jsx)(E.WyV,{size:"medium",form:s,fields:y,name:"mode"}),(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"receiveAddress",autoComplete:"off"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customChangeAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom change address"}),y.changeAddress.actions]})}),"siafund"===t&&(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customClaimAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom claim address"}),y.claimAddress.actions]})})]}),K&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"changeAddress",autoComplete:"off"}),"siafund"===t&&L&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"claimAddress",autoComplete:"off"}),"siacoin"===t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.qGu,{size:"medium",form:s,fields:y,name:"siacoin"}),(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsxs)(E.QBj,{size:"small",form:s,fields:y,name:"includeFee",children:[(0,C.jsx)(E.xvT,{children:"Include fee"}),(0,C.jsx)(E.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,C.jsx)("div",{className:"flex flex-1"})]})]}):(0,C.jsx)(E.jIp,{size:"medium",form:s,fields:y,name:"siafund"}),(0,C.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:Ah,variant:"value",dynamicUnits:!1})})]}),"siacoin"===t&&(0,C.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:i?G:G.plus(Ah),variant:"value",dynamicUnits:!1})})]})]})]});return{form:s,el:r,handleSubmit:k,reset:()=>s.reset(Ak)}}function At(A){let{params:{receiveAddress:Q,changeAddress:B,claimAddress:I,mode:g,siacoin:w,siafund:D,fee:M},transactionId:c}=A,s=w.plus(M);return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Recipient address"}),(0,C.jsx)(E.XxW,{value:Q,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Change address"}),(0,C.jsx)(E.XxW,{value:B,type:"address"})]}),"siafund"===g&&(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Claim address"}),(0,C.jsx)(E.XxW,{value:I,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:"siacoin"===g?(0,C.jsx)(E.YKL,{size:"14",value:w,variant:"value",dynamicUnits:!1}):(0,C.jsx)(E.Sby,{size:"14",value:D,variant:"value"})})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:M,variant:"value",dynamicUnits:!1})})]}),"siacoin"===g&&(0,C.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),c&&(0,C.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,C.jsx)(E.XxW,{value:c,type:"transaction"})]})]})}function AK(A){let{transaction:Q,toSign:B,addresses:C,siacoinOutputs:I,siafundOutputs:g}=A;if(!C)return{error:"No addresses"};if(!I)return{error:"No outputs"};for(let A of B){let B=(0,E.I13)(A),{address:w,siacoinUtxo:D,siafundUtxo:M,siacoinInput:c,siafundInput:s,error:y}=AL({toSignId:B,addresses:C,siacoinOutputs:I,siafundOutputs:g,transaction:Q});if(y)return{error:y};D&&(c.unlockConditions=w.metadata.unlockConditions),M&&(s.unlockConditions=w.metadata.unlockConditions),Q.signatures||(Q.signatures=[]),Q.signatures.push({parentID:B,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function AL(A){var Q,B;let{toSignId:C,transaction:I,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A,M=(0,E.I13)(C),c=function(A){let{id:Q,addresses:B,siacoinOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siacoinOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:M,addresses:g,siacoinOutputs:w});if(!c.error){let A=null===(Q=I.siacoinInputs)||void 0===Q?void 0:Q.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(c.utxo.id));return A?{address:c.address,siacoinUtxo:c.utxo,siacoinInput:A}:{error:"Missing input"}}let s=function(A){let{id:Q,addresses:B,siafundOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siafundOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:M,addresses:g,siafundOutputs:D});if(!s.error){let A=null===(B=I.siafundInputs)||void 0===B?void 0:B.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(s.utxo.id));return A?{address:s.address,siafundUtxo:s.utxo,siafundInput:A}:{error:"Missing input"}}return s.error&&"Missing utxo"!==s.error?{error:s.error}:{error:c.error}}function AU(A){let{cancel:Q}=A,B=(0,g.ys)();return(0,I.useCallback)(async A=>{let{signedTransaction:C}=A;if(!C)return{error:"No signed transaction"};let I=await B.post({payload:{transactions:[C],v2transactions:[]}});return I.error?(Q(C),{error:I.error}):{}},[Q,B])}function Ai(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.zQ)();return(0,I.useCallback)(async A=>{var C,I;let g=(null===(C=A.siacoinInputs)||void 0===C?void 0:C.map(A=>A.parentID))||[],w=(null===(I=A.siafundInputs)||void 0===I?void 0:I.map(A=>A.parentID))||[],D=await B.post({params:{id:Q},payload:{siacoinOutputs:g,siafundOutputs:w}});D.error&&(0,E.OHV)({title:"Error canceling transaction",body:D.error})},[Q,B])}function AG(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.sv)(),C=(0,g.bW)();return(0,I.useCallback)(async A=>{let{receiveAddress:I,changeAddress:E,claimAddress:g,mode:w,siacoin:D,siafund:M,fee:c}=A;if(!I||!E||!g)return{error:"No addresses"};if("siacoin"===w){let A=await B.post({params:{id:Q},payload:{amount:D.plus(c).toString(),changeAddress:E,transaction:{minerFees:[c.toString()],siacoinOutputs:[{value:D.toString(),address:I}]}}});return A.error?{error:A.error}:{fundedTransaction:A.data.transaction,toSign:A.data.toSign}}if("siafund"===w){let A=[],w=await C.post({params:{id:Q},payload:{amount:M,changeAddress:E,claimAddress:g,transaction:{minerFees:[c.toString()],siafundOutputs:[{value:M,address:I}]}}});return w.error?{error:w.error}:(A.push(...w.data.toSign),(w=await B.post({params:{id:Q},payload:{amount:c.toString(),changeAddress:E,transaction:w.data.transaction}})).error)?{error:w.error}:(A.push(...w.data.toSign),{fundedTransaction:w.data.transaction,toSign:A})}},[B,C,Q])}let Ar={mnemonic:""};function Ap(A){let{params:Q,transactionId:B}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(At,{params:Q,transactionId:B}),(0,C.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(M.Z$8,{})}),(0,C.jsx)(E.xvT,{children:"Transaction successfully broadcast."})]})]})}function Aa(A){let{trigger:Q,open:B,onOpenChange:I,sendParams:g,signedTxnId:w,step:D,send:M,compose:c,setStep:s,controls:y}=A;return(0,C.jsx)(E.VqE,{trigger:Q,open:B,onOpenChange:A=>{A||(c.reset(),M.reset(),s("compose")),I(A)},title:"Send",onSubmit:y?y.handleSubmit:void 0,controls:(null==y?void 0:y.form)&&(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.ZqQ,{form:y.form,children:y.submitLabel})}),contentVariants:{className:"w-[450px]"},children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.tIK,{onChange:A=>{s(A)},activeStep:D,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,C.jsx)(E.Z0O,{className:"w-full mt-4"}),"compose"===D&&c.el,"send"===D&&M.el,"done"===D&&(0,C.jsx)(Ap,{params:g,transactionId:w})]})})}let AN={receiveAddress:"",changeAddress:"",claimAddress:"",mode:"siacoin",siacoin:new(U())(0),siafund:0,fee:new(U())(0)};function Ao(A){var Q,B;let{params:w,trigger:D,open:M,onOpenChange:y}=A,{walletId:h}=w||{},k=(0,g.tM)({disabled:!h,params:{id:h}}),{dataset:t}=o({id:h}),K=(0,I.useMemo)(()=>{var A;return new(U())((null===(A=k.data)||void 0===A?void 0:A.siacoins)||0)},[k.data]),L=(0,I.useMemo)(()=>{var A;return new(U())((null===(A=k.data)||void 0===A?void 0:A.siafunds)||0)},[k.data]),[G,p]=(0,I.useState)("compose"),[a,N]=(0,I.useState)(),[e,J]=(0,I.useState)(AN),F=An({balanceSc:K,balanceSf:L,defaultChangeAddress:null==t?void 0:null===(Q=t[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==t?void 0:null===(B=t[0])||void 0===B?void 0:B.address,onComplete:A=>{J(Q=>({...Q,...A})),p("send")}}),S=function(A){let{walletId:Q,params:B,onConfirm:w}=A,D=function(){let{wallet:A,cacheWalletMnemonic:Q}=(0,s.r)(),B=null==A?void 0:A.id,C=(0,g.jL)({disabled:!B,params:{id:B}}),E=(0,g.cd)({disabled:!B,params:{id:B}}),{dataset:w}=o({id:B}),D=(0,g.ek)(),M=(0,g.gM)(),c=AG(),y=Ai(),h=AU({cancel:y});return(0,I.useCallback)(async A=>{let{mnemonic:I,params:g}=A;if(!w)return{error:"No addresses found"};let{fundedTransaction:s,toSign:k,error:t}=await c(g);if(t)return{fundedTransaction:s,error:t};let{signedTransaction:K,error:L}=function(A){let{mnemonic:Q,transaction:B,toSign:C,consensusState:I,consensusNetwork:E,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A;if(!I)return{error:"No consensus state"};if(!g)return{error:"No addresses"};if(!w)return{error:"No outputs"};let{error:M}=AK({toSign:C,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(M)return{error:M};for(let[A,M]of C.entries()){let{address:C,error:c}=AL({toSignId:M,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(c)return{error:c};let s=(0,n.K)().wallet.keyPairFromSeedPhrase(Q,C.metadata.index);if(s.error)return{error:s.error};let{signature:y,error:h}=(0,n.K)().wallet.signTransactionV1(I,E,B,A,s.privateKey);if(h)return{error:h};B.signatures[A].signature=y}return{signedTransaction:B}}({mnemonic:I,transaction:s,toSign:k,consensusState:D.data,consensusNetwork:M.data,addresses:w,siacoinOutputs:C.data,siafundOutputs:E.data});return L?(y(s),{error:L}):(Q(B,I),h({signedTransaction:K}))},[y,w,c,B,D.data,M.data,C.data,E.data,Q,h])}(),{isSeedCached:M}=function(A){let{dataset:Q}=(0,s.r)(),B=null==Q?void 0:Q.find(Q=>Q.id===A),C=null==B?void 0:B.state.mnemonic;return{cachedMnemonic:C,isSeedCached:!!C}}(Q),{dataset:y}=(0,s.r)(),h=null==y?void 0:y.find(A=>A.id===Q),k=null==h?void 0:h.metadata.mnemonicHash,t=(0,c.cI)({mode:"all",defaultValues:Ar}),[K,L]=(0,I.useState)("password"),U=(0,I.useMemo)(()=>(function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C,isSeedCached:I}=A;return{mnemonic:I?{title:"Seed",type:"text",validation:{}}:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}})({mnemonicFieldType:K,setMnemonicFieldType:L,mnemonicHash:k,isSeedCached:M}),[K,L,k,M]),G=(0,I.useCallback)(async A=>{let{error:Q}=await D({mnemonic:h.state.mnemonic||A.mnemonic,params:B});if(Q){(0,E.OHV)({title:Q});return}w({})},[D,B,w,h]),p=(0,E.WsO)(U),a=(0,I.useMemo)(()=>t.handleSubmit(G,p),[t,G,p]),N=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(r,{walletId:Q,name:"mnemonic",form:t,fields:U,actionText:"complete the transaction"}),(0,C.jsx)(At,{params:B})]});return{form:t,el:N,handleSubmit:a,reset:()=>t.reset(Ar)}}({walletId:h,params:e,onConfirm:A=>{let{transactionId:Q}=A;N(Q),p("done")}}),l=(0,I.useMemo)(()=>"compose"===G?{submitLabel:"Generate transaction",form:F.form,handleSubmit:F.handleSubmit,reset:F.reset}:"send"===G?{submitLabel:"Sign and broadcast transaction",form:S.form,handleSubmit:S.handleSubmit,reset:S.reset}:void 0,[G,F,S]);return(0,C.jsx)(Aa,{trigger:D,open:M,onOpenChange:A=>{A||(F.reset(),S.reset(),p("compose")),y(A)},controls:l,compose:F,send:S,sendParams:e,signedTxnId:a,step:G,setStep:p})}function Ae(A){let{title:Q,isSigned:B,isConnected:I,details:g,actions:w}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):I?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsx)("div",{className:"flex gap-1 justify-between items-center",children:w})]}),g]})})}function AJ(A){let{waitingForUser:Q,isConnected:B,isSigned:I,sign:g}=A;return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:I?(0,C.jsx)(Ae,{isConnected:B,isSigned:I,title:"Transaction"}):B&&Q?(0,C.jsx)(Ae,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):B?(0,C.jsx)(Ae,{isConnected:B,isSigned:I,title:"Transaction",actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:g,children:"Sign"})})}):(0,C.jsx)(Ae,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var AF=B(48834).lW;async function AS(A){let{device:Q,transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g}=A;if(!I)return{error:"No addresses"};if(!E)return{error:"No outputs"};let{error:w}=AK({transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g});if(w)return{error:w};for(let[A,w]of C.entries()){let C=AL({toSignId:w,addresses:I,siacoinOutputs:E,siafundOutputs:g,transaction:B});if(C.error)return{error:C.error};let D=await Al({device:Q,transaction:B,signatureIndex:A,keyIndex:C.address.metadata.index});if(D.error)return{error:D.error}}return{transaction:B}}async function Al(A){let Q,{device:B,transaction:C,signatureIndex:I,keyIndex:E}=A,{encodedTransaction:g,error:w}=(0,n.K)().wallet.encodeTransaction(C);if(w)return{error:w};let D=AF.from(g,"utf-8"),M=0>function(A,Q){let B=/[^0-9.]/gi,C=A.replace(B,"").split("."),I=Q.replace(B,"").split("."),E=Math.max(C.length,I.length);for(let A=0;AB)return 1}return 0}(await B.sia.getVersion(),"0.4.5");try{Q=M?await B.sia.signTransactionV044(D,I,E):await B.sia.signTransaction(D,I,E,0)}catch(A){return{error:A.message}}return C.signatures[I].signature=Q,{transaction:C}}let AH={isConnected:!1,isSigned:!1};function AY(A){var Q,B;let{params:w,trigger:D,open:M,onOpenChange:y}=A,{walletId:h}=w||{},[k,n]=(0,I.useState)("compose"),[t,K]=(0,I.useState)(),[L,i]=(0,I.useState)(AN),G=(0,g.tM)({disabled:!h,params:{id:h}}),{dataset:r}=o({id:h}),p=An({balanceSc:(0,I.useMemo)(()=>{var A;return new(U())((null===(A=G.data)||void 0===A?void 0:A.siacoins)||0)},[G.data]),balanceSf:(0,I.useMemo)(()=>{var A;return new(U())((null===(A=G.data)||void 0===A?void 0:A.siafunds)||0)},[G.data]),defaultChangeAddress:null==r?void 0:null===(Q=r[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==r?void 0:null===(B=r[0])||void 0===B?void 0:B.address,onComplete:A=>{i(Q=>({...Q,...A})),n("send")}}),a=function(A){let{params:Q,step:B,onConfirm:w}=A,D=(0,c.cI)({mode:"all",defaultValues:AH}),M=D.watch("isConnected"),y=D.watch("isSigned"),{device:h,error:k}=(0,x.c)(),n=Ai(),t=function(A){let{cancel:Q}=A,{wallet:B}=(0,s.r)(),C=null==B?void 0:B.id,E=(0,g.jL)({disabled:!C,params:{id:C}}),w=(0,g.cd)({disabled:!C,params:{id:C}}),{dataset:D}=o({id:C}),{device:M}=(0,x.c)();return(0,I.useCallback)(async A=>{let{fundedTransaction:B,toSign:C}=A;if(!M||!B)return;let I=await AS({device:M,transaction:B,toSign:C,addresses:D,siacoinOutputs:E.data,siafundOutputs:w.data});return I.error?(Q(B),{error:I.error}):{signedTransaction:I.transaction}},[M,D,E.data,w.data,Q])}({cancel:n}),K=AU({cancel:n}),L=function(A){let{fund:Q,cancel:B,sign:C}=A;return(0,I.useCallback)(async A=>{let{fundedTransaction:I,toSign:E,error:g}=await Q(A);if(g)return{fundedTransaction:I,error:g};let{signedTransaction:w,error:D}=await C({fundedTransaction:I,toSign:E});return D?(B(I),{fundedTransaction:I,error:D}):{signedTransaction:w}},[Q,C,B])}({cancel:n,fund:AG(),sign:t}),[U,i]=(0,I.useState)(!1),[G,r]=(0,I.useState)();(0,I.useEffect)(()=>{"compose"===B&&r(void 0)},[B]),(0,I.useEffect)(()=>{h?D.setValue("isConnected",!0):(i(!1),D.setValue("isConnected",!1))},[D,h]),(0,I.useEffect)(()=>{k?D.setError("isConnected",{message:k.message}):D.clearErrors("isConnected")},[D,k]),(0,I.useEffect)(()=>{G||D.setValue("isSigned",!1)},[D,G]);let p=(0,I.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:A=>A||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:A=>A||"Transaction must be signed"}}}}),[]),a=(0,I.useCallback)(async A=>{if(!A.isConnected)return;let{error:Q}=await K({signedTransaction:G});if(Q){(0,E.OHV)({title:Q});return}w({})},[K,G,w]),N=(0,E.WsO)(p),e=(0,I.useMemo)(()=>D.handleSubmit(a,N),[D,a,N]),J=(0,I.useCallback)(async()=>{i(!0);let{signedTransaction:A,error:B}=await L(Q);B?(0,E.OHV)({title:B}):(r(A),D.setValue("isSigned",!0)),i(!1)},[D,L,Q]),F=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"isConnected"}),(0,C.jsx)(E.cp7,{name:"isConnected",form:D}),(0,C.jsx)(_,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Signature",name:"isSigned"}),(0,C.jsx)(E.cp7,{name:"isSigned",form:D}),(0,C.jsx)(AJ,{waitingForUser:U,isConnected:M,isSigned:y,sign:J})]})]}),(0,C.jsx)(At,{params:Q})]});return{form:D,el:F,handleSubmit:e,cancel:()=>{G&&n(G)},reset:()=>D.reset(AH)}}({walletId:h,step:k,params:L,onConfirm:A=>{let{transactionId:Q}=A;K(Q),n("done")}}),N=(0,I.useMemo)(()=>"compose"===k?{submitLabel:"Generate transaction",form:p.form,handleSubmit:p.handleSubmit,reset:p.reset}:"send"===k?{submitLabel:"Sign and broadcast transaction",form:a.form,handleSubmit:a.handleSubmit,reset:a.reset}:void 0,[k,p,a]);return(0,C.jsx)(Aa,{trigger:D,open:M,onOpenChange:A=>{A||(p.reset(),a.reset(),n("compose")),y(A)},controls:N,compose:p,send:a,sendParams:L,signedTxnId:t,step:k,setStep:n})}function Af(A){let{params:Q,trigger:B,open:g,onOpenChange:w}=A,{walletId:D}=Q||{},{dataset:M,cacheWalletMnemonic:y}=(0,s.r)(),h=null==M?void 0:M.find(A=>A.id===D),k={mnemonic:""},[n,t]=(0,I.useState)("password"),K=(0,c.cI)({mode:"all",defaultValues:k}),{handleOpenChange:L,closeAndReset:U}=(0,E.t0Y)({form:K,onOpenChange:w,defaultValues:k}),G=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}}({mnemonicHash:null==h?void 0:h.metadata.mnemonicHash,mnemonicFieldType:n,setMnemonicFieldType:t}),p=(0,I.useCallback)(A=>{y(D,A.mnemonic),U()},[D,y,U]),a=(0,E.WsO)(G);return(0,C.jsx)(E.VqE,{title:"Unlock wallet: ".concat(null==h?void 0:h.name),trigger:B,open:g,onOpenChange:L,contentVariants:{className:"w-[500px]"},onSubmit:K.handleSubmit(p,a),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:K,variant:"accent",size:"medium",children:"Continue"})}),children:(0,C.jsx)(r,{walletId:null==h?void 0:h.id,form:K,fields:G,name:"mnemonic"})})}function Ad(A){let{open:Q,onOpenChange:B}=A,{walletAutoLockTimeout:I,setWalletAutoLockTimeout:g,setWalletAutoLockEnabled:w,walletAutoLockEnabled:D}=(0,s.r)();return(0,C.jsx)(E.DLL,{open:Q,onOpenChange:B,securityEl:(0,C.jsx)(E.bZj,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(M.RdX,{})}),(0,C.jsx)(E.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,C.jsx)(E.rsf,{size:"medium",checked:D,onCheckedChange:A=>w(A)}),(0,C.jsxs)(E.PhF,{disabled:!D,value:String(I),onChange:A=>{g(Number(A.currentTarget.value))},children:[(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(5),children:"5 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(10),children:"10 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(20),children:"20 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(30),children:"30 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,E.sWj)(60),children:"1 hour"})]})]}),(0,C.jsx)(E.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function Au(A){let{title:Q,isNew:B,address:I,details:g,actions:w,remove:D}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[I?B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[w,B&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(M.PcV,{})})]})]}),g]})})}function AR(A){let{index:Q,address:B,isNew:g,setAddress:w,remove:D}=A,{device:M,error:c,setError:s}=(0,x.c)(),[y,h]=(0,I.useState)(!1),k=(0,I.useCallback)(async()=>{if(M){if(c){(0,E.OHV)({title:"Error connecting to Ledger",body:c.message});return}try{h(!0);let A=await M.sia.verifyStandardAddress(Q);w({index:Q,address:A.address,publicKey:A.publicKey})}catch(A){s(A),console.log(A)}h(!1)}},[Q,M,c,s,w]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:B?(0,C.jsx)(Au,{title:"Address ".concat(Q),isNew:g,remove:D,address:B,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:B,label:"public key 0",color:"subtle",maxLength:30})})}):y?(0,C.jsx)(Au,{title:"Address ".concat(Q),isNew:g,remove:D,details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,C.jsx)(Au,{title:"Address ".concat(Q),isNew:g,remove:D,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:k,children:"Generate"})})})})}function Aj(A){return{isNew:!0,address:"",publicKey:"",index:A}}function Ab(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:M,walletJustCreated:y}=Q||{},{dataset:h,lastIndex:k,datasetCount:t}=o({id:M}),K=(0,d.n)(),{dataset:L}=(0,s.r)(),i=null==L?void 0:L.find(A=>A.id===M),G=k+1,r=function(A){let{nextIndex:Q,rescanStartHeight:B}=A;return{ledgerConnected:!1,index:new(U())(Q),count:new(U())(1),...S({rescanStartHeight:B})}}({nextIndex:G,rescanStartHeight:K.nodeBlockHeight}),p=(0,c.cI)({mode:"all",defaultValues:r}),{disconnect:a,error:N}=(0,x.c)();(0,I.useEffect)(()=>{!y&&w&&a()},[w]),(0,I.useEffect)(()=>{p.formState.isSubmitting||p.setValue("index",new(U())(G))},[G]);let e=p.watch("index"),J=p.watch("count"),H=p.watch("shouldRescan"),Y={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:A=>A||"Ledger must be connected"}}},index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"1",validation:{required:"required",max:1e3}},...F()},u=(0,g.yi)();(0,I.useEffect)(()=>{N?p.setError("ledgerConnected",{message:N.message}):p.clearErrors("ledgerConnected")},[p,N]);let[R,j]=(0,I.useState)({});(0,I.useEffect)(()=>{w&&y&&j({0:Aj(0)})},[w]);let b=(0,I.useCallback)(()=>{if(!e||!J)return;let A={...R};for(let Q=e.toNumber();Q{j(Q=>{let B={...Q};return delete B[A],B})},[]),T=(0,I.useCallback)(A=>{let{index:Q,address:B,publicKey:C}=A;j(A=>{let I={...A};return I[Q]={...I[Q],address:B,publicKey:C},I})},[j]),Z=(0,I.useMemo)(()=>{let A={};for(let[Q,{address:B,publicKey:C}]of Object.entries(R)){let I=null==h?void 0:h.find(A=>A.metadata.index===Number(Q));A[Q]={isNew:!I,index:Number(Q),address:(null==I?void 0:I.address)||B,publicKey:(null==I?void 0:I.metadata.unlockConditions.publicKeys[0])||C}}return A},[h,R]),O=(0,I.useMemo)(()=>Object.entries(Z).filter(A=>{let[Q,B]=A;return B.isNew&&B.address}).map(A=>{let[Q,B]=A;return B}),[Z]),v=(0,I.useCallback)(async()=>{let A=O.length;function Q(A,Q,B){(0,E.OHV)({title:"Error generating addresses",body:Q>0?"".concat(Q+1,"/").concat(A," addresses were generated and saved. Batch failed on with: ").concat(B):B})}for(let[B,{address:C,publicKey:I,index:E}]of O.entries()){let g=(0,n.K)().wallet.standardUnlockConditions(I);if(g.error){Q(A,B,g.error);return}let w={index:E,unlockConditions:g.unlockConditions},D=await u.put({params:{id:M},payload:{address:C,description:"",metadata:w}});if(D.error){Q(A,B,D.error);return}}1===A?(0,E.OPV)({title:"Added 1 address"}):(0,E.OPV)({title:"Added ".concat(A," addresses")})},[u,M,O]),{handleOpenChange:V,closeAndReset:z}=(0,E.t0Y)({form:p,onOpenChange:A=>{j({}),D(A)},defaultValues:r}),W=f(),P=(0,I.useCallback)(async A=>{O.length>0&&await v(),await W(A),z()},[O,v,z,W]);return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==i?void 0:i.name,": generate addresses"),trigger:B,open:w,onOpenChange:V,contentVariants:{className:"w-[500px]"},onSubmit:p.handleSubmit(P),controls:(0,C.jsxs)("div",{className:"flex gap-1 justify-end",children:[(0,C.jsx)(E.zxk,{size:"medium",variant:"gray",onClick:z,children:"Close"}),(O.length>0||H)&&(0,C.jsx)(E.ZqQ,{form:p,size:"medium",variant:H?"red":"accent",children:O.length>0?"Save ".concat(O.length," ").concat(1===O.length?"address":"addresses").concat(H?" and rescan":""):"Rescan"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.xvT,{children:["Wallet currently has ",t," ",1===t?"address":"addresses"," with a highest index of"," ",k,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnected"}),(0,C.jsx)(E.cp7,{name:"ledgerConnected",form:p}),(0,C.jsx)(_,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:p,fields:Y,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:p,fields:Y,name:"count"})}),(0,C.jsx)(E.zxk,{onClick:b,children:"Add"})]}),(0,C.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(Z).map(A=>{let[Q,{address:B,isNew:I}]=A;return(0,C.jsx)(AR,{isNew:I,address:B,setAddress:T,index:Number(Q),remove:()=>m(Number(Q))},Q)})})]}),(0,C.jsx)(l,{form:p,fields:Y})]})})}function Am(A){let{trigger:Q,open:B,onOpenChange:g}=A,w=function(A){let{rescanStartHeight:Q}=A;return{...S({rescanStartHeight:Q}),shouldRescan:!0}}({rescanStartHeight:(0,d.n)().nodeBlockHeight}),D=(0,c.cI)({mode:"all",defaultValues:w}),{handleOpenChange:M,closeAndReset:s}=(0,E.t0Y)({form:D,onOpenChange:g,defaultValues:w}),y={...F()},h=f(),k=(0,I.useCallback)(async A=>{h(A),s()},[s,h]);return(0,C.jsx)(E.VqE,{title:"Rescan the blockchain",trigger:Q,open:B,onOpenChange:M,contentVariants:{className:"w-[500px]"},onSubmit:D.handleSubmit(k),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:D,variant:"red",size:"medium",children:"Rescan"})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Rescan the blockchain from the specified start height to find any missing transaction activity across all wallets."}),(0,C.jsx)("div",{className:"w-[100px]",children:(0,C.jsx)(E.jIp,{form:D,fields:y,name:"rescanStartHeight"})}),(0,C.jsxs)("div",{className:"pt-2 flex flex-col gap-2",children:[(0,C.jsx)(H,{}),(0,C.jsx)(Y,{})]})]})})}let AT=(0,I.createContext)({}),AZ=()=>(0,I.useContext)(AT);function AO(A){let{children:Q}=A,B=function(){let[A,Q]=(0,I.useState)(),[B,C]=(0,I.useState)({}),E=(0,I.useCallback)((A,B)=>{C(Q=>({...Q,[A]:B})),Q(A)},[C,Q]),g=(0,I.useCallback)(()=>{C(Q=>({...Q,[A]:void 0})),Q(void 0)},[Q,C,A]),w=(0,I.useCallback)(A=>{A||g()},[g]);return{dialog:A,params:B,openDialog:E,confirm,closeDialog:g,onOpenChange:w}}();return(0,C.jsx)(AT.Provider,{value:B,children:Q})}function Av(){let{openDialog:A,onOpenChange:Q,closeDialog:B,dialog:I,params:w}=AZ(),M=(0,g.Wl)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Ad,{open:"settings"===I,onOpenChange:Q}),(0,C.jsx)(D,{open:"walletAddType"===I,params:w.walletAddType,onOpenChange:Q=>Q?A(I,w.walletAddType):B()}),(0,C.jsx)(K,{open:"walletAddNew"===I,params:w.walletAddNew,onOpenChange:Q=>Q?A(I,w.walletAddNew):B()}),(0,C.jsx)(AB,{open:"walletAddRecover"===I,params:w.walletAddRecover,onOpenChange:Q=>Q?A(I,w.walletAddRecover):B()}),(0,C.jsx)(AA,{open:"walletAddLedger"===I,params:w.walletAddLedger,onOpenChange:Q=>Q?A(I,w.walletAddLedger):B()}),(0,C.jsx)(AI,{open:"walletAddWatch"===I,params:w.walletAddWatch,onOpenChange:Q=>Q?A(I,w.walletAddWatch):B()}),(0,C.jsx)(u,{open:"walletAddressesGenerate"===I,params:w.walletAddressesGenerate,onOpenChange:Q=>Q?A(I,w.walletAddressesGenerate):B()}),(0,C.jsx)(Ab,{open:"walletLedgerAddressGenerate"===I,params:w.walletLedgerAddressGenerate,onOpenChange:Q=>Q?A(I,w.walletLedgerAddressGenerate):B()}),(0,C.jsx)(AM,{open:"walletAddressesAdd"===I,params:w.walletAddressesAdd,onOpenChange:Q=>Q?A(I,w.walletAddressesAdd):B()}),(0,C.jsx)(m,{open:"walletRemove"===I,params:w.walletRemove,onOpenChange:Q=>Q?A(I,w.walletRemove):B()}),(0,C.jsx)(O,{open:"walletUpdate"===I,params:w.walletUpdate,onOpenChange:Q=>Q?A(I,w.walletUpdate):B()}),(0,C.jsx)(Af,{open:"walletUnlock"===I,params:w.walletUnlock,onOpenChange:Q=>Q?A(I,w.walletUnlock):B()}),(0,C.jsx)(Am,{open:"walletsRescan"===I,params:w.walletsRescan,onOpenChange:Q=>Q?A(I,w.walletsRescan):B()}),(0,C.jsx)(T,{open:"addressUpdate"===I,params:w.addressUpdate,onOpenChange:Q=>Q?A(I,w.addressUpdate):B()}),(0,C.jsx)(As,{open:"addressRemove"===I,params:w.addressRemove,onOpenChange:Q=>Q?A(I,w.addressRemove):B()}),(0,C.jsx)(E.D_D,{open:"connectPeer"===I,params:w.connectPeer,connect:A=>M.post({payload:A}),onOpenChange:Q=>Q?A(I,w.connectPeer):B()}),(0,C.jsx)(Ao,{open:"walletSendSeed"===I,params:w.walletSendSeed,onOpenChange:Q=>Q?A(I,w.walletSendSeed):B()}),(0,C.jsx)(AY,{open:"walletSendLedger"===I,params:w.walletSendLedger,onOpenChange:Q=>Q?A(I,w.walletSendLedger):B()}),(0,C.jsx)(E.QHy,{open:"confirm"===I,params:w.confirm,onOpenChange:Q=>Q?A(I,w.confirm):B()})]})}},8714:function(A,Q,B){"use strict";B.d(Q,{Yl:function(){return L},hI:function(){return K}});var C=B(52322),I=B(27717),E=B(90670),g=B(2784);let w=["transactionId","type","height","timestamp","amount","fee"],D=[];var M=B(92581);let c=[{id:"transactionId",label:"transaction ID",category:"general",render:A=>{let{data:{id:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"transaction ID",type:"transaction",siascanUrl:B.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:A=>{let{data:{type:Q}}=A;return(0,C.jsx)(I.xvT,{weight:"medium",ellipsis:!0,children:Q})}},{id:"height",label:"height",category:"general",render:A=>{let{data:{height:Q,pending:B}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):Q?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:Q.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",render:A=>{let{data:{timestamp:Q,pending:B}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,M.rN)(Q,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{amountSc:Q,amountSf:B}}=A;return Q?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!Q.isZero()&&(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",value:Q}),!!B&&(0,C.jsx)(I.Sby,{size:"12",value:B})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{fee:Q}}=A;return Q?(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:Q}):null}},{id:"contractId",label:"contract ID",category:"general",render:A=>{let{data:{contractId:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"contract ID",siascanUrl:B.siascanUrl}):null}}];var s=B(5632),y=B(6391),h=B.n(y),k=B(74667),n=B(9338);let t=(0,g.createContext)({}),K=()=>(0,g.useContext)(t);function L(A){let{children:Q}=A,B=function(){let A=(0,s.useRouter)(),Q=A.query.id,B=Number(A.query.limit||100),C=Number(A.query.offset||0),{filters:M,setFilter:y,removeFilter:t,removeLastFilter:K,resetFilters:L}=(0,I.Uu5)(),U=(0,E.jy)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:n.h}}}),i=(0,E.sG)({disabled:!Q,params:{limit:B,offset:C,id:Q},config:{swr:{refreshInterval:n.h}}}),G=(0,g.useMemo)(()=>{if(!i.data||!U.data)return null;let A=U.data.map(A=>({id:A.id,timestamp:0,pending:!0,type:A.type,amount:new(h())(A.received).minus(A.sent)})),Q=i.data.map((A,Q)=>{let B=new(h())(0),C=0;if("transaction"===A.type){var I,E,g,w,D,M,c,s;let Q=(null===(E=A.val)||void 0===E?void 0:null===(I=E.siacoinInputs)||void 0===I?void 0:I.reduce((Q,B)=>A.relevant.includes(B.siacoinOutput.address)?Q.plus(B.siacoinOutput.value):Q,new(h())(0)))||new(h())(0);B=((null===(w=A.val)||void 0===w?void 0:null===(g=w.siacoinOutputs)||void 0===g?void 0:g.reduce((Q,B)=>A.relevant.includes(B.siacoinOutput.address)?Q.plus(B.siacoinOutput.value):Q,new(h())(0)))||new(h())(0)).minus(Q);let y=(null===(M=A.val)||void 0===M?void 0:null===(D=M.siafundInputs)||void 0===D?void 0:D.reduce((Q,B)=>A.relevant.includes(B.siafundElement.siafundOutput.address)?Q+B.siafundElement.siafundOutput.value:Q,0))||0;C=((null===(s=A.val)||void 0===s?void 0:null===(c=s.siafundOutputs)||void 0===c?void 0:c.reduce((Q,B)=>A.relevant.includes(B.siafundOutput.address)?Q+B.siafundOutput.value:Q,0))||0)-y}"miner payout"===A.type&&(B=new(h())(A.val.siacoinOutput.siacoinOutput.value)),"foundation subsidy"===A.type&&(B=new(h())(A.val.siacoinOutput.siacoinOutput.value));let y={id:A.id,type:A.type,timestamp:new Date(A.timestamp).getTime(),height:A.index.height,pending:!1,amountSc:B,amountSf:C};return"transaction"===A.type&&(y.fee=new(h())(A.val.fee)),"contract payout"===A.type&&(y.contractId=A.val.fileContract.id),y});return[...A.reverse(),...Q]},[i.data,U.data]),{configurableColumns:r,enabledColumns:p,sortableColumns:a,toggleColumnVisibility:N,setColumnsVisible:o,setColumnsHidden:e,toggleSort:J,setSortDirection:F,setSortField:S,sortField:l,sortDirection:H,resetDefaultColumnVisibility:Y}=(0,I.oy6)("walletd/v0/events",{columns:c,columnsDefaultVisible:w,sortOptions:D,defaultSortField:"id"}),f=(0,g.useMemo)(()=>c.filter(A=>A.fixed||p.includes(A.id)),[p]),d=i.isValidating||U.isValidating,u=i.error||U.error,R=(0,I.c2j)(G,d,u,M),j=(0,k.B)(),b=(0,g.useMemo)(()=>({siascanUrl:j}),[j]);return{dataState:R,error:i.error,pageCount:(null==G?void 0:G.length)||0,columns:f,dataset:G,cellContext:b,configurableColumns:r,enabledColumns:p,sortableColumns:a,toggleColumnVisibility:N,setColumnsVisible:o,setColumnsHidden:e,toggleSort:J,setSortDirection:F,setSortField:S,sortField:l,sortDirection:H,resetDefaultColumnVisibility:Y,filters:M,setFilter:y,removeFilter:t,removeLastFilter:K,resetFilters:L,offset:C,limit:B}}();return(0,C.jsx)(t.Provider,{value:B,children:Q})}},16694:function(A,Q,B){"use strict";B.d(Q,{c:function(){return c},d:function(){return s}});var C=B(52322),I=B(73866),E=B(27748),g=B(35415),w=B.n(g),D=B(2784);let M=(0,D.createContext)({}),c=()=>(0,D.useContext)(M);function s(A){let{children:Q}=A,B=function(){let[A,Q]=(0,D.useState)(!1),[B,C]=(0,D.useState)(),[g,M]=(0,D.useState)(),c=(0,D.useCallback)(()=>{if(B){try{B.sia.close(),M(void 0)}catch(A){console.log(A)}C(void 0)}},[B]),s=(0,D.useCallback)(async A=>{let B=null;Q(!0);try{switch(A){case"HID":(B=await E.Z.openConnected())||(B=await E.Z.create());break;case"Bluetooth":B=await I.Z.create();break;default:throw Error("Unsupported transport method: ".concat(A))}if(B){M(void 0);let I=new(w())(B);C({type:A,sia:I,transport:B}),Q(!1)}}catch(A){M(A),Q(!1)}},[]),y=(0,D.useCallback)(async()=>{if(!B){M(Error("No device connected"));return}Q(!0);try{let A=await B.sia.verifyPublicKey(0);return M(void 0),C(Q=>({...Q,publicKey0:A.publicKey,address0:A.address})),Q(!1),A}catch(A){Q(!1),M(A)}},[B]);return(0,D.useEffect)(()=>{if(!(null==B?void 0:B.transport))return;let A=setInterval(async()=>{(null==B?void 0:B.transport._disconnectEmitted)&&C(void 0)},2e3);return()=>clearInterval(A)},[null==B?void 0:B.transport]),{connect:s,verify:y,disconnect:c,device:B,error:g,setError:M,waitingForUser:A}}();return(0,C.jsx)(M.Provider,{value:B,children:Q})}},23312:function(A,Q,B){"use strict";B.d(Q,{k:function(){return N},r:function(){return a}});var C=B(52322),I=B(27717),E=B(90670),g=B(2784),w=B(26249),D=B(3208),M=B(92581),c=B(3584),s=B(36350),y=B(6391),h=B.n(y),k=B(12172);let n=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(k.g,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},wallet:Q})}},{id:"details",label:"name",category:"general",fixed:!0,render:A=>{let{data:{id:Q,name:B,description:E}}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.xvT,{weight:"bold",ellipsis:!0,children:B||Q}),E&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:E})}),children:(0,C.jsx)(I.nvN,{size:"12",children:E.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(A){let{data:{id:Q}}=A,B=(0,E.tM)({params:{id:Q}});return B.data?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(h())(B.data.siacoins)}),!!B.data.siafunds&&(0,C.jsx)(I.Sby,{size:"12",variant:"value",value:B.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:A=>{var Q,B;let{data:{metadata:{type:E}}}=A;return(0,C.jsx)(I.ua7,{content:null===(Q=s._[E])||void 0===Q?void 0:Q.title,children:(0,C.jsxs)(I.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,C.jsx)(I.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(B=s._[E])||void 0===B?void 0:B.icon}),E]})})}},{id:"status",label:"status",category:"general",render:A=>{let{data:Q,context:{walletAutoLockEnabled:B,walletAutoLockTimeout:E}}=A,{type:g}=Q.metadata,{status:w,activityAt:M}=Q.state,{unlock:s,lock:y}=Q.actions;if("seed"===g){let A=new Date().getTime()-M,Q=(0,c.l)(Math.max(E-A,0)),g=B?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(Q.amount.toFixed(0)," more ").concat(Q.units,", manually locked, or the app is closed."):"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed.";return(0,C.jsx)(I.zxk,{tip:"unlocked"===w?g:"The wallet is currently locked.",color:"unlocked"===w?"contrast":"verySubtle",variant:"ghost",onClick:A=>{A.stopPropagation(),"unlocked"===w?y():s()},children:"unlocked"===w?(0,C.jsx)(D.VmF,{}):(0,C.jsx)(D.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:A=>{let{data:{createdAt:Q}}=A;return Q?(0,C.jsx)(I.xvT,{size:"12",children:(0,M.rN)(Q,{dateStyle:"medium"})}):null}}];var t=B(5632),K=B(98334),L=B(27429),U=B(92762),i=B(5137),G=B(67108),r=B(9338);let p=(0,g.createContext)({}),a=()=>(0,g.useContext)(p);function N(A){let{children:Q}=A,B=function(){let A=(0,E.rB)({config:{swr:{refreshInterval:r.h}}}),Q=(0,t.useRouter)(),{openDialog:B}=(0,i.Rh)(),{setOnLockCallback:C}=(0,G.Hv)(),{mnemonicCache:D,walletActivityAt:M,cacheWalletMnemonic:c,cachedMnemonicCount:s,lockAllWallets:y,walletAutoLockTimeout:h,setWalletAutoLockTimeout:k,setWalletAutoLockEnabled:p,walletAutoLockEnabled:a}=function(){let[A,Q]=(0,U.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[B,C]=(0,U.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,I.sWj)(5)}),[E,w]=(0,g.useState)({}),[D,M]=(0,g.useState)({}),c=(0,g.useMemo)(()=>Object.keys(D).length,[D]),s=(0,g.useCallback)(A=>{w(Q=>({...Q,[A]:new Date().getTime()}))},[w]),y=(0,g.useCallback)((A,Q)=>{M(B=>({...B,[A]:Q})),Q&&s(A)},[M,s]),h=(0,g.useCallback)(()=>{if(!A)return;let Q=new Date().getTime()-B;for(let[A,B]of Object.entries(D))B&&(E[A]||0){M({})},[M]),n=(0,t.useRouter)(),i=(0,g.useCallback)(()=>{n.pathname.startsWith(K._.wallet.base)&&s(n.query.id)},[n,s]);return(0,L.Yp)({onAction:i,throttle:5e3,eventsThrottle:5e3}),(0,g.useEffect)(()=>{if(!A)return;let Q=setInterval(()=>{h()},5e3);return()=>{clearInterval(Q)}},[A]),{walletActivityAt:E,updateWalletActivityAt:s,mnemonicCache:D,cacheWalletMnemonic:y,lockAllWallets:k,cachedMnemonicCount:c,walletAutoLockTimeout:B,setWalletAutoLockTimeout:C,setWalletAutoLockEnabled:Q,walletAutoLockEnabled:A}}();(0,g.useEffect)(()=>{C("wallets",()=>{y()})},[]);let N=(0,g.useMemo)(()=>A.data?A.data.map(A=>{let{id:C,name:I,description:E,dateCreated:g,lastUpdated:w,metadata:s}=A;return{id:C,name:I,description:E,createdAt:new Date(g).getTime()||0,updatedAt:new Date(w).getTime()||0,metadata:s||{},raw:A,state:{mnemonic:D[C],status:D[C]?"unlocked":"locked",activityAt:M[C]},actions:{unlock:()=>B("walletUnlock",{walletId:C}),lock:()=>c(C,void 0)},onClick:()=>Q.push({pathname:K._.wallet.view,query:{id:C}})}}):null,[Q,A.data,D,M,B,c]),o=null==N?void 0:N.find(A=>A.id===Q.query.id),{filters:e,setFilter:J,removeFilter:F,removeLastFilter:S,resetFilters:l}=(0,I.Wdu)(),{configurableColumns:H,enabledColumns:Y,sortableColumns:f,toggleColumnVisibility:d,setColumnsVisible:u,setColumnsHidden:R,toggleSort:j,setSortDirection:b,setSortField:m,sortField:T,sortDirection:Z,resetDefaultColumnVisibility:O}=(0,I.oy6)("walletd/v0/wallets",{columns:n,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),v=(0,I._4u)({dataset:N,filters:e,sortField:T,sortDirection:Z}),x=(0,g.useMemo)(()=>n.filter(A=>A.fixed||Y.includes(A.id)),[Y]),V=(0,I.c2j)(N,A.isValidating,A.error,e),z=(0,g.useMemo)(()=>({walletAutoLockTimeout:h,walletAutoLockEnabled:a}),[a,h]);return{dataState:V,error:A.error,datasetCount:(null==v?void 0:v.length)||0,unlockedCount:s,columns:x,dataset:v,context:z,wallet:o,configurableColumns:H,enabledColumns:Y,sortableColumns:f,toggleColumnVisibility:d,setColumnsVisible:u,setColumnsHidden:R,toggleSort:j,setSortDirection:b,setSortField:m,sortField:T,filters:e,setFilter:J,removeFilter:F,removeLastFilter:S,resetFilters:l,sortDirection:Z,resetDefaultColumnVisibility:O,cacheWalletMnemonic:c,lockAllWallets:y,walletAutoLockTimeout:h,setWalletAutoLockTimeout:k,setWalletAutoLockEnabled:p,walletAutoLockEnabled:a}}();return(0,C.jsx)(p.Provider,{value:B,children:Q})}},26249:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","details","balance","type","status","createdAt"],I="name",E=[{id:"name",label:"name",category:"general"},{id:"type",label:"type",category:"general"},{id:"status",label:"status",category:"general"},{id:"createdAt",label:"created on",category:"general"}]},74667:function(A,Q,B){"use strict";B.d(Q,{B:function(){return E}});var C=B(27717),I=B(90670);function E(){var A;return(null===(A=(0,I.gM)().data)||void 0===A?void 0:A.name)==="zen"?C.nNd.explore.testnetZen:C.nNd.explore.mainnet}},38855:function(A,Q,B){"use strict";B.d(Q,{n:function(){return g}});var C=B(27717),I=B(67108),E=B(90670);function g(){var A;let{isUnlockedAndAuthedRoute:Q}=(0,I.Hv)(),B=(0,E.XC)({config:{swr:{refreshInterval:1e4}}}),C=(0,E.ek)({config:{swr:{refreshInterval:A=>w(A)?6e4:1e4}}}),g=(0,E.nH)(),D=B.data?null===(A=B.data)||void 0===A?void 0:A.height:0,M=Q&&D&&g?Number((100*Math.min(D/g,1)).toFixed(1)):0;return{isSynced:w(C.data),nodeBlockHeight:D,estimatedBlockHeight:g,syncPercent:M,moreThan100BlocksToSync:!!D&&!!g&&g-D>100,firstTimeSyncing:!!D&&!!g&&g-D>5e4}}function w(A){return!!A&&function(A){if(!A||!A.length)return!1;let Q=A[0],B=Date.now()-(0,C.ytg)(2);return new Date(Q).getTime()>B}(A.prevTimestamps)}},3584:function(A,Q,B){"use strict";function C(A){return!A||A<1e3?{amount:0,units:"seconds"}:(A/=1e3)<60?{amount:Math.floor(100*A)/100,units:"seconds"}:{amount:Math.floor(A/60*100)/100,units:"minutes"}}B.d(Q,{l:function(){return C}})},6723:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{default:function(){return AA}});var C=B(52322);B(50521);var I=B(27717),E=B(5137),g=B(2784),w=B(23312),D=B(58723),M=B(8714),c=B(16694),s=B(48869);let y=(0,g.createContext)({});function h(A){let{children:Q}=A,B=((0,g.useEffect)(()=>{(async()=>{await (0,s.x)()})()},[]),{});return(0,C.jsx)(y.Provider,{value:B,children:Q})}var k=B(90670),n=B(38855),t=B(1645),K=B(66700),L=B(19785);function U(A){(0,L.Z)(1,arguments);var Q=(0,K.Z)(A);return Q.setHours(0,0,0,0),Q}var i=B(88811);function G(A){if(null===A||!0===A||!1===A)return NaN;var Q=Number(A);return isNaN(Q)?Q:Q<0?Math.ceil(Q):Math.floor(Q)}function r(A,Q){return(0,L.Z)(2,arguments),function(A,Q){return(0,L.Z)(2,arguments),new Date((0,K.Z)(A).getTime()+G(Q))}(A,-G(Q))}function p(A){(0,L.Z)(1,arguments);var Q=(0,K.Z)(A),B=Q.getUTCDay();return Q.setUTCDate(Q.getUTCDate()-((B<1?7:0)+B-1)),Q.setUTCHours(0,0,0,0),Q}function a(A){(0,L.Z)(1,arguments);var Q=(0,K.Z)(A),B=Q.getUTCFullYear(),C=new Date(0);C.setUTCFullYear(B+1,0,4),C.setUTCHours(0,0,0,0);var I=p(C),E=new Date(0);E.setUTCFullYear(B,0,4),E.setUTCHours(0,0,0,0);var g=p(E);return Q.getTime()>=I.getTime()?B+1:Q.getTime()>=g.getTime()?B:B-1}function N(A,Q){(0,L.Z)(1,arguments);var B=Q||{},C=B.locale,I=C&&C.options&&C.options.weekStartsOn,E=null==I?0:G(I),g=null==B.weekStartsOn?E:G(B.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,K.Z)(A),D=w.getUTCDay();return w.setUTCDate(w.getUTCDate()-((D=1&&D<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setUTCFullYear(C+1,0,D),M.setUTCHours(0,0,0,0);var c=N(M,Q),s=new Date(0);s.setUTCFullYear(C,0,D),s.setUTCHours(0,0,0,0);var y=N(s,Q);return B.getTime()>=c.getTime()?C+1:B.getTime()>=y.getTime()?C:C-1}function e(A,Q){for(var B=Math.abs(A).toString();B.length0?B:1-B;return e("yy"===Q?C%100:C,Q.length)},M:function(A,Q){var B=A.getUTCMonth();return"M"===Q?String(B+1):e(B+1,2)},d:function(A,Q){return e(A.getUTCDate(),Q.length)},a:function(A,Q){var B=A.getUTCHours()/12>=1?"pm":"am";switch(Q){case"a":case"aa":return B.toUpperCase();case"aaa":return B;case"aaaaa":return B[0];default:return"am"===B?"a.m.":"p.m."}},h:function(A,Q){return e(A.getUTCHours()%12||12,Q.length)},H:function(A,Q){return e(A.getUTCHours(),Q.length)},m:function(A,Q){return e(A.getUTCMinutes(),Q.length)},s:function(A,Q){return e(A.getUTCSeconds(),Q.length)},S:function(A,Q){var B=Q.length;return e(Math.floor(A.getUTCMilliseconds()*Math.pow(10,B-3)),Q.length)}},F={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(A,Q){var B=A>0?"-":"+",C=Math.abs(A),I=Math.floor(C/60),E=C%60;return 0===E?B+String(I):B+String(I)+(Q||"")+e(E,2)}function l(A,Q){return A%60==0?(A>0?"-":"+")+e(Math.abs(A)/60,2):H(A,Q)}function H(A,Q){var B=Math.abs(A);return(A>0?"-":"+")+e(Math.floor(B/60),2)+(Q||"")+e(B%60,2)}var Y={G:function(A,Q,B){var C=A.getUTCFullYear()>0?1:0;switch(Q){case"G":case"GG":case"GGG":return B.era(C,{width:"abbreviated"});case"GGGGG":return B.era(C,{width:"narrow"});default:return B.era(C,{width:"wide"})}},y:function(A,Q,B){if("yo"===Q){var C=A.getUTCFullYear();return B.ordinalNumber(C>0?C:1-C,{unit:"year"})}return J.y(A,Q)},Y:function(A,Q,B,C){var I=o(A,C),E=I>0?I:1-I;return"YY"===Q?e(E%100,2):"Yo"===Q?B.ordinalNumber(E,{unit:"year"}):e(E,Q.length)},R:function(A,Q){return e(a(A),Q.length)},u:function(A,Q){return e(A.getUTCFullYear(),Q.length)},Q:function(A,Q,B){var C=Math.ceil((A.getUTCMonth()+1)/3);switch(Q){case"Q":return String(C);case"QQ":return e(C,2);case"Qo":return B.ordinalNumber(C,{unit:"quarter"});case"QQQ":return B.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return B.quarter(C,{width:"narrow",context:"formatting"});default:return B.quarter(C,{width:"wide",context:"formatting"})}},q:function(A,Q,B){var C=Math.ceil((A.getUTCMonth()+1)/3);switch(Q){case"q":return String(C);case"qq":return e(C,2);case"qo":return B.ordinalNumber(C,{unit:"quarter"});case"qqq":return B.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return B.quarter(C,{width:"narrow",context:"standalone"});default:return B.quarter(C,{width:"wide",context:"standalone"})}},M:function(A,Q,B){var C=A.getUTCMonth();switch(Q){case"M":case"MM":return J.M(A,Q);case"Mo":return B.ordinalNumber(C+1,{unit:"month"});case"MMM":return B.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return B.month(C,{width:"narrow",context:"formatting"});default:return B.month(C,{width:"wide",context:"formatting"})}},L:function(A,Q,B){var C=A.getUTCMonth();switch(Q){case"L":return String(C+1);case"LL":return e(C+1,2);case"Lo":return B.ordinalNumber(C+1,{unit:"month"});case"LLL":return B.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return B.month(C,{width:"narrow",context:"standalone"});default:return B.month(C,{width:"wide",context:"standalone"})}},w:function(A,Q,B,C){var I=function(A,Q){(0,L.Z)(1,arguments);var B=(0,K.Z)(A);return Math.round((N(B,Q).getTime()-(function(A,Q){(0,L.Z)(1,arguments);var B=Q||{},C=B.locale,I=C&&C.options&&C.options.firstWeekContainsDate,E=null==I?1:G(I),g=null==B.firstWeekContainsDate?E:G(B.firstWeekContainsDate),w=o(A,Q),D=new Date(0);return D.setUTCFullYear(w,0,g),D.setUTCHours(0,0,0,0),N(D,Q)})(B,Q).getTime())/6048e5)+1}(A,C);return"wo"===Q?B.ordinalNumber(I,{unit:"week"}):e(I,Q.length)},I:function(A,Q,B){var C=function(A){(0,L.Z)(1,arguments);var Q=(0,K.Z)(A);return Math.round((p(Q).getTime()-(function(A){(0,L.Z)(1,arguments);var Q=a(A),B=new Date(0);return B.setUTCFullYear(Q,0,4),B.setUTCHours(0,0,0,0),p(B)})(Q).getTime())/6048e5)+1}(A);return"Io"===Q?B.ordinalNumber(C,{unit:"week"}):e(C,Q.length)},d:function(A,Q,B){return"do"===Q?B.ordinalNumber(A.getUTCDate(),{unit:"date"}):J.d(A,Q)},D:function(A,Q,B){var C=function(A){(0,L.Z)(1,arguments);var Q=(0,K.Z)(A),B=Q.getTime();return Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0),Math.floor((B-Q.getTime())/864e5)+1}(A);return"Do"===Q?B.ordinalNumber(C,{unit:"dayOfYear"}):e(C,Q.length)},E:function(A,Q,B){var C=A.getUTCDay();switch(Q){case"E":case"EE":case"EEE":return B.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return B.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return B.day(C,{width:"short",context:"formatting"});default:return B.day(C,{width:"wide",context:"formatting"})}},e:function(A,Q,B,C){var I=A.getUTCDay(),E=(I-C.weekStartsOn+8)%7||7;switch(Q){case"e":return String(E);case"ee":return e(E,2);case"eo":return B.ordinalNumber(E,{unit:"day"});case"eee":return B.day(I,{width:"abbreviated",context:"formatting"});case"eeeee":return B.day(I,{width:"narrow",context:"formatting"});case"eeeeee":return B.day(I,{width:"short",context:"formatting"});default:return B.day(I,{width:"wide",context:"formatting"})}},c:function(A,Q,B,C){var I=A.getUTCDay(),E=(I-C.weekStartsOn+8)%7||7;switch(Q){case"c":return String(E);case"cc":return e(E,Q.length);case"co":return B.ordinalNumber(E,{unit:"day"});case"ccc":return B.day(I,{width:"abbreviated",context:"standalone"});case"ccccc":return B.day(I,{width:"narrow",context:"standalone"});case"cccccc":return B.day(I,{width:"short",context:"standalone"});default:return B.day(I,{width:"wide",context:"standalone"})}},i:function(A,Q,B){var C=A.getUTCDay(),I=0===C?7:C;switch(Q){case"i":return String(I);case"ii":return e(I,Q.length);case"io":return B.ordinalNumber(I,{unit:"day"});case"iii":return B.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return B.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return B.day(C,{width:"short",context:"formatting"});default:return B.day(C,{width:"wide",context:"formatting"})}},a:function(A,Q,B){var C=A.getUTCHours()/12>=1?"pm":"am";switch(Q){case"a":case"aa":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(A,Q,B){var C,I=A.getUTCHours();switch(C=12===I?F.noon:0===I?F.midnight:I/12>=1?"pm":"am",Q){case"b":case"bb":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(A,Q,B){var C,I=A.getUTCHours();switch(C=I>=17?F.evening:I>=12?F.afternoon:I>=4?F.morning:F.night,Q){case"B":case"BB":case"BBB":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(A,Q,B){if("ho"===Q){var C=A.getUTCHours()%12;return 0===C&&(C=12),B.ordinalNumber(C,{unit:"hour"})}return J.h(A,Q)},H:function(A,Q,B){return"Ho"===Q?B.ordinalNumber(A.getUTCHours(),{unit:"hour"}):J.H(A,Q)},K:function(A,Q,B){var C=A.getUTCHours()%12;return"Ko"===Q?B.ordinalNumber(C,{unit:"hour"}):e(C,Q.length)},k:function(A,Q,B){var C=A.getUTCHours();return(0===C&&(C=24),"ko"===Q)?B.ordinalNumber(C,{unit:"hour"}):e(C,Q.length)},m:function(A,Q,B){return"mo"===Q?B.ordinalNumber(A.getUTCMinutes(),{unit:"minute"}):J.m(A,Q)},s:function(A,Q,B){return"so"===Q?B.ordinalNumber(A.getUTCSeconds(),{unit:"second"}):J.s(A,Q)},S:function(A,Q){return J.S(A,Q)},X:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();if(0===I)return"Z";switch(Q){case"X":return l(I);case"XXXX":case"XX":return H(I);default:return H(I,":")}},x:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"x":return l(I);case"xxxx":case"xx":return H(I);default:return H(I,":")}},O:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"O":case"OO":case"OOO":return"GMT"+S(I,":");default:return"GMT"+H(I,":")}},z:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"z":case"zz":case"zzz":return"GMT"+S(I,":");default:return"GMT"+H(I,":")}},t:function(A,Q,B,C){return e(Math.floor((C._originalDate||A).getTime()/1e3),Q.length)},T:function(A,Q,B,C){return e((C._originalDate||A).getTime(),Q.length)}};function f(A,Q){switch(A){case"P":return Q.date({width:"short"});case"PP":return Q.date({width:"medium"});case"PPP":return Q.date({width:"long"});default:return Q.date({width:"full"})}}function d(A,Q){switch(A){case"p":return Q.time({width:"short"});case"pp":return Q.time({width:"medium"});case"ppp":return Q.time({width:"long"});default:return Q.time({width:"full"})}}var u={p:d,P:function(A,Q){var B,C=A.match(/(P+)(p+)?/)||[],I=C[1],E=C[2];if(!E)return f(A,Q);switch(I){case"P":B=Q.dateTime({width:"short"});break;case"PP":B=Q.dateTime({width:"medium"});break;case"PPP":B=Q.dateTime({width:"long"});break;default:B=Q.dateTime({width:"full"})}return B.replace("{{date}}",f(I,Q)).replace("{{time}}",d(E,Q))}},R=["D","DD"],j=["YY","YYYY"];function b(A,Q,B){if("YYYY"===A)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(Q,"`) for formatting years to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("YY"===A)throw RangeError("Use `yy` instead of `YY` (in `".concat(Q,"`) for formatting years to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("D"===A)throw RangeError("Use `d` instead of `D` (in `".concat(Q,"`) for formatting days of the month to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("DD"===A)throw RangeError("Use `dd` instead of `DD` (in `".concat(Q,"`) for formatting days of the month to the input `").concat(B,"`; see: https://git.io/fxCyr"))}var m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Z=/^'([^]*?)'?$/,O=/''/g,v=/[a-zA-Z]/,x=B(9338);function V(){let A=(0,n.n)(),Q=(0,k.R2)({config:{swr:{refreshInterval:x.h}}});if(!Q.data)return null;let B=Q.data.index.height=1&&D<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=E.options&&E.options.weekStartsOn,c=null==M?0:G(M),s=null==I.weekStartsOn?c:G(I.weekStartsOn);if(!(s>=0&&s<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw RangeError("locale must contain localize property");if(!E.formatLong)throw RangeError("locale must contain formatLong property");var y=(0,K.Z)(A);if(!function(A){return(0,L.Z)(1,arguments),(!!function(A){return(0,L.Z)(1,arguments),A instanceof Date||"object"==typeof A&&"[object Date]"===Object.prototype.toString.call(A)}(A)||"number"==typeof A)&&!isNaN(Number((0,K.Z)(A)))}(y))throw RangeError("Invalid time value");var h=(0,t.Z)(y),k=r(y,h),n={firstWeekContainsDate:D,weekStartsOn:s,locale:E,_originalDate:y};return C.match(T).map(function(A){var Q=A[0];return"p"===Q||"P"===Q?(0,u[Q])(A,E.formatLong,n):A}).join("").match(m).map(function(B){if("''"===B)return"'";var C=B[0];if("'"===C)return B.match(Z)[1].replace(O,"'");var g=Y[C];if(g)return I.useAdditionalWeekYearTokens||-1===j.indexOf(B)||b(B,Q,A),I.useAdditionalDayOfYearTokens||-1===R.indexOf(B)||b(B,Q,A),g(k,B,E.localize,n);if(C.match(v))throw RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return B}).join("")}(C,w.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",s,y,{locale:w,weekStartsOn:M}),{locale:w,weekStartsOn:M})}(new Date(Q.data.startTime),new Date)]})]}),Q.data.error&&(0,C.jsx)("div",{className:"flex flex-col gap-1 overflow-hidden pt-1",children:(0,C.jsx)(I.xvT,{color:"contrast",size:"12",children:Q.data.error})})]})}):null}function z(A){let{children:Q}=A;return(0,C.jsx)(h,{children:(0,C.jsx)(E.Tu,{children:(0,C.jsx)(c.d,{children:(0,C.jsx)(w.k,{children:(0,C.jsx)(D.OZ,{children:(0,C.jsxs)(M.Yl,{children:[(0,C.jsx)(E.xQ,{}),(0,C.jsx)(V,{}),Q]})})})})})})}var W=B(98334),P=B(46058),q=B.n(P),X=B(28863),_=B.n(X);let $=(0,B(82851).cx)(q().variable,_().variable);function AA(A){let{Component:Q,pageProps:B}=A;return(0,C.jsx)(I.PD$,{className:$,fallback:B.fallback,passwordProtectRequestHooks:!0,lockRoutes:W._,children:(0,C.jsx)(z,{children:(0,C.jsx)(Q,{...B})})})}},27717:function(A,Q,B){"use strict";let C,I,E,g,w;B.d(Q,{bZj:function(){return D8},tU3:function(){return e_},zXq:function(){return Jl},juT:function(){return ex},Cts:function(){return MI},WVB:function(){return yF},zxk:function(){return D_},EKh:function(){return Mg},QHy:function(){return lN},HfT:function(){return lJ},ncR:function(){return NO},VqE:function(){return sQ},h_2:function(){return yf},Xiv:function(){return yd},Juw:function(){return yu},KpP:function(){return yR},cp7:function(){return Nx},Qyk:function(){return Nv},jIp:function(){return ll},WyV:function(){return lf},qGu:function(){return lS},QBj:function(){return lY},yEL:function(){return JQ},Bau:function(){return lH},ZqQ:function(){return NW},X6q:function(){return yT},Yqd:function(){return kA},__J:function(){return yW},rUS:function(){return yX},Qjf:function(){return y_},xgg:function(){return pH},kFS:function(){return yS},FzK:function(){return la},Clw:function(){return yJ},PD$:function(){return lj},Wxm:function(){return kI},wFK:function(){return eb},s_4:function(){return BP},nvN:function(){return Bz},u5Q:function(){return lt},j4H:function(){return kQ},J2e:function(){return hy},kod:function(){return ho},tIK:function(){return lQ},PhF:function(){return kC},Wh3:function(){return nw},Z0O:function(){return yp},DLL:function(){return ln},KJW:function(){return eW},rsf:function(){return kU},D_D:function(){return lE},iA_:function(){return ej},t6k:function(){return lF},xvT:function(){return BV},ua7:function(){return Dq},XxW:function(){return NC},YKL:function(){return Ng},ho9:function(){return NM},Sby:function(){return NE},hKn:function(){return lw},vQq:function(){return a5},ytg:function(){return lc},sWj:function(){return lM},XBW:function(){return ls},I13:function(){return a6},OHV:function(){return a1},OPV:function(){return a3},$Gg:function(){return a9},_4u:function(){return lP},Wdu:function(){return lW},c2j:function(){return e$},t0Y:function(){return ld},WsO:function(){return JA},Uu5:function(){return lq},oy6:function(){return lV},nNd:function(){return lD}});var D,M,c,s,y,h,k,n,t,K,L,U,i,G,r,p,a,N,o,e,J,F,S,l,H,Y,f,d,u,R,j,b,m,T,Z,O,v,x,V,z,W,P,q,X,_,$,AA,AQ,AB,AC,AI,AE,Ag,Aw,AD,AM,Ac,As,Ay,Ah,Ak,An={};B.r(An),B.d(An,{useDropzone:function(){return KC}});var At=B(52322),AK=B(2784),AL=B.t(AK,2);function AU(){return(AU=Object.assign?Object.assign.bind():function(A){for(var Q=1;QC,Object.values(C));return(0,AK.createElement)(B.Provider,{value:I},Q)}return C.displayName=A+"Provider",[C,function(C){let I=(0,AK.useContext)(B);if(I)return I;if(void 0!==Q)return Q;throw Error(`\`${C}\` must be used within \`${A}\``)}]}function AG(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>(0,AK.createContext)(A));return function(B){let C=(null==B?void 0:B[A])||Q;return(0,AK.useMemo)(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=(0,AK.createContext)(C),E=B.length;function g(Q){let{scope:B,children:C,...g}=Q,w=(null==B?void 0:B[A][E])||I,D=(0,AK.useMemo)(()=>g,Object.values(g));return(0,AK.createElement)(w.Provider,{value:D},C)}return B=[...B,C],g.displayName=Q+"Provider",[g,function(B,g){let w=(null==g?void 0:g[A][E])||I,D=(0,AK.useContext)(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return(0,AK.useMemo)(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}function Ar(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}function Ap(...A){return(0,AK.useCallback)(Ar(...A),A)}let Aa=(0,AK.forwardRef)((A,Q)=>{let{children:B,...C}=A,I=AK.Children.toArray(B),E=I.find(Ae);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:AK.Children.count(A)>1?AK.Children.only(null):(0,AK.isValidElement)(A)?A.props.children:null);return(0,AK.createElement)(AN,AU({},C,{ref:Q}),(0,AK.isValidElement)(A)?(0,AK.cloneElement)(A,void 0,B):null)}return(0,AK.createElement)(AN,AU({},C,{ref:Q}),B)});Aa.displayName="Slot";let AN=(0,AK.forwardRef)((A,Q)=>{let{children:B,...C}=A;return(0,AK.isValidElement)(B)?(0,AK.cloneElement)(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?B[C]=(...A)=>{null==E||E(...A),null==I||I(...A)}:"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:Ar(Q,B.ref)}):AK.Children.count(B)>1?AK.Children.only(null):null});AN.displayName="SlotClone";let Ao=({children:A})=>(0,AK.createElement)(AK.Fragment,null,A);function Ae(A){return(0,AK.isValidElement)(A)&&A.type===Ao}function AJ(A){let Q=A+"CollectionProvider",[B,C]=AG(Q),[I,E]=B(Q,{collectionRef:{current:null},itemMap:new Map}),g=A+"CollectionSlot",w=AK.forwardRef((A,Q)=>{let{scope:B,children:C}=A,I=Ap(Q,E(g,B).collectionRef);return AK.createElement(Aa,{ref:I},C)}),D=A+"CollectionItemSlot",M="data-radix-collection-item";return[{Provider:A=>{let{scope:Q,children:B}=A,C=AK.useRef(null),E=AK.useRef(new Map).current;return AK.createElement(I,{scope:Q,itemMap:E,collectionRef:C},B)},Slot:w,ItemSlot:AK.forwardRef((A,Q)=>{let{scope:B,children:C,...I}=A,g=AK.useRef(null),w=Ap(Q,g),c=E(D,B);return AK.useEffect(()=>(c.itemMap.set(g,{ref:g,...I}),()=>void c.itemMap.delete(g))),AK.createElement(Aa,{[M]:"",ref:w},C)})},function(Q){let B=E(A+"CollectionConsumer",Q);return AK.useCallback(()=>{let A=B.collectionRef.current;if(!A)return[];let Q=Array.from(A.querySelectorAll(`[${M}]`));return Array.from(B.itemMap.values()).sort((A,B)=>Q.indexOf(A.ref.current)-Q.indexOf(B.ref.current))},[B.collectionRef,B.itemMap])},C]}function AF(A,Q,{checkForDefaultPrevented:B=!0}={}){return function(C){if(null==A||A(C),!1===B||!C.defaultPrevented)return null==Q?void 0:Q(C)}}function AS(A){let Q=(0,AK.useRef)(A);return(0,AK.useEffect)(()=>{Q.current=A}),(0,AK.useMemo)(()=>(...A)=>{var B;return null===(B=Q.current)||void 0===B?void 0:B.call(Q,...A)},[])}function Al({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=(0,AK.useState)(A),[C]=B,I=(0,AK.useRef)(C),E=AS(Q);return(0,AK.useEffect)(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=AS(B);return[g,(0,AK.useCallback)(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}var AH=B(28316);let AY=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=(0,AK.forwardRef)((A,B)=>{let{asChild:C,...I}=A,E=C?Aa:Q;return(0,AK.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,AK.createElement)(E,AU({},I,{ref:B}))});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{});function Af(A,Q){A&&(0,AH.flushSync)(()=>A.dispatchEvent(Q))}let Ad=(null==globalThis?void 0:globalThis.document)?AK.useLayoutEffect:()=>{},Au=A=>{let{present:Q,children:B}=A,C=function(A){var Q,B;let[C,I]=(0,AK.useState)(),E=(0,AK.useRef)({}),g=(0,AK.useRef)(A),w=(0,AK.useRef)("none"),[D,M]=(Q=A?"mounted":"unmounted",B={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,AK.useReducer)((A,Q)=>{let C=B[A][Q];return null!=C?C:A},Q));return(0,AK.useEffect)(()=>{let A=AR(E.current);w.current="mounted"===D?A:"none"},[D]),Ad(()=>{let Q=E.current,B=g.current;if(B!==A){let C=w.current,I=AR(Q);A?M("MOUNT"):"none"===I||(null==Q?void 0:Q.display)==="none"?M("UNMOUNT"):B&&C!==I?M("ANIMATION_OUT"):M("UNMOUNT"),g.current=A}},[A,M]),Ad(()=>{if(C){let A=A=>{let Q=AR(E.current).includes(A.animationName);A.target===C&&Q&&(0,AH.flushSync)(()=>M("ANIMATION_END"))},Q=A=>{A.target===C&&(w.current=AR(E.current))};return C.addEventListener("animationstart",Q),C.addEventListener("animationcancel",A),C.addEventListener("animationend",A),()=>{C.removeEventListener("animationstart",Q),C.removeEventListener("animationcancel",A),C.removeEventListener("animationend",A)}}M("ANIMATION_END")},[C,M]),{isPresent:["mounted","unmountSuspended"].includes(D),ref:(0,AK.useCallback)(A=>{A&&(E.current=getComputedStyle(A)),I(A)},[])}}(Q),I="function"==typeof B?B({present:C.isPresent}):AK.Children.only(B),E=Ap(C.ref,I.ref);return"function"==typeof B||C.isPresent?(0,AK.cloneElement)(I,{ref:E}):null};function AR(A){return(null==A?void 0:A.animationName)||"none"}Au.displayName="Presence";let Aj=AL["useId".toString()]||(()=>void 0),Ab=0;function Am(A){let[Q,B]=AK.useState(Aj());return Ad(()=>{A||B(A=>null!=A?A:String(Ab++))},[A]),A||(Q?`radix-${Q}`:"")}let AT="Collapsible",[AZ,AO]=AG(AT),[Av,Ax]=AZ(AT),AV=((A,Q)=>{let{__scopeCollapsible:B,open:C,defaultOpen:I,disabled:E,onOpenChange:g,...w}=A,[D=!1,M]=Al({prop:C,defaultProp:I,onChange:g});return(0,AK.createElement)(Av,{scope:B,disabled:E,contentId:Am(),open:D,onOpenToggle:(0,AK.useCallback)(()=>M(A=>!A),[M])},(0,AK.createElement)(AY.div,AU({"data-state":AW(D),"data-disabled":E?"":void 0},w,{ref:Q})))},"CollapsibleContent"),Az=((A,Q)=>{let{forceMount:B,...C}=A,I=Ax(AV,A.__scopeCollapsible);return(0,AK.createElement)(Au,{present:B||I.open},({present:A})=>(0,AK.createElement)(Az,AU({},C,{ref:Q,present:A})))},(0,AK.forwardRef)((A,Q)=>{let{__scopeCollapsible:B,present:C,children:I,...E}=A,g=Ax(AV,B),[w,D]=(0,AK.useState)(C),M=(0,AK.useRef)(null),c=Ap(Q,M),s=(0,AK.useRef)(0),y=s.current,h=(0,AK.useRef)(0),k=h.current,n=g.open||w,t=(0,AK.useRef)(n),K=(0,AK.useRef)();return(0,AK.useEffect)(()=>{let A=requestAnimationFrame(()=>t.current=!1);return()=>cancelAnimationFrame(A)},[]),Ad(()=>{let A=M.current;if(A){K.current=K.current||{transitionDuration:A.style.transitionDuration,animationDuration:A.style.animationDuration,animationFillMode:A.style.animationFillMode},A.style.transitionDuration="0s",A.style.animationDuration="0s",A.style.animationFillMode="none";let Q=A.getBoundingClientRect();s.current=Q.height,h.current=Q.width,t.current||(A.style.transitionDuration=K.current.transitionDuration,A.style.animationDuration=K.current.animationDuration,A.style.animationFillMode=K.current.animationFillMode),D(C)}},[g.open,C]),(0,AK.createElement)(AY.div,AU({"data-state":AW(g.open),"data-disabled":g.disabled?"":void 0,id:g.contentId,hidden:!n},E,{ref:c,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...A.style}}),n&&I)}));function AW(A){return A?"open":"closed"}let AP="Accordion",Aq=["Home","End","ArrowDown","ArrowUp"],[AX,A_,A$]=AJ(AP),[A0,A8]=AG(AP,[A$,AO]);AO(),AK.forwardRef((A,Q)=>{let{type:B,...C}=A;return AK.createElement(AX.Provider,{scope:A.__scopeAccordion},"multiple"===B?AK.createElement(A9,AU({},C,{ref:Q})):AK.createElement(A5,AU({},C,{ref:Q})))}).propTypes={type(A){let Q=A.value||A.defaultValue;return A.type&&!["single","multiple"].includes(A.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===A.type&&"string"==typeof Q?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===A.type&&Array.isArray(Q)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[A3,A1]=A0(AP),[A4,A2]=A0(AP,{collapsible:!1}),A5=AK.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},collapsible:E=!1,...g}=A,[w,D]=Al({prop:B,defaultProp:C,onChange:I});return AK.createElement(A3,{scope:A.__scopeAccordion,value:w?[w]:[],onItemOpen:D,onItemClose:AK.useCallback(()=>E&&D(""),[E,D])},AK.createElement(A4,{scope:A.__scopeAccordion,collapsible:E},AK.createElement(QA,AU({},g,{ref:Q}))))}),A9=AK.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},...E}=A,[g=[],w]=Al({prop:B,defaultProp:C,onChange:I}),D=AK.useCallback(A=>w((Q=[])=>[...Q,A]),[w]),M=AK.useCallback(A=>w((Q=[])=>Q.filter(Q=>Q!==A)),[w]);return AK.createElement(A3,{scope:A.__scopeAccordion,value:g,onItemOpen:D,onItemClose:M},AK.createElement(A4,{scope:A.__scopeAccordion,collapsible:!0},AK.createElement(QA,AU({},E,{ref:Q}))))}),[A6,A7]=A0(AP),QA=AK.forwardRef((A,Q)=>{let{__scopeAccordion:B,disabled:C,...I}=A,E=Ap(AK.useRef(null),Q),g=A_(B),w=AF(A.onKeyDown,A=>{var Q;if(!Aq.includes(A.key))return;let B=A.target,C=g().filter(A=>{var Q;return!(null!==(Q=A.ref.current)&&void 0!==Q&&Q.disabled)}),I=C.findIndex(A=>A.ref.current===B),E=C.length;if(-1===I)return;A.preventDefault();let w=I;switch(A.key){case"Home":w=0;break;case"End":w=E-1;break;case"ArrowDown":w=I+1;break;case"ArrowUp":(w=I-1)<0&&(w=E-1)}null===(Q=C[w%E].ref.current)||void 0===Q||Q.focus()});return AK.createElement(A6,{scope:B,disabled:C},AK.createElement(AX.Slot,{scope:B},AK.createElement(AY.div,AU({},I,{ref:E,onKeyDown:C?void 0:w}))))}),[QQ,QB]=A0("AccordionItem");var QC=B(82851);let QI="dismissableLayer.update",QE=(0,AK.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qg=(0,AK.forwardRef)((A,Q)=>{let{disableOutsidePointerEvents:B=!1,onEscapeKeyDown:I,onPointerDownOutside:E,onFocusOutside:g,onInteractOutside:w,onDismiss:D,...M}=A,c=(0,AK.useContext)(QE),[s,y]=(0,AK.useState)(null),[,h]=(0,AK.useState)({}),k=Ap(Q,A=>y(A)),n=Array.from(c.layers),[t]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),K=n.indexOf(t),L=s?n.indexOf(s):-1,U=c.layersWithOutsidePointerEventsDisabled.size>0,i=L>=K,G=function(A){let Q=AS(A),B=(0,AK.useRef)(!1),C=(0,AK.useRef)(()=>{});return(0,AK.useEffect)(()=>{let A=A=>{if(A.target&&!B.current){let B={originalEvent:A};function I(){QD("dismissableLayer.pointerDownOutside",Q,B,{discrete:!0})}"touch"===A.pointerType?(document.removeEventListener("click",C.current),C.current=I,document.addEventListener("click",C.current,{once:!0})):I()}B.current=!1},I=window.setTimeout(()=>{document.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(I),document.removeEventListener("pointerdown",A),document.removeEventListener("click",C.current)}},[Q]),{onPointerDownCapture:()=>B.current=!0}}(A=>{let Q=A.target,B=[...c.branches].some(A=>A.contains(Q));!i||B||(null==E||E(A),null==w||w(A),A.defaultPrevented||null==D||D())}),r=function(A){let Q=AS(A),B=(0,AK.useRef)(!1);return(0,AK.useEffect)(()=>{let A=A=>{A.target&&!B.current&&QD("dismissableLayer.focusOutside",Q,{originalEvent:A},{discrete:!1})};return document.addEventListener("focusin",A),()=>document.removeEventListener("focusin",A)},[Q]),{onFocusCapture:()=>B.current=!0,onBlurCapture:()=>B.current=!1}}(A=>{let Q=A.target;[...c.branches].some(A=>A.contains(Q))||(null==g||g(A),null==w||w(A),A.defaultPrevented||null==D||D())});return!function(A){let Q=AS(A);(0,AK.useEffect)(()=>{let A=A=>{"Escape"===A.key&&Q(A)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[Q])}(A=>{L!==c.layers.size-1||(null==I||I(A),!A.defaultPrevented&&D&&(A.preventDefault(),D()))}),(0,AK.useEffect)(()=>{if(s)return B&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(C=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(s)),c.layers.add(s),Qw(),()=>{B&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=C)}},[s,B,c]),(0,AK.useEffect)(()=>()=>{s&&(c.layers.delete(s),c.layersWithOutsidePointerEventsDisabled.delete(s),Qw())},[s,c]),(0,AK.useEffect)(()=>{let A=()=>h({});return document.addEventListener(QI,A),()=>document.removeEventListener(QI,A)},[]),(0,AK.createElement)(AY.div,AU({},M,{ref:k,style:{pointerEvents:U?i?"auto":"none":void 0,...A.style},onFocusCapture:AF(A.onFocusCapture,r.onFocusCapture),onBlurCapture:AF(A.onBlurCapture,r.onBlurCapture),onPointerDownCapture:AF(A.onPointerDownCapture,G.onPointerDownCapture)}))});function Qw(){let A=new CustomEvent(QI);document.dispatchEvent(A)}function QD(A,Q,B,{discrete:C}){let I=B.originalEvent.target,E=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:B});Q&&I.addEventListener(A,Q,{once:!0}),C?Af(I,E):I.dispatchEvent(E)}function QM(A){return A.split("-")[0]}function Qc(A){return A.split("-")[1]}function Qs(A){return["top","bottom"].includes(QM(A))?"x":"y"}function Qy(A){return"y"===A?"height":"width"}function Qh(A,Q,B){let C,{reference:I,floating:E}=A,g=I.x+I.width/2-E.width/2,w=I.y+I.height/2-E.height/2,D=Qs(Q),M=Qy(D),c=I[M]/2-E[M]/2,s="x"===D;switch(QM(Q)){case"top":C={x:g,y:I.y-E.height};break;case"bottom":C={x:g,y:I.y+I.height};break;case"right":C={x:I.x+I.width,y:w};break;case"left":C={x:I.x-E.width,y:w};break;default:C={x:I.x,y:I.y}}switch(Qc(Q)){case"start":C[D]-=c*(B&&s?-1:1);break;case"end":C[D]+=c*(B&&s?-1:1)}return C}let Qk=async(A,Q,B)=>{let{placement:C="bottom",strategy:I="absolute",middleware:E=[],platform:g}=B,w=await (null==g.isRTL?void 0:g.isRTL(Q)),D=await g.getElementRects({reference:A,floating:Q,strategy:I}),{x:M,y:c}=Qh(D,C,w),s=C,y={},h=0;for(let B=0;B({name:"arrow",options:A,async fn(Q){let{element:B,padding:C=0}=null!=A?A:{},{x:I,y:E,placement:g,rects:w,platform:D}=Q;if(null==B)return{};let M=Qn(C),c={x:I,y:E},s=Qs(g),y=Qc(g),h=Qy(s),k=await D.getDimensions(B),n="y"===s?"top":"left",t="y"===s?"bottom":"right",K=w.reference[h]+w.reference[s]-c[s]-w.floating[h],L=c[s]-w.reference[s],U=await (null==D.getOffsetParent?void 0:D.getOffsetParent(B)),i=U?"y"===s?U.clientHeight||0:U.clientWidth||0:0;0===i&&(i=w.floating[h]);let G=M[n],r=i-k[h]-M[t],p=i/2-k[h]/2+(K/2-L/2),a=QU(G,QL(p,r)),N=("start"===y?M[n]:M[t])>0&&p!==a&&w.reference[h]<=w.floating[h];return{[s]:c[s]-(N?pQG[A])}let Qp={start:"end",end:"start"};function Qa(A){return A.replace(/start|end/g,A=>Qp[A])}let QN=["top","right","bottom","left"];QN.reduce((A,Q)=>A.concat(Q,Q+"-start",Q+"-end"),[]);let Qo=function(A){return void 0===A&&(A={}),{name:"flip",options:A,async fn(Q){var B,C,I,E;let{placement:g,middlewareData:w,rects:D,initialPlacement:M,platform:c,elements:s}=Q,{mainAxis:y=!0,crossAxis:h=!0,fallbackPlacements:k,fallbackStrategy:n="bestFit",flipAlignment:t=!0,...K}=A,L=QM(g),U=k||(L!==M&&t?function(A){let Q=Qr(A);return[Qa(A),Q,Qa(Q)]}(M):[Qr(M)]),i=[M,...U],G=await QK(Q,K),r=[],p=(null==(B=w.flip)?void 0:B.overflows)||[];if(y&&r.push(G[L]),h){let{main:A,cross:Q}=function(A,Q,B){void 0===B&&(B=!1);let C=Qc(A),I=Qs(A),E=Qy(I),g="x"===I?C===(B?"end":"start")?"right":"left":"start"===C?"bottom":"top";return Q.reference[E]>Q.floating[E]&&(g=Qr(g)),{main:g,cross:Qr(g)}}(g,D,await (null==c.isRTL?void 0:c.isRTL(s.floating)));r.push(G[A],G[Q])}if(p=[...p,{placement:g,overflows:r}],!r.every(A=>A<=0)){let A=(null!=(C=null==(I=w.flip)?void 0:I.index)?C:0)+1,Q=i[A];if(Q)return{data:{index:A,overflows:p},reset:{placement:Q}};let B="bottom";switch(n){case"bestFit":{let A=null==(E=p.map(A=>[A,A.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((A,Q)=>A[1]-Q[1])[0])?void 0:E[0].placement;A&&(B=A);break}case"initialPlacement":B=M}if(g!==B)return{reset:{placement:B}}}return{}}}};function Qe(A,Q){return{top:A.top-Q.height,right:A.right-Q.width,bottom:A.bottom-Q.height,left:A.left-Q.width}}function QJ(A){return QN.some(Q=>A[Q]>=0)}let QF=function(A){let{strategy:Q="referenceHidden",...B}=void 0===A?{}:A;return{name:"hide",async fn(A){let{rects:C}=A;switch(Q){case"referenceHidden":{let Q=Qe(await QK(A,{...B,elementContext:"reference"}),C.reference);return{data:{referenceHiddenOffsets:Q,referenceHidden:QJ(Q)}}}case"escaped":{let Q=Qe(await QK(A,{...B,altBoundary:!0}),C.floating);return{data:{escapedOffsets:Q,escaped:QJ(Q)}}}default:return{}}}}},QS=function(A){return void 0===A&&(A=0),{name:"offset",options:A,async fn(Q){let{x:B,y:C}=Q,I=await async function(A,Q){let{placement:B,platform:C,elements:I}=A,E=await (null==C.isRTL?void 0:C.isRTL(I.floating)),g=QM(B),w=Qc(B),D="x"===Qs(B),M=["left","top"].includes(g)?-1:1,c=E&&D?-1:1,s="function"==typeof Q?Q(A):Q,{mainAxis:y,crossAxis:h,alignmentAxis:k}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return w&&"number"==typeof k&&(h="end"===w?-1*k:k),D?{x:h*c,y:y*M}:{x:y*M,y:h*c}}(Q,A);return{x:B+I.x,y:C+I.y,data:I}}}};function Ql(A){return"x"===A?"y":"x"}let QH=function(A){return void 0===A&&(A={}),{name:"shift",options:A,async fn(Q){let{x:B,y:C,placement:I}=Q,{mainAxis:E=!0,crossAxis:g=!1,limiter:w={fn:A=>{let{x:Q,y:B}=A;return{x:Q,y:B}}},...D}=A,M={x:B,y:C},c=await QK(Q,D),s=Qs(QM(I)),y=Ql(s),h=M[s],k=M[y];if(E){let A="y"===s?"bottom":"right";h=QU(h+c["y"===s?"top":"left"],QL(h,h-c[A]))}if(g){let A="y"===y?"bottom":"right";k=QU(k+c["y"===y?"top":"left"],QL(k,k-c[A]))}let n=w.fn({...Q,[s]:h,[y]:k});return{...n,data:{x:n.x-B,y:n.y-C}}}}},QY=function(A){return void 0===A&&(A={}),{options:A,fn(Q){let{x:B,y:C,placement:I,rects:E,middlewareData:g}=Q,{offset:w=0,mainAxis:D=!0,crossAxis:M=!0}=A,c={x:B,y:C},s=Qs(I),y=Ql(s),h=c[s],k=c[y],n="function"==typeof w?w({...E,placement:I}):w,t="number"==typeof n?{mainAxis:n,crossAxis:0}:{mainAxis:0,crossAxis:0,...n};if(D){let A="y"===s?"height":"width",Q=E.reference[s]-E.floating[A]+t.mainAxis,B=E.reference[s]+E.reference[A]-t.mainAxis;hB&&(h=B)}if(M){var K,L,U,i;let A="y"===s?"width":"height",Q=["top","left"].includes(QM(I)),B=E.reference[y]-E.floating[A]+(Q&&null!=(K=null==(L=g.offset)?void 0:L[y])?K:0)+(Q?0:t.crossAxis),C=E.reference[y]+E.reference[A]+(Q?0:null!=(U=null==(i=g.offset)?void 0:i[y])?U:0)-(Q?t.crossAxis:0);kC&&(k=C)}return{[s]:h,[y]:k}}}};function Qf(A){return A&&A.document&&A.location&&A.alert&&A.setInterval}function Qd(A){if(null==A)return window;if(!Qf(A)){let Q=A.ownerDocument;return Q&&Q.defaultView||window}return A}function Qu(A){return Qd(A).getComputedStyle(A)}function QR(A){return Qf(A)?"":A?(A.nodeName||"").toLowerCase():""}function Qj(){let A=navigator.userAgentData;return null!=A&&A.brands?A.brands.map(A=>A.brand+"/"+A.version).join(" "):navigator.userAgent}function Qb(A){return A instanceof Qd(A).HTMLElement}function Qm(A){return A instanceof Qd(A).Element}function QT(A){return"undefined"!=typeof ShadowRoot&&(A instanceof Qd(A).ShadowRoot||A instanceof ShadowRoot)}function QZ(A){let{overflow:Q,overflowX:B,overflowY:C}=Qu(A);return/auto|scroll|overlay|hidden/.test(Q+C+B)}function QO(A){let Q=/firefox/i.test(Qj()),B=Qu(A);return"none"!==B.transform||"none"!==B.perspective||"paint"===B.contain||["transform","perspective"].includes(B.willChange)||Q&&"filter"===B.willChange||Q&&!!B.filter&&"none"!==B.filter}function Qv(){return!/^((?!chrome|android).)*safari/i.test(Qj())}let Qx=Math.min,QV=Math.max,Qz=Math.round;function QW(A,Q,B){var C,I,E,g;void 0===Q&&(Q=!1),void 0===B&&(B=!1);let w=A.getBoundingClientRect(),D=1,M=1;Q&&Qb(A)&&(D=A.offsetWidth>0&&Qz(w.width)/A.offsetWidth||1,M=A.offsetHeight>0&&Qz(w.height)/A.offsetHeight||1);let c=Qm(A)?Qd(A):window,s=!Qv()&&B,y=(w.left+(s&&null!=(C=null==(I=c.visualViewport)?void 0:I.offsetLeft)?C:0))/D,h=(w.top+(s&&null!=(E=null==(g=c.visualViewport)?void 0:g.offsetTop)?E:0))/M,k=w.width/D,n=w.height/M;return{width:k,height:n,top:h,right:y+k,bottom:h+n,left:y,x:y,y:h}}function QP(A){return((A instanceof Qd(A).Node?A.ownerDocument:A.document)||window.document).documentElement}function Qq(A){return Qm(A)?{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop}:{scrollLeft:A.pageXOffset,scrollTop:A.pageYOffset}}function QX(A){return QW(QP(A)).left+Qq(A).scrollLeft}function Q_(A){return"html"===QR(A)?A:A.assignedSlot||A.parentNode||(QT(A)?A.host:null)||QP(A)}function Q$(A){return Qb(A)&&"fixed"!==getComputedStyle(A).position?A.offsetParent:null}function Q0(A){let Q=Qd(A),B=Q$(A);for(;B&&["table","td","th"].includes(QR(B))&&"static"===getComputedStyle(B).position;)B=Q$(B);return B&&("html"===QR(B)||"body"===QR(B)&&"static"===getComputedStyle(B).position&&!QO(B))?Q:B||function(A){let Q=Q_(A);for(QT(Q)&&(Q=Q.host);Qb(Q)&&!["html","body"].includes(QR(Q));){if(QO(Q))return Q;Q=Q.parentNode}return null}(A)||Q}function Q8(A){if(Qb(A))return{width:A.offsetWidth,height:A.offsetHeight};let Q=QW(A);return{width:Q.width,height:Q.height}}function Q3(A,Q){var B;void 0===Q&&(Q=[]);let C=function A(Q){let B=Q_(Q);return["html","body","#document"].includes(QR(B))?Q.ownerDocument.body:Qb(B)&&QZ(B)?B:A(B)}(A),I=C===(null==(B=A.ownerDocument)?void 0:B.body),E=Qd(C),g=I?[E].concat(E.visualViewport||[],QZ(C)?C:[]):C,w=Q.concat(g);return I?w:w.concat(Q3(g))}function Q1(A,Q,B){return"viewport"===Q?Qt(function(A,Q){let B=Qd(A),C=QP(A),I=B.visualViewport,E=C.clientWidth,g=C.clientHeight,w=0,D=0;if(I){E=I.width,g=I.height;let A=Qv();(A||!A&&"fixed"===Q)&&(w=I.offsetLeft,D=I.offsetTop)}return{width:E,height:g,x:w,y:D}}(A,B)):Qm(Q)?function(A,Q){let B=QW(A,!1,"fixed"===Q),C=B.top+A.clientTop,I=B.left+A.clientLeft;return{top:C,left:I,x:I,y:C,right:I+A.clientWidth,bottom:C+A.clientHeight,width:A.clientWidth,height:A.clientHeight}}(Q,B):Qt(function(A){var Q;let B=QP(A),C=Qq(A),I=null==(Q=A.ownerDocument)?void 0:Q.body,E=QV(B.scrollWidth,B.clientWidth,I?I.scrollWidth:0,I?I.clientWidth:0),g=QV(B.scrollHeight,B.clientHeight,I?I.scrollHeight:0,I?I.clientHeight:0),w=-C.scrollLeft+QX(A),D=-C.scrollTop;return"rtl"===Qu(I||B).direction&&(w+=QV(B.clientWidth,I?I.clientWidth:0)-E),{width:E,height:g,x:w,y:D}}(QP(A)))}let Q4={getClippingRect:function(A){let{element:Q,boundary:B,rootBoundary:C,strategy:I}=A,E=[..."clippingAncestors"===B?function(A){let Q=Q3(A),B=["absolute","fixed"].includes(Qu(A).position)&&Qb(A)?Q0(A):A;return Qm(B)?Q.filter(A=>Qm(A)&&function(A,Q){let B=null==Q.getRootNode?void 0:Q.getRootNode();if(A.contains(Q))return!0;if(B&&QT(B)){let B=Q;do{if(B&&A===B)return!0;B=B.parentNode||B.host}while(B)}return!1}(A,B)&&"body"!==QR(A)):[]}(Q):[].concat(B),C],g=E[0],w=E.reduce((A,B)=>{let C=Q1(Q,B,I);return A.top=QV(C.top,A.top),A.right=Qx(C.right,A.right),A.bottom=Qx(C.bottom,A.bottom),A.left=QV(C.left,A.left),A},Q1(Q,g,I));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(A){let{rect:Q,offsetParent:B,strategy:C}=A,I=Qb(B),E=QP(B);if(B===E)return Q;let g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if((I||!I&&"fixed"!==C)&&(("body"!==QR(B)||QZ(E))&&(g=Qq(B)),Qb(B))){let A=QW(B,!0);w.x=A.x+B.clientLeft,w.y=A.y+B.clientTop}return{...Q,x:Q.x-g.scrollLeft+w.x,y:Q.y-g.scrollTop+w.y}},isElement:Qm,getDimensions:Q8,getOffsetParent:Q0,getDocumentElement:QP,getElementRects:A=>{let{reference:Q,floating:B,strategy:C}=A;return{reference:function(A,Q,B){let C=Qb(Q),I=QP(Q),E=QW(A,C&&function(A){let Q=QW(A);return Qz(Q.width)!==A.offsetWidth||Qz(Q.height)!==A.offsetHeight}(Q),"fixed"===B),g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if(C||!C&&"fixed"!==B){if(("body"!==QR(Q)||QZ(I))&&(g=Qq(Q)),Qb(Q)){let A=QW(Q,!0);w.x=A.x+Q.clientLeft,w.y=A.y+Q.clientTop}else I&&(w.x=QX(I))}return{x:E.left+g.scrollLeft-w.x,y:E.top+g.scrollTop-w.y,width:E.width,height:E.height}}(Q,Q0(B),C),floating:{...Q8(B),x:0,y:0}}},getClientRects:A=>Array.from(A.getClientRects()),isRTL:A=>"rtl"===Qu(A).direction};function Q2(A,Q,B,C){void 0===C&&(C={});let{ancestorScroll:I=!0,ancestorResize:E=!0,elementResize:g=!0,animationFrame:w=!1}=C,D=I&&!w,M=E&&!w,c=D||M?[...Qm(A)?Q3(A):[],...Q3(Q)]:[];c.forEach(A=>{D&&A.addEventListener("scroll",B,{passive:!0}),M&&A.addEventListener("resize",B)});let s,y=null;if(g){let C=!0;y=new ResizeObserver(()=>{C||B(),C=!1}),Qm(A)&&!w&&y.observe(A),y.observe(Q)}let h=w?QW(A):null;return w&&function Q(){let C=QW(A);h&&(C.x!==h.x||C.y!==h.y||C.width!==h.width||C.height!==h.height)&&B(),h=C,s=requestAnimationFrame(Q)}(),B(),()=>{var A;c.forEach(A=>{D&&A.removeEventListener("scroll",B),M&&A.removeEventListener("resize",B)}),null==(A=y)||A.disconnect(),y=null,w&&cancelAnimationFrame(s)}}let Q5=(A,Q,B)=>Qk(A,Q,{platform:Q4,...B});var Q9="undefined"!=typeof document?AK.useLayoutEffect:AK.useEffect;function Q6(A){let{middleware:Q,placement:B="bottom",strategy:C="absolute",whileElementsMounted:I}=void 0===A?{}:A,E=AK.useRef(null),g=AK.useRef(null),w=function(A){let Q=AK.useRef(A);return Q9(()=>{Q.current=A}),Q}(I),D=AK.useRef(null),[M,c]=AK.useState({x:null,y:null,strategy:C,placement:B,middlewareData:{}}),[s,y]=AK.useState(Q);!function A(Q,B){let C,I,E;if(Q===B)return!0;if(typeof Q!=typeof B)return!1;if("function"==typeof Q&&Q.toString()===B.toString())return!0;if(Q&&B&&"object"==typeof Q){if(Array.isArray(Q)){if((C=Q.length)!=B.length)return!1;for(I=C;0!=I--;)if(!A(Q[I],B[I]))return!1;return!0}if((C=(E=Object.keys(Q)).length)!==Object.keys(B).length)return!1;for(I=C;0!=I--;)if(!Object.prototype.hasOwnProperty.call(B,E[I]))return!1;for(I=C;0!=I--;){let C=E[I];if(("_owner"!==C||!Q.$$typeof)&&!A(Q[C],B[C]))return!1}return!0}return Q!=Q&&B!=B}(null==s?void 0:s.map(A=>{let{options:Q}=A;return Q}),null==Q?void 0:Q.map(A=>{let{options:Q}=A;return Q}))&&y(Q);let h=AK.useCallback(()=>{E.current&&g.current&&Q5(E.current,g.current,{middleware:s,placement:B,strategy:C}).then(A=>{k.current&&AH.flushSync(()=>{c(A)})})},[s,B,C]);Q9(()=>{k.current&&h()},[h]);let k=AK.useRef(!1);Q9(()=>(k.current=!0,()=>{k.current=!1}),[]);let n=AK.useCallback(()=>{if("function"==typeof D.current&&(D.current(),D.current=null),E.current&&g.current){if(w.current){let A=w.current(E.current,g.current,h);D.current=A}else h()}},[h,w]),t=AK.useCallback(A=>{E.current=A,n()},[n]),K=AK.useCallback(A=>{g.current=A,n()},[n]),L=AK.useMemo(()=>({reference:E,floating:g}),[]);return AK.useMemo(()=>({...M,update:h,refs:L,reference:t,floating:K}),[M,h,L,t,K])}let Q7=A=>{let{element:Q,padding:B}=A;return{name:"arrow",options:A,fn(A){if(Object.prototype.hasOwnProperty.call(Q,"current")){if(null!=Q.current)return Qi({element:Q.current,padding:B}).fn(A)}else if(Q)return Qi({element:Q,padding:B}).fn(A);return{}}}},BA=(0,AK.forwardRef)((A,Q)=>{let{children:B,width:C=10,height:I=5,...E}=A;return(0,AK.createElement)(AY.svg,AU({},E,{ref:Q,width:C,height:I,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),A.asChild?B:(0,AK.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function BQ(A){let[Q,B]=(0,AK.useState)(void 0);return Ad(()=>{if(A){B({width:A.offsetWidth,height:A.offsetHeight});let Q=new ResizeObserver(Q=>{let C,I;if(!Array.isArray(Q)||!Q.length)return;let E=Q[0];if("borderBoxSize"in E){let A=E.borderBoxSize,Q=Array.isArray(A)?A[0]:A;C=Q.inlineSize,I=Q.blockSize}else C=A.offsetWidth,I=A.offsetHeight;B({width:C,height:I})});return Q.observe(A,{box:"border-box"}),()=>Q.unobserve(A)}B(void 0)},[A]),Q}let BB="Popper",[BC,BI]=AG(BB),[BE,Bg]=BC(BB),Bw=(0,AK.forwardRef)((A,Q)=>{let{__scopePopper:B,virtualRef:C,...I}=A,E=Bg("PopperAnchor",B),g=(0,AK.useRef)(null),w=Ap(Q,g);return(0,AK.useEffect)(()=>{E.onAnchorChange((null==C?void 0:C.current)||g.current)}),C?null:(0,AK.createElement)(AY.div,AU({},I,{ref:w}))}),BD="PopperContent",[BM,Bc]=BC(BD),[Bs,By]=BC(BD,{hasParent:!1,positionUpdateFns:new Set}),Bh=(0,AK.forwardRef)((A,Q)=>{var B,C,I,E,g,w,D,M;let{__scopePopper:c,side:s="bottom",sideOffset:y=0,align:h="center",alignOffset:k=0,arrowPadding:n=0,collisionBoundary:t=[],collisionPadding:K=0,sticky:L="partial",hideWhenDetached:U=!1,avoidCollisions:i=!0,...G}=A,r=Bg(BD,c),[p,a]=(0,AK.useState)(null),N=Ap(Q,A=>a(A)),[o,e]=(0,AK.useState)(null),J=BQ(o),F=null!==(B=null==J?void 0:J.width)&&void 0!==B?B:0,S=null!==(C=null==J?void 0:J.height)&&void 0!==C?C:0,l="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},H=Array.isArray(t)?t:[t],Y=H.length>0,f={padding:l,boundary:H.filter(BK),altBoundary:Y},{reference:d,floating:u,strategy:R,x:j,y:b,placement:m,middlewareData:T,update:Z}=Q6({strategy:"fixed",placement:s+("center"!==h?"-"+h:""),whileElementsMounted:Q2,middleware:[QS({mainAxis:y+S,alignmentAxis:k}),i?QH({mainAxis:!0,crossAxis:!1,limiter:"partial"===L?QY():void 0,...f}):void 0,o?Q7({element:o,padding:n}):void 0,i?Qo({...f}):void 0,BL({arrowWidth:F,arrowHeight:S}),U?QF({strategy:"referenceHidden"}):void 0].filter(Bt)});Ad(()=>{d(r.anchor)},[d,r.anchor]);let O=null!==j&&null!==b,[v,x]=BU(m),V=null===(I=T.arrow)||void 0===I?void 0:I.x,z=null===(E=T.arrow)||void 0===E?void 0:E.y,W=(null===(g=T.arrow)||void 0===g?void 0:g.centerOffset)!==0,[P,q]=(0,AK.useState)();Ad(()=>{p&&q(window.getComputedStyle(p).zIndex)},[p]);let{hasParent:X,positionUpdateFns:_}=By(BD,c),$=!X;(0,AK.useLayoutEffect)(()=>{if(!$)return _.add(Z),()=>{_.delete(Z)}},[$,_,Z]),(0,AK.useLayoutEffect)(()=>{$&&O&&Array.from(_).reverse().forEach(A=>requestAnimationFrame(A))},[$,O,_]);let AA={"data-side":v,"data-align":x,...G,ref:N,style:{...G.style,animation:O?void 0:"none",opacity:null!==(w=T.hide)&&void 0!==w&&w.referenceHidden?0:void 0}};return(0,AK.createElement)("div",{ref:u,"data-radix-popper-content-wrapper":"",style:{position:R,left:0,top:0,transform:O?`translate3d(${Math.round(j)}px, ${Math.round(b)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:P,"--radix-popper-transform-origin":[null===(D=T.transformOrigin)||void 0===D?void 0:D.x,null===(M=T.transformOrigin)||void 0===M?void 0:M.y].join(" ")}},(0,AK.createElement)(BM,{scope:c,placedSide:v,onArrowChange:e,arrowX:V,arrowY:z,shouldHideArrow:W},$?(0,AK.createElement)(Bs,{scope:c,hasParent:!0,positionUpdateFns:_},(0,AK.createElement)(AY.div,AA)):(0,AK.createElement)(AY.div,AA)))}),Bk={top:"bottom",right:"left",bottom:"top",left:"right"},Bn=(0,AK.forwardRef)(function(A,Q){let{__scopePopper:B,...C}=A,I=Bc("PopperArrow",B),E=Bk[I.placedSide];return(0,AK.createElement)("span",{ref:I.onArrowChange,style:{position:"absolute",left:I.arrowX,top:I.arrowY,[E]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[I.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[I.placedSide],visibility:I.shouldHideArrow?"hidden":void 0}},(0,AK.createElement)(BA,AU({},C,{ref:Q,style:{...C.style,display:"block"}})))});function Bt(A){return void 0!==A}function BK(A){return null!==A}let BL=A=>({name:"transformOrigin",options:A,fn(Q){var B,C,I,E,g;let{placement:w,rects:D,middlewareData:M}=Q,c=(null===(B=M.arrow)||void 0===B?void 0:B.centerOffset)!==0,s=c?0:A.arrowWidth,y=c?0:A.arrowHeight,[h,k]=BU(w),n={start:"0%",center:"50%",end:"100%"}[k],t=(null!==(C=null===(I=M.arrow)||void 0===I?void 0:I.x)&&void 0!==C?C:0)+s/2,K=(null!==(E=null===(g=M.arrow)||void 0===g?void 0:g.y)&&void 0!==E?E:0)+y/2,L="",U="";return"bottom"===h?(L=c?n:`${t}px`,U=`${-y}px`):"top"===h?(L=c?n:`${t}px`,U=`${D.floating.height+y}px`):"right"===h?(L=`${-y}px`,U=c?n:`${K}px`):"left"===h&&(L=`${D.floating.width+y}px`,U=c?n:`${K}px`),{data:{x:L,y:U}}}});function BU(A){let[Q,B="center"]=A.split("-");return[Q,B]}let Bi=A=>{let{__scopePopper:Q,children:B}=A,[C,I]=(0,AK.useState)(null);return(0,AK.createElement)(BE,{scope:Q,anchor:C,onAnchorChange:I},B)},BG=(0,AK.forwardRef)((A,Q)=>{var B;let{container:C=null==globalThis?void 0:null===(B=globalThis.document)||void 0===B?void 0:B.body,...I}=A;return C?AH.createPortal((0,AK.createElement)(AY.div,AU({},I,{ref:Q})),C):null}),Br=(0,AK.forwardRef)((A,Q)=>(0,AK.createElement)(AY.span,AU({},A,{ref:Q,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",...A.style}}))),[Bp,Ba]=AG("Tooltip",[BI]),BN=BI(),Bo="tooltip.open",[Be,BJ]=Bp("TooltipProvider"),BF="Tooltip",[BS,Bl]=Bp(BF),BH="TooltipTrigger",BY=(0,AK.forwardRef)((A,Q)=>{let{__scopeTooltip:B,...C}=A,I=Bl(BH,B),E=BJ(BH,B),g=BN(B),w=Ap(Q,(0,AK.useRef)(null),I.onTriggerChange),D=(0,AK.useRef)(!1),M=(0,AK.useRef)(!1),c=(0,AK.useCallback)(()=>D.current=!1,[]);return(0,AK.useEffect)(()=>()=>document.removeEventListener("pointerup",c),[c]),(0,AK.createElement)(Bw,AU({asChild:!0},g),(0,AK.createElement)(AY.button,AU({"aria-describedby":I.open?I.contentId:void 0,"data-state":I.stateAttribute},C,{ref:w,onPointerMove:AF(A.onPointerMove,A=>{"touch"===A.pointerType||M.current||E.isPointerInTransitRef.current||(I.onTriggerEnter(),M.current=!0)}),onPointerLeave:AF(A.onPointerLeave,()=>{I.onTriggerLeave(),M.current=!1}),onPointerDown:AF(A.onPointerDown,()=>{D.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:AF(A.onFocus,()=>{D.current||I.onOpen()}),onBlur:AF(A.onBlur,I.onClose),onClick:AF(A.onClick,A=>{0===A.detail&&I.onClose()})})))}),Bf="TooltipPortal",[Bd,Bu]=Bp(Bf,{forceMount:void 0}),BR="TooltipContent",Bj=(0,AK.forwardRef)((A,Q)=>{let B=Bu(BR,A.__scopeTooltip),{forceMount:C=B.forceMount,side:I="top",...E}=A,g=Bl(BR,A.__scopeTooltip);return(0,AK.createElement)(Au,{present:C||g.open},g.disableHoverableContent?(0,AK.createElement)(BZ,AU({side:I},E,{ref:Q})):(0,AK.createElement)(Bb,AU({side:I},E,{ref:Q})))}),Bb=(0,AK.forwardRef)((A,Q)=>{let B=Bl(BR,A.__scopeTooltip),C=BJ(BR,A.__scopeTooltip),I=(0,AK.useRef)(null),E=Ap(Q,I),[g,w]=(0,AK.useState)(null),{trigger:D,onClose:M}=B,c=I.current,{onPointerInTransitChange:s}=C,y=(0,AK.useCallback)(()=>{w(null),s(!1)},[s]),h=(0,AK.useCallback)((A,Q)=>{let B=A.currentTarget,C=function(A,Q){let B=Math.abs(Q.top-A.y),C=Math.abs(Q.bottom-A.y),I=Math.abs(Q.right-A.x),E=Math.abs(Q.left-A.x);switch(Math.min(B,C,I,E)){case E:return"left";case I:return"right";case B:return"top";case C:return"bottom";default:return null}}({x:A.clientX,y:A.clientY},B.getBoundingClientRect()),I="right"===C||"bottom"===C?-5:5;w(function(A){let Q=A.slice();return Q.sort((A,Q)=>A.xQ.x?1:A.yQ.y?1:0),function(A){if(A.length<=1)return A.slice();let Q=[];for(let B=0;B=2;){let A=Q[Q.length-1],B=Q[Q.length-2];if((A.x-B.x)*(C.y-B.y)>=(A.y-B.y)*(C.x-B.x))Q.pop();else break}Q.push(C)}Q.pop();let B=[];for(let Q=A.length-1;Q>=0;Q--){let C=A[Q];for(;B.length>=2;){let A=B[B.length-1],Q=B[B.length-2];if((A.x-Q.x)*(C.y-Q.y)>=(A.y-Q.y)*(C.x-Q.x))B.pop();else break}B.push(C)}return(B.pop(),1===Q.length&&1===B.length&&Q[0].x===B[0].x&&Q[0].y===B[0].y)?Q:Q.concat(B)}(Q)}(["right"===C||"left"===C?{x:A.clientX+I,y:A.clientY}:{x:A.clientX,y:A.clientY+I},...function(A){let{top:Q,right:B,bottom:C,left:I}=A;return[{x:I,y:Q},{x:B,y:Q},{x:B,y:C},{x:I,y:C}]}(Q.getBoundingClientRect())])),s(!0)},[s]);return(0,AK.useEffect)(()=>()=>y(),[y]),(0,AK.useEffect)(()=>{if(D&&c){let A=A=>h(A,c),Q=A=>h(A,D);return D.addEventListener("pointerleave",A),c.addEventListener("pointerleave",Q),()=>{D.removeEventListener("pointerleave",A),c.removeEventListener("pointerleave",Q)}}},[D,c,h,y]),(0,AK.useEffect)(()=>{if(g){let A=A=>{let Q=A.target,B={x:A.clientX,y:A.clientY},C=(null==D?void 0:D.contains(Q))||(null==c?void 0:c.contains(Q)),I=!function(A,Q){let{x:B,y:C}=A,I=!1;for(let A=0,E=Q.length-1;AC!=M>C&&B<(D-g)*(C-w)/(M-w)+g&&(I=!I)}return I}(B,g);C?y():I&&(y(),M())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[D,c,g,M,y]),(0,AK.createElement)(BZ,AU({},A,{ref:E}))}),[Bm,BT]=Bp(BF,{isInside:!1}),BZ=(0,AK.forwardRef)((A,Q)=>{let{__scopeTooltip:B,children:C,"aria-label":I,onEscapeKeyDown:E,onPointerDownOutside:g,...w}=A,D=Bl(BR,B),M=BN(B),{onClose:c}=D;return(0,AK.useEffect)(()=>(document.addEventListener(Bo,c),()=>document.removeEventListener(Bo,c)),[c]),(0,AK.useEffect)(()=>{if(D.trigger){let A=A=>{let Q=A.target;null!=Q&&Q.contains(D.trigger)&&c()};return window.addEventListener("scroll",A,{capture:!0}),()=>window.removeEventListener("scroll",A,{capture:!0})}},[D.trigger,c]),(0,AK.createElement)(Qg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:E,onPointerDownOutside:g,onFocusOutside:A=>A.preventDefault(),onDismiss:c},(0,AK.createElement)(Bh,AU({"data-state":D.stateAttribute},M,w,{ref:Q,style:{...w.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,AK.createElement)(Ao,null,C),(0,AK.createElement)(Bm,{scope:B,isInside:!0},(0,AK.createElement)(Br,{id:D.contentId,role:"tooltip"},I||C))))}),BO=A=>{let{__scopeTooltip:Q,children:B,open:C,defaultOpen:I=!1,onOpenChange:E,disableHoverableContent:g,delayDuration:w}=A,D=BJ(BF,A.__scopeTooltip),M=BN(Q),[c,s]=(0,AK.useState)(null),y=Am(),h=(0,AK.useRef)(0),k=null!=g?g:D.disableHoverableContent,n=null!=w?w:D.delayDuration,t=(0,AK.useRef)(!1),[K=!1,L]=Al({prop:C,defaultProp:I,onChange:A=>{A?(D.onOpen(),document.dispatchEvent(new CustomEvent(Bo))):D.onClose(),null==E||E(A)}}),U=(0,AK.useMemo)(()=>K?t.current?"delayed-open":"instant-open":"closed",[K]),i=(0,AK.useCallback)(()=>{window.clearTimeout(h.current),t.current=!1,L(!0)},[L]),G=(0,AK.useCallback)(()=>{window.clearTimeout(h.current),L(!1)},[L]),r=(0,AK.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{t.current=!0,L(!0)},n)},[n,L]);return(0,AK.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,AK.createElement)(Bi,M,(0,AK.createElement)(BS,{scope:Q,contentId:y,open:K,stateAttribute:U,trigger:c,onTriggerChange:s,onTriggerEnter:(0,AK.useCallback)(()=>{D.isOpenDelayed?r():i()},[D.isOpenDelayed,r,i]),onTriggerLeave:(0,AK.useCallback)(()=>{k?G():window.clearTimeout(h.current)},[G,k]),onOpen:i,onClose:G,disableHoverableContent:k},B))},Bv=A=>{let{__scopeTooltip:Q,forceMount:B,children:C,container:I}=A,E=Bl(Bf,Q);return(0,AK.createElement)(Bd,{scope:Q,forceMount:B},(0,AK.createElement)(Au,{present:B||E.open},(0,AK.createElement)(BG,{asChild:!0,container:I},C)))},Bx=(0,QC.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),BV=AK.forwardRef((A,Q)=>{let{tag:B="span",className:C,font:I,color:E,weight:g,size:w,scaleSize:D,noWrap:M,underline:c,ellipsis:s,wrapEllipsis:y,...h}=A;return(0,At.jsx)(B,{ref:Q,className:(0,QC.cx)(C,Bx({font:I,color:E,weight:g,size:w,scaleSize:D,underline:c,noWrap:M,ellipsis:s,wrapEllipsis:y})),...h})}),Bz=AK.forwardRef((A,Q)=>{let{size:B="18",...C}=A;return(0,At.jsx)(BV,{tag:"p",...C,ref:Q,weight:"regular",scaleSize:B,color:"subtle",className:(0,QC.cx)("leading-relaxed md:leading-relaxed",A.className)})}),BW=(0,QC.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),BP=AK.forwardRef((A,Q)=>{let{className:B,color:C,...I}=A;return(0,At.jsx)("div",{ref:Q,className:BW({className:B,color:C}),...I})});var Bq=B(93542);let BX=(void 0===Bq||Bq.env,"production"),B_=1/60*1e3,B$="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),B0="undefined"!=typeof window?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(B$()),B_),B8=!0,B3=!1,B1=!1,B4={delta:0,timestamp:0},B2=["read","update","preRender","render","postRender"],B5=B2.reduce((A,Q)=>(A[Q]=function(A){let Q=[],B=[],C=0,I=!1,E=!1,g=new WeakSet,w={schedule:(A,E=!1,w=!1)=>{let D=w&&I,M=D?Q:B;return E&&g.add(A),-1===M.indexOf(A)&&(M.push(A),D&&I&&(C=Q.length)),A},cancel:A=>{let Q=B.indexOf(A);-1!==Q&&B.splice(Q,1),g.delete(A)},process:D=>{if(I){E=!0;return}if(I=!0,[Q,B]=[B,Q],B.length=0,C=Q.length)for(let B=0;BB3=!0),A),{}),B9=B2.reduce((A,Q)=>{let B=B5[Q];return A[Q]=(A,Q=!1,C=!1)=>(B3||CB(),B.schedule(A,Q,C)),A},{}),B6=B2.reduce((A,Q)=>(A[Q]=B5[Q].cancel,A),{}),B7=B2.reduce((A,Q)=>(A[Q]=()=>B5[Q].process(B4),A),{}),CA=A=>B5[A].process(B4),CQ=A=>{B3=!1,B4.delta=B8?B_:Math.max(Math.min(A-B4.timestamp,40),1),B4.timestamp=A,B1=!0,B2.forEach(CA),B1=!1,B3&&(B8=!1,B0(CQ))},CB=()=>{B3=!0,B8=!0,B1||B0(CQ)},CC=()=>B4,CI="undefined"!=typeof document,CE=CI?AK.useLayoutEffect:AK.useEffect;function Cg(){let A=(0,AK.useRef)(!1);return CE(()=>(A.current=!0,()=>{A.current=!1}),[]),A}let Cw=(0,AK.createContext)(null);function CD(A){let Q=(0,AK.useRef)(null);return null===Q.current&&(Q.current=A()),Q.current}class CM extends AK.Component{getSnapshotBeforeUpdate(A){let Q=this.props.childRef.current;if(Q&&A.isPresent&&!this.props.isPresent){let A=this.props.sizeRef.current;A.height=Q.offsetHeight||0,A.width=Q.offsetWidth||0,A.top=Q.offsetTop,A.left=Q.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Cc({children:A,isPresent:Q}){let B=(0,AK.useId)(),C=(0,AK.useRef)(null),I=(0,AK.useRef)({width:0,height:0,top:0,left:0});return(0,AK.useInsertionEffect)(()=>{let{width:A,height:E,top:g,left:w}=I.current;if(Q||!C.current||!A||!E)return;C.current.dataset.motionPopId=B;let D=document.createElement("style");return document.head.appendChild(D),D.sheet&&D.sheet.insertRule(` [data-motion-pop-id="${B}"] { position: absolute !important; width: ${A}px !important; @@ -27,19 +27,19 @@ top: ${g}px !important; left: ${w}px !important; } - `),()=>{document.head.removeChild(D)}},[Q]),AL.createElement(Cc,{isPresent:Q,childRef:C,sizeRef:I},AL.cloneElement(A,{ref:C}))}let Cy=({children:A,initial:Q,isPresent:B,onExitComplete:C,custom:I,presenceAffectsLayout:E,mode:g})=>{let w=CM(Ch),D=(0,AL.useId)(),M=(0,AL.useMemo)(()=>({id:D,initial:Q,isPresent:B,custom:I,onExitComplete:A=>{for(let Q of(w.set(A,!0),w.values()))if(!Q)return;C&&C()},register:A=>(w.set(A,!1),()=>w.delete(A))}),E?void 0:[B]);return(0,AL.useMemo)(()=>{w.forEach((A,Q)=>w.set(Q,!1))},[B]),AL.useEffect(()=>{B||w.size||!C||C()},[B]),"popLayout"===g&&(A=AL.createElement(Cs,{isPresent:B},A)),AL.createElement(CD.Provider,{value:M},A)};function Ch(){return new Map}let Ck=(0,AL.createContext)({});function Cn(A){return(0,AL.useEffect)(()=>()=>A(),[])}let CK=new Set;function Ct(A,Q,B){A||CK.has(Q)||(console.warn(Q),B&&console.warn(B),CK.add(Q))}let CL=A=>A.key||"",CU=({children:A,custom:Q,initial:B=!0,onExitComplete:C,exitBeforeEnter:I,presenceAffectsLayout:E=!0,mode:g="sync"})=>{I&&(g="wait",Ct(!1,"Replace exitBeforeEnter with mode='wait'"));let[w]=function(){let A=Cw(),[Q,B]=(0,AL.useState)(0),C=(0,AL.useCallback)(()=>{A.current&&B(Q+1)},[Q]);return[(0,AL.useCallback)(()=>B6.postRender(C),[C]),Q]}(),D=(0,AL.useContext)(Ck).forceRender;D&&(w=D);let M=Cw(),c=function(A){let Q=[];return AL.Children.forEach(A,A=>{(0,AL.isValidElement)(A)&&Q.push(A)}),Q}(A),s=c,y=new Set,h=(0,AL.useRef)(s),k=(0,AL.useRef)(new Map).current,n=(0,AL.useRef)(!0);if(Cg(()=>{n.current=!1,function(A,Q){A.forEach(A=>{let B=CL(A);Q.set(B,A)})}(c,k),h.current=s}),Cn(()=>{n.current=!0,k.clear(),y.clear()}),n.current)return AL.createElement(AL.Fragment,null,s.map(A=>AL.createElement(Cy,{key:CL(A),isPresent:!0,initial:!!B&&void 0,presenceAffectsLayout:E,mode:g},A)));s=[...s];let K=h.current.map(CL),t=c.map(CL),L=K.length;for(let A=0;A{if(-1!==t.indexOf(A))return;let B=k.get(A);if(!B)return;let I=K.indexOf(A);s.splice(I,0,AL.createElement(Cy,{key:CL(B),isPresent:!1,onExitComplete:()=>{k.delete(A),y.delete(A);let Q=h.current.findIndex(Q=>Q.key===A);if(h.current.splice(Q,1),!y.size){if(h.current=c,!1===M.current)return;w(),C&&C()}},custom:Q,presenceAffectsLayout:E,mode:g},B))}),s=s.map(A=>{let Q=A.key;return y.has(Q)?A:AL.createElement(Cy,{key:CL(A),isPresent:!0,presenceAffectsLayout:E,mode:g},A)}),"production"!==B_&&"wait"===g&&s.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),AL.createElement(AL.Fragment,null,y.size?s:s.map(A=>(0,AL.cloneElement)(A)))},Ci=(0,AL.createContext)({transformPagePoint:A=>A,isStatic:!1,reducedMotion:"never"}),CG=(0,AL.createContext)({}),Cp=(0,AL.createContext)({strict:!1});function Cr(A){return"object"==typeof A&&Object.prototype.hasOwnProperty.call(A,"current")}function CN(A){return"string"==typeof A||Array.isArray(A)}function Ca(A){return"object"==typeof A&&"function"==typeof A.start}let Co=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ce(A){return Ca(A.animate)||Co.some(Q=>CN(A[Q]))}function CJ(A){return!!(Ce(A)||A.variants)}function CF(A){return Array.isArray(A)?A.join(" "):A}let CS=A=>({isEnabled:Q=>A.some(A=>!!Q[A])}),Cl={measureLayout:CS(["layout","layoutId","drag"]),animation:CS(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:CS(["exit"]),drag:CS(["drag","dragControls"]),focus:CS(["whileFocus"]),hover:CS(["whileHover","onHoverStart","onHoverEnd"]),tap:CS(["whileTap","onTap","onTapStart","onTapCancel"]),pan:CS(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:CS(["whileInView","onViewportEnter","onViewportLeave"])},CH={hasAnimatedSinceResize:!0,hasEverUpdated:!1},CY=1;class Cf extends AL.Component{getSnapshotBeforeUpdate(){let{visualElement:A,props:Q}=this.props;return A&&A.setProps(Q),null}componentDidUpdate(){}render(){return this.props.children}}let Cd=(0,AL.createContext)({}),Cu=Symbol.for("motionComponentSymbol"),CR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Cj(A){if("string"!=typeof A||A.includes("-"));else if(CR.indexOf(A)>-1||/[A-Z]/.test(A))return!0;return!1}let Cb={},Cm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],CT=new Set(Cm);function CZ(A,{layout:Q,layoutId:B}){return CT.has(A)||A.startsWith("origin")||(Q||void 0!==B)&&(!!Cb[A]||"opacity"===A)}let CO=A=>!!(null==A?void 0:A.getVelocity),Cv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cx=(A,Q)=>Cm.indexOf(A)-Cm.indexOf(Q);function CV(A){return A.startsWith("--")}let Cz=(A,Q)=>Q&&"number"==typeof A?Q.transform(A):A,CW=(A,Q)=>B=>Math.max(Math.min(B,Q),A),CP=A=>A%1?Number(A.toFixed(5)):A,Cq=/(-)?([\d]*\.?[\d])+/g,CX=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,C_=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function C$(A){return"string"==typeof A}let C0=A=>({test:Q=>C$(Q)&&Q.endsWith(A)&&1===Q.split(" ").length,parse:parseFloat,transform:Q=>`${Q}${A}`}),C8=C0("deg"),C3=C0("%"),C1=C0("px"),C4=C0("vh"),C2=C0("vw"),C5=Object.assign(Object.assign({},C3),{parse:A=>C3.parse(A)/100,transform:A=>C3.transform(100*A)}),C9={test:A=>"number"==typeof A,parse:parseFloat,transform:A=>A},C6=Object.assign(Object.assign({},C9),{transform:CW(0,1)}),C7=Object.assign(Object.assign({},C9),{default:1}),IA={...C9,transform:Math.round},IQ={borderWidth:C1,borderTopWidth:C1,borderRightWidth:C1,borderBottomWidth:C1,borderLeftWidth:C1,borderRadius:C1,radius:C1,borderTopLeftRadius:C1,borderTopRightRadius:C1,borderBottomRightRadius:C1,borderBottomLeftRadius:C1,width:C1,maxWidth:C1,height:C1,maxHeight:C1,size:C1,top:C1,right:C1,bottom:C1,left:C1,padding:C1,paddingTop:C1,paddingRight:C1,paddingBottom:C1,paddingLeft:C1,margin:C1,marginTop:C1,marginRight:C1,marginBottom:C1,marginLeft:C1,rotate:C8,rotateX:C8,rotateY:C8,rotateZ:C8,scale:C7,scaleX:C7,scaleY:C7,scaleZ:C7,skew:C8,skewX:C8,skewY:C8,distance:C1,translateX:C1,translateY:C1,translateZ:C1,x:C1,y:C1,z:C1,perspective:C1,transformPerspective:C1,opacity:C6,originX:C5,originY:C5,originZ:C1,zIndex:IA,fillOpacity:C6,strokeOpacity:C6,numOctaves:IA};function IB(A,Q,B,C){let{style:I,vars:E,transform:g,transformKeys:w,transformOrigin:D}=A;w.length=0;let M=!1,c=!1,s=!0;for(let A in Q){let B=Q[A];if(CV(A)){E[A]=B;continue}let C=IQ[A],y=Cz(B,C);if(CT.has(A)){if(M=!0,g[A]=y,w.push(A),!s)continue;B!==(C.default||0)&&(s=!1)}else A.startsWith("origin")?(c=!0,D[A]=y):I[A]=y}if(!Q.transform&&(M||C?I.transform=function({transform:A,transformKeys:Q},{enableHardwareAcceleration:B=!0,allowTransformNone:C=!0},I,E){let g="";for(let B of(Q.sort(Cx),Q))g+=`${Cv[B]||B}(${A[B]}) `;return B&&!A.z&&(g+="translateZ(0)"),g=g.trim(),E?g=E(A,I?"":g):C&&I&&(g="none"),g}(A,B,s,C):I.transform&&(I.transform="none")),c){let{originX:A="50%",originY:Q="50%",originZ:B=0}=D;I.transformOrigin=`${A} ${Q} ${B}`}}let IC=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function II(A,Q,B){for(let C in Q)CO(Q[C])||CZ(C,B)||(A[C]=Q[C])}let IE=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function Ig(A){return IE.has(A)}let Iw=A=>!Ig(A);try{(D=require("@emotion/is-prop-valid").default)&&(Iw=A=>A.startsWith("on")?!Ig(A):D(A))}catch(A){}function ID(A,Q,B){return"string"==typeof A?A:C1.transform(Q+B*A)}let IM={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ic={offset:"strokeDashoffset",array:"strokeDasharray"};function Is(A,{attrX:Q,attrY:B,originX:C,originY:I,pathLength:E,pathSpacing:g=1,pathOffset:w=0,...D},M,c){IB(A,D,M,c),A.attrs=A.style,A.style={};let{attrs:s,style:y,dimensions:h}=A;s.transform&&(h&&(y.transform=s.transform),delete s.transform),h&&(void 0!==C||void 0!==I||y.transform)&&(y.transformOrigin=function(A,Q,B){let C=ID(Q,A.x,A.width),I=ID(B,A.y,A.height);return`${C} ${I}`}(h,void 0!==C?C:.5,void 0!==I?I:.5)),void 0!==Q&&(s.x=Q),void 0!==B&&(s.y=B),void 0!==E&&function(A,Q,B=1,C=0,I=!0){A.pathLength=1;let E=I?IM:Ic;A[E.offset]=C1.transform(-C);let g=C1.transform(Q),w=C1.transform(B);A[E.array]=`${g} ${w}`}(s,E,g,w,!1)}let Iy=()=>({...IC(),attrs:{}}),Ih=A=>A.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Ik(A,{style:Q,vars:B},C,I){for(let E in Object.assign(A.style,Q,I&&I.getProjectionStyles(C)),B)A.style.setProperty(E,B[E])}let In=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function IK(A,Q,B,C){for(let B in Ik(A,Q,void 0,C),Q.attrs)A.setAttribute(In.has(B)?B:Ih(B),Q.attrs[B])}function It(A){let{style:Q}=A,B={};for(let C in Q)(CO(Q[C])||CZ(C,A))&&(B[C]=Q[C]);return B}function IL(A){let Q=It(A);for(let B in A)CO(A[B])&&(Q["x"===B||"y"===B?"attr"+B.toUpperCase():B]=A[B]);return Q}function IU(A,Q,B,C={},I={}){return"function"==typeof Q&&(Q=Q(void 0!==B?B:A.custom,C,I)),"string"==typeof Q&&(Q=A.variants&&A.variants[Q]),"function"==typeof Q&&(Q=Q(void 0!==B?B:A.custom,C,I)),Q}let Ii=A=>Array.isArray(A),IG=A=>!!(A&&"object"==typeof A&&A.mix&&A.toValue),Ip=A=>Ii(A)?A[A.length-1]||0:A;function Ir(A){let Q=CO(A)?A.get():A;return IG(Q)?Q.toValue():Q}let IN=A=>(Q,B)=>{let C=(0,AL.useContext)(CG),I=(0,AL.useContext)(CD),E=()=>(function({scrapeMotionValuesFromProps:A,createRenderState:Q,onMount:B},C,I,E){let g={latestValues:function(A,Q,B,C){let I={},E=C(A);for(let A in E)I[A]=Ir(E[A]);let{initial:g,animate:w}=A,D=Ce(A),M=CJ(A);Q&&M&&!D&&!1!==A.inherit&&(void 0===g&&(g=Q.initial),void 0===w&&(w=Q.animate));let c=!!B&&!1===B.initial,s=(c=c||!1===g)?w:g;return s&&"boolean"!=typeof s&&!Ca(s)&&(Array.isArray(s)?s:[s]).forEach(Q=>{let B=IU(A,Q);if(!B)return;let{transitionEnd:C,transition:E,...g}=B;for(let A in g){let Q=g[A];if(Array.isArray(Q)){let A=c?Q.length-1:0;Q=Q[A]}null!==Q&&(I[A]=Q)}for(let A in C)I[A]=C[A]}),I}(C,I,E,A),renderState:Q()};return B&&(g.mount=A=>B(C,A,g)),g})(A,Q,C,I);return B?E():CM(E)},Ia={useVisualState:IN({scrapeMotionValuesFromProps:IL,createRenderState:Iy,onMount:(A,Q,{renderState:B,latestValues:C})=>{try{B.dimensions="function"==typeof Q.getBBox?Q.getBBox():Q.getBoundingClientRect()}catch(A){B.dimensions={x:0,y:0,width:0,height:0}}Is(B,C,{enableHardwareAcceleration:!1},A.transformTemplate),IK(Q,B)}})},Io={useVisualState:IN({scrapeMotionValuesFromProps:It,createRenderState:IC})};function Ie(A,Q,B,C={passive:!0}){return A.addEventListener(Q,B,C),()=>A.removeEventListener(Q,B)}function IJ(A,Q,B,C){(0,AL.useEffect)(()=>{let I=A.current;if(B&&I)return Ie(I,Q,B,C)},[A,Q,B,C])}function IF(A){return"undefined"!=typeof PointerEvent&&A instanceof PointerEvent?!("mouse"!==A.pointerType):A instanceof MouseEvent}(M=Z||(Z={})).Animate="animate",M.Hover="whileHover",M.Tap="whileTap",M.Drag="whileDrag",M.Focus="whileFocus",M.InView="whileInView",M.Exit="exit";let IS={pageX:0,pageY:0};function Il(A,Q="page"){return{point:A.touches?function(A,Q="page"){let B=A.touches[0]||A.changedTouches[0]||IS;return{x:B[Q+"X"],y:B[Q+"Y"]}}(A,Q):function(A,Q="page"){return{x:A[Q+"X"],y:A[Q+"Y"]}}(A,Q)}}let IH=(A,Q=!1)=>{let B=Q=>A(Q,Il(Q));return Q?A=>{let Q=A instanceof MouseEvent;(!Q||Q&&0===A.button)&&B(A)}:B},IY=()=>CE&&null===window.onpointerdown,If=()=>CE&&null===window.ontouchstart,Id=()=>CE&&null===window.onmousedown,Iu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},IR={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ij(A){if(IY());else if(If())return IR[A];else if(Id())return Iu[A];return A}function Ib(A,Q,B,C){return Ie(A,Ij(Q),IH(B,"pointerdown"===Q),C)}function Im(A,Q,B,C){return IJ(A,Ij(Q),B&&IH(B,"pointerdown"===Q),C)}function IT(A){let Q=null;return()=>null===Q&&(Q=A,()=>{Q=null})}let IZ=IT("dragHorizontal"),IO=IT("dragVertical");function Iv(A){let Q=!1;if("y"===A)Q=IO();else if("x"===A)Q=IZ();else{let A=IZ(),B=IO();A&&B?Q=()=>{A(),B()}:(A&&A(),B&&B())}return Q}function Ix(){let A=Iv(!0);return!A||(A(),!1)}function IV(A,Q,B){return(C,I)=>{!(!IF(C)||Ix())&&(A.animationState&&A.animationState.setActive(Z.Hover,Q),B&&B(C,I))}}let Iz=(A,Q)=>!!Q&&(A===Q||Iz(A,Q.parentElement)),IW=(A,Q)=>B=>Q(A(B)),IP=(...A)=>A.reduce(IW),Iq=new WeakMap,IX=new WeakMap,I_=A=>{let Q=Iq.get(A.target);Q&&Q(A)},I$=A=>{A.forEach(I_)},I0={some:0,all:1},I8=A=>Q=>(A(Q),null),I3={inView:I8(function({visualElement:A,whileInView:Q,onViewportEnter:B,onViewportLeave:C,viewport:I={}}){let E=(0,AL.useRef)({hasEnteredView:!1,isInView:!1}),g=!!(Q||B||C);I.once&&E.current.hasEnteredView&&(g=!1),("undefined"==typeof IntersectionObserver?function(A,Q,B,{fallback:C=!0}){(0,AL.useEffect)(()=>{A&&C&&("production"!==B_&&Ct(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{Q.hasEnteredView=!0;let{onViewportEnter:A}=B.getProps();A&&A(null),B.animationState&&B.animationState.setActive(Z.InView,!0)}))},[A])}:function(A,Q,B,{root:C,margin:I,amount:E="some",once:g}){(0,AL.useEffect)(()=>{if(!A||!B.current)return;let w={root:null==C?void 0:C.current,rootMargin:I,threshold:"number"==typeof E?E:I0[E]};return function(A,Q,B){let C=function({root:A,...Q}){let B=A||document;IX.has(B)||IX.set(B,{});let C=IX.get(B),I=JSON.stringify(Q);return C[I]||(C[I]=new IntersectionObserver(I$,{root:A,...Q})),C[I]}(Q);return Iq.set(A,B),C.observe(A),()=>{Iq.delete(A),C.unobserve(A)}}(B.current,w,A=>{let{isIntersecting:C}=A;if(Q.isInView===C||(Q.isInView=C,g&&!C&&Q.hasEnteredView))return;C&&(Q.hasEnteredView=!0),B.animationState&&B.animationState.setActive(Z.InView,C);let I=B.getProps(),E=C?I.onViewportEnter:I.onViewportLeave;E&&E(A)})},[A,C,I,E])})(g,E.current,A,I)}),tap:I8(function({onTap:A,onTapStart:Q,onTapCancel:B,whileTap:C,visualElement:I}){let E=A||Q||B||C,g=(0,AL.useRef)(!1),w=(0,AL.useRef)(null),D={passive:!(Q||A||B||h)};function M(){w.current&&w.current(),w.current=null}function c(){return M(),g.current=!1,I.animationState&&I.animationState.setActive(Z.Tap,!1),!Ix()}function s(Q,C){c()&&(Iz(I.current,Q.target)?A&&A(Q,C):B&&B(Q,C))}function y(A,Q){c()&&B&&B(A,Q)}function h(A,B){M(),!g.current&&(g.current=!0,w.current=IP(Ib(window,"pointerup",s,D),Ib(window,"pointercancel",y,D)),I.animationState&&I.animationState.setActive(Z.Tap,!0),Q&&Q(A,B))}Im(I,"pointerdown",E?h:void 0,D),Cn(M)}),focus:I8(function({whileFocus:A,visualElement:Q}){let{animationState:B}=Q;IJ(Q,"focus",A?()=>{B&&B.setActive(Z.Focus,!0)}:void 0),IJ(Q,"blur",A?()=>{B&&B.setActive(Z.Focus,!1)}:void 0)}),hover:I8(function({onHoverStart:A,onHoverEnd:Q,whileHover:B,visualElement:C}){Im(C,"pointerenter",A||B?IV(C,!0,A):void 0,{passive:!A}),Im(C,"pointerleave",Q||B?IV(C,!1,Q):void 0,{passive:!Q})})};function I1(){let A=(0,AL.useContext)(CD);if(null===A)return[!0,null];let{isPresent:Q,onExitComplete:B,register:C}=A,I=(0,AL.useId)();return(0,AL.useEffect)(()=>C(I),[]),!Q&&B?[!1,()=>B&&B(I)]:[!0]}function I4(A,Q){if(!Array.isArray(Q))return!1;let B=Q.length;if(B!==A.length)return!1;for(let C=0;CQ.indexOf(C)&&(B[C]=A[C]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols)for(var I=0,C=Object.getOwnPropertySymbols(A);IQ.indexOf(C[I])&&Object.prototype.propertyIsEnumerable.call(A,C[I])&&(B[C[I]]=A[C[I]]);return B}var I5=function(){},I9=function(){};let I6=(A,Q,B)=>Math.min(Math.max(B,A),Q);function I7(A,Q){return A*Math.sqrt(1-Q*Q)}let EA=["duration","bounce"],EQ=["stiffness","damping","mass"];function EB(A,Q){return Q.some(Q=>void 0!==A[Q])}function EC(A){var{from:Q=0,to:B=1,restSpeed:C=2,restDelta:I}=A,E=I2(A,["from","to","restSpeed","restDelta"]);let g={done:!1,value:Q},{stiffness:w,damping:D,mass:M,velocity:c,duration:s,isResolvedFromDuration:y}=function(A){let Q=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},A);if(!EB(A,EQ)&&EB(A,EA)){let B=function({duration:A=800,bounce:Q=.25,velocity:B=0,mass:C=1}){let I,E;I5(A<=1e4,"Spring duration must be 10 seconds or less");let g=1-Q;g=I6(.05,1,g),A=I6(.01,10,A/1e3),g<1?(I=Q=>{let C=Q*g,I=C*A;return .001-(C-B)/I7(Q,g)*Math.exp(-I)},E=Q=>{let C=Q*g*A,E=Math.pow(g,2)*Math.pow(Q,2)*A,w=Math.exp(-C),D=I7(Math.pow(Q,2),g);return(C*B+B-E)*w*(-I(Q)+.001>0?-1:1)/D}):(I=Q=>-.001+Math.exp(-Q*A)*((Q-B)*A+1),E=Q=>A*A*(B-Q)*Math.exp(-Q*A));let w=function(A,Q,B){let C=B;for(let B=1;B<12;B++)C-=A(C)/Q(C);return C}(I,E,5/A);if(A*=1e3,isNaN(w))return{stiffness:100,damping:10,duration:A};{let Q=Math.pow(w,2)*C;return{stiffness:Q,damping:2*g*Math.sqrt(C*Q),duration:A}}}(A);(Q=Object.assign(Object.assign(Object.assign({},Q),B),{velocity:0,mass:1})).isResolvedFromDuration=!0}return Q}(E),h=EI,k=EI;function n(){let A=c?-(c/1e3):0,C=B-Q,E=D/(2*Math.sqrt(w*M)),g=Math.sqrt(w/M)/1e3;if(void 0===I&&(I=Math.min(Math.abs(B-Q)/100,.4)),E<1){let Q=I7(g,E);h=I=>B-Math.exp(-E*g*I)*((A+E*g*C)/Q*Math.sin(Q*I)+C*Math.cos(Q*I)),k=B=>{let I=Math.exp(-E*g*B);return E*g*I*(Math.sin(Q*B)*(A+E*g*C)/Q+C*Math.cos(Q*B))-I*(Math.cos(Q*B)*(A+E*g*C)-Q*C*Math.sin(Q*B))}}else if(1===E)h=Q=>B-Math.exp(-g*Q)*(C+(A+g*C)*Q);else{let Q=g*Math.sqrt(E*E-1);h=I=>{let w=Math.exp(-E*g*I),D=Math.min(Q*I,300);return B-w*((A+E*g*C)*Math.sinh(D)+Q*C*Math.cosh(D))/Q}}}return n(),{next:A=>{let Q=h(A);if(y)g.done=A>=s;else{let E=1e3*k(A),w=Math.abs(B-Q)<=I;g.done=Math.abs(E)<=C&&w}return g.value=g.done?B:Q,g},flipTarget:()=>{c=-c,[Q,B]=[B,Q],n()}}}EC.needsInterpolation=(A,Q)=>"string"==typeof A||"string"==typeof Q;let EI=A=>0,EE=(A,Q,B)=>{let C=Q-A;return 0===C?1:(B-A)/C},Eg=(A,Q,B)=>-B*A+B*Q+A,Ew=(A,Q)=>B=>!!(C$(B)&&C_.test(B)&&B.startsWith(A)||Q&&Object.prototype.hasOwnProperty.call(B,Q)),ED=(A,Q,B)=>C=>{if(!C$(C))return C;let[I,E,g,w]=C.match(Cq);return{[A]:parseFloat(I),[Q]:parseFloat(E),[B]:parseFloat(g),alpha:void 0!==w?parseFloat(w):1}},EM=CW(0,255),Ec=Object.assign(Object.assign({},C9),{transform:A=>Math.round(EM(A))}),Es={test:Ew("rgb","red"),parse:ED("red","green","blue"),transform:({red:A,green:Q,blue:B,alpha:C=1})=>"rgba("+Ec.transform(A)+", "+Ec.transform(Q)+", "+Ec.transform(B)+", "+CP(C6.transform(C))+")"},Ey={test:Ew("#"),parse:function(A){let Q="",B="",C="",I="";return A.length>5?(Q=A.substr(1,2),B=A.substr(3,2),C=A.substr(5,2),I=A.substr(7,2)):(Q=A.substr(1,1),B=A.substr(2,1),C=A.substr(3,1),I=A.substr(4,1),Q+=Q,B+=B,C+=C,I+=I),{red:parseInt(Q,16),green:parseInt(B,16),blue:parseInt(C,16),alpha:I?parseInt(I,16)/255:1}},transform:Es.transform},Eh={test:Ew("hsl","hue"),parse:ED("hue","saturation","lightness"),transform:({hue:A,saturation:Q,lightness:B,alpha:C=1})=>"hsla("+Math.round(A)+", "+C3.transform(CP(Q))+", "+C3.transform(CP(B))+", "+CP(C6.transform(C))+")"};function Ek(A,Q,B){return(B<0&&(B+=1),B>1&&(B-=1),B<1/6)?A+(Q-A)*6*B:B<.5?Q:B<2/3?A+(Q-A)*(2/3-B)*6:A}function En({hue:A,saturation:Q,lightness:B,alpha:C}){A/=360,B/=100;let I=0,E=0,g=0;if(Q/=100){let C=B<.5?B*(1+Q):B+Q-B*Q,w=2*B-C;I=Ek(w,C,A+1/3),E=Ek(w,C,A),g=Ek(w,C,A-1/3)}else I=E=g=B;return{red:Math.round(255*I),green:Math.round(255*E),blue:Math.round(255*g),alpha:C}}let EK=(A,Q,B)=>{let C=A*A;return Math.sqrt(Math.max(0,B*(Q*Q-C)+C))},Et=[Ey,Es,Eh],EL=A=>Et.find(Q=>Q.test(A)),EU=A=>`'${A}' is not an animatable color. Use the equivalent color code instead.`,Ei=(A,Q)=>{let B=EL(A),C=EL(Q);I9(!!B,EU(A)),I9(!!C,EU(Q));let I=B.parse(A),E=C.parse(Q);B===Eh&&(I=En(I),B=Es),C===Eh&&(E=En(E),C=Es);let g=Object.assign({},I);return A=>{for(let Q in g)"alpha"!==Q&&(g[Q]=EK(I[Q],E[Q],A));return g.alpha=Eg(I.alpha,E.alpha,A),B.transform(g)}},EG={test:A=>Es.test(A)||Ey.test(A)||Eh.test(A),parse:A=>Es.test(A)?Es.parse(A):Eh.test(A)?Eh.parse(A):Ey.parse(A),transform:A=>C$(A)?A:A.hasOwnProperty("red")?Es.transform(A):Eh.transform(A)},Ep="${c}",Er="${n}";function EN(A){"number"==typeof A&&(A=`${A}`);let Q=[],B=0,C=A.match(CX);C&&(B=C.length,A=A.replace(CX,Ep),Q.push(...C.map(EG.parse)));let I=A.match(Cq);return I&&(A=A.replace(Cq,Er),Q.push(...I.map(C9.parse))),{values:Q,numColors:B,tokenised:A}}function Ea(A){return EN(A).values}function Eo(A){let{values:Q,numColors:B,tokenised:C}=EN(A),I=Q.length;return A=>{let Q=C;for(let C=0;C"number"==typeof A?0:A,EJ={test:function(A){var Q,B,C,I;return isNaN(A)&&C$(A)&&(null!==(B=null===(Q=A.match(Cq))||void 0===Q?void 0:Q.length)&&void 0!==B?B:0)+(null!==(I=null===(C=A.match(CX))||void 0===C?void 0:C.length)&&void 0!==I?I:0)>0},parse:Ea,createTransformer:Eo,getAnimatableNone:function(A){let Q=Ea(A);return Eo(A)(Q.map(Ee))}},EF=A=>"number"==typeof A;function ES(A,Q){return EF(A)?B=>Eg(A,Q,B):EG.test(A)?Ei(A,Q):Ef(A,Q)}let El=(A,Q)=>{let B=[...A],C=B.length,I=A.map((A,B)=>ES(A,Q[B]));return A=>{for(let Q=0;Q{let B=Object.assign(Object.assign({},A),Q),C={};for(let I in B)void 0!==A[I]&&void 0!==Q[I]&&(C[I]=ES(A[I],Q[I]));return A=>{for(let Q in C)B[Q]=C[Q](A);return B}};function EY(A){let Q=EJ.parse(A),B=Q.length,C=0,I=0,E=0;for(let A=0;A{let B=EJ.createTransformer(Q),C=EY(A),I=EY(Q);return C.numHSL===I.numHSL&&C.numRGB===I.numRGB&&C.numNumbers>=I.numNumbers?IP(El(C.parsed,I.parsed),B):(I5(!0,`Complex values '${A}' and '${Q}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),B=>`${B>0?Q:A}`)},Ed=(A,Q)=>B=>Eg(A,Q,B);function Eu(A,Q,{clamp:B=!0,ease:C,mixer:I}={}){let E=A.length;I9(E===Q.length,"Both input and output ranges must be the same length"),I9(!C||!Array.isArray(C)||C.length===E-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),A[0]>A[E-1]&&(A=[].concat(A),Q=[].concat(Q),A.reverse(),Q.reverse());let g=function(A,Q,B){var C;let I=[],E=B||("number"==typeof(C=A[0])?Ed:"string"==typeof C?EG.test(C)?Ei:Ef:Array.isArray(C)?El:"object"==typeof C?EH:void 0),g=A.length-1;for(let B=0;BB(EE(A,Q,C))}(A,g):function(A,Q){let B=A.length,C=B-1;return I=>{let E=0,g=!1;if(I<=A[0]?g=!0:I>=A[C]&&(E=C-1,g=!0),!g){let Q=1;for(;QI)&&Q!==C;Q++);E=Q-1}let w=EE(A[E],A[E+1],I);return Q[E](w)}}(A,g);return B?Q=>w(I6(A[0],A[E-1],Q)):w}let ER=A=>Q=>1-A(1-Q),Ej=A=>Q=>Q<=.5?A(2*Q)/2:(2-A(2*(1-Q)))/2,Eb=A=>Q=>Q*Q*((A+1)*Q-A),Em=4/11,ET=8/11,EZ=A=>A,EO=A=>Math.pow(A,2),Ev=ER(EO),Ex=Ej(EO),EV=A=>1-Math.sin(Math.acos(A)),Ez=ER(EV),EW=Ej(Ez),EP=Eb(1.525),Eq=ER(EP),EX=Ej(EP),E_=(A=>{let Q=Eb(1.525);return A=>(A*=2)<1?.5*Q(A):.5*(2-Math.pow(2,-10*(A-1)))})(0),E$=4356/361,E0=35442/1805,E8=16061/1805,E3=A=>{if(1===A||0===A)return A;let Q=A*A;return A0!==B?B/(Q-1):0)}(g)).map(A=>A*I);function D(){return Eu(w,g,{ease:Array.isArray(B)?B:g.map(()=>B||Ex).splice(0,g.length-1)})}let M=D();return{next:A=>(E.value=M(A),E.done=A>=I,E),flipTarget:()=>{g.reverse(),M=D()}}}let E2={keyframes:E4,spring:EC,decay:function({velocity:A=0,from:Q=0,power:B=.8,timeConstant:C=350,restDelta:I=.5,modifyTarget:E}){let g={done:!1,value:Q},w=B*A,D=Q+w,M=void 0===E?D:E(D);return M!==D&&(w=M-Q),{next:A=>{let Q=-w*Math.exp(-A/C);return g.done=!(Q>I||Q<-I),g.value=g.done?M:M+Q,g},flipTarget:()=>{}}}};function E5(A,Q,B=0){return A-Q-B}let E9=A=>{let Q=({delta:Q})=>A(Q);return{start:()=>B6.update(Q,!0),stop:()=>B7.update(Q)}};function E6(A){let Q,B,C;var I,{from:E,autoplay:g=!0,driver:w=E9,elapsed:D=0,repeat:M=0,repeatType:c="loop",repeatDelay:s=0,onPlay:y,onStop:h,onComplete:k,onRepeat:n,onUpdate:K}=A,t=I2(A,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=t,U=0,i=t.duration,G=!1,p=!0,r=function(A){if(Array.isArray(A.to))return E4;if(E2[A.type])return E2[A.type];let Q=new Set(Object.keys(A));if(Q.has("ease")||Q.has("duration")&&!Q.has("dampingRatio"));else if(Q.has("dampingRatio")||Q.has("stiffness")||Q.has("mass")||Q.has("damping")||Q.has("restSpeed")||Q.has("restDelta"))return EC;return E4}(t);(null===(I=r.needsInterpolation)||void 0===I?void 0:I.call(r,E,L))&&(C=Eu([0,100],[E,L],{clamp:!1}),E=0,L=100);let N=r(Object.assign(Object.assign({},t),{from:E,to:L}));return g&&(null==y||y(),(Q=w(function(A){if(p||(A=-A),D+=A,!G){let A=N.next(Math.max(0,D));B=A.value,C&&(B=C(B)),G=p?A.done:D<=0}if(null==K||K(B),G){if(0===U&&(null!=i||(i=D)),U=E+s:I<=-s)&&(U++,"reverse"===c?D=function(A,Q,B=0,C=!0){return C?E5(Q+-A,Q,B):Q-(A-Q)+B}(D,i,s,p=U%2==0):(D=E5(D,i,s),"mirror"===c&&N.flipTarget()),G=!1,n&&n())}else Q.stop(),k&&k()}})).start()),{stop:()=>{null==h||h(),Q.stop()}}}let E7=A=>1e3*A,gA=(A,Q)=>1-3*Q+3*A,gQ=(A,Q)=>3*Q-6*A,gB=A=>3*A,gC=(A,Q,B)=>((gA(Q,B)*A+gQ(Q,B))*A+gB(Q))*A,gI=(A,Q,B)=>3*gA(Q,B)*A*A+2*gQ(Q,B)*A+gB(Q),gE={linear:EZ,easeIn:EO,easeInOut:Ex,easeOut:Ev,circIn:EV,circInOut:EW,circOut:Ez,backIn:EP,backInOut:EX,backOut:Eq,anticipate:E_,bounceIn:E1,bounceInOut:A=>A<.5?.5*(1-E3(1-2*A)):.5*E3(2*A-1)+.5,bounceOut:E3},gg=A=>{if(Array.isArray(A)){I9(4===A.length,"Cubic bezier arrays must contain four numerical values.");let[Q,B,C,I]=A;return function(A,Q,B,C){if(A===Q&&B===C)return EZ;let I=new Float32Array(11);for(let Q=0;Q<11;++Q)I[Q]=gC(.1*Q,A,B);return E=>0===E||1===E?E:gC(function(Q){let C=0,E=1;for(;10!==E&&I[E]<=Q;++E)C+=.1;let g=C+(Q-I[--E])/(I[E+1]-I[E])*.1,w=gI(g,A,B);return w>=.001?function(A,Q,B,C){for(let I=0;I<8;++I){let I=gI(Q,B,C);if(0===I)break;let E=gC(Q,B,C)-A;Q-=E/I}return Q}(Q,g,A,B):0===w?g:function(A,Q,B,C,I){let E,g;let w=0;do(E=gC(g=Q+(B-Q)/2,C,I)-A)>0?B=g:Q=g;while(Math.abs(E)>1e-7&&++w<10);return g}(Q,C,C+.1,A,B)}(E),Q,C)}(Q,B,C,I)}return"string"==typeof A?(I9(void 0!==gE[A],`Invalid easing type '${A}'`),gE[A]):A},gw=A=>Array.isArray(A)&&"number"!=typeof A[0],gD=(A,Q)=>"zIndex"!==A&&!!("number"==typeof Q||Array.isArray(Q)||"string"==typeof Q&&EJ.test(Q)&&!Q.startsWith("url(")),gM=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),gc=A=>({type:"spring",stiffness:550,damping:0===A?2*Math.sqrt(550):30,restSpeed:10}),gs=()=>({type:"keyframes",ease:"linear",duration:.3}),gy=A=>({type:"keyframes",duration:.8,values:A}),gh={x:gM,y:gM,z:gM,rotate:gM,rotateX:gM,rotateY:gM,rotateZ:gM,scaleX:gc,scaleY:gc,scale:gc,opacity:gs,backgroundColor:gs,color:gs,default:gc},gk=(A,Q)=>{let B;return B=Ii(Q)?gy:gh[A]||gh.default,{to:Q,...B(Q)}},gn=new Set(["brightness","contrast","saturate","opacity"]);function gK(A){let[Q,B]=A.slice(0,-1).split("(");if("drop-shadow"===Q)return A;let[C]=B.match(Cq)||[];if(!C)return A;let I=B.replace(C,""),E=gn.has(Q)?1:0;return C!==B&&(E*=100),Q+"("+E+I+")"}let gt=/([a-z-]*)\(.*?\)/g,gL=Object.assign(Object.assign({},EJ),{getAnimatableNone:A=>{let Q=A.match(gt);return Q?Q.map(gK).join(" "):A}}),gU={...IQ,color:EG,backgroundColor:EG,outlineColor:EG,fill:EG,stroke:EG,borderColor:EG,borderTopColor:EG,borderRightColor:EG,borderBottomColor:EG,borderLeftColor:EG,filter:gL,WebkitFilter:gL},gi=A=>gU[A];function gG(A,Q){var B;let C=gi(A);return C!==gL&&(C=EJ),null===(B=C.getAnimatableNone)||void 0===B?void 0:B.call(C,Q)}let gp={current:!1};function gr(A,Q){let B=performance.now(),C=({timestamp:I})=>{let E=I-B;E>=Q&&(B7.read(C),A(E-Q))};return B6.read(C,!0),()=>B7.read(C)}let gN=!1;function ga(A){return 0===A||"string"==typeof A&&0===parseFloat(A)&&-1===A.indexOf(" ")}function go(A){return"number"==typeof A?0:gG("",A)}function ge(A,Q){return A[Q]||A.default||A}function gJ(A,Q,B,C={}){return gp.current&&(C={type:!1}),Q.start(I=>{var E,g,w;let D,M;let c=function(A,Q,B,C,I){let E=ge(C,A)||{},g=void 0!==E.from?E.from:Q.get(),w=gD(A,B);"none"===g&&w&&"string"==typeof B?g=gG(A,B):ga(g)&&"string"==typeof B?g=go(B):!Array.isArray(B)&&ga(B)&&"string"==typeof g&&(B=go(g));let D=gD(A,g);return I5(D===w,`You are trying to animate ${A} from "${g}" to "${B}". ${g} is not an animatable value - to enable this animation set ${g} to a value animatable to ${B} via the \`style\` property.`),D&&w&&!1!==E.type?function(){var C;let w={from:g,to:B,velocity:Q.getVelocity(),onComplete:I,onUpdate:A=>Q.set(A)};return"inertia"===E.type||"decay"===E.type?function({from:A=0,velocity:Q=0,min:B,max:C,power:I=.8,timeConstant:E=750,bounceStiffness:g=500,bounceDamping:w=10,restDelta:D=1,modifyTarget:M,driver:c,onUpdate:s,onComplete:y,onStop:h}){let k;function n(A){return void 0!==B&&AC}function K(A){return void 0===B?C:void 0===C?B:Math.abs(B-A){var B;null==s||s(Q),null===(B=A.onUpdate)||void 0===B||B.call(A,Q)},onComplete:y,onStop:h}))}function L(A){t(Object.assign({type:"spring",stiffness:g,damping:w,restDelta:D},A))}if(n(A))L({from:A,velocity:Q,to:K(A)});else{let C,g,w=I*Q+A;void 0!==M&&(w=M(w));let c=K(w),s=c===B?-1:1;t({type:"decay",from:A,velocity:Q,timeConstant:E,power:I,restDelta:D,modifyTarget:M,onUpdate:n(w)?A=>{var B,I;C=g,g=A,B=A-C,Q=(I=CI().delta)?1e3/I*B:0,(1===s&&A>c||-1===s&&Anull==k?void 0:k.stop()}}({...w,...E}):E6({...(C=E,Array.isArray(w.to)&&void 0===C.duration&&(C.duration=.8),Array.isArray(w.to)&&null===w.to[0]&&(w.to=[...w.to],w.to[0]=w.from),!function({when:A,delay:Q,delayChildren:B,staggerChildren:C,staggerDirection:I,repeat:E,repeatType:g,repeatDelay:w,from:D,...M}){return!!Object.keys(M).length}(C)&&(C={...C,...gk(A,w.to)}),{...w,...function({ease:A,times:Q,yoyo:B,flip:C,loop:I,...E}){let g={...E};return Q&&(g.offset=Q),E.duration&&(g.duration=E7(E.duration)),E.repeatDelay&&(g.repeatDelay=E7(E.repeatDelay)),A&&(g.ease=gw(A)?A.map(gg):gg(A)),"tween"===E.type&&(g.type="keyframes"),(B||I||C)&&(I5(!gN,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),gN=!0,B?g.repeatType="reverse":I?g.repeatType="loop":C&&(g.repeatType="mirror"),g.repeat=I||B||C||E.repeat),"spring"!==E.type&&(g.type="keyframes"),g}(C)}),onUpdate:A=>{w.onUpdate(A),E.onUpdate&&E.onUpdate(A)},onComplete:()=>{w.onComplete(),E.onComplete&&E.onComplete()}})}:function(){let A=Ip(B);return Q.set(A),I(),E.onUpdate&&E.onUpdate(A),E.onComplete&&E.onComplete(),{stop:()=>{}}}}(A,Q,B,C,I),s=null!==(w=null!==(g=(ge(E=C,A)||{}).delay)&&void 0!==g?g:E.delay)&&void 0!==w?w:0,y=()=>D=c();return s?M=gr(y,E7(s)):y(),()=>{M&&M(),D&&D.stop()}})}let gF=A=>/^\-?\d*\.?\d+$/.test(A),gS=A=>/^0[^.\s]+$/.test(A);function gl(A,Q){-1===A.indexOf(Q)&&A.push(Q)}function gH(A,Q){let B=A.indexOf(Q);B>-1&&A.splice(B,1)}class gY{constructor(){this.subscriptions=[]}add(A){return gl(this.subscriptions,A),()=>gH(this.subscriptions,A)}notify(A,Q,B){let C=this.subscriptions.length;if(C){if(1===C)this.subscriptions[0](A,Q,B);else for(let I=0;I!isNaN(parseFloat(A));class gd{constructor(A){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new gY,this.velocityUpdateSubscribers=new gY,this.renderSubscribers=new gY,this.canTrackVelocity=!1,this.updateAndNotify=(A,Q=!0)=>{this.prev=this.current,this.current=A;let{delta:B,timestamp:C}=CI();this.lastUpdated!==C&&(this.timeDelta=B,this.lastUpdated=C,B6.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),Q&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>B6.postRender(this.velocityCheck),this.velocityCheck=({timestamp:A})=>{A!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=A,this.canTrackVelocity=gf(this.current)}onChange(A){return this.updateSubscribers.add(A)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(A){return A(this.get()),this.renderSubscribers.add(A)}attach(A){this.passiveEffect=A}set(A,Q=!0){Q&&this.passiveEffect?this.passiveEffect(A,this.updateAndNotify):this.updateAndNotify(A,Q)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var A,Q;return this.canTrackVelocity?(A=parseFloat(this.current)-parseFloat(this.prev),(Q=this.timeDelta)?1e3/Q*A:0):0}start(A){return this.stop(),new Promise(Q=>{this.hasAnimated=!0,this.stopAnimation=A(Q)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function gu(A){return new gd(A)}let gR=A=>Q=>Q.test(A),gj=[C9,C1,C3,C8,C2,C4,{test:A=>"auto"===A,parse:A=>A}],gb=A=>gj.find(gR(A)),gm=[...gj,EG,EJ],gT=A=>gm.find(gR(A));function gZ(A,Q,B){let C=A.getProps();return IU(C,Q,void 0!==B?B:C.custom,function(A){let Q={};return A.values.forEach((A,B)=>Q[B]=A.get()),Q}(A),function(A){let Q={};return A.values.forEach((A,B)=>Q[B]=A.getVelocity()),Q}(A))}function gO(A){return!!(CO(A)&&A.add)}function gv(A,Q,B={}){var C;let I=gZ(A,Q,B.custom),{transition:E=A.getDefaultTransition()||{}}=I||{};B.transitionOverride&&(E=B.transitionOverride);let g=I?()=>gx(A,I,B):()=>Promise.resolve(),w=(null===(C=A.variantChildren)||void 0===C?void 0:C.size)?(C=0)=>{let{delayChildren:I=0,staggerChildren:g,staggerDirection:w}=E;return function(A,Q,B=0,C=0,I=1,E){let g=[],w=(A.variantChildren.size-1)*C,D=1===I?(A=0)=>A*C:(A=0)=>w-A*C;return Array.from(A.variantChildren).sort(gV).forEach((A,C)=>{g.push(gv(A,Q,{...E,delay:B+D(C)}).then(()=>A.notify("AnimationComplete",Q)))}),Promise.all(g)}(A,Q,I+C,g,w,B)}:()=>Promise.resolve(),{when:D}=E;if(!D)return Promise.all([g(),w(B.delay)]);{let[A,Q]="beforeChildren"===D?[g,w]:[w,g];return A().then(Q)}}function gx(A,Q,{delay:B=0,transitionOverride:C,type:I}={}){var E;let{transition:g=A.getDefaultTransition(),transitionEnd:w,...D}=A.makeTargetAnimatable(Q),M=A.getValue("willChange");C&&(g=C);let c=[],s=I&&(null===(E=A.animationState)||void 0===E?void 0:E.getState()[I]);for(let Q in D){let C=A.getValue(Q),I=D[Q];if(!C||void 0===I||s&&function({protectedKeys:A,needsAnimating:Q},B){let C=A.hasOwnProperty(B)&&!0!==Q[B];return Q[B]=!1,C}(s,Q))continue;let E={delay:B,...g};A.shouldReduceMotion&&CT.has(Q)&&(E={...E,type:!1,delay:0});let w=gJ(Q,C,I,E);gO(M)&&(M.add(Q),w=w.then(()=>M.remove(Q))),c.push(w)}return Promise.all(c).then(()=>{w&&function(A,Q){let B=gZ(A,Q),{transitionEnd:C={},transition:I={},...E}=B?A.makeTargetAnimatable(B,!1):{};for(let Q in E={...E,...C}){let B=Ip(E[Q]);A.hasValue(Q)?A.getValue(Q).set(B):A.addValue(Q,gu(B))}}(A,w)})}function gV(A,Q){return A.sortNodePosition(Q)}let gz=[Z.Animate,Z.InView,Z.Focus,Z.Hover,Z.Tap,Z.Drag,Z.Exit],gW=[...gz].reverse(),gP=gz.length;function gq(A=!1){return{isActive:A,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let gX={animation:I8(({visualElement:A,animate:Q})=>{A.animationState||(A.animationState=function(A){let Q=Q=>Promise.all(Q.map(({animation:Q,options:B})=>(function(A,Q,B={}){let C;if(A.notify("AnimationStart",Q),Array.isArray(Q))C=Promise.all(Q.map(Q=>gv(A,Q,B)));else if("string"==typeof Q)C=gv(A,Q,B);else{let I="function"==typeof Q?gZ(A,Q,B.custom):Q;C=gx(A,I,B)}return C.then(()=>A.notify("AnimationComplete",Q))})(A,Q,B))),B={[Z.Animate]:gq(!0),[Z.InView]:gq(),[Z.Hover]:gq(),[Z.Tap]:gq(),[Z.Drag]:gq(),[Z.Focus]:gq(),[Z.Exit]:gq()},C=!0,I=(Q,B)=>{let C=gZ(A,B);if(C){let{transition:A,transitionEnd:B,...I}=C;Q={...Q,...I,...B}}return Q};function E(E,g){var w,D;let M=A.getProps(),c=A.getVariantContext(!0)||{},s=[],y=new Set,h={},k=1/0;for(let Q=0;Qk&&L,r=Array.isArray(t)?t:[t],N=r.reduce(I,{});!1===U&&(N={});let{prevResolvedValues:a={}}=K,o={...a,...N},e=A=>{p=!0,y.delete(A),K.needsAnimating[A]=!0};for(let A in o){let Q=N[A],B=a[A];h.hasOwnProperty(A)||(Q!==B?Ii(Q)&&Ii(B)?!I4(Q,B)||G?e(A):K.protectedKeys[A]=!0:void 0!==Q?e(A):y.add(A):void 0!==Q&&y.has(A)?e(A):K.protectedKeys[A]=!0)}K.prevProp=t,K.prevResolvedValues=N,K.isActive&&(h={...h,...N}),C&&A.blockInitialAnimation&&(p=!1),p&&!i&&s.push(...r.map(A=>({animation:A,options:{type:n,...E}})))}if(y.size){let Q={};y.forEach(B=>{let C=A.getBaseTarget(B);void 0!==C&&(Q[B]=C)}),s.push({animation:Q})}let n=!!s.length;return C&&!1===M.initial&&!A.manuallyAnimateOnMount&&(n=!1),C=!1,n?Q(s):Promise.resolve()}return{animateChanges:E,setActive:function(Q,C,I){var g;if(B[Q].isActive===C)return Promise.resolve();null===(g=A.variantChildren)||void 0===g||g.forEach(A=>{var B;return null===(B=A.animationState)||void 0===B?void 0:B.setActive(Q,C)}),B[Q].isActive=C;let w=E(I,Q);for(let A in B)B[A].protectedKeys={};return w},setAnimateFunction:function(B){Q=B(A)},getState:()=>B}}(A)),Ca(Q)&&(0,AL.useEffect)(()=>Q.subscribe(A),[Q])}),exit:I8(A=>{let{custom:Q,visualElement:B}=A,[C,I]=I1(),E=(0,AL.useContext)(CD);(0,AL.useEffect)(()=>{B.isPresent=C;let A=B.animationState&&B.animationState.setActive(Z.Exit,!C,{custom:E&&E.custom||Q});A&&!C&&A.then(I)},[C])})},g_=A=>A.hasOwnProperty("x")&&A.hasOwnProperty("y"),g$=A=>g_(A)&&A.hasOwnProperty("z"),g0=(A,Q)=>Math.abs(A-Q);function g8(A,Q){return EF(A)&&EF(Q)?g0(A,Q):g_(A)&&g_(Q)?Math.sqrt(Math.pow(g0(A.x,Q.x),2)+Math.pow(g0(A.y,Q.y),2)+Math.pow(g$(A)&&g$(Q)?g0(A.z,Q.z):0,2)):void 0}class g3{constructor(A,Q,{transformPagePoint:B}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let A=g2(this.lastMoveEventInfo,this.history),Q=null!==this.startEvent,B=g8(A.offset,{x:0,y:0})>=3;if(!Q&&!B)return;let{point:C}=A,{timestamp:I}=CI();this.history.push({...C,timestamp:I});let{onStart:E,onMove:g}=this.handlers;Q||(E&&E(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,A)},this.handlePointerMove=(A,Q)=>{if(this.lastMoveEvent=A,this.lastMoveEventInfo=g1(Q,this.transformPagePoint),IF(A)&&0===A.buttons){this.handlePointerUp(A,Q);return}B6.update(this.updatePoint,!0)},this.handlePointerUp=(A,Q)=>{this.end();let{onEnd:B,onSessionEnd:C}=this.handlers,I=g2(g1(Q,this.transformPagePoint),this.history);this.startEvent&&B&&B(A,I),C&&C(A,I)},A.touches&&A.touches.length>1)return;this.handlers=Q,this.transformPagePoint=B;let C=g1(Il(A),this.transformPagePoint),{point:I}=C,{timestamp:E}=CI();this.history=[{...I,timestamp:E}];let{onSessionStart:g}=Q;g&&g(A,g2(C,this.history)),this.removeListeners=IP(Ib(window,"pointermove",this.handlePointerMove),Ib(window,"pointerup",this.handlePointerUp),Ib(window,"pointercancel",this.handlePointerUp))}updateHandlers(A){this.handlers=A}end(){this.removeListeners&&this.removeListeners(),B7.update(this.updatePoint)}}function g1(A,Q){return Q?{point:Q(A.point)}:A}function g4(A,Q){return{x:A.x-Q.x,y:A.y-Q.y}}function g2({point:A},Q){return{point:A,delta:g4(A,g5(Q)),offset:g4(A,Q[0]),velocity:function(A,Q){if(A.length<2)return{x:0,y:0};let B=A.length-1,C=null,I=g5(A);for(;B>=0&&(C=A[B],!(I.timestamp-C.timestamp>E7(.1)));)B--;if(!C)return{x:0,y:0};let E=(I.timestamp-C.timestamp)/1e3;if(0===E)return{x:0,y:0};let g={x:(I.x-C.x)/E,y:(I.y-C.y)/E};return g.x===1/0&&(g.x=0),g.y===1/0&&(g.y=0),g}(Q,0)}}function g5(A){return A[A.length-1]}function g9(A){return A.max-A.min}function g6(A,Q=0,B=.01){return g8(A,Q)({translate:0,scale:1,origin:0,originPoint:0}),wM=()=>({x:wD(),y:wD()}),wc=()=>({min:0,max:0}),ws=()=>({x:wc(),y:wc()});function wy(A){return[A("x"),A("y")]}function wh({top:A,left:Q,right:B,bottom:C}){return{x:{min:Q,max:B},y:{min:A,max:C}}}function wk(A){return void 0===A||1===A}function wn({scale:A,scaleX:Q,scaleY:B}){return!wk(A)||!wk(Q)||!wk(B)}function wK(A){return wn(A)||wt(A)||A.z||A.rotate||A.rotateX||A.rotateY}function wt(A){var Q,B;return(Q=A.x)&&"0%"!==Q||(B=A.y)&&"0%"!==B}function wL(A,Q,B,C,I){return void 0!==I&&(A=C+I*(A-C)),C+B*(A-C)+Q}function wU(A,Q=0,B=1,C,I){A.min=wL(A.min,Q,B,C,I),A.max=wL(A.max,Q,B,C,I)}function wi(A,{x:Q,y:B}){wU(A.x,Q.translate,Q.scale,Q.originPoint),wU(A.y,B.translate,B.scale,B.originPoint)}function wG(A,Q){A.min=A.min+Q,A.max=A.max+Q}function wp(A,Q,[B,C,I]){let E=void 0!==Q[I]?Q[I]:.5,g=Eg(A.min,A.max,E);wU(A,Q[B],Q[C],g,Q.scale)}let wr=["x","scaleX","originX"],wN=["y","scaleY","originY"];function wa(A,Q){wp(A.x,Q,wr),wp(A.y,Q,wN)}function wo(A,Q){return wh(function(A,Q){if(!Q)return A;let B=Q({x:A.left,y:A.top}),C=Q({x:A.right,y:A.bottom});return{top:B.y,left:B.x,bottom:C.y,right:C.x}}(A.getBoundingClientRect(),Q))}let we=new WeakMap;class wJ{constructor(A){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ws(),this.visualElement=A}start(A,{snapToCursor:Q=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new g3(A,{onSessionStart:A=>{this.stopAnimation(),Q&&this.snapToCursor(Il(A,"page").point)},onStart:(A,Q)=>{var B;let{drag:C,dragPropagation:I,onDragStart:E}=this.getProps();(!C||I||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Iv(C),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wy(A=>{var Q,B;let C=this.getAxisMotionValue(A).get()||0;if(C3.test(C)){let I=null===(B=null===(Q=this.visualElement.projection)||void 0===Q?void 0:Q.layout)||void 0===B?void 0:B.actual[A];if(I){let A=g9(I);C=parseFloat(C)/100*A}}this.originPoint[A]=C}),null==E||E(A,Q),null===(B=this.visualElement.animationState)||void 0===B||B.setActive(Z.Drag,!0))},onMove:(A,Q)=>{let{dragPropagation:B,dragDirectionLock:C,onDirectionLock:I,onDrag:E}=this.getProps();if(!B&&!this.openGlobalLock)return;let{offset:g}=Q;if(C&&null===this.currentDirection){this.currentDirection=function(A,Q=10){let B=null;return Math.abs(A.y)>Q?B="y":Math.abs(A.x)>Q&&(B="x"),B}(g),null!==this.currentDirection&&(null==I||I(this.currentDirection));return}this.updateAxis("x",Q.point,g),this.updateAxis("y",Q.point,g),this.visualElement.render(),null==E||E(A,Q)},onSessionEnd:(A,Q)=>this.stop(A,Q)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(A,Q){let B=this.isDragging;if(this.cancel(),!B)return;let{velocity:C}=Q;this.startAnimation(C);let{onDragEnd:I}=this.getProps();null==I||I(A,Q)}cancel(){var A,Q;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(A=this.panSession)||void 0===A||A.end(),this.panSession=void 0;let{dragPropagation:B}=this.getProps();!B&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(Q=this.visualElement.animationState)||void 0===Q||Q.setActive(Z.Drag,!1)}updateAxis(A,Q,B){let{drag:C}=this.getProps();if(!B||!wF(A,C,this.currentDirection))return;let I=this.getAxisMotionValue(A),E=this.originPoint[A]+B[A];this.constraints&&this.constraints[A]&&(E=function(A,{min:Q,max:B},C){return void 0!==Q&&AB&&(A=C?Eg(B,A,C.max):Math.min(A,B)),A}(E,this.constraints[A],this.elastic[A])),I.set(E)}resolveConstraints(){let{dragConstraints:A,dragElastic:Q}=this.getProps(),{layout:B}=this.visualElement.projection||{},C=this.constraints;A&&Cr(A)?this.constraints||(this.constraints=this.resolveRefConstraints()):A&&B?this.constraints=function(A,{top:Q,left:B,bottom:C,right:I}){return{x:wI(A.x,B,I),y:wI(A.y,Q,C)}}(B.actual,A):this.constraints=!1,this.elastic=function(A=.35){return!1===A?A=0:!0===A&&(A=.35),{x:wg(A,"left","right"),y:wg(A,"top","bottom")}}(Q),C!==this.constraints&&B&&this.constraints&&!this.hasMutatedConstraints&&wy(A=>{this.getAxisMotionValue(A)&&(this.constraints[A]=function(A,Q){let B={};return void 0!==Q.min&&(B.min=Q.min-A.min),void 0!==Q.max&&(B.max=Q.max-A.min),B}(B.actual[A],this.constraints[A]))})}resolveRefConstraints(){var A;let{dragConstraints:Q,onMeasureDragConstraints:B}=this.getProps();if(!Q||!Cr(Q))return!1;let C=Q.current;I9(null!==C,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:I}=this.visualElement;if(!I||!I.layout)return!1;let E=function(A,Q,B){let C=wo(A,B),{scroll:I}=Q;return I&&(wG(C.x,I.x),wG(C.y,I.y)),C}(C,I.root,this.visualElement.getTransformPagePoint()),g={x:wE((A=I.layout.actual).x,E.x),y:wE(A.y,E.y)};if(B){let A=B(function({x:A,y:Q}){return{top:Q.min,right:A.max,bottom:Q.max,left:A.min}}(g));this.hasMutatedConstraints=!!A,A&&(g=wh(A))}return g}startAnimation(A){let{drag:Q,dragMomentum:B,dragElastic:C,dragTransition:I,dragSnapToOrigin:E,onDragTransitionEnd:g}=this.getProps(),w=this.constraints||{};return Promise.all(wy(g=>{var D;if(!wF(g,Q,this.currentDirection))return;let M=null!==(D=null==w?void 0:w[g])&&void 0!==D?D:{};E&&(M={min:0,max:0});let c={type:"inertia",velocity:B?A[g]:0,bounceStiffness:C?200:1e6,bounceDamping:C?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...I,...M};return this.startAxisValueAnimation(g,c)})).then(g)}startAxisValueAnimation(A,Q){let B=this.getAxisMotionValue(A);return gJ(A,B,0,Q)}stopAnimation(){wy(A=>this.getAxisMotionValue(A).stop())}getAxisMotionValue(A){var Q,B;let C="_drag"+A.toUpperCase();return this.visualElement.getProps()[C]||this.visualElement.getValue(A,null!==(B=null===(Q=this.visualElement.getProps().initial)||void 0===Q?void 0:Q[A])&&void 0!==B?B:0)}snapToCursor(A){wy(Q=>{let{drag:B}=this.getProps();if(!wF(Q,B,this.currentDirection))return;let{projection:C}=this.visualElement,I=this.getAxisMotionValue(Q);if(C&&C.layout){let{min:B,max:E}=C.layout.actual[Q];I.set(A[Q]-Eg(B,E,.5))}})}scalePositionWithinConstraints(){var A;if(!this.visualElement.current)return;let{drag:Q,dragConstraints:B}=this.getProps(),{projection:C}=this.visualElement;if(!Cr(B)||!C||!this.constraints)return;this.stopAnimation();let I={x:0,y:0};wy(A=>{let Q=this.getAxisMotionValue(A);if(Q){let B=Q.get();I[A]=function(A,Q){let B=.5,C=g9(A),I=g9(Q);return I>C?B=EE(Q.min,Q.max-C,A.min):C>I&&(B=EE(A.min,A.max-I,Q.min)),I6(0,1,B)}({min:B,max:B},this.constraints[A])}});let{transformTemplate:E}=this.visualElement.getProps();this.visualElement.current.style.transform=E?E({},""):"none",null===(A=C.root)||void 0===A||A.updateScroll(),C.updateLayout(),this.resolveConstraints(),wy(A=>{if(!wF(A,Q,null))return;let B=this.getAxisMotionValue(A),{min:C,max:E}=this.constraints[A];B.set(Eg(C,E,I[A]))})}addListeners(){var A;if(!this.visualElement.current)return;we.set(this.visualElement,this);let Q=Ib(this.visualElement.current,"pointerdown",A=>{let{drag:Q,dragListener:B=!0}=this.getProps();Q&&B&&this.start(A)}),B=()=>{let{dragConstraints:A}=this.getProps();Cr(A)&&(this.constraints=this.resolveRefConstraints())},{projection:C}=this.visualElement,I=C.addEventListener("measure",B);C&&!C.layout&&(null===(A=C.root)||void 0===A||A.updateScroll(),C.updateLayout()),B();let E=Ie(window,"resize",()=>this.scalePositionWithinConstraints()),g=C.addEventListener("didUpdate",({delta:A,hasLayoutChanged:Q})=>{this.isDragging&&Q&&(wy(Q=>{let B=this.getAxisMotionValue(Q);B&&(this.originPoint[Q]+=A[Q].translate,B.set(B.get()+A[Q].translate))}),this.visualElement.render())});return()=>{E(),Q(),I(),null==g||g()}}getProps(){let A=this.visualElement.getProps(),{drag:Q=!1,dragDirectionLock:B=!1,dragPropagation:C=!1,dragConstraints:I=!1,dragElastic:E=.35,dragMomentum:g=!0}=A;return{...A,drag:Q,dragDirectionLock:B,dragPropagation:C,dragConstraints:I,dragElastic:E,dragMomentum:g}}}function wF(A,Q,B){return(!0===Q||Q===A)&&(null===B||B===A)}let wS={pan:I8(function({onPan:A,onPanStart:Q,onPanEnd:B,onPanSessionStart:C,visualElement:I}){let E=(0,AL.useRef)(null),{transformPagePoint:g}=(0,AL.useContext)(Ci),w={onSessionStart:C,onStart:Q,onMove:A,onEnd:(A,Q)=>{E.current=null,B&&B(A,Q)}};(0,AL.useEffect)(()=>{null!==E.current&&E.current.updateHandlers(w)}),Im(I,"pointerdown",(A||Q||B||C)&&function(A){E.current=new g3(A,w,{transformPagePoint:g})}),Cn(()=>E.current&&E.current.end())}),drag:I8(function(A){let{dragControls:Q,visualElement:B}=A,C=CM(()=>new wJ(B));(0,AL.useEffect)(()=>Q&&Q.subscribe(C),[C,Q]),(0,AL.useEffect)(()=>C.addListeners(),[C])})};function wl(A){return"string"==typeof A&&A.startsWith("var(--")}let wH=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function wY(A,Q,B=1){I9(B<=4,`Max CSS variable fallback depth detected in property "${A}". This may indicate a circular fallback dependency.`);let[C,I]=function(A){let Q=wH.exec(A);if(!Q)return[,];let[,B,C]=Q;return[B,C]}(A);if(!C)return;let E=window.getComputedStyle(Q).getPropertyValue(C);return E?E.trim():wl(I)?wY(I,Q,B+1):I}let wf=new Set(["width","height","top","left","right","bottom","x","y"]),wd=A=>wf.has(A),wu=A=>Object.keys(A).some(wd),wR=(A,Q)=>{A.set(Q,!1),A.set(Q)},wj=A=>A===C9||A===C1;(c=O||(O={})).width="width",c.height="height",c.left="left",c.right="right",c.top="top",c.bottom="bottom";let wb=(A,Q)=>parseFloat(A.split(", ")[Q]),wm=(A,Q)=>(B,{transform:C})=>{if("none"===C||!C)return 0;let I=C.match(/^matrix3d\((.+)\)$/);if(I)return wb(I[1],Q);{let Q=C.match(/^matrix\((.+)\)$/);return Q?wb(Q[1],A):0}},wT=new Set(["x","y","z"]),wZ=Cm.filter(A=>!wT.has(A)),wO={width:({x:A},{paddingLeft:Q="0",paddingRight:B="0"})=>A.max-A.min-parseFloat(Q)-parseFloat(B),height:({y:A},{paddingTop:Q="0",paddingBottom:B="0"})=>A.max-A.min-parseFloat(Q)-parseFloat(B),top:(A,{top:Q})=>parseFloat(Q),left:(A,{left:Q})=>parseFloat(Q),bottom:({y:A},{top:Q})=>parseFloat(Q)+(A.max-A.min),right:({x:A},{left:Q})=>parseFloat(Q)+(A.max-A.min),x:wm(4,13),y:wm(5,14)},wv=(A,Q,B)=>{let C=Q.measureViewportBox(),I=Q.current,E=getComputedStyle(I),{display:g}=E,w={};"none"===g&&Q.setStaticValue("display",A.display||"block"),B.forEach(A=>{w[A]=wO[A](C,E)}),Q.render();let D=Q.measureViewportBox();return B.forEach(B=>{wR(Q.getValue(B),w[B]),A[B]=wO[B](D,E)}),A},wx=(A,Q,B={},C={})=>{Q={...Q},C={...C};let I=Object.keys(Q).filter(wd),E=[],g=!1,w=[];if(I.forEach(I=>{let D;let M=A.getValue(I);if(!A.hasValue(I))return;let c=B[I],s=gb(c),y=Q[I];if(Ii(y)){let A=y.length,Q=null===y[0]?1:0;s=gb(c=y[Q]);for(let B=Q;B{let C=A.getValue(B);void 0!==C&&(Q.push([B,C.get()]),C.set(B.startsWith("scale")?1:0))}),Q.length&&A.render(),Q}(A),g=!0),w.push(I),C[I]=void 0!==C[I]?C[I]:Q[I],wR(M,y))}}),!w.length)return{target:Q,transitionEnd:C};{let B=w.indexOf("height")>=0?window.pageYOffset:null,I=wv(Q,A,w);return E.length&&E.forEach(([Q,B])=>{A.getValue(Q).set(B)}),A.render(),CE&&null!==B&&window.scrollTo({top:B}),{target:I,transitionEnd:C}}},wV=(A,Q,B,C)=>{var I,E;let g=function(A,{...Q},B){let C=A.current;if(!(C instanceof Element))return{target:Q,transitionEnd:B};for(let I in B&&(B={...B}),A.values.forEach(A=>{let Q=A.get();if(!wl(Q))return;let B=wY(Q,C);B&&A.set(B)}),Q){let A=Q[I];if(!wl(A))continue;let E=wY(A,C);E&&(Q[I]=E,B&&void 0===B[I]&&(B[I]=A))}return{target:Q,transitionEnd:B}}(A,Q,C);return Q=g.target,C=g.transitionEnd,I=Q,E=C,wu(I)?wx(A,I,B,E):{target:I,transitionEnd:E}},wz={current:null},wW={current:!1},wP=Object.keys(Cl),wq=wP.length,wX=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class w_{constructor({parent:A,props:Q,reducedMotionConfig:B,visualState:C},I={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>B6.render(this.render,!1,!0);let{latestValues:E,renderState:g}=C;this.latestValues=E,this.baseTarget={...E},this.initialValues=Q.initial?{...E}:{},this.renderState=g,this.parent=A,this.props=Q,this.depth=A?A.depth+1:0,this.reducedMotionConfig=B,this.options=I,this.isControllingVariants=Ce(Q),this.isVariantNode=CJ(Q),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(A&&A.current);let{willChange:w,...D}=this.scrapeMotionValuesFromProps(Q);for(let A in D){let Q=D[A];void 0!==E[A]&&CO(Q)&&(Q.set(E[A],!1),gO(w)&&w.add(A))}if(Q.values)for(let A in Q.values){let B=Q.values[A];void 0!==E[A]&&CO(B)&&B.set(E[A])}}scrapeMotionValuesFromProps(A){return{}}mount(A){var Q;this.current=A,this.projection&&this.projection.mount(A),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(Q=this.parent)||void 0===Q?void 0:Q.addVariantChild(this)),this.values.forEach((A,Q)=>this.bindToMotionValue(Q,A)),wW.current||function(){if(wW.current=!0,CE){if(window.matchMedia){let A=window.matchMedia("(prefers-reduced-motion)"),Q=()=>wz.current=A.matches;A.addListener(Q),Q()}else wz.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||wz.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var A,Q,B;for(let C in null===(A=this.projection)||void 0===A||A.unmount(),B7.update(this.notifyUpdate),B7.render(this.render),this.valueSubscriptions.forEach(A=>A()),null===(Q=this.removeFromVariantTree)||void 0===Q||Q.call(this),null===(B=this.parent)||void 0===B||B.children.delete(this),this.events)this.events[C].clear();this.current=null}bindToMotionValue(A,Q){let B=Q.onChange(Q=>{this.latestValues[A]=Q,this.props.onUpdate&&B6.update(this.notifyUpdate,!1,!0)}),C=Q.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(A,()=>{B(),C()})}sortNodePosition(A){return this.current&&this.sortInstanceNodePosition&&this.type===A.type?this.sortInstanceNodePosition(this.current,A.current):0}loadFeatures(A,Q,B,C,I,E){let g=[];"production"!==B_&&B&&Q&&I9(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let Q=0;Qthis.scheduleRender(),animationType:"string"==typeof B?B:"both",initialPromotionConfig:E,layoutScroll:D})}return g}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ws()}getStaticValue(A){return this.latestValues[A]}setStaticValue(A,Q){this.latestValues[A]=Q}makeTargetAnimatable(A,Q=!0){return this.makeTargetAnimatableFromInstance(A,this.props,Q)}setProps(A){(A.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=A;for(let Q=0;QB.variantChildren.delete(A)}addValue(A,Q){this.hasValue(A)&&this.removeValue(A),this.values.set(A,Q),this.latestValues[A]=Q.get(),this.bindToMotionValue(A,Q)}removeValue(A){var Q;this.values.delete(A),null===(Q=this.valueSubscriptions.get(A))||void 0===Q||Q(),this.valueSubscriptions.delete(A),delete this.latestValues[A],this.removeValueFromRenderState(A,this.renderState)}hasValue(A){return this.values.has(A)}getValue(A,Q){if(this.props.values&&this.props.values[A])return this.props.values[A];let B=this.values.get(A);return void 0===B&&void 0!==Q&&(B=gu(Q),this.addValue(A,B)),B}readValue(A){return void 0===this.latestValues[A]&&this.current?this.readValueFromInstance(this.current,A,this.options):this.latestValues[A]}setBaseTarget(A,Q){this.baseTarget[A]=Q}getBaseTarget(A){var Q;let{initial:B}=this.props,C="string"==typeof B||"object"==typeof B?null===(Q=IU(this.props,B))||void 0===Q?void 0:Q[A]:void 0;if(B&&void 0!==C)return C;let I=this.getBaseTargetFromProps(this.props,A);return void 0===I||CO(I)?void 0!==this.initialValues[A]&&void 0===C?void 0:this.baseTarget[A]:I}on(A,Q){return this.events[A]||(this.events[A]=new gY),this.events[A].add(Q)}notify(A,...Q){var B;null===(B=this.events[A])||void 0===B||B.notify(...Q)}}let w$=["initial",...gz],w0=w$.length;class w8 extends w_{sortInstanceNodePosition(A,Q){return 2&A.compareDocumentPosition(Q)?1:-1}getBaseTargetFromProps(A,Q){var B;return null===(B=A.style)||void 0===B?void 0:B[Q]}removeValueFromRenderState(A,{vars:Q,style:B}){delete Q[A],delete B[A]}makeTargetAnimatableFromInstance({transition:A,transitionEnd:Q,...B},{transformValues:C},I){let E=function(A,Q,B){var C;let I={};for(let E in A){let A=function(A,Q){if(Q)return(Q[A]||Q.default||Q).from}(E,Q);I[E]=void 0!==A?A:null===(C=B.getValue(E))||void 0===C?void 0:C.get()}return I}(B,A||{},this);if(C&&(Q&&(Q=C(Q)),B&&(B=C(B)),E&&(E=C(E))),I){!function(A,Q,B){var C,I;let E=Object.keys(Q).filter(Q=>!A.hasValue(Q)),g=E.length;if(g)for(let w=0;wCj(A)?new w1(Q,{enableHardwareAcceleration:!1}):new w3(Q,{enableHardwareAcceleration:!0});function w2(A,Q){return Q.max===Q.min?0:A/(Q.max-Q.min)*100}let w5={correct:(A,Q)=>{if(!Q.target)return A;if("string"==typeof A){if(!C1.test(A))return A;A=parseFloat(A)}let B=w2(A,Q.target.x),C=w2(A,Q.target.y);return`${B}% ${C}%`}},w9="_$css",w6={correct:(A,{treeScale:Q,projectionDelta:B})=>{let C=A,I=A.includes("var("),E=[];I&&(A=A.replace(wH,A=>(E.push(A),w9)));let g=EJ.parse(A);if(g.length>5)return C;let w=EJ.createTransformer(A),D="number"!=typeof g[0]?1:0,M=B.x.scale*Q.x,c=B.y.scale*Q.y;g[0+D]/=M,g[1+D]/=c;let s=Eg(M,c,.5);"number"==typeof g[2+D]&&(g[2+D]/=s),"number"==typeof g[3+D]&&(g[3+D]/=s);let y=w(g);if(I){let A=0;y=y.replace(w9,()=>{let Q=E[A];return A++,Q})}return y}};class w7 extends AL.Component{componentDidMount(){let{visualElement:A,layoutGroup:Q,switchLayoutGroup:B,layoutId:C}=this.props,{projection:I}=A;Object.assign(Cb,DA),I&&(Q.group&&Q.group.add(I),B&&B.register&&C&&B.register(I),I.root.didUpdate(),I.addEventListener("animationComplete",()=>{this.safeToRemove()}),I.setOptions({...I.options,onExitComplete:()=>this.safeToRemove()})),CH.hasEverUpdated=!0}getSnapshotBeforeUpdate(A){let{layoutDependency:Q,visualElement:B,drag:C,isPresent:I}=this.props,E=B.projection;return E&&(E.isPresent=I,C||A.layoutDependency!==Q||void 0===Q?E.willUpdate():this.safeToRemove(),A.isPresent===I||(I?E.promote():E.relegate()||B6.postRender(()=>{var A;(null===(A=E.getStack())||void 0===A?void 0:A.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:A}=this.props.visualElement;A&&(A.root.didUpdate(),!A.currentAnimation&&A.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:A,layoutGroup:Q,switchLayoutGroup:B}=this.props,{projection:C}=A;C&&(C.scheduleCheckAfterUnmount(),(null==Q?void 0:Q.group)&&Q.group.remove(C),(null==B?void 0:B.deregister)&&B.deregister(C))}safeToRemove(){let{safeToRemove:A}=this.props;null==A||A()}render(){return null}}let DA={borderRadius:{...w5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:w5,borderTopRightRadius:w5,borderBottomLeftRadius:w5,borderBottomRightRadius:w5,boxShadow:w6},DQ=["TopLeft","TopRight","BottomLeft","BottomRight"],DB=DQ.length,DC=A=>"string"==typeof A?parseFloat(A):A,DI=A=>"number"==typeof A||C1.test(A);function DE(A,Q){var B;return null!==(B=A[Q])&&void 0!==B?B:A.borderRadius}let Dg=DD(0,.5,Ez),Dw=DD(.5,.95,EZ);function DD(A,Q,B){return C=>CQ?1:B(EE(A,Q,C))}function DM(A,Q){A.min=Q.min,A.max=Q.max}function Dc(A,Q){DM(A.x,Q.x),DM(A.y,Q.y)}function Ds(A,Q,B,C,I){return A-=Q,A=C+1/B*(A-C),void 0!==I&&(A=C+1/I*(A-C)),A}function Dy(A,Q,[B,C,I],E,g){!function(A,Q=0,B=1,C=.5,I,E=A,g=A){if(C3.test(Q)&&(Q=parseFloat(Q),Q=Eg(g.min,g.max,Q/100)-g.min),"number"!=typeof Q)return;let w=Eg(E.min,E.max,C);A===E&&(w-=Q),A.min=Ds(A.min,Q,B,w,I),A.max=Ds(A.max,Q,B,w,I)}(A,Q[B],Q[C],Q[I],Q.scale,E,g)}let Dh=["x","scaleX","originX"],Dk=["y","scaleY","originY"];function Dn(A,Q,B,C){Dy(A.x,Q,Dh,null==B?void 0:B.x,null==C?void 0:C.x),Dy(A.y,Q,Dk,null==B?void 0:B.y,null==C?void 0:C.y)}function DK(A){return 0===A.translate&&1===A.scale}function Dt(A){return DK(A.x)&&DK(A.y)}function DL(A,Q){return A.x.min===Q.x.min&&A.x.max===Q.x.max&&A.y.min===Q.y.min&&A.y.max===Q.y.max}function DU(A){return g9(A.x)/g9(A.y)}class Di{constructor(){this.members=[]}add(A){gl(this.members,A),A.scheduleRender()}remove(A){if(gH(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){let A=this.members[this.members.length-1];A&&this.promote(A)}}relegate(A){let Q;let B=this.members.findIndex(Q=>A===Q);if(0===B)return!1;for(let A=B;A>=0;A--){let B=this.members[A];if(!1!==B.isPresent){Q=B;break}}return!!Q&&(this.promote(Q),!0)}promote(A,Q){var B;let C=this.lead;if(A!==C&&(this.prevLead=C,this.lead=A,A.show(),C)){C.instance&&C.scheduleRender(),A.scheduleRender(),A.resumeFrom=C,Q&&(A.resumeFrom.preserveOpacity=!0),C.snapshot&&(A.snapshot=C.snapshot,A.snapshot.latestValues=C.animationValues||C.latestValues,A.snapshot.isShared=!0),(null===(B=A.root)||void 0===B?void 0:B.isUpdating)&&(A.isLayoutDirty=!0);let{crossfade:I}=A.options;!1===I&&C.hide()}}exitAnimationComplete(){this.members.forEach(A=>{var Q,B,C,I,E;null===(B=(Q=A.options).onExitComplete)||void 0===B||B.call(Q),null===(E=null===(C=A.resumingFrom)||void 0===C?void 0:(I=C.options).onExitComplete)||void 0===E||E.call(I)})}scheduleRender(){this.members.forEach(A=>{A.instance&&A.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function DG(A,Q,B){let C=A.x.translate/Q.x,I=A.y.translate/Q.y,E=`translate3d(${C}px, ${I}px, 0) `;if(E+=`scale(${1/Q.x}, ${1/Q.y}) `,B){let{rotate:A,rotateX:Q,rotateY:C}=B;A&&(E+=`rotate(${A}deg) `),Q&&(E+=`rotateX(${Q}deg) `),C&&(E+=`rotateY(${C}deg) `)}let g=A.x.scale*Q.x,w=A.y.scale*Q.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(E+=`scale(${g}, ${w})`)?"none":E}let Dp=(A,Q)=>A.depth-Q.depth;class Dr{constructor(){this.children=[],this.isDirty=!1}add(A){gl(this.children,A),this.isDirty=!0}remove(A){gH(this.children,A),this.isDirty=!0}forEach(A){this.isDirty&&this.children.sort(Dp),this.isDirty=!1,this.children.forEach(A)}}let DN=["","X","Y","Z"];function Da({attachResizeListener:A,defaultParent:Q,measureScroll:B,checkIsScrollRoot:C,resetTransform:I}){return class{constructor(A,B={},C=null==Q?void 0:Q()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(DH),this.nodes.forEach(DY)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=A,this.latestValues=B,this.root=C?C.root||C:this,this.path=C?[...C.path,C]:[],this.parent=C,this.depth=C?C.depth+1:0,A&&this.root.registerPotentialNode(A,this);for(let A=0;Athis.root.updateBlockedByResize=!1;A(Q,()=>{this.root.updateBlockedByResize=!0,B&&B(),B=gr(C,250),CH.hasAnimatedSinceResize&&(CH.hasAnimatedSinceResize=!1,this.nodes.forEach(Dl))})}I&&this.root.registerSharedNode(I,this),!1!==this.options.animate&&g&&(I||E)&&this.addEventListener("didUpdate",({delta:A,hasLayoutChanged:Q,hasRelativeTargetChanged:B,layout:C})=>{var I,E,w,D,M;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(E=null!==(I=this.options.transition)&&void 0!==I?I:g.getDefaultTransition())&&void 0!==E?E:Db,{onLayoutAnimationStart:s,onLayoutAnimationComplete:y}=g.getProps(),h=!this.targetLayout||!DL(this.targetLayout,C)||B,k=!Q&&B;if((null===(w=this.resumeFrom)||void 0===w?void 0:w.instance)||k||Q&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(A,k);let Q={...ge(c,"layout"),onPlay:s,onComplete:y};g.shouldReduceMotion&&(Q.delay=0,Q.type=!1),this.startAnimation(Q)}else Q||0!==this.animationProgress||Dl(this),this.isLead()&&(null===(M=(D=this.options).onExitComplete)||void 0===M||M.call(D));this.targetLayout=C})}unmount(){var A,Q;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(A=this.getStack())||void 0===A||A.remove(this),null===(Q=this.parent)||void 0===Q||Q.children.delete(this),this.instance=void 0,B7.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var A;return this.isAnimationBlocked||(null===(A=this.parent)||void 0===A?void 0:A.isTreeAnimationBlocked())||!1}startUpdate(){var A;this.isUpdateBlocked()||(this.isUpdating=!0,null===(A=this.nodes)||void 0===A||A.forEach(Df))}willUpdate(A=!0){var Q,B,C;if(this.root.isUpdateBlocked()){null===(B=(Q=this.options).onExitComplete)||void 0===B||B.call(Q);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let A=this.measure(),Q=this.removeTransform(this.removeElementScroll(A));DZ(Q),this.snapshot={measured:A,layout:Q,latestValues:{}}}updateLayout(){var A;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let A=0;A=((null===(B=this.getStack())||void 0===B?void 0:B.members.length)||0),c=!!(D&&!M&&!0===this.options.crossfade&&!this.path.some(Dj));this.animationProgress=0,this.mixTargetDelta=Q=>{var B,C,s;let y=Q/1e3;Du(g.x,A.x,y),Du(g.y,A.y,y),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(B=this.relativeParent)||void 0===B?void 0:B.layout)&&(wC(w,this.layout.actual,this.relativeParent.layout.actual),C=this.relativeTarget,s=this.relativeTargetOrigin,DR(C.x,s.x,w.x,y),DR(C.y,s.y,w.y,y)),D&&(this.animationValues=E,function(A,Q,B,C,I,E){var g,w,D,M;I?(A.opacity=Eg(0,null!==(g=B.opacity)&&void 0!==g?g:1,Dg(C)),A.opacityExit=Eg(null!==(w=Q.opacity)&&void 0!==w?w:1,0,Dw(C))):E&&(A.opacity=Eg(null!==(D=Q.opacity)&&void 0!==D?D:1,null!==(M=B.opacity)&&void 0!==M?M:1,C));for(let I=0;I{CH.hasAnimatedSinceResize=!0,this.currentAnimation=function(A,Q,B={}){let C=CO(A)?A:gu(A);return gJ("",C,1e3,B),{stop:()=>C.stop(),isAnimating:()=>C.isAnimating()}}(0,0,{...A,onUpdate:Q=>{var B;this.mixTargetDelta(Q),null===(B=A.onUpdate)||void 0===B||B.call(A,Q)},onComplete:()=>{var Q;null===(Q=A.onComplete)||void 0===Q||Q.call(A),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var A;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(A=this.getStack())||void 0===A||A.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var A;this.currentAnimation&&(null===(A=this.mixTargetDelta)||void 0===A||A.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let A=this.getLead(),{targetWithTransforms:Q,target:B,layout:C,latestValues:I}=A;if(Q&&B&&C){if(this!==A&&this.layout&&C&&DO(this.options.animationType,this.layout.actual,C.actual)){B=this.target||ws();let Q=g9(this.layout.actual.x);B.x.min=A.target.x.min,B.x.max=B.x.min+Q;let C=g9(this.layout.actual.y);B.y.min=A.target.y.min,B.y.max=B.y.min+C}Dc(Q,B),wa(Q,I),wA(this.projectionDeltaWithTransform,this.layoutCorrected,Q,I)}}registerSharedNode(A,Q){var B,C,I;this.sharedNodes.has(A)||this.sharedNodes.set(A,new Di),this.sharedNodes.get(A).add(Q),Q.promote({transition:null===(B=Q.options.initialPromotionConfig)||void 0===B?void 0:B.transition,preserveFollowOpacity:null===(I=null===(C=Q.options.initialPromotionConfig)||void 0===C?void 0:C.shouldPreserveFollowOpacity)||void 0===I?void 0:I.call(C,Q)})}isLead(){let A=this.getStack();return!A||A.lead===this}getLead(){var A;let{layoutId:Q}=this.options;return Q&&(null===(A=this.getStack())||void 0===A?void 0:A.lead)||this}getPrevLead(){var A;let{layoutId:Q}=this.options;return Q?null===(A=this.getStack())||void 0===A?void 0:A.prevLead:void 0}getStack(){let{layoutId:A}=this.options;if(A)return this.root.sharedNodes.get(A)}promote({needsReset:A,transition:Q,preserveFollowOpacity:B}={}){let C=this.getStack();C&&C.promote(this,B),A&&(this.projectionDelta=void 0,this.needsReset=!0),Q&&this.setOptions({transition:Q})}relegate(){let A=this.getStack();return!!A&&A.relegate(this)}resetRotation(){let{visualElement:A}=this.options;if(!A)return;let Q=!1,B={};for(let C=0;C{var Q;return null===(Q=A.currentAnimation)||void 0===Q?void 0:Q.stop()}),this.root.nodes.forEach(DF),this.root.sharedNodes.clear()}}}function Do(A){A.updateLayout()}function De(A){var Q,B,C;let I=(null===(Q=A.resumeFrom)||void 0===Q?void 0:Q.snapshot)||A.snapshot;if(A.isLead()&&A.layout&&I&&A.hasListeners("didUpdate")){let{actual:Q,measured:B}=A.layout,{animationType:C}=A.options;"size"===C?wy(A=>{let B=I.isShared?I.measured[A]:I.layout[A],C=g9(B);B.min=Q[A].min,B.max=B.min+C}):DO(C,I.layout,Q)&&wy(A=>{let B=I.isShared?I.measured[A]:I.layout[A],C=g9(Q[A]);B.max=B.min+C});let E=wM();wA(E,Q,I.layout);let g=wM();I.isShared?wA(g,A.applyTransform(B,!0),I.measured):wA(g,Q,I.layout);let w=!Dt(E),D=!1;if(!A.resumeFrom){let B=A.getClosestProjectingParent();if(B&&!B.resumeFrom){let{snapshot:A,layout:C}=B;if(A&&C){let B=ws();wC(B,I.layout,A.layout);let E=ws();wC(E,Q,C.actual),DL(B,E)||(D=!0)}}}A.notifyListeners("didUpdate",{layout:Q,snapshot:I,delta:g,layoutDelta:E,hasLayoutChanged:w,hasRelativeTargetChanged:D})}else A.isLead()&&(null===(C=(B=A.options).onExitComplete)||void 0===C||C.call(B));A.options.transition=void 0}function DJ(A){A.clearSnapshot()}function DF(A){A.clearMeasurements()}function DS(A){let{visualElement:Q}=A.options;(null==Q?void 0:Q.getProps().onBeforeLayoutMeasure)&&Q.notify("BeforeLayoutMeasure"),A.resetTransform()}function Dl(A){A.finishAnimation(),A.targetDelta=A.relativeTarget=A.target=void 0}function DH(A){A.resolveTargetDelta()}function DY(A){A.calcProjection()}function Df(A){A.resetRotation()}function Dd(A){A.removeLeadSnapshot()}function Du(A,Q,B){A.translate=Eg(Q.translate,0,B),A.scale=Eg(Q.scale,1,B),A.origin=Q.origin,A.originPoint=Q.originPoint}function DR(A,Q,B,C){A.min=Eg(Q.min,B.min,C),A.max=Eg(Q.max,B.max,C)}function Dj(A){return A.animationValues&&void 0!==A.animationValues.opacityExit}let Db={duration:.45,ease:[.4,0,.1,1]};function Dm(A,Q){let B=A.root;for(let Q=A.path.length-1;Q>=0;Q--)if(A.path[Q].instance){B=A.path[Q];break}let C=(B&&B!==A.root?B.instance:document).querySelector(`[data-projection-id="${Q}"]`);C&&A.mount(C,!0)}function DT(A){A.min=Math.round(A.min),A.max=Math.round(A.max)}function DZ(A){DT(A.x),DT(A.y)}function DO(A,Q,B){return"position"===A||"preserve-aspect"===A&&!function(A,Q,B=.1){return g8(A,Q)<=B}(DU(Q),DU(B),.2)}let Dv=Da({attachResizeListener:(A,Q)=>Ie(A,"resize",Q),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Dx={current:void 0},DV=Da({measureScroll:A=>({x:A.scrollLeft,y:A.scrollTop}),defaultParent:()=>{if(!Dx.current){let A=new Dv(0,{});A.mount(window),A.setOptions({layoutScroll:!0}),Dx.current=A}return Dx.current},resetTransform:(A,Q)=>{A.style.transform=void 0!==Q?Q:"none"},checkIsScrollRoot:A=>"fixed"===window.getComputedStyle(A).position}),Dz={...gX,...I3,...wS,measureLayout:function(A){let[Q,B]=I1(),C=(0,AL.useContext)(Ck);return AL.createElement(w7,{...A,layoutGroup:C,switchLayoutGroup:(0,AL.useContext)(Cd),isPresent:Q,safeToRemove:B})}},DW=function(A){function Q(Q,B={}){return function({preloadedFeatures:A,createVisualElement:Q,projectionNodeConstructor:B,useRender:C,useVisualState:I,Component:E}){A&&function(A){for(let Q in A)"projectionNodeConstructor"===Q?Cl.projectionNodeConstructor=A[Q]:Cl[Q].Component=A[Q]}(A);let g=(0,AL.forwardRef)(function(g,w){var D;let M={...(0,AL.useContext)(Ci),...g,layoutId:function({layoutId:A}){let Q=(0,AL.useContext)(Ck).id;return Q&&void 0!==A?Q+"-"+A:A}(g)},{isStatic:c}=M,s=null,y=function(A){let{initial:Q,animate:B}=function(A,Q){if(Ce(A)){let{initial:Q,animate:B}=A;return{initial:!1===Q||CN(Q)?Q:void 0,animate:CN(B)?B:void 0}}return!1!==A.inherit?Q:{}}(A,(0,AL.useContext)(CG));return(0,AL.useMemo)(()=>({initial:Q,animate:B}),[CF(Q),CF(B)])}(g),h=c?void 0:CM(()=>{if(CH.hasEverUpdated)return CY++}),k=I(g,c);if(!c&&CE){y.visualElement=function(A,Q,B,C){let I=(0,AL.useContext)(CG).visualElement,E=(0,AL.useContext)(Cp),g=(0,AL.useContext)(CD),w=(0,AL.useContext)(Ci).reducedMotion,D=(0,AL.useRef)();C=C||E.renderer,!D.current&&C&&(D.current=C(A,{visualState:Q,parent:I,props:B,presenceId:g?g.id:void 0,blockInitialAnimation:!!g&&!1===g.initial,reducedMotionConfig:w}));let M=D.current;return Cg(()=>{M&&M.render()}),(0,AL.useEffect)(()=>{M&&M.animationState&&M.animationState.animateChanges()}),Cg(()=>()=>M&&M.notify("Unmount"),[]),M}(E,k,M,Q);let C=(0,AL.useContext)(Cp).strict,I=(0,AL.useContext)(Cd);y.visualElement&&(s=y.visualElement.loadFeatures(M,C,A,h,B||Cl.projectionNodeConstructor,I))}return AL.createElement(Cf,{visualElement:y.visualElement,props:M},s,AL.createElement(CG.Provider,{value:y},C(E,g,h,(D=y.visualElement,(0,AL.useCallback)(A=>{A&&k.mount&&k.mount(A),D&&(A?D.mount(A):D.unmount()),w&&("function"==typeof w?w(A):Cr(w)&&(w.current=A))},[D])),k,c,y.visualElement)))});return g[Cu]=E,g}(A(Q,B))}if("undefined"==typeof Proxy)return Q;let B=new Map;return new Proxy(Q,{get:(A,C)=>(B.has(C)||B.set(C,Q(C)),B.get(C))})}((A,Q)=>(function(A,{forwardMotionProps:Q=!1},B,C,I){return{...Cj(A)?Ia:Io,preloadedFeatures:B,useRender:function(A=!1){return(Q,B,C,I,{latestValues:E},g)=>{let w=(Cj(Q)?function(A,Q){let B=(0,AL.useMemo)(()=>{let B=Iy();return Is(B,Q,{enableHardwareAcceleration:!1},A.transformTemplate),{...B.attrs,style:{...B.style}}},[Q]);if(A.style){let Q={};II(Q,A.style,A),B.style={...Q,...B.style}}return B}:function(A,Q,B){let C={},I=function(A,Q,B){let C=A.style||{},I={};return II(I,C,A),Object.assign(I,function({transformTemplate:A},Q,B){return(0,AL.useMemo)(()=>{let C=IC();return IB(C,Q,{enableHardwareAcceleration:!B},A),Object.assign({},C.vars,C.style)},[Q])}(A,Q,B)),A.transformValues?A.transformValues(I):I}(A,Q,B);return A.drag&&!1!==A.dragListener&&(C.draggable=!1,I.userSelect=I.WebkitUserSelect=I.WebkitTouchCallout="none",I.touchAction=!0===A.drag?"none":`pan-${"x"===A.drag?"y":"x"}`),C.style=I,C})(B,E,g),D={...function(A,Q,B){let C={};for(let I in A)(Iw(I)||!0===B&&Ig(I)||!Q&&!Ig(I)||A.draggable&&I.startsWith("onDrag"))&&(C[I]=A[I]);return C}(B,"string"==typeof Q,A),...w,ref:I};return C&&(D["data-projection-id"]=C),(0,AL.createElement)(Q,D)}}(Q),createVisualElement:C,projectionNodeConstructor:I,Component:A}})(A,Q,Dz,w4,DV));function DP(A){let{open:Q,onOpenChange:B}=A,[C,I]=(0,AL.useState)(!1);return{open:(0,AL.useMemo)(()=>B?Q:C,[B,C,Q]),onOpenChange:(0,AL.useCallback)(A=>{B?B(A):I(A)},[B])}}let Dq={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function DX(A){let{children:Q,content:B,defaultOpen:C,open:I,onOpenChange:E,delayDuration:g=300,disableHoverableContent:w,...D}=A,{open:M,onOpenChange:c}=DP({open:I,onOpenChange:E});return(0,At.jsxs)(Bv,{open:M,delayDuration:g,disableHoverableContent:w,defaultOpen:C,onOpenChange:c,children:[(0,At.jsx)(Bf,{asChild:!0,children:Q}),(0,At.jsx)(CU,{children:B&&M?(0,At.jsx)(Bx,{forceMount:!0,children:(0,At.jsx)(Bb,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:D.sideOffset||5,...D,children:(0,At.jsx)(DW.div,{variants:Dq,initial:"init",animate:"show",exit:"exit",className:(0,QI.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,At.jsx)("div",{className:(0,QI.cx)("py-1 px-2","max-w-xs","overflow-hidden",BP()),children:(0,At.jsx)(BW,{size:"12",children:B})})})})}):null})]})}let D_=(0,QI.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),D$=AL.forwardRef((A,Q)=>{let{variant:B,size:C,state:I,rounded:E,disabled:g,icon:w,color:D,tip:M,tipAlign:c,tipSide:s,className:y,type:h="button",...k}=A;return M?(0,At.jsx)(DX,{content:M,align:c,side:s,children:(0,At.jsx)("button",{ref:Q,type:h,disabled:g,className:D_({variant:B,size:C,state:I,rounded:E,disabled:g,icon:w,color:D,className:y}),...k})}):(0,At.jsx)("button",{ref:Q,disabled:g,type:h,className:D_({variant:B,size:C,state:I,rounded:E,disabled:g,icon:w,color:D,className:y}),...k})});var D0=B(67537);(0,QI.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let D8=(0,QI.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),D3=AL.forwardRef((A,Q)=>{let{className:B,...C}=A;return(0,At.jsx)("div",{...C,className:D8({className:B}),ref:Q})}),D1="Avatar",[D4,D2]=Ap(D1),[D5,D9]=D4(D1),D6=(0,AL.forwardRef)((A,Q)=>{let{__scopeAvatar:B,...C}=A,[I,E]=(0,AL.useState)("idle");return(0,AL.createElement)(D5,{scope:B,imageLoadingStatus:I,onImageLoadingStatusChange:E},(0,AL.createElement)(Af.span,Ai({},C,{ref:Q})))}),D7=(0,AL.forwardRef)((A,Q)=>{let{__scopeAvatar:B,src:C,onLoadingStatusChange:I=()=>{},...E}=A,g=D9("AvatarImage",B),w=function(A){let[Q,B]=(0,AL.useState)("idle");return(0,AL.useEffect)(()=>{if(!A){B("error");return}let Q=!0,C=new window.Image,I=A=>()=>{Q&&B(A)};return B("loading"),C.onload=I("loaded"),C.onerror=I("error"),C.src=A,()=>{Q=!1}},[A]),Q}(C),D=Al(A=>{I(A),g.onImageLoadingStatusChange(A)});return Au(()=>{"idle"!==w&&D(w)},[w,D]),"loaded"===w?(0,AL.createElement)(Af.img,Ai({},E,{ref:Q,src:C})):null}),MA=(0,AL.forwardRef)((A,Q)=>{let{__scopeAvatar:B,delayMs:C,...I}=A,E=D9("AvatarFallback",B),[g,w]=(0,AL.useState)(void 0===C);return(0,AL.useEffect)(()=>{if(void 0!==C){let A=window.setTimeout(()=>w(!0),C);return()=>window.clearTimeout(A)}},[C]),g&&"loaded"!==E.imageLoadingStatus?(0,AL.createElement)(Af.span,Ai({},I,{ref:Q})):null}),MQ=(0,QI.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),MB=(0,QI.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),MC=AL.forwardRef((A,Q)=>{let{alt:B,src:C,fallback:I,size:E,variant:g,shape:w,interactive:D,inactive:M,className:c,...s}=A;return(0,At.jsx)("div",{className:(0,QI.cx)("relative h-fit w-fit",c),children:(0,At.jsxs)(D6,{...s,ref:Q,className:MQ({className:c,size:E,variant:g,interactive:D,inactive:M,shape:w}),children:["filter"===g&&(0,At.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,At.jsx)(D7,{alt:B,src:C,className:"flex object-cover h-full align-middle w-full"}),(0,At.jsx)(MA,{className:MB({size:E}),children:I})]})})}),MI=(0,QI.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),ME=AL.forwardRef((A,Q)=>{let{variant:B,size:C,interactive:I,rounded:E,className:g,...w}=A;return(0,At.jsx)("div",{...w,className:MI({variant:B,size:C,interactive:I,rounded:E,className:g}),ref:Q})}),Mg=(0,QI.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),Mw=AL.forwardRef((A,Q)=>{let{color:B,className:C,...I}=A;return(0,At.jsx)("code",{...I,className:Mg({color:B,className:C}),ref:Q})}),MD=(0,QI.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),MM=AL.forwardRef((A,Q)=>{let{className:B,...C}=A;return(0,At.jsx)("div",{ref:Q,className:MD({className:B}),...C})});(0,QI.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let Mc=(0,QI.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),Ms=AL.forwardRef((A,Q)=>{let{className:B,pad:C,size:I,...E}=A;return(0,At.jsx)("div",{ref:Q,...E,className:Mc({size:I,pad:C,className:B})})}),My="focusScope.autoFocusOnMount",Mh="focusScope.autoFocusOnUnmount",Mk={bubbles:!1,cancelable:!0},Mn=(0,AL.forwardRef)((A,Q)=>{let{loop:B=!1,trapped:C=!1,onMountAutoFocus:I,onUnmountAutoFocus:E,...g}=A,[w,D]=(0,AL.useState)(null),M=Al(I),c=Al(E),s=(0,AL.useRef)(null),y=AN(Q,A=>D(A)),h=(0,AL.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,AL.useEffect)(()=>{if(C){function A(A){if(h.paused||!w)return;let Q=A.target;w.contains(Q)?s.current=Q:ML(s.current,{select:!0})}function Q(A){h.paused||!w||w.contains(A.relatedTarget)||ML(s.current,{select:!0})}return document.addEventListener("focusin",A),document.addEventListener("focusout",Q),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",Q)}}},[C,w,h.paused]),(0,AL.useEffect)(()=>{if(w){MU.add(h);let A=document.activeElement;if(!w.contains(A)){let Q=new CustomEvent(My,Mk);w.addEventListener(My,M),w.dispatchEvent(Q),Q.defaultPrevented||(function(A,{select:Q=!1}={}){let B=document.activeElement;for(let C of A)if(ML(C,{select:Q}),document.activeElement!==B)return}(MK(w).filter(A=>"A"!==A.tagName),{select:!0}),document.activeElement===A&&ML(w))}return()=>{w.removeEventListener(My,M),setTimeout(()=>{let Q=new CustomEvent(Mh,Mk);w.addEventListener(Mh,c),w.dispatchEvent(Q),Q.defaultPrevented||ML(null!=A?A:document.body,{select:!0}),w.removeEventListener(Mh,c),MU.remove(h)},0)}}},[w,M,c,h]);let k=(0,AL.useCallback)(A=>{if(!B&&!C||h.paused)return;let Q="Tab"===A.key&&!A.altKey&&!A.ctrlKey&&!A.metaKey,I=document.activeElement;if(Q&&I){let Q=A.currentTarget,[C,E]=function(A){let Q=MK(A);return[Mt(Q,A),Mt(Q.reverse(),A)]}(Q);C&&E?A.shiftKey||I!==E?A.shiftKey&&I===C&&(A.preventDefault(),B&&ML(E,{select:!0})):(A.preventDefault(),B&&ML(C,{select:!0})):I===Q&&A.preventDefault()}},[B,C,h.paused]);return(0,AL.createElement)(Af.div,Ai({tabIndex:-1},g,{ref:y,onKeyDown:k}))});function MK(A){let Q=[],B=document.createTreeWalker(A,NodeFilter.SHOW_ELEMENT,{acceptNode:A=>{let Q="INPUT"===A.tagName&&"hidden"===A.type;return A.disabled||A.hidden||Q?NodeFilter.FILTER_SKIP:A.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;B.nextNode();)Q.push(B.currentNode);return Q}function Mt(A,Q){for(let B of A)if(!function(A,{upTo:Q}){if("hidden"===getComputedStyle(A).visibility)return!0;for(;A&&(void 0===Q||A!==Q);){if("none"===getComputedStyle(A).display)return!0;A=A.parentElement}return!1}(B,{upTo:Q}))return B}function ML(A,{select:Q=!1}={}){if(A&&A.focus){var B;let C=document.activeElement;A.focus({preventScroll:!0}),A!==C&&(B=A)instanceof HTMLInputElement&&"select"in B&&Q&&A.select()}}let MU=(w=[],{add(A){let Q=w[0];A!==Q&&(null==Q||Q.pause()),(w=Mi(w,A)).unshift(A)},remove(A){var Q;null===(Q=(w=Mi(w,A))[0])||void 0===Q||Q.resume()}});function Mi(A,Q){let B=[...A],C=B.indexOf(Q);return -1!==C&&B.splice(C,1),B}let MG=0;function Mp(){(0,AL.useEffect)(()=>{var A,Q;let B=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(A=B[0])&&void 0!==A?A:Mr()),document.body.insertAdjacentElement("beforeend",null!==(Q=B[1])&&void 0!==Q?Q:Mr()),MG++,()=>{1===MG&&document.querySelectorAll("[data-radix-focus-guard]").forEach(A=>A.remove()),MG--}},[])}function Mr(){let A=document.createElement("span");return A.setAttribute("data-radix-focus-guard",""),A.tabIndex=0,A.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",A}var MN=function(){return(MN=Object.assign||function(A){for(var Q,B=1,C=arguments.length;BQ.indexOf(C)&&(B[C]=A[C]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols)for(var I=0,C=Object.getOwnPropertySymbols(A);IQ.indexOf(C[I])&&Object.prototype.propertyIsEnumerable.call(A,C[I])&&(B[C[I]]=A[C[I]]);return B}function Mo(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})}function Me(A,Q){var B,C,I,E,g={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return E={next:w(0),throw:w(1),return:w(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function w(w){return function(D){return function(w){if(B)throw TypeError("Generator is already executing.");for(;E&&(E=0,w[0]&&(g=0)),g;)try{if(B=1,C&&(I=2&w[0]?C.return:w[0]?C.throw||((I=C.return)&&I.call(C),0):C.next)&&!(I=I.call(C,w[1])).done)return I;switch(C=0,I&&(w=[2&w[0],I.value]),w[0]){case 0:case 1:I=w;break;case 4:return g.label++,{value:w[1],done:!1};case 5:g.label++,C=w[1],w=[0];continue;case 7:w=g.ops.pop(),g.trys.pop();continue;default:if(!(I=(I=g.trys).length>0&&I[I.length-1])&&(6===w[0]||2===w[0])){g=0;continue}if(3===w[0]&&(!I||w[1]>I[0]&&w[1]0)&&!(C=E.next()).done;)g.push(C.value)}catch(A){I={error:A}}finally{try{C&&!C.done&&(B=E.return)&&B.call(E)}finally{if(I)throw I.error}}return g}function MF(A,Q,B){if(B||2==arguments.length)for(var C,I=0,E=Q.length;I